bopodev-agent-sdk 0.1.25 → 0.1.26
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/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/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 +9 -1
- package/dist/contracts/src/index.d.ts +354 -11
- package/package.json +2 -2
- package/src/adapters.ts +389 -48
- 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 +283 -0
- package/src/types.ts +9 -1
|
@@ -1681,6 +1681,211 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
|
|
|
1681
1681
|
}>>;
|
|
1682
1682
|
}, z.core.$strip>;
|
|
1683
1683
|
export type ExecutionOutcome = z.infer<typeof ExecutionOutcomeSchema>;
|
|
1684
|
+
export declare const AgentFinalRunOutputArtifactSchema: z.ZodObject<{
|
|
1685
|
+
kind: z.ZodString;
|
|
1686
|
+
path: z.ZodString;
|
|
1687
|
+
}, z.core.$strict>;
|
|
1688
|
+
export type AgentFinalRunOutputArtifact = z.infer<typeof AgentFinalRunOutputArtifactSchema>;
|
|
1689
|
+
export declare const AgentFinalRunOutputSchema: z.ZodObject<{
|
|
1690
|
+
employee_comment: z.ZodString;
|
|
1691
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1692
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1693
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1694
|
+
kind: z.ZodString;
|
|
1695
|
+
path: z.ZodString;
|
|
1696
|
+
}, z.core.$strict>>>;
|
|
1697
|
+
}, z.core.$loose>;
|
|
1698
|
+
export type AgentFinalRunOutput = z.infer<typeof AgentFinalRunOutputSchema>;
|
|
1699
|
+
export declare const RunUsdCostStatusSchema: z.ZodEnum<{
|
|
1700
|
+
unknown: "unknown";
|
|
1701
|
+
exact: "exact";
|
|
1702
|
+
estimated: "estimated";
|
|
1703
|
+
}>;
|
|
1704
|
+
export type RunUsdCostStatus = z.infer<typeof RunUsdCostStatusSchema>;
|
|
1705
|
+
export declare const RunCompletionReasonSchema: z.ZodEnum<{
|
|
1706
|
+
blocked: "blocked";
|
|
1707
|
+
unknown: "unknown";
|
|
1708
|
+
task_completed: "task_completed";
|
|
1709
|
+
no_assigned_work: "no_assigned_work";
|
|
1710
|
+
provider_rate_limited: "provider_rate_limited";
|
|
1711
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
1712
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
1713
|
+
auth_error: "auth_error";
|
|
1714
|
+
timeout: "timeout";
|
|
1715
|
+
cancelled: "cancelled";
|
|
1716
|
+
contract_invalid: "contract_invalid";
|
|
1717
|
+
runtime_error: "runtime_error";
|
|
1718
|
+
runtime_missing: "runtime_missing";
|
|
1719
|
+
budget_hard_stop: "budget_hard_stop";
|
|
1720
|
+
overlap_in_progress: "overlap_in_progress";
|
|
1721
|
+
provider_unavailable: "provider_unavailable";
|
|
1722
|
+
}>;
|
|
1723
|
+
export type RunCompletionReason = z.infer<typeof RunCompletionReasonSchema>;
|
|
1724
|
+
export declare const RunResultStatusSchema: z.ZodEnum<{
|
|
1725
|
+
reported: "reported";
|
|
1726
|
+
none_reported: "none_reported";
|
|
1727
|
+
}>;
|
|
1728
|
+
export type RunResultStatus = z.infer<typeof RunResultStatusSchema>;
|
|
1729
|
+
export declare const RunArtifactSchema: z.ZodObject<{
|
|
1730
|
+
path: z.ZodString;
|
|
1731
|
+
kind: z.ZodString;
|
|
1732
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1733
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1734
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
export type RunArtifact = z.infer<typeof RunArtifactSchema>;
|
|
1737
|
+
export declare const RunCostSummarySchema: z.ZodObject<{
|
|
1738
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
1739
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
1740
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1741
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
1742
|
+
unknown: "unknown";
|
|
1743
|
+
exact: "exact";
|
|
1744
|
+
estimated: "estimated";
|
|
1745
|
+
}>>;
|
|
1746
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1747
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
}, z.core.$strip>;
|
|
1749
|
+
export type RunCostSummary = z.infer<typeof RunCostSummarySchema>;
|
|
1750
|
+
export declare const RunManagerReportSchema: z.ZodObject<{
|
|
1751
|
+
agentName: z.ZodString;
|
|
1752
|
+
providerType: z.ZodEnum<{
|
|
1753
|
+
claude_code: "claude_code";
|
|
1754
|
+
codex: "codex";
|
|
1755
|
+
cursor: "cursor";
|
|
1756
|
+
opencode: "opencode";
|
|
1757
|
+
gemini_cli: "gemini_cli";
|
|
1758
|
+
openai_api: "openai_api";
|
|
1759
|
+
anthropic_api: "anthropic_api";
|
|
1760
|
+
http: "http";
|
|
1761
|
+
shell: "shell";
|
|
1762
|
+
}>;
|
|
1763
|
+
whatWasDone: z.ZodString;
|
|
1764
|
+
resultSummary: z.ZodString;
|
|
1765
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1766
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1767
|
+
nextAction: z.ZodString;
|
|
1768
|
+
costLine: z.ZodString;
|
|
1769
|
+
}, z.core.$strip>;
|
|
1770
|
+
export type RunManagerReport = z.infer<typeof RunManagerReportSchema>;
|
|
1771
|
+
export declare const RunCompletionReportSchema: z.ZodObject<{
|
|
1772
|
+
finalStatus: z.ZodEnum<{
|
|
1773
|
+
completed: "completed";
|
|
1774
|
+
failed: "failed";
|
|
1775
|
+
}>;
|
|
1776
|
+
completionReason: z.ZodEnum<{
|
|
1777
|
+
blocked: "blocked";
|
|
1778
|
+
unknown: "unknown";
|
|
1779
|
+
task_completed: "task_completed";
|
|
1780
|
+
no_assigned_work: "no_assigned_work";
|
|
1781
|
+
provider_rate_limited: "provider_rate_limited";
|
|
1782
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
1783
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
1784
|
+
auth_error: "auth_error";
|
|
1785
|
+
timeout: "timeout";
|
|
1786
|
+
cancelled: "cancelled";
|
|
1787
|
+
contract_invalid: "contract_invalid";
|
|
1788
|
+
runtime_error: "runtime_error";
|
|
1789
|
+
runtime_missing: "runtime_missing";
|
|
1790
|
+
budget_hard_stop: "budget_hard_stop";
|
|
1791
|
+
overlap_in_progress: "overlap_in_progress";
|
|
1792
|
+
provider_unavailable: "provider_unavailable";
|
|
1793
|
+
}>;
|
|
1794
|
+
statusHeadline: z.ZodString;
|
|
1795
|
+
summary: z.ZodString;
|
|
1796
|
+
employeeComment: z.ZodString;
|
|
1797
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1798
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1799
|
+
resultStatus: z.ZodDefault<z.ZodEnum<{
|
|
1800
|
+
reported: "reported";
|
|
1801
|
+
none_reported: "none_reported";
|
|
1802
|
+
}>>;
|
|
1803
|
+
resultSummary: z.ZodString;
|
|
1804
|
+
issueIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1805
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1806
|
+
path: z.ZodString;
|
|
1807
|
+
kind: z.ZodString;
|
|
1808
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1809
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1810
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1811
|
+
}, z.core.$strip>>>;
|
|
1812
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1813
|
+
nextAction: z.ZodString;
|
|
1814
|
+
cost: z.ZodObject<{
|
|
1815
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
1816
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
1817
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1818
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
1819
|
+
unknown: "unknown";
|
|
1820
|
+
exact: "exact";
|
|
1821
|
+
estimated: "estimated";
|
|
1822
|
+
}>>;
|
|
1823
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1824
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1825
|
+
}, z.core.$strip>;
|
|
1826
|
+
managerReport: z.ZodObject<{
|
|
1827
|
+
agentName: z.ZodString;
|
|
1828
|
+
providerType: z.ZodEnum<{
|
|
1829
|
+
claude_code: "claude_code";
|
|
1830
|
+
codex: "codex";
|
|
1831
|
+
cursor: "cursor";
|
|
1832
|
+
opencode: "opencode";
|
|
1833
|
+
gemini_cli: "gemini_cli";
|
|
1834
|
+
openai_api: "openai_api";
|
|
1835
|
+
anthropic_api: "anthropic_api";
|
|
1836
|
+
http: "http";
|
|
1837
|
+
shell: "shell";
|
|
1838
|
+
}>;
|
|
1839
|
+
whatWasDone: z.ZodString;
|
|
1840
|
+
resultSummary: z.ZodString;
|
|
1841
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1842
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1843
|
+
nextAction: z.ZodString;
|
|
1844
|
+
costLine: z.ZodString;
|
|
1845
|
+
}, z.core.$strip>;
|
|
1846
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1847
|
+
kind: z.ZodEnum<{
|
|
1848
|
+
blocked: "blocked";
|
|
1849
|
+
completed: "completed";
|
|
1850
|
+
failed: "failed";
|
|
1851
|
+
skipped: "skipped";
|
|
1852
|
+
}>;
|
|
1853
|
+
issueIdsTouched: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1854
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1855
|
+
path: z.ZodString;
|
|
1856
|
+
kind: z.ZodString;
|
|
1857
|
+
}, z.core.$strip>>>;
|
|
1858
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1859
|
+
type: z.ZodString;
|
|
1860
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
status: z.ZodEnum<{
|
|
1862
|
+
error: "error";
|
|
1863
|
+
ok: "ok";
|
|
1864
|
+
warn: "warn";
|
|
1865
|
+
}>;
|
|
1866
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
}, z.core.$strip>>>;
|
|
1868
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1869
|
+
code: z.ZodString;
|
|
1870
|
+
message: z.ZodString;
|
|
1871
|
+
retryable: z.ZodBoolean;
|
|
1872
|
+
}, z.core.$strip>>>;
|
|
1873
|
+
nextSuggestedState: z.ZodOptional<z.ZodEnum<{
|
|
1874
|
+
blocked: "blocked";
|
|
1875
|
+
todo: "todo";
|
|
1876
|
+
in_progress: "in_progress";
|
|
1877
|
+
in_review: "in_review";
|
|
1878
|
+
done: "done";
|
|
1879
|
+
}>>;
|
|
1880
|
+
}, z.core.$strip>>>;
|
|
1881
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1882
|
+
persistedRunStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
|
+
failureType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1884
|
+
errorType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1885
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1886
|
+
}, z.core.$strip>>>;
|
|
1887
|
+
}, z.core.$strip>;
|
|
1888
|
+
export type RunCompletionReport = z.infer<typeof RunCompletionReportSchema>;
|
|
1684
1889
|
export declare const ThinkingEffortSchema: z.ZodEnum<{
|
|
1685
1890
|
low: "low";
|
|
1686
1891
|
medium: "medium";
|
|
@@ -2263,9 +2468,9 @@ export declare const GovernanceInboxResponseSchema: z.ZodObject<{
|
|
|
2263
2468
|
}, z.core.$strip>;
|
|
2264
2469
|
export type GovernanceInboxResponse = z.infer<typeof GovernanceInboxResponseSchema>;
|
|
2265
2470
|
export declare const BoardAttentionCategorySchema: z.ZodEnum<{
|
|
2471
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2266
2472
|
approval_required: "approval_required";
|
|
2267
2473
|
blocker_escalation: "blocker_escalation";
|
|
2268
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2269
2474
|
stalled_work: "stalled_work";
|
|
2270
2475
|
run_failure_spike: "run_failure_spike";
|
|
2271
2476
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2303,9 +2508,9 @@ export type BoardAttentionEvidence = z.infer<typeof BoardAttentionEvidenceSchema
|
|
|
2303
2508
|
export declare const BoardAttentionItemSchema: z.ZodObject<{
|
|
2304
2509
|
key: z.ZodString;
|
|
2305
2510
|
category: z.ZodEnum<{
|
|
2511
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2306
2512
|
approval_required: "approval_required";
|
|
2307
2513
|
blocker_escalation: "blocker_escalation";
|
|
2308
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2309
2514
|
stalled_work: "stalled_work";
|
|
2310
2515
|
run_failure_spike: "run_failure_spike";
|
|
2311
2516
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2352,9 +2557,9 @@ export declare const BoardAttentionListResponseSchema: z.ZodObject<{
|
|
|
2352
2557
|
items: z.ZodArray<z.ZodObject<{
|
|
2353
2558
|
key: z.ZodString;
|
|
2354
2559
|
category: z.ZodEnum<{
|
|
2560
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2355
2561
|
approval_required: "approval_required";
|
|
2356
2562
|
blocker_escalation: "blocker_escalation";
|
|
2357
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2358
2563
|
stalled_work: "stalled_work";
|
|
2359
2564
|
run_failure_spike: "run_failure_spike";
|
|
2360
2565
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2402,9 +2607,9 @@ export declare const BoardAttentionNotificationEventSchema: z.ZodDiscriminatedUn
|
|
|
2402
2607
|
items: z.ZodArray<z.ZodObject<{
|
|
2403
2608
|
key: z.ZodString;
|
|
2404
2609
|
category: z.ZodEnum<{
|
|
2610
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2405
2611
|
approval_required: "approval_required";
|
|
2406
2612
|
blocker_escalation: "blocker_escalation";
|
|
2407
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2408
2613
|
stalled_work: "stalled_work";
|
|
2409
2614
|
run_failure_spike: "run_failure_spike";
|
|
2410
2615
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -2450,9 +2655,9 @@ export declare const BoardAttentionNotificationEventSchema: z.ZodDiscriminatedUn
|
|
|
2450
2655
|
item: z.ZodObject<{
|
|
2451
2656
|
key: z.ZodString;
|
|
2452
2657
|
category: z.ZodEnum<{
|
|
2658
|
+
budget_hard_stop: "budget_hard_stop";
|
|
2453
2659
|
approval_required: "approval_required";
|
|
2454
2660
|
blocker_escalation: "blocker_escalation";
|
|
2455
|
-
budget_hard_stop: "budget_hard_stop";
|
|
2456
2661
|
stalled_work: "stalled_work";
|
|
2457
2662
|
run_failure_spike: "run_failure_spike";
|
|
2458
2663
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3133,9 +3338,9 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3133
3338
|
items: z.ZodArray<z.ZodObject<{
|
|
3134
3339
|
key: z.ZodString;
|
|
3135
3340
|
category: z.ZodEnum<{
|
|
3341
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3136
3342
|
approval_required: "approval_required";
|
|
3137
3343
|
blocker_escalation: "blocker_escalation";
|
|
3138
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3139
3344
|
stalled_work: "stalled_work";
|
|
3140
3345
|
run_failure_spike: "run_failure_spike";
|
|
3141
3346
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3181,9 +3386,9 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3181
3386
|
item: z.ZodObject<{
|
|
3182
3387
|
key: z.ZodString;
|
|
3183
3388
|
category: z.ZodEnum<{
|
|
3389
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3184
3390
|
approval_required: "approval_required";
|
|
3185
3391
|
blocker_escalation: "blocker_escalation";
|
|
3186
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3187
3392
|
stalled_work: "stalled_work";
|
|
3188
3393
|
run_failure_spike: "run_failure_spike";
|
|
3189
3394
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3564,9 +3769,9 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3564
3769
|
items: z.ZodArray<z.ZodObject<{
|
|
3565
3770
|
key: z.ZodString;
|
|
3566
3771
|
category: z.ZodEnum<{
|
|
3772
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3567
3773
|
approval_required: "approval_required";
|
|
3568
3774
|
blocker_escalation: "blocker_escalation";
|
|
3569
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3570
3775
|
stalled_work: "stalled_work";
|
|
3571
3776
|
run_failure_spike: "run_failure_spike";
|
|
3572
3777
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3612,9 +3817,9 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3612
3817
|
item: z.ZodObject<{
|
|
3613
3818
|
key: z.ZodString;
|
|
3614
3819
|
category: z.ZodEnum<{
|
|
3820
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3615
3821
|
approval_required: "approval_required";
|
|
3616
3822
|
blocker_escalation: "blocker_escalation";
|
|
3617
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3618
3823
|
stalled_work: "stalled_work";
|
|
3619
3824
|
run_failure_spike: "run_failure_spike";
|
|
3620
3825
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -3993,9 +4198,9 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3993
4198
|
items: z.ZodArray<z.ZodObject<{
|
|
3994
4199
|
key: z.ZodString;
|
|
3995
4200
|
category: z.ZodEnum<{
|
|
4201
|
+
budget_hard_stop: "budget_hard_stop";
|
|
3996
4202
|
approval_required: "approval_required";
|
|
3997
4203
|
blocker_escalation: "blocker_escalation";
|
|
3998
|
-
budget_hard_stop: "budget_hard_stop";
|
|
3999
4204
|
stalled_work: "stalled_work";
|
|
4000
4205
|
run_failure_spike: "run_failure_spike";
|
|
4001
4206
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -4041,9 +4246,9 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4041
4246
|
item: z.ZodObject<{
|
|
4042
4247
|
key: z.ZodString;
|
|
4043
4248
|
category: z.ZodEnum<{
|
|
4249
|
+
budget_hard_stop: "budget_hard_stop";
|
|
4044
4250
|
approval_required: "approval_required";
|
|
4045
4251
|
blocker_escalation: "blocker_escalation";
|
|
4046
|
-
budget_hard_stop: "budget_hard_stop";
|
|
4047
4252
|
stalled_work: "stalled_work";
|
|
4048
4253
|
run_failure_spike: "run_failure_spike";
|
|
4049
4254
|
board_mentioned_comment: "board_mentioned_comment";
|
|
@@ -4093,6 +4298,7 @@ export type RealtimeMessage = z.infer<typeof RealtimeMessageSchema>;
|
|
|
4093
4298
|
export declare const CostLedgerEntrySchema: z.ZodObject<{
|
|
4094
4299
|
id: z.ZodString;
|
|
4095
4300
|
companyId: z.ZodString;
|
|
4301
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4096
4302
|
projectId: z.ZodNullable<z.ZodString>;
|
|
4097
4303
|
issueId: z.ZodNullable<z.ZodString>;
|
|
4098
4304
|
agentId: z.ZodNullable<z.ZodString>;
|
|
@@ -4122,6 +4328,11 @@ export declare const CostLedgerEntrySchema: z.ZodObject<{
|
|
|
4122
4328
|
tokenInput: z.ZodNumber;
|
|
4123
4329
|
tokenOutput: z.ZodNumber;
|
|
4124
4330
|
usdCost: z.ZodNumber;
|
|
4331
|
+
usdCostStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4332
|
+
unknown: "unknown";
|
|
4333
|
+
exact: "exact";
|
|
4334
|
+
estimated: "estimated";
|
|
4335
|
+
}>>>;
|
|
4125
4336
|
createdAt: z.ZodString;
|
|
4126
4337
|
}, z.core.$strip>;
|
|
4127
4338
|
export declare const AuditEventSchema: z.ZodObject<{
|
|
@@ -4150,6 +4361,11 @@ export declare const HeartbeatRunSchema: z.ZodObject<{
|
|
|
4150
4361
|
skipped: "skipped";
|
|
4151
4362
|
started: "started";
|
|
4152
4363
|
}>;
|
|
4364
|
+
publicStatus: z.ZodOptional<z.ZodEnum<{
|
|
4365
|
+
completed: "completed";
|
|
4366
|
+
failed: "failed";
|
|
4367
|
+
started: "started";
|
|
4368
|
+
}>>;
|
|
4153
4369
|
startedAt: z.ZodString;
|
|
4154
4370
|
finishedAt: z.ZodNullable<z.ZodString>;
|
|
4155
4371
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4233,6 +4449,11 @@ export declare const HeartbeatRunDetailSchema: z.ZodObject<{
|
|
|
4233
4449
|
skipped: "skipped";
|
|
4234
4450
|
started: "started";
|
|
4235
4451
|
}>;
|
|
4452
|
+
publicStatus: z.ZodOptional<z.ZodEnum<{
|
|
4453
|
+
completed: "completed";
|
|
4454
|
+
failed: "failed";
|
|
4455
|
+
started: "started";
|
|
4456
|
+
}>>;
|
|
4236
4457
|
startedAt: z.ZodString;
|
|
4237
4458
|
finishedAt: z.ZodNullable<z.ZodString>;
|
|
4238
4459
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4278,10 +4499,132 @@ export declare const HeartbeatRunDetailSchema: z.ZodObject<{
|
|
|
4278
4499
|
done: "done";
|
|
4279
4500
|
}>>;
|
|
4280
4501
|
}, z.core.$strip>>>;
|
|
4502
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4503
|
+
finalStatus: z.ZodEnum<{
|
|
4504
|
+
completed: "completed";
|
|
4505
|
+
failed: "failed";
|
|
4506
|
+
}>;
|
|
4507
|
+
completionReason: z.ZodEnum<{
|
|
4508
|
+
blocked: "blocked";
|
|
4509
|
+
unknown: "unknown";
|
|
4510
|
+
task_completed: "task_completed";
|
|
4511
|
+
no_assigned_work: "no_assigned_work";
|
|
4512
|
+
provider_rate_limited: "provider_rate_limited";
|
|
4513
|
+
provider_out_of_funds: "provider_out_of_funds";
|
|
4514
|
+
provider_quota_exhausted: "provider_quota_exhausted";
|
|
4515
|
+
auth_error: "auth_error";
|
|
4516
|
+
timeout: "timeout";
|
|
4517
|
+
cancelled: "cancelled";
|
|
4518
|
+
contract_invalid: "contract_invalid";
|
|
4519
|
+
runtime_error: "runtime_error";
|
|
4520
|
+
runtime_missing: "runtime_missing";
|
|
4521
|
+
budget_hard_stop: "budget_hard_stop";
|
|
4522
|
+
overlap_in_progress: "overlap_in_progress";
|
|
4523
|
+
provider_unavailable: "provider_unavailable";
|
|
4524
|
+
}>;
|
|
4525
|
+
statusHeadline: z.ZodString;
|
|
4526
|
+
summary: z.ZodString;
|
|
4527
|
+
employeeComment: z.ZodString;
|
|
4528
|
+
results: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4529
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4530
|
+
resultStatus: z.ZodDefault<z.ZodEnum<{
|
|
4531
|
+
reported: "reported";
|
|
4532
|
+
none_reported: "none_reported";
|
|
4533
|
+
}>>;
|
|
4534
|
+
resultSummary: z.ZodString;
|
|
4535
|
+
issueIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4536
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4537
|
+
path: z.ZodString;
|
|
4538
|
+
kind: z.ZodString;
|
|
4539
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4540
|
+
relativePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4541
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4542
|
+
}, z.core.$strip>>>;
|
|
4543
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4544
|
+
nextAction: z.ZodString;
|
|
4545
|
+
cost: z.ZodObject<{
|
|
4546
|
+
tokenInput: z.ZodDefault<z.ZodNumber>;
|
|
4547
|
+
tokenOutput: z.ZodDefault<z.ZodNumber>;
|
|
4548
|
+
usdCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4549
|
+
usdCostStatus: z.ZodDefault<z.ZodEnum<{
|
|
4550
|
+
unknown: "unknown";
|
|
4551
|
+
exact: "exact";
|
|
4552
|
+
estimated: "estimated";
|
|
4553
|
+
}>>;
|
|
4554
|
+
pricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4555
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4556
|
+
}, z.core.$strip>;
|
|
4557
|
+
managerReport: z.ZodObject<{
|
|
4558
|
+
agentName: z.ZodString;
|
|
4559
|
+
providerType: z.ZodEnum<{
|
|
4560
|
+
claude_code: "claude_code";
|
|
4561
|
+
codex: "codex";
|
|
4562
|
+
cursor: "cursor";
|
|
4563
|
+
opencode: "opencode";
|
|
4564
|
+
gemini_cli: "gemini_cli";
|
|
4565
|
+
openai_api: "openai_api";
|
|
4566
|
+
anthropic_api: "anthropic_api";
|
|
4567
|
+
http: "http";
|
|
4568
|
+
shell: "shell";
|
|
4569
|
+
}>;
|
|
4570
|
+
whatWasDone: z.ZodString;
|
|
4571
|
+
resultSummary: z.ZodString;
|
|
4572
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4573
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4574
|
+
nextAction: z.ZodString;
|
|
4575
|
+
costLine: z.ZodString;
|
|
4576
|
+
}, z.core.$strip>;
|
|
4577
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4578
|
+
kind: z.ZodEnum<{
|
|
4579
|
+
blocked: "blocked";
|
|
4580
|
+
completed: "completed";
|
|
4581
|
+
failed: "failed";
|
|
4582
|
+
skipped: "skipped";
|
|
4583
|
+
}>;
|
|
4584
|
+
issueIdsTouched: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4585
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4586
|
+
path: z.ZodString;
|
|
4587
|
+
kind: z.ZodString;
|
|
4588
|
+
}, z.core.$strip>>>;
|
|
4589
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4590
|
+
type: z.ZodString;
|
|
4591
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
4592
|
+
status: z.ZodEnum<{
|
|
4593
|
+
error: "error";
|
|
4594
|
+
ok: "ok";
|
|
4595
|
+
warn: "warn";
|
|
4596
|
+
}>;
|
|
4597
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4598
|
+
}, z.core.$strip>>>;
|
|
4599
|
+
blockers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4600
|
+
code: z.ZodString;
|
|
4601
|
+
message: z.ZodString;
|
|
4602
|
+
retryable: z.ZodBoolean;
|
|
4603
|
+
}, z.core.$strip>>>;
|
|
4604
|
+
nextSuggestedState: z.ZodOptional<z.ZodEnum<{
|
|
4605
|
+
blocked: "blocked";
|
|
4606
|
+
todo: "todo";
|
|
4607
|
+
in_progress: "in_progress";
|
|
4608
|
+
in_review: "in_review";
|
|
4609
|
+
done: "done";
|
|
4610
|
+
}>>;
|
|
4611
|
+
}, z.core.$strip>>>;
|
|
4612
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4613
|
+
persistedRunStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4614
|
+
failureType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4615
|
+
errorType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4616
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4617
|
+
}, z.core.$strip>>>;
|
|
4618
|
+
}, z.core.$strip>>>;
|
|
4281
4619
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4282
4620
|
tokenInput: z.ZodOptional<z.ZodNumber>;
|
|
4283
4621
|
tokenOutput: z.ZodOptional<z.ZodNumber>;
|
|
4284
4622
|
usdCost: z.ZodOptional<z.ZodNumber>;
|
|
4623
|
+
usdCostStatus: z.ZodOptional<z.ZodEnum<{
|
|
4624
|
+
unknown: "unknown";
|
|
4625
|
+
exact: "exact";
|
|
4626
|
+
estimated: "estimated";
|
|
4627
|
+
}>>;
|
|
4285
4628
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4286
4629
|
}, z.core.$strip>>>;
|
|
4287
4630
|
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.26",
|
|
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.26"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc -p tsconfig.json --emitDeclarationOnly",
|