Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: pnpm lint
- name: Lint fix check
run: |
pnpm lint --fix
pnpm lint-fix
git diff --exit-code
- name: Formatting check
run: pnpm format-check
2 changes: 1 addition & 1 deletion packages/bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Parameters:
- `title` (string): Title of the pull request for the proposal.
- `body` (string): Description of the pull request for the proposal.
- `metadata` (object, optional)
- `cost` (number): Cost incurred for implementing the task.
- `cost_in_cents` (number): Cost (in USD cents) incurred for implementing the task.

### `code.cleanup`

Expand Down
2 changes: 1 addition & 1 deletion packages/bot/src/resources/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@ export interface CodeProposeParams extends CodeDownloadParams {
body?: string;
};
metadata?: Record<string, unknown> & {
cost?: number;
cost_in_cents?: number;
};
}
4 changes: 2 additions & 2 deletions packages/bot/test/resources/code.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
await automa.code.download({
task: { id: 28, token: 'invalid' },
});
} catch (error: any) {

Check warning on line 68 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 68 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
err = error;
}
});
Expand Down Expand Up @@ -112,7 +112,7 @@
await automa.code.download({
task: { id: 28, token: 'abcdef' },
});
} catch (error: any) {

Check warning on line 115 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 115 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
err = error;
}
});
Expand Down Expand Up @@ -227,7 +227,7 @@
await automa.code.propose({
task: { id: 28, token: 'abcdef' },
});
} catch (error: any) {

Check warning on line 230 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 230 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
err = error;
}
});
Expand Down Expand Up @@ -258,7 +258,7 @@
await automa.code.propose({
task: { id: 28, token: 'abcdef' },
});
} catch (error: any) {

Check warning on line 261 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 261 in packages/bot/test/resources/code.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
err = error;
}
});
Expand Down Expand Up @@ -461,7 +461,7 @@
response = await automa.code.propose({
task: { id: 28, token: 'abcdef' },
metadata: {
cost: 0.1,
cost_in_cents: 10,
random: 'yes',
},
});
Expand All @@ -485,7 +485,7 @@
},
task: { id: 28, token: 'abcdef' },
metadata: {
cost: 0.1,
cost_in_cents: 10,
random: 'yes',
},
},
Expand Down
Loading