bopodev-agent-sdk 0.1.25 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/README.md +27 -0
- package/dist/adapters/codex/src/server/quota.d.ts +2 -0
- package/dist/agent-sdk/src/adapters.d.ts +12 -1
- package/dist/agent-sdk/src/provider-failures/anthropic-api.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/claude-code.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/codex.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/common.d.ts +7 -0
- package/dist/agent-sdk/src/provider-failures/cursor.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/gemini-cli.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/http.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/index.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/openai-api.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/opencode.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/shell.d.ts +5 -0
- package/dist/agent-sdk/src/provider-failures/types.d.ts +20 -0
- package/dist/agent-sdk/src/quota.d.ts +4 -0
- package/dist/agent-sdk/src/runtime-core.d.ts +1 -1
- package/dist/agent-sdk/src/runtime-http.d.ts +4 -2
- package/dist/agent-sdk/src/runtime-parsers.d.ts +1 -1
- package/dist/agent-sdk/src/runtime.d.ts +13 -0
- package/dist/agent-sdk/src/types.d.ts +19 -1
- package/dist/contracts/src/index.d.ts +426 -11
- package/package.json +2 -2
- package/src/adapters.ts +477 -58
- package/src/provider-failures/anthropic-api.ts +20 -0
- package/src/provider-failures/claude-code.ts +20 -0
- package/src/provider-failures/codex.ts +23 -0
- package/src/provider-failures/common.ts +86 -0
- package/src/provider-failures/cursor.ts +20 -0
- package/src/provider-failures/gemini-cli.ts +20 -0
- package/src/provider-failures/http.ts +12 -0
- package/src/provider-failures/index.ts +54 -0
- package/src/provider-failures/openai-api.ts +20 -0
- package/src/provider-failures/opencode.ts +20 -0
- package/src/provider-failures/shell.ts +12 -0
- package/src/provider-failures/types.ts +28 -0
- package/src/runtime-core.ts +7 -1
- package/src/runtime-http.ts +51 -6
- package/src/runtime-parsers.ts +1 -0
- package/src/runtime.ts +299 -1
- package/src/types.ts +20 -1
|
@@ -168,6 +168,72 @@ export declare const IssueAttachmentSchema: z.ZodObject<{
|
|
|
168
168
|
createdAt: z.ZodString;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
export type IssueAttachment = z.infer<typeof IssueAttachmentSchema>;
|
|
171
|
+
/** Single-issue GET: core issue fields plus attachment metadata and API download paths. */
|
|
172
|
+
export declare const IssueAttachmentWithDownloadSchema: z.ZodObject<{
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
companyId: z.ZodString;
|
|
175
|
+
issueId: z.ZodString;
|
|
176
|
+
projectId: z.ZodString;
|
|
177
|
+
fileName: z.ZodString;
|
|
178
|
+
mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
fileSizeBytes: z.ZodNumber;
|
|
180
|
+
relativePath: z.ZodString;
|
|
181
|
+
uploadedByActorType: z.ZodEnum<{
|
|
182
|
+
human: "human";
|
|
183
|
+
agent: "agent";
|
|
184
|
+
system: "system";
|
|
185
|
+
}>;
|
|
186
|
+
uploadedByActorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
createdAt: z.ZodString;
|
|
188
|
+
downloadPath: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export declare const IssueDetailSchema: z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
companyId: z.ZodString;
|
|
193
|
+
projectId: z.ZodString;
|
|
194
|
+
parentIssueId: z.ZodNullable<z.ZodString>;
|
|
195
|
+
title: z.ZodString;
|
|
196
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
status: z.ZodEnum<{
|
|
198
|
+
blocked: "blocked";
|
|
199
|
+
todo: "todo";
|
|
200
|
+
in_progress: "in_progress";
|
|
201
|
+
in_review: "in_review";
|
|
202
|
+
done: "done";
|
|
203
|
+
canceled: "canceled";
|
|
204
|
+
}>;
|
|
205
|
+
priority: z.ZodEnum<{
|
|
206
|
+
none: "none";
|
|
207
|
+
low: "low";
|
|
208
|
+
medium: "medium";
|
|
209
|
+
high: "high";
|
|
210
|
+
urgent: "urgent";
|
|
211
|
+
}>;
|
|
212
|
+
assigneeAgentId: z.ZodNullable<z.ZodString>;
|
|
213
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
214
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
215
|
+
createdAt: z.ZodString;
|
|
216
|
+
updatedAt: z.ZodString;
|
|
217
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
companyId: z.ZodString;
|
|
220
|
+
issueId: z.ZodString;
|
|
221
|
+
projectId: z.ZodString;
|
|
222
|
+
fileName: z.ZodString;
|
|
223
|
+
mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
fileSizeBytes: z.ZodNumber;
|
|
225
|
+
relativePath: z.ZodString;
|
|
226
|
+
uploadedByActorType: z.ZodEnum<{
|
|
227
|
+
human: "human";
|
|
228
|
+
agent: "agent";
|
|
229
|
+
system: "system";
|
|
230
|
+
}>;
|
|
231
|
+
uploadedByActorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
createdAt: z.ZodString;
|
|
233
|
+
downloadPath: z.ZodString;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type IssueDetail = z.infer<typeof IssueDetailSchema>;
|
|
171
237
|
export declare const IssueCommentRecipientSchema: z.ZodObject<{
|
|
172
238
|
recipientType: z.ZodEnum<{
|
|
173
239
|
agent: "agent";
|
|
@@ -1618,6 +1684,9 @@ export declare const ControlPlaneRuntimeEnvSchema: z.ZodObject<{
|
|
|
1618
1684
|
BOPODEV_WAKE_REASON: z.ZodOptional<z.ZodString>;
|
|
1619
1685
|
BOPODEV_WAKE_COMMENT_ID: z.ZodOptional<z.ZodString>;
|
|
1620
1686
|
BOPODEV_LINKED_ISSUE_IDS: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
BOPODEV_COMPANY_WORKSPACE_ROOT: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
BOPODEV_AGENT_HOME: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
BOPODEV_AGENT_OPERATING_DIR: z.ZodOptional<z.ZodString>;
|
|
1621
1690
|
}, z.core.$strip>;
|
|
1622
1691
|
export type ControlPlaneRuntimeEnv = z.infer<typeof ControlPlaneRuntimeEnvSchema>;
|
|
1623
1692
|
export declare const ExecutionOutcomeKindSchema: z.ZodEnum<{
|
|
@@ -1681,6 +1750,213 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
|
|
|
1681
1750
|
}>>;
|
|
1682
1751
|
}, z.core.$strip>;
|
|
1683
1752
|
export type ExecutionOutcome = z.infer<typeof ExecutionOutcomeSchema>;
|
|
1753
|
+
export declare const AgentFinalRunOutputArtifactSchema: z.ZodObject<{
|
|
1754
|
+
kind: z.ZodString;
|
|
1755
|
+
path: z.ZodString;
|
|
1756
|
+
}, z.core.$strict>;
|
|
1757
|
+
export type AgentFinalRunOutputArtifact = z.infer<typeof AgentFinalRunOutputArtifactSchema>;
|
|
1758
|
+
export declare const AgentFinalRunOutputSchema: z.ZodObject<{
|
|
1759
|
+
employee_comment: z.ZodString;
|
|
1760
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1761
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1762
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1763
|
+
kind: z.ZodString;
|
|
1764
|
+
path: z.ZodString;
|
|
1765
|
+
}, z.core.$strict>>>;
|
|
1766
|
+
}, z.core.$loose>;
|
|
1767
|
+
export type AgentFinalRunOutput = z.infer<typeof AgentFinalRunOutputSchema>;
|
|
1768
|
+
export declare const RunUsdCostStatusSchema: z.ZodEnum<{
|
|
1769
|
+
unknown: "unknown";
|
|
1770
|
+
exact: "exact";
|
|
1771
|
+
estimated: "estimated";
|
|
1772
|
+
}>;
|
|
1773
|
+
export type RunUsdCostStatus = z.infer<typeof RunUsdCostStatusSchema>;
|
|
1774
|
+
export declare const RunCompletionReasonSchema: z.ZodEnum<{
|
|
1775
|
+
blocked: "blocked";
|
|
1776
|
+
unknown: "unknown";
|
|
1777
|
+
task_completed: "task_completed";
|
|
1778
|
+
no_assigned_work: "no_assigned_work";
|
|
1779
|
+
provider_rate_limited: "provider_rate_limited";
|
|
1780
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
1781
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
1782
|
+
auth_error: "auth_error";
|
|
1783
|
+
timeout: "timeout";
|
|
1784
|
+
cancelled: "cancelled";
|
|
1785
|
+
contract_invalid: "contract_invalid";
|
|
1786
|
+
runtime_error: "runtime_error";
|
|
1787
|
+
runtime_missing: "runtime_missing";
|
|
1788
|
+
budget_hard_stop: "budget_hard_stop";
|
|
1789
|
+
overlap_in_progress: "overlap_in_progress";
|
|
1790
|
+
provider_unavailable: "provider_unavailable";
|
|
1791
|
+
}>;
|
|
1792
|
+
export type RunCompletionReason = z.infer<typeof RunCompletionReasonSchema>;
|
|
1793
|
+
export declare const RunResultStatusSchema: z.ZodEnum<{
|
|
1794
|
+
reported: "reported";
|
|
1795
|
+
none_reported: "none_reported";
|
|
1796
|
+
}>;
|
|
1797
|
+
export type RunResultStatus = z.infer<typeof RunResultStatusSchema>;
|
|
1798
|
+
export declare const RunArtifactSchema: z.ZodObject<{
|
|
1799
|
+
path: z.ZodString;
|
|
1800
|
+
kind: z.ZodString;
|
|
1801
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1802
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1803
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1804
|
+
verifiedOnDisk: z.ZodOptional<z.ZodBoolean>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
export type RunArtifact = z.infer<typeof RunArtifactSchema>;
|
|
1807
|
+
export declare const RunCostSummarySchema: z.ZodObject<{
|
|
1808
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
1809
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
1810
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1811
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
1812
|
+
unknown: "unknown";
|
|
1813
|
+
exact: "exact";
|
|
1814
|
+
estimated: "estimated";
|
|
1815
|
+
}>>;
|
|
1816
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1817
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1818
|
+
}, z.core.$strip>;
|
|
1819
|
+
export type RunCostSummary = z.infer<typeof RunCostSummarySchema>;
|
|
1820
|
+
export declare const RunManagerReportSchema: z.ZodObject<{
|
|
1821
|
+
agentName: z.ZodString;
|
|
1822
|
+
providerType: z.ZodEnum<{
|
|
1823
|
+
claude_code: "claude_code";
|
|
1824
|
+
codex: "codex";
|
|
1825
|
+
cursor: "cursor";
|
|
1826
|
+
opencode: "opencode";
|
|
1827
|
+
gemini_cli: "gemini_cli";
|
|
1828
|
+
openai_api: "openai_api";
|
|
1829
|
+
anthropic_api: "anthropic_api";
|
|
1830
|
+
http: "http";
|
|
1831
|
+
shell: "shell";
|
|
1832
|
+
}>;
|
|
1833
|
+
whatWasDone: z.ZodString;
|
|
1834
|
+
resultSummary: z.ZodString;
|
|
1835
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1836
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1837
|
+
nextAction: z.ZodString;
|
|
1838
|
+
costLine: z.ZodString;
|
|
1839
|
+
}, z.core.$strip>;
|
|
1840
|
+
export type RunManagerReport = z.infer<typeof RunManagerReportSchema>;
|
|
1841
|
+
export declare const RunCompletionReportSchema: z.ZodObject<{
|
|
1842
|
+
finalStatus: z.ZodEnum<{
|
|
1843
|
+
completed: "completed";
|
|
1844
|
+
failed: "failed";
|
|
1845
|
+
}>;
|
|
1846
|
+
completionReason: z.ZodEnum<{
|
|
1847
|
+
blocked: "blocked";
|
|
1848
|
+
unknown: "unknown";
|
|
1849
|
+
task_completed: "task_completed";
|
|
1850
|
+
no_assigned_work: "no_assigned_work";
|
|
1851
|
+
provider_rate_limited: "provider_rate_limited";
|
|
1852
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
1853
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
1854
|
+
auth_error: "auth_error";
|
|
1855
|
+
timeout: "timeout";
|
|
1856
|
+
cancelled: "cancelled";
|
|
1857
|
+
contract_invalid: "contract_invalid";
|
|
1858
|
+
runtime_error: "runtime_error";
|
|
1859
|
+
runtime_missing: "runtime_missing";
|
|
1860
|
+
budget_hard_stop: "budget_hard_stop";
|
|
1861
|
+
overlap_in_progress: "overlap_in_progress";
|
|
1862
|
+
provider_unavailable: "provider_unavailable";
|
|
1863
|
+
}>;
|
|
1864
|
+
statusHeadline: z.ZodString;
|
|
1865
|
+
summary: z.ZodString;
|
|
1866
|
+
employeeComment: z.ZodString;
|
|
1867
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1868
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1869
|
+
resultStatus: z.ZodDefault<z.ZodEnum<{
|
|
1870
|
+
reported: "reported";
|
|
1871
|
+
none_reported: "none_reported";
|
|
1872
|
+
}>>;
|
|
1873
|
+
resultSummary: z.ZodString;
|
|
1874
|
+
issueIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1875
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1876
|
+
path: z.ZodString;
|
|
1877
|
+
kind: z.ZodString;
|
|
1878
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1879
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1880
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
+
verifiedOnDisk: z.ZodOptional<z.ZodBoolean>;
|
|
1882
|
+
}, z.core.$strip>>>;
|
|
1883
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1884
|
+
nextAction: z.ZodString;
|
|
1885
|
+
cost: z.ZodObject<{
|
|
1886
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
1887
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
1888
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1889
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
1890
|
+
unknown: "unknown";
|
|
1891
|
+
exact: "exact";
|
|
1892
|
+
estimated: "estimated";
|
|
1893
|
+
}>>;
|
|
1894
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1895
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1896
|
+
}, z.core.$strip>;
|
|
1897
|
+
managerReport: z.ZodObject<{
|
|
1898
|
+
agentName: z.ZodString;
|
|
1899
|
+
providerType: z.ZodEnum<{
|
|
1900
|
+
claude_code: "claude_code";
|
|
1901
|
+
codex: "codex";
|
|
1902
|
+
cursor: "cursor";
|
|
1903
|
+
opencode: "opencode";
|
|
1904
|
+
gemini_cli: "gemini_cli";
|
|
1905
|
+
openai_api: "openai_api";
|
|
1906
|
+
anthropic_api: "anthropic_api";
|
|
1907
|
+
http: "http";
|
|
1908
|
+
shell: "shell";
|
|
1909
|
+
}>;
|
|
1910
|
+
whatWasDone: z.ZodString;
|
|
1911
|
+
resultSummary: z.ZodString;
|
|
1912
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1913
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1914
|
+
nextAction: z.ZodString;
|
|
1915
|
+
costLine: z.ZodString;
|
|
1916
|
+
}, z.core.$strip>;
|
|
1917
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1918
|
+
kind: z.ZodEnum<{
|
|
1919
|
+
blocked: "blocked";
|
|
1920
|
+
completed: "completed";
|
|
1921
|
+
failed: "failed";
|
|
1922
|
+
skipped: "skipped";
|
|
1923
|
+
}>;
|
|
1924
|
+
issueIdsTouched: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1925
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1926
|
+
path: z.ZodString;
|
|
1927
|
+
kind: z.ZodString;
|
|
1928
|
+
}, z.core.$strip>>>;
|
|
1929
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1930
|
+
type: z.ZodString;
|
|
1931
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
status: z.ZodEnum<{
|
|
1933
|
+
error: "error";
|
|
1934
|
+
ok: "ok";
|
|
1935
|
+
warn: "warn";
|
|
1936
|
+
}>;
|
|
1937
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
}, z.core.$strip>>>;
|
|
1939
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1940
|
+
code: z.ZodString;
|
|
1941
|
+
message: z.ZodString;
|
|
1942
|
+
retryable: z.ZodBoolean;
|
|
1943
|
+
}, z.core.$strip>>>;
|
|
1944
|
+
nextSuggestedState: z.ZodOptional<z.ZodEnum<{
|
|
1945
|
+
blocked: "blocked";
|
|
1946
|
+
todo: "todo";
|
|
1947
|
+
in_progress: "in_progress";
|
|
1948
|
+
in_review: "in_review";
|
|
1949
|
+
done: "done";
|
|
1950
|
+
}>>;
|
|
1951
|
+
}, z.core.$strip>>>;
|
|
1952
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1953
|
+
persistedRunStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1954
|
+
failureType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1955
|
+
errorType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1956
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1957
|
+
}, z.core.$strip>>>;
|
|
1958
|
+
}, z.core.$strip>;
|
|
1959
|
+
export type RunCompletionReport = z.infer<typeof RunCompletionReportSchema>;
|
|
1684
1960
|
export declare const ThinkingEffortSchema: z.ZodEnum<{
|
|
1685
1961
|
low: "low";
|
|
1686
1962
|
medium: "medium";
|
|
@@ -2263,9 +2539,9 @@ export declare const GovernanceInboxResponseSchema: z.ZodObject<{
|
|
|
2263
2539
|
}, z.core.$strip>;
|
|
2264
2540
|
export type GovernanceInboxResponse = z.infer<typeof GovernanceInboxResponseSchema>;
|
|
2265
2541
|
export declare const BoardAttentionCategorySchema: z.ZodEnum<{
|
|
2542
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2266
2543
|
approval_required: "approval_required";
|
|
2267
2544
|
blocker_escalation: "blocker_escalation";
|
|
2268
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2269
2545
|
stalled_work: "stalled_work";
|
|
2270
2546
|
run_failure_spike: "run_failure_spike";
|
|
2271
2547
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2303,9 +2579,9 @@ export type BoardAttentionEvidence = z.infer<typeof BoardAttentionEvidenceSchema
|
|
|
2303
2579
|
export declare const BoardAttentionItemSchema: z.ZodObject<{
|
|
2304
2580
|
key: z.ZodString;
|
|
2305
2581
|
category: z.ZodEnum<{
|
|
2582
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2306
2583
|
approval_required: "approval_required";
|
|
2307
2584
|
blocker_escalation: "blocker_escalation";
|
|
2308
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2309
2585
|
stalled_work: "stalled_work";
|
|
2310
2586
|
run_failure_spike: "run_failure_spike";
|
|
2311
2587
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2352,9 +2628,9 @@ export declare const BoardAttentionListResponseSchema: z.ZodObject<{
|
|
|
2352
2628
|
items: z.ZodArray<z.ZodObject<{
|
|
2353
2629
|
key: z.ZodString;
|
|
2354
2630
|
category: z.ZodEnum<{
|
|
2631
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2355
2632
|
approval_required: "approval_required";
|
|
2356
2633
|
blocker_escalation: "blocker_escalation";
|
|
2357
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2358
2634
|
stalled_work: "stalled_work";
|
|
2359
2635
|
run_failure_spike: "run_failure_spike";
|
|
2360
2636
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2402,9 +2678,9 @@ export declare const BoardAttentionNotificationEventSchema: z.ZodDiscriminatedUn
|
|
|
2402
2678
|
items: z.ZodArray<z.ZodObject<{
|
|
2403
2679
|
key: z.ZodString;
|
|
2404
2680
|
category: z.ZodEnum<{
|
|
2681
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2405
2682
|
approval_required: "approval_required";
|
|
2406
2683
|
blocker_escalation: "blocker_escalation";
|
|
2407
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2408
2684
|
stalled_work: "stalled_work";
|
|
2409
2685
|
run_failure_spike: "run_failure_spike";
|
|
2410
2686
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2450,9 +2726,9 @@ export declare const BoardAttentionNotificationEventSchema: z.ZodDiscriminatedUn
|
|
|
2450
2726
|
item: z.ZodObject<{
|
|
2451
2727
|
key: z.ZodString;
|
|
2452
2728
|
category: z.ZodEnum<{
|
|
2729
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2453
2730
|
approval_required: "approval_required";
|
|
2454
2731
|
blocker_escalation: "blocker_escalation";
|
|
2455
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2456
2732
|
stalled_work: "stalled_work";
|
|
2457
2733
|
run_failure_spike: "run_failure_spike";
|
|
2458
2734
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3133,9 +3409,9 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3133
3409
|
items: z.ZodArray<z.ZodObject<{
|
|
3134
3410
|
key: z.ZodString;
|
|
3135
3411
|
category: z.ZodEnum<{
|
|
3412
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3136
3413
|
approval_required: "approval_required";
|
|
3137
3414
|
blocker_escalation: "blocker_escalation";
|
|
3138
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3139
3415
|
stalled_work: "stalled_work";
|
|
3140
3416
|
run_failure_spike: "run_failure_spike";
|
|
3141
3417
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3181,9 +3457,9 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3181
3457
|
item: z.ZodObject<{
|
|
3182
3458
|
key: z.ZodString;
|
|
3183
3459
|
category: z.ZodEnum<{
|
|
3460
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3184
3461
|
approval_required: "approval_required";
|
|
3185
3462
|
blocker_escalation: "blocker_escalation";
|
|
3186
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3187
3463
|
stalled_work: "stalled_work";
|
|
3188
3464
|
run_failure_spike: "run_failure_spike";
|
|
3189
3465
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3564,9 +3840,9 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3564
3840
|
items: z.ZodArray<z.ZodObject<{
|
|
3565
3841
|
key: z.ZodString;
|
|
3566
3842
|
category: z.ZodEnum<{
|
|
3843
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3567
3844
|
approval_required: "approval_required";
|
|
3568
3845
|
blocker_escalation: "blocker_escalation";
|
|
3569
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3570
3846
|
stalled_work: "stalled_work";
|
|
3571
3847
|
run_failure_spike: "run_failure_spike";
|
|
3572
3848
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3612,9 +3888,9 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3612
3888
|
item: z.ZodObject<{
|
|
3613
3889
|
key: z.ZodString;
|
|
3614
3890
|
category: z.ZodEnum<{
|
|
3891
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3615
3892
|
approval_required: "approval_required";
|
|
3616
3893
|
blocker_escalation: "blocker_escalation";
|
|
3617
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3618
3894
|
stalled_work: "stalled_work";
|
|
3619
3895
|
run_failure_spike: "run_failure_spike";
|
|
3620
3896
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3993,9 +4269,9 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3993
4269
|
items: z.ZodArray<z.ZodObject<{
|
|
3994
4270
|
key: z.ZodString;
|
|
3995
4271
|
category: z.ZodEnum<{
|
|
4272
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3996
4273
|
approval_required: "approval_required";
|
|
3997
4274
|
blocker_escalation: "blocker_escalation";
|
|
3998
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3999
4275
|
stalled_work: "stalled_work";
|
|
4000
4276
|
run_failure_spike: "run_failure_spike";
|
|
4001
4277
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -4041,9 +4317,9 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4041
4317
|
item: z.ZodObject<{
|
|
4042
4318
|
key: z.ZodString;
|
|
4043
4319
|
category: z.ZodEnum<{
|
|
4320
|
+
budget_hard_stop: "budget_hard_stop";
|
|
4044
4321
|
approval_required: "approval_required";
|
|
4045
4322
|
blocker_escalation: "blocker_escalation";
|
|
4046
|
-
budget_hard_stop: "budget_hard_stop";
|
|
4047
4323
|
stalled_work: "stalled_work";
|
|
4048
4324
|
run_failure_spike: "run_failure_spike";
|
|
4049
4325
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -4093,6 +4369,7 @@ export type RealtimeMessage = z.infer<typeof RealtimeMessageSchema>;
|
|
|
4093
4369
|
export declare const CostLedgerEntrySchema: z.ZodObject<{
|
|
4094
4370
|
id: z.ZodString;
|
|
4095
4371
|
companyId: z.ZodString;
|
|
4372
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4096
4373
|
projectId: z.ZodNullable<z.ZodString>;
|
|
4097
4374
|
issueId: z.ZodNullable<z.ZodString>;
|
|
4098
4375
|
agentId: z.ZodNullable<z.ZodString>;
|
|
@@ -4122,6 +4399,11 @@ export declare const CostLedgerEntrySchema: z.ZodObject<{
|
|
|
4122
4399
|
tokenInput: z.ZodNumber;
|
|
4123
4400
|
tokenOutput: z.ZodNumber;
|
|
4124
4401
|
usdCost: z.ZodNumber;
|
|
4402
|
+
usdCostStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4403
|
+
unknown: "unknown";
|
|
4404
|
+
exact: "exact";
|
|
4405
|
+
estimated: "estimated";
|
|
4406
|
+
}>>>;
|
|
4125
4407
|
createdAt: z.ZodString;
|
|
4126
4408
|
}, z.core.$strip>;
|
|
4127
4409
|
export declare const AuditEventSchema: z.ZodObject<{
|
|
@@ -4150,6 +4432,11 @@ export declare const HeartbeatRunSchema: z.ZodObject<{
|
|
|
4150
4432
|
skipped: "skipped";
|
|
4151
4433
|
started: "started";
|
|
4152
4434
|
}>;
|
|
4435
|
+
publicStatus: z.ZodOptional<z.ZodEnum<{
|
|
4436
|
+
completed: "completed";
|
|
4437
|
+
failed: "failed";
|
|
4438
|
+
started: "started";
|
|
4439
|
+
}>>;
|
|
4153
4440
|
startedAt: z.ZodString;
|
|
4154
4441
|
finishedAt: z.ZodNullable<z.ZodString>;
|
|
4155
4442
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4233,6 +4520,11 @@ export declare const HeartbeatRunDetailSchema: z.ZodObject<{
|
|
|
4233
4520
|
skipped: "skipped";
|
|
4234
4521
|
started: "started";
|
|
4235
4522
|
}>;
|
|
4523
|
+
publicStatus: z.ZodOptional<z.ZodEnum<{
|
|
4524
|
+
completed: "completed";
|
|
4525
|
+
failed: "failed";
|
|
4526
|
+
started: "started";
|
|
4527
|
+
}>>;
|
|
4236
4528
|
startedAt: z.ZodString;
|
|
4237
4529
|
finishedAt: z.ZodNullable<z.ZodString>;
|
|
4238
4530
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4278,10 +4570,133 @@ export declare const HeartbeatRunDetailSchema: z.ZodObject<{
|
|
|
4278
4570
|
done: "done";
|
|
4279
4571
|
}>>;
|
|
4280
4572
|
}, z.core.$strip>>>;
|
|
4573
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4574
|
+
finalStatus: z.ZodEnum<{
|
|
4575
|
+
completed: "completed";
|
|
4576
|
+
failed: "failed";
|
|
4577
|
+
}>;
|
|
4578
|
+
completionReason: z.ZodEnum<{
|
|
4579
|
+
blocked: "blocked";
|
|
4580
|
+
unknown: "unknown";
|
|
4581
|
+
task_completed: "task_completed";
|
|
4582
|
+
no_assigned_work: "no_assigned_work";
|
|
4583
|
+
provider_rate_limited: "provider_rate_limited";
|
|
4584
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
4585
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
4586
|
+
auth_error: "auth_error";
|
|
4587
|
+
timeout: "timeout";
|
|
4588
|
+
cancelled: "cancelled";
|
|
4589
|
+
contract_invalid: "contract_invalid";
|
|
4590
|
+
runtime_error: "runtime_error";
|
|
4591
|
+
runtime_missing: "runtime_missing";
|
|
4592
|
+
budget_hard_stop: "budget_hard_stop";
|
|
4593
|
+
overlap_in_progress: "overlap_in_progress";
|
|
4594
|
+
provider_unavailable: "provider_unavailable";
|
|
4595
|
+
}>;
|
|
4596
|
+
statusHeadline: z.ZodString;
|
|
4597
|
+
summary: z.ZodString;
|
|
4598
|
+
employeeComment: z.ZodString;
|
|
4599
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4600
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4601
|
+
resultStatus: z.ZodDefault<z.ZodEnum<{
|
|
4602
|
+
reported: "reported";
|
|
4603
|
+
none_reported: "none_reported";
|
|
4604
|
+
}>>;
|
|
4605
|
+
resultSummary: z.ZodString;
|
|
4606
|
+
issueIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4607
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4608
|
+
path: z.ZodString;
|
|
4609
|
+
kind: z.ZodString;
|
|
4610
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4611
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4612
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4613
|
+
verifiedOnDisk: z.ZodOptional<z.ZodBoolean>;
|
|
4614
|
+
}, z.core.$strip>>>;
|
|
4615
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4616
|
+
nextAction: z.ZodString;
|
|
4617
|
+
cost: z.ZodObject<{
|
|
4618
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
4619
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
4620
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4621
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
4622
|
+
unknown: "unknown";
|
|
4623
|
+
exact: "exact";
|
|
4624
|
+
estimated: "estimated";
|
|
4625
|
+
}>>;
|
|
4626
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4627
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4628
|
+
}, z.core.$strip>;
|
|
4629
|
+
managerReport: z.ZodObject<{
|
|
4630
|
+
agentName: z.ZodString;
|
|
4631
|
+
providerType: z.ZodEnum<{
|
|
4632
|
+
claude_code: "claude_code";
|
|
4633
|
+
codex: "codex";
|
|
4634
|
+
cursor: "cursor";
|
|
4635
|
+
opencode: "opencode";
|
|
4636
|
+
gemini_cli: "gemini_cli";
|
|
4637
|
+
openai_api: "openai_api";
|
|
4638
|
+
anthropic_api: "anthropic_api";
|
|
4639
|
+
http: "http";
|
|
4640
|
+
shell: "shell";
|
|
4641
|
+
}>;
|
|
4642
|
+
whatWasDone: z.ZodString;
|
|
4643
|
+
resultSummary: z.ZodString;
|
|
4644
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4645
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4646
|
+
nextAction: z.ZodString;
|
|
4647
|
+
costLine: z.ZodString;
|
|
4648
|
+
}, z.core.$strip>;
|
|
4649
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4650
|
+
kind: z.ZodEnum<{
|
|
4651
|
+
blocked: "blocked";
|
|
4652
|
+
completed: "completed";
|
|
4653
|
+
failed: "failed";
|
|
4654
|
+
skipped: "skipped";
|
|
4655
|
+
}>;
|
|
4656
|
+
issueIdsTouched: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4657
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4658
|
+
path: z.ZodString;
|
|
4659
|
+
kind: z.ZodString;
|
|
4660
|
+
}, z.core.$strip>>>;
|
|
4661
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4662
|
+
type: z.ZodString;
|
|
4663
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
4664
|
+
status: z.ZodEnum<{
|
|
4665
|
+
error: "error";
|
|
4666
|
+
ok: "ok";
|
|
4667
|
+
warn: "warn";
|
|
4668
|
+
}>;
|
|
4669
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4670
|
+
}, z.core.$strip>>>;
|
|
4671
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4672
|
+
code: z.ZodString;
|
|
4673
|
+
message: z.ZodString;
|
|
4674
|
+
retryable: z.ZodBoolean;
|
|
4675
|
+
}, z.core.$strip>>>;
|
|
4676
|
+
nextSuggestedState: z.ZodOptional<z.ZodEnum<{
|
|
4677
|
+
blocked: "blocked";
|
|
4678
|
+
todo: "todo";
|
|
4679
|
+
in_progress: "in_progress";
|
|
4680
|
+
in_review: "in_review";
|
|
4681
|
+
done: "done";
|
|
4682
|
+
}>>;
|
|
4683
|
+
}, z.core.$strip>>>;
|
|
4684
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4685
|
+
persistedRunStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4686
|
+
failureType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4687
|
+
errorType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4688
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4689
|
+
}, z.core.$strip>>>;
|
|
4690
|
+
}, z.core.$strip>>>;
|
|
4281
4691
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4282
4692
|
tokenInput: z.ZodOptional<z.ZodNumber>;
|
|
4283
4693
|
tokenOutput: z.ZodOptional<z.ZodNumber>;
|
|
4284
4694
|
usdCost: z.ZodOptional<z.ZodNumber>;
|
|
4695
|
+
usdCostStatus: z.ZodOptional<z.ZodEnum<{
|
|
4696
|
+
unknown: "unknown";
|
|
4697
|
+
exact: "exact";
|
|
4698
|
+
estimated: "estimated";
|
|
4699
|
+
}>>;
|
|
4285
4700
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4286
4701
|
}, z.core.$strip>>>;
|
|
4287
4702
|
trace: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bopodev-agent-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"types": "src/index.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"bopodev-contracts": "0.1.
|
|
9
|
+
"bopodev-contracts": "0.1.27"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc -p tsconfig.json --emitDeclarationOnly",
|