@kitman-sh/sdk 0.7.4 → 0.8.0
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/dist/build/index.js +10 -11
- package/dist/{chunk-p8v1smcg.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-7jc5y0mj.js → chunk-36jhc745.js} +285 -83
- package/dist/loop/index.js +43 -1
- package/dist/program/index.js +7 -3
- package/package.json +3 -1
- package/types/packages/core/src/agent-capabilities.d.ts +68 -74
- package/types/packages/core/src/agent-environment.d.ts +26 -26
- package/types/packages/core/src/agent-launch-snapshot.d.ts +1 -1
- package/types/packages/core/src/agent-sandbox-policy.d.ts +15 -0
- package/types/packages/core/src/approval-queue.d.ts +4 -4
- package/types/packages/core/src/audit.d.ts +1 -1
- package/types/packages/core/src/change-delivery.d.ts +1 -1
- package/types/packages/core/src/change-request-review.d.ts +199 -7
- package/types/packages/core/src/change-request.d.ts +43 -12
- package/types/packages/core/src/connection.d.ts +1 -1
- package/types/packages/core/src/context-feedback.d.ts +8 -8
- package/types/packages/core/src/context-pack.d.ts +8 -8
- package/types/packages/core/src/crypto.d.ts +5 -0
- package/types/packages/core/src/data-lifecycle.d.ts +12 -12
- package/types/packages/core/src/decision.d.ts +2 -2
- package/types/packages/core/src/delivery-policy.d.ts +3 -3
- package/types/packages/core/src/enterprise-forge.d.ts +19 -0
- package/types/packages/core/src/epic-delivery.d.ts +1 -1
- package/types/packages/core/src/external-effect.d.ts +2 -2
- package/types/packages/core/src/global-search.d.ts +1 -1
- package/types/packages/core/src/index.d.ts +10 -2
- package/types/packages/core/src/integration.d.ts +58 -57
- package/types/packages/core/src/kit.d.ts +47 -47
- package/types/packages/core/src/live.d.ts +694 -781
- package/types/packages/core/src/loop-layers.d.ts +1 -1
- package/types/packages/core/src/loop-version.d.ts +1 -1
- package/types/packages/core/src/loop.d.ts +488 -86
- package/types/packages/core/src/marketplace.d.ts +127 -0
- package/types/packages/core/src/memory.d.ts +17 -12
- package/types/packages/core/src/my-teams.d.ts +238 -40
- package/types/packages/core/src/notification.d.ts +73 -12
- package/types/packages/core/src/owner.d.ts +15 -0
- package/types/packages/core/src/package-declarations.d.ts +97 -31
- package/types/packages/core/src/package.d.ts +22 -22
- package/types/packages/core/src/personal-development-profile.d.ts +2 -2
- package/types/packages/core/src/proposal.d.ts +25 -25
- package/types/packages/core/src/redaction.d.ts +2 -1
- package/types/packages/core/src/repo-binding.d.ts +19 -10
- package/types/packages/core/src/run-display.d.ts +12 -0
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-graph.d.ts +67 -0
- package/types/packages/core/src/run-launch.d.ts +7 -5
- package/types/packages/core/src/run.d.ts +9 -9
- package/types/packages/core/src/runner-eligibility.d.ts +4 -4
- package/types/packages/core/src/runner.d.ts +339 -111
- package/types/packages/core/src/schedule.d.ts +2 -2
- package/types/packages/core/src/scope-directory.d.ts +5 -5
- package/types/packages/core/src/secret.d.ts +9 -9
- package/types/packages/core/src/session.d.ts +2 -2
- package/types/packages/core/src/step-brief.d.ts +10 -3
- package/types/packages/core/src/storage.d.ts +49 -0
- package/types/packages/core/src/sync-kit.d.ts +25 -25
- package/types/packages/core/src/task-detail.d.ts +20 -13
- package/types/packages/core/src/task-execution-record.d.ts +6 -6
- package/types/packages/core/src/task.d.ts +52 -16
- package/types/packages/core/src/team-context.d.ts +33 -0
- package/types/packages/core/src/transcript.d.ts +230 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
- package/types/packages/core/src/trust-panel.d.ts +27 -0
- package/types/packages/core/src/work-unit.d.ts +44 -18
- package/types/packages/core/src/workspace.d.ts +77 -6
- package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
- package/types/packages/live/src/rpc/runner-group.d.ts +597 -241
- package/types/packages/sdk/src/loop/activities.d.ts +208 -1
- package/types/packages/sdk/src/loop/config.d.ts +1 -1
- package/types/packages/sdk/src/loop/define.d.ts +8 -2
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +2 -2
- package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
- package/types/packages/sdk/src/program/engine.d.ts +71 -3
- package/types/packages/sdk/src/program/host.d.ts +13 -1
- package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
- package/types/packages/core/src/project.d.ts +0 -66
|
@@ -3,9 +3,9 @@ export declare const LoopStepImplementationKinds: readonly ['built_in_action', '
|
|
|
3
3
|
export declare const RunStatuses: readonly ['pending', 'running', 'blocked', 'completed', 'failed', 'canceled', 'expired'];
|
|
4
4
|
export declare const StepAttemptStatuses: readonly ['pending', 'running', 'waiting', 'blocked', 'completed', 'failed', 'canceled'];
|
|
5
5
|
export declare const QuestionStatuses: readonly ['open', 'answered', 'resume_requested', 'resumed', 'resume_failed', 'expired', 'cancelled'];
|
|
6
|
-
export declare const LoopGuardSources: readonly ['trigger_event', 'task', '
|
|
6
|
+
export declare const LoopGuardSources: readonly ['trigger_event', 'task', 'team', 'proposal', 'decision', 'step_attempt', 'change_request', 'context_feedback', 'run', 'team_policy'];
|
|
7
7
|
export declare const LoopSourceModes: readonly ['direct', 'git_backed'];
|
|
8
|
-
export declare const LoopCapabilityKinds: readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
8
|
+
export declare const LoopCapabilityKinds: readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"];
|
|
9
9
|
export declare const LoopStatus: Schema.Literals<readonly ["draft", "active", "disabled", "archived"]>;
|
|
10
10
|
export declare const LoopTriggerEvent: Schema.String;
|
|
11
11
|
export declare const LoopStepImplementationKind: Schema.Literals<readonly ["built_in_action", "agent", "wait_for_event", "human_approval", "runner_sandbox", "package_ref", "repeat_until", "call_loop"]>;
|
|
@@ -13,7 +13,7 @@ export declare const RunStatus: Schema.Literals<readonly ["pending", "running",
|
|
|
13
13
|
export declare const StepAttemptStatus: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
14
14
|
export declare const QuestionStatus: Schema.Literals<readonly ["open", "answered", "resume_requested", "resumed", "resume_failed", "expired", "cancelled"]>;
|
|
15
15
|
export declare const LoopSourceMode: Schema.Literals<readonly ["direct", "git_backed"]>;
|
|
16
|
-
export declare const LoopCapabilityKind: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
16
|
+
export declare const LoopCapabilityKind: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
|
|
17
17
|
export declare const LoopDataSchemaRef: Schema.Struct<{
|
|
18
18
|
readonly kind: Schema.Literal<"typebox_ref">;
|
|
19
19
|
readonly name: Schema.String;
|
|
@@ -33,15 +33,15 @@ export declare const LoopSafeRef: Schema.Struct<{
|
|
|
33
33
|
readonly title: Schema.optionalKey<Schema.String>;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const LoopCapabilityScope: Schema.Struct<{
|
|
36
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
36
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "change_request", "step_attempt", "run", "repo_binding", "provider_host"]>;
|
|
37
37
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
38
38
|
readonly idRef: Schema.optionalKey<Schema.String>;
|
|
39
39
|
readonly value: Schema.optionalKey<Schema.String>;
|
|
40
40
|
}>;
|
|
41
41
|
export declare const LoopCapabilityGrant: Schema.Struct<{
|
|
42
|
-
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
42
|
+
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
|
|
43
43
|
readonly scope: Schema.optionalKey<Schema.Struct<{
|
|
44
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
44
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "change_request", "step_attempt", "run", "repo_binding", "provider_host"]>;
|
|
45
45
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
46
46
|
readonly idRef: Schema.optionalKey<Schema.String>;
|
|
47
47
|
readonly value: Schema.optionalKey<Schema.String>;
|
|
@@ -263,7 +263,7 @@ export declare const LoopConcreteActionImplementation: Schema.Union<readonly [Sc
|
|
|
263
263
|
readonly kind: Schema.Literal<"human_approval">;
|
|
264
264
|
readonly prompt: Schema.String;
|
|
265
265
|
readonly approvalPolicy: Schema.Struct<{
|
|
266
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
266
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
267
267
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
268
268
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
269
269
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -391,7 +391,7 @@ export declare const LoopStepImplementation: Schema.Union<readonly [Schema.Union
|
|
|
391
391
|
readonly kind: Schema.Literal<"human_approval">;
|
|
392
392
|
readonly prompt: Schema.String;
|
|
393
393
|
readonly approvalPolicy: Schema.Struct<{
|
|
394
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
394
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
395
395
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
396
396
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
397
397
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -516,7 +516,7 @@ export declare const LoopStepImplementation: Schema.Union<readonly [Schema.Union
|
|
|
516
516
|
readonly kind: Schema.Literal<"human_approval">;
|
|
517
517
|
readonly prompt: Schema.String;
|
|
518
518
|
readonly approvalPolicy: Schema.Struct<{
|
|
519
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
519
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
520
520
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
521
521
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
522
522
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -619,7 +619,7 @@ export declare const LoopStep: Schema.Struct<{
|
|
|
619
619
|
}>>;
|
|
620
620
|
readonly guards: Schema.$Array<Schema.Struct<{
|
|
621
621
|
readonly key: Schema.String;
|
|
622
|
-
readonly source: Schema.Literals<readonly ["trigger_event", "task", "
|
|
622
|
+
readonly source: Schema.Literals<readonly ["trigger_event", "task", "team", "proposal", "decision", "step_attempt", "change_request", "context_feedback", "run", "team_policy"]>;
|
|
623
623
|
readonly path: Schema.$Array<Schema.String>;
|
|
624
624
|
readonly operator: Schema.Literals<readonly ["equals", "not_equals", "in", "not_in", "exists", "not_exists"]>;
|
|
625
625
|
readonly value: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
@@ -691,7 +691,7 @@ export declare const LoopStep: Schema.Struct<{
|
|
|
691
691
|
readonly kind: Schema.Literal<"human_approval">;
|
|
692
692
|
readonly prompt: Schema.String;
|
|
693
693
|
readonly approvalPolicy: Schema.Struct<{
|
|
694
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
694
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
695
695
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
696
696
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
697
697
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -816,7 +816,7 @@ export declare const LoopStep: Schema.Struct<{
|
|
|
816
816
|
readonly kind: Schema.Literal<"human_approval">;
|
|
817
817
|
readonly prompt: Schema.String;
|
|
818
818
|
readonly approvalPolicy: Schema.Struct<{
|
|
819
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
819
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
820
820
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
821
821
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
822
822
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -962,9 +962,9 @@ export declare const LoopStep: Schema.Struct<{
|
|
|
962
962
|
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
963
963
|
}>>;
|
|
964
964
|
readonly allowedCapabilities: Schema.$Array<Schema.Struct<{
|
|
965
|
-
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "
|
|
965
|
+
readonly capability: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
|
|
966
966
|
readonly scope: Schema.optionalKey<Schema.Struct<{
|
|
967
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
967
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "change_request", "step_attempt", "run", "repo_binding", "provider_host"]>;
|
|
968
968
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
969
969
|
readonly idRef: Schema.optionalKey<Schema.String>;
|
|
970
970
|
readonly value: Schema.optionalKey<Schema.String>;
|
|
@@ -1166,6 +1166,8 @@ export declare const RunEvidence: Schema.Struct<{
|
|
|
1166
1166
|
readonly tree: Schema.String;
|
|
1167
1167
|
readonly durationMs: Schema.Int;
|
|
1168
1168
|
readonly outputTail: Schema.String;
|
|
1169
|
+
/** The Run Files the check kept in this Run: its log and what it recorded. */
|
|
1170
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1169
1171
|
readonly recordedAt: Schema.String;
|
|
1170
1172
|
}>;
|
|
1171
1173
|
export type RunEvidence = (typeof RunEvidence)['Type'];
|
|
@@ -1196,7 +1198,7 @@ export type ApprovedVerificationList = (typeof ApprovedVerificationList)['Type']
|
|
|
1196
1198
|
export declare const RunArtifact: Schema.Struct<{
|
|
1197
1199
|
readonly id: Schema.String;
|
|
1198
1200
|
readonly runId: Schema.String;
|
|
1199
|
-
readonly
|
|
1201
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1200
1202
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1201
1203
|
readonly step: Schema.String;
|
|
1202
1204
|
readonly kind: Schema.String;
|
|
@@ -1215,7 +1217,7 @@ export declare const RunArtifactSearchResult: Schema.Struct<{
|
|
|
1215
1217
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1216
1218
|
readonly id: Schema.String;
|
|
1217
1219
|
readonly runId: Schema.String;
|
|
1218
|
-
readonly
|
|
1220
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1219
1221
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1220
1222
|
readonly step: Schema.String;
|
|
1221
1223
|
readonly kind: Schema.String;
|
|
@@ -1253,7 +1255,7 @@ export type RunAlignment = (typeof RunAlignment)['Type'];
|
|
|
1253
1255
|
export declare const Run: Schema.Struct<{
|
|
1254
1256
|
readonly id: Schema.String;
|
|
1255
1257
|
readonly workspaceId: Schema.String;
|
|
1256
|
-
readonly
|
|
1258
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1257
1259
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1258
1260
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
1259
1261
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -1340,7 +1342,7 @@ export declare const Run: Schema.Struct<{
|
|
|
1340
1342
|
/** A program Run's bundle digest, fixed at admission. */
|
|
1341
1343
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
1342
1344
|
/** The layer a program Run's Loop resolved from. */
|
|
1343
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
1345
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
1344
1346
|
/** A Child Run's parent. */
|
|
1345
1347
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
1346
1348
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1396,7 +1398,7 @@ export declare const StepAttemptInputManifest: Schema.Struct<{
|
|
|
1396
1398
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1397
1399
|
readonly sourceId: Schema.String;
|
|
1398
1400
|
readonly sourceScope: Schema.Struct<{
|
|
1399
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1401
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1400
1402
|
readonly id: Schema.String;
|
|
1401
1403
|
}>;
|
|
1402
1404
|
readonly inclusionReason: Schema.String;
|
|
@@ -1420,7 +1422,7 @@ export declare const StepAttemptInputManifest: Schema.Struct<{
|
|
|
1420
1422
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1421
1423
|
readonly sourceId: Schema.String;
|
|
1422
1424
|
readonly sourceScope: Schema.Struct<{
|
|
1423
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1425
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1424
1426
|
readonly id: Schema.String;
|
|
1425
1427
|
}>;
|
|
1426
1428
|
readonly inclusionReason: Schema.String;
|
|
@@ -1497,6 +1499,24 @@ export declare const StepSessionUpdate: Schema.Struct<{
|
|
|
1497
1499
|
readonly content: Schema.String;
|
|
1498
1500
|
}>;
|
|
1499
1501
|
export type StepSessionUpdate = (typeof StepSessionUpdate)['Type'];
|
|
1502
|
+
/** A SessionUpdate an agent Step recorded on one of its StepAttempts. */
|
|
1503
|
+
export declare const StepAttemptSessionUpdate: Schema.Struct<{
|
|
1504
|
+
readonly id: Schema.String;
|
|
1505
|
+
readonly kind: Schema.String;
|
|
1506
|
+
readonly content: Schema.String;
|
|
1507
|
+
readonly createdAt: Schema.String;
|
|
1508
|
+
}>;
|
|
1509
|
+
export type StepAttemptSessionUpdate = (typeof StepAttemptSessionUpdate)['Type'];
|
|
1510
|
+
export declare const StepAttemptSessionUpdateList: Schema.Struct<{
|
|
1511
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1512
|
+
readonly id: Schema.String;
|
|
1513
|
+
readonly kind: Schema.String;
|
|
1514
|
+
readonly content: Schema.String;
|
|
1515
|
+
readonly createdAt: Schema.String;
|
|
1516
|
+
}>>;
|
|
1517
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
1518
|
+
}>;
|
|
1519
|
+
export type StepAttemptSessionUpdateList = (typeof StepAttemptSessionUpdateList)['Type'];
|
|
1500
1520
|
export declare const StepOutputSubmissionResult: Schema.Union<readonly [Schema.Struct<{
|
|
1501
1521
|
readonly status: Schema.Literal<"accepted">;
|
|
1502
1522
|
}>, Schema.Struct<{
|
|
@@ -1511,7 +1531,7 @@ export type StepOutputSubmissionResult = (typeof StepOutputSubmissionResult)['Ty
|
|
|
1511
1531
|
export declare const StepAttempt: Schema.Struct<{
|
|
1512
1532
|
readonly id: Schema.String;
|
|
1513
1533
|
readonly workspaceId: Schema.String;
|
|
1514
|
-
readonly
|
|
1534
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1515
1535
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1516
1536
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
1517
1537
|
readonly runId: Schema.String;
|
|
@@ -1531,7 +1551,7 @@ export declare const StepAttempt: Schema.Struct<{
|
|
|
1531
1551
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1532
1552
|
readonly sourceId: Schema.String;
|
|
1533
1553
|
readonly sourceScope: Schema.Struct<{
|
|
1534
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1554
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1535
1555
|
readonly id: Schema.String;
|
|
1536
1556
|
}>;
|
|
1537
1557
|
readonly inclusionReason: Schema.String;
|
|
@@ -1555,7 +1575,7 @@ export declare const StepAttempt: Schema.Struct<{
|
|
|
1555
1575
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1556
1576
|
readonly sourceId: Schema.String;
|
|
1557
1577
|
readonly sourceScope: Schema.Struct<{
|
|
1558
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1578
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1559
1579
|
readonly id: Schema.String;
|
|
1560
1580
|
}>;
|
|
1561
1581
|
readonly inclusionReason: Schema.String;
|
|
@@ -1663,7 +1683,7 @@ export declare const StepAttemptList: Schema.Struct<{
|
|
|
1663
1683
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1664
1684
|
readonly id: Schema.String;
|
|
1665
1685
|
readonly workspaceId: Schema.String;
|
|
1666
|
-
readonly
|
|
1686
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1667
1687
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1668
1688
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
1669
1689
|
readonly runId: Schema.String;
|
|
@@ -1683,7 +1703,7 @@ export declare const StepAttemptList: Schema.Struct<{
|
|
|
1683
1703
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1684
1704
|
readonly sourceId: Schema.String;
|
|
1685
1705
|
readonly sourceScope: Schema.Struct<{
|
|
1686
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1706
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1687
1707
|
readonly id: Schema.String;
|
|
1688
1708
|
}>;
|
|
1689
1709
|
readonly inclusionReason: Schema.String;
|
|
@@ -1707,7 +1727,7 @@ export declare const StepAttemptList: Schema.Struct<{
|
|
|
1707
1727
|
readonly kind: Schema.Literals<readonly ["kit", "memory", "decision", "knowledge_record", "context_pack"]>;
|
|
1708
1728
|
readonly sourceId: Schema.String;
|
|
1709
1729
|
readonly sourceScope: Schema.Struct<{
|
|
1710
|
-
readonly kind: Schema.Literals<readonly ["workspace", "
|
|
1730
|
+
readonly kind: Schema.Literals<readonly ["workspace", "team", "task", "loop", "agent"]>;
|
|
1711
1731
|
readonly id: Schema.String;
|
|
1712
1732
|
}>;
|
|
1713
1733
|
readonly inclusionReason: Schema.String;
|
|
@@ -1829,7 +1849,7 @@ export declare const QuestionAnswer: Schema.Struct<{
|
|
|
1829
1849
|
export declare const Question: Schema.Struct<{
|
|
1830
1850
|
readonly id: Schema.String;
|
|
1831
1851
|
readonly workspaceId: Schema.String;
|
|
1832
|
-
readonly
|
|
1852
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1833
1853
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1834
1854
|
readonly runId: Schema.String;
|
|
1835
1855
|
/** The Step that asked: a program's `ask` name or an agent's Step name, such as `next:1`. */
|
|
@@ -1864,7 +1884,7 @@ export declare const QuestionList: Schema.Struct<{
|
|
|
1864
1884
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1865
1885
|
readonly id: Schema.String;
|
|
1866
1886
|
readonly workspaceId: Schema.String;
|
|
1867
|
-
readonly
|
|
1887
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1868
1888
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1869
1889
|
readonly runId: Schema.String;
|
|
1870
1890
|
/** The Step that asked: a program's `ask` name or an agent's Step name, such as `next:1`. */
|
|
@@ -1893,7 +1913,7 @@ export declare const QuestionList: Schema.Struct<{
|
|
|
1893
1913
|
}>>;
|
|
1894
1914
|
}>;
|
|
1895
1915
|
export declare const RunLaunchContext: Schema.Struct<{
|
|
1896
|
-
readonly
|
|
1916
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1897
1917
|
readonly remoteUrl: Schema.optionalKey<Schema.String>;
|
|
1898
1918
|
readonly repoBindingId: Schema.optionalKey<Schema.String>;
|
|
1899
1919
|
readonly branch: Schema.optionalKey<Schema.String>;
|
|
@@ -1903,6 +1923,8 @@ export declare const RunStart: Schema.Struct<{
|
|
|
1903
1923
|
/** The Loop to start; the Task's Type's default Loop when left out. */
|
|
1904
1924
|
readonly loop: Schema.optionalKey<Schema.String>;
|
|
1905
1925
|
readonly words: Schema.optionalKey<Schema.String>;
|
|
1926
|
+
/** The words name no Task: a key in them is text, and a Task is filed for them. */
|
|
1927
|
+
readonly plainWords: Schema.optionalKey<Schema.Boolean>;
|
|
1906
1928
|
/** The Task the Run is for, by id or any key it has had. */
|
|
1907
1929
|
readonly task: Schema.optionalKey<Schema.String>;
|
|
1908
1930
|
/** The Team a Task made from the words goes to. */
|
|
@@ -1912,7 +1934,7 @@ export declare const RunStart: Schema.Struct<{
|
|
|
1912
1934
|
/** Loop Input fields that win over inferred ones. */
|
|
1913
1935
|
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1914
1936
|
readonly context: Schema.optionalKey<Schema.Struct<{
|
|
1915
|
-
readonly
|
|
1937
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1916
1938
|
readonly remoteUrl: Schema.optionalKey<Schema.String>;
|
|
1917
1939
|
readonly repoBindingId: Schema.optionalKey<Schema.String>;
|
|
1918
1940
|
readonly branch: Schema.optionalKey<Schema.String>;
|
|
@@ -1927,7 +1949,7 @@ export declare const RunStarted: Schema.Struct<{
|
|
|
1927
1949
|
readonly run: Schema.Struct<{
|
|
1928
1950
|
readonly id: Schema.String;
|
|
1929
1951
|
readonly workspaceId: Schema.String;
|
|
1930
|
-
readonly
|
|
1952
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1931
1953
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1932
1954
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
1933
1955
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -2014,7 +2036,7 @@ export declare const RunStarted: Schema.Struct<{
|
|
|
2014
2036
|
/** A program Run's bundle digest, fixed at admission. */
|
|
2015
2037
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
2016
2038
|
/** The layer a program Run's Loop resolved from. */
|
|
2017
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2039
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2018
2040
|
/** A Child Run's parent. */
|
|
2019
2041
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
2020
2042
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2088,6 +2110,9 @@ export declare const RunStepSummary: Schema.Struct<{
|
|
|
2088
2110
|
readonly attempt: Schema.Int;
|
|
2089
2111
|
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
2090
2112
|
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2113
|
+
/** What the attempt's agent submitted: its claims. */
|
|
2114
|
+
readonly output: Schema.optionalKey<Schema.Unknown>;
|
|
2115
|
+
readonly revision: Schema.optionalKey<Schema.String>;
|
|
2091
2116
|
}>>;
|
|
2092
2117
|
}>;
|
|
2093
2118
|
export declare const RunSteerDeliveries: readonly ['queued', 'delivered', 'failed'];
|
|
@@ -2103,6 +2128,8 @@ export declare const RunSteer: Schema.Struct<{
|
|
|
2103
2128
|
export type RunSteer = (typeof RunSteer)['Type'];
|
|
2104
2129
|
export declare const RunSteerInput: Schema.Struct<{
|
|
2105
2130
|
readonly text: Schema.String;
|
|
2131
|
+
/** The Run's StepAttempt to steer; without one, the newest live agent Session. */
|
|
2132
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
2106
2133
|
readonly idempotencyKey: Schema.String;
|
|
2107
2134
|
}>;
|
|
2108
2135
|
export type RunSteerInput = (typeof RunSteerInput)['Type'];
|
|
@@ -2119,11 +2146,133 @@ export declare const RunSteerSent: Schema.Struct<{
|
|
|
2119
2146
|
readonly target: Schema.Literals<readonly ["session", "next_step"]>;
|
|
2120
2147
|
}>;
|
|
2121
2148
|
export type RunSteerSent = (typeof RunSteerSent)['Type'];
|
|
2149
|
+
export declare const RunDisplayStates: readonly ['queued', 'running', 'needs_you', 'blocked', 'failed', 'stopped', 'succeeded', 'partial'];
|
|
2150
|
+
export type RunDisplayState = (typeof RunDisplayStates)[number];
|
|
2151
|
+
/** How every surface shows a Run (ADR-0072). */
|
|
2152
|
+
export declare const RunDisplay: Schema.Struct<{
|
|
2153
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2154
|
+
/** A Step needed more than one attempt. */
|
|
2155
|
+
readonly retried: Schema.Boolean;
|
|
2156
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2157
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2158
|
+
}>;
|
|
2159
|
+
export type RunDisplay = (typeof RunDisplay)['Type'];
|
|
2160
|
+
export declare const RunGraphNodeKinds: readonly ['agent', 'check', 'question', 'child', 'wait', 'activity'];
|
|
2161
|
+
/** A Step the Run reached, of any kind (ADR-0072). */
|
|
2162
|
+
export declare const RunGraphNode: Schema.Struct<{
|
|
2163
|
+
/** The Step's name in the journal, such as `agent_work/fix:1`. */
|
|
2164
|
+
readonly id: Schema.String;
|
|
2165
|
+
readonly name: Schema.String;
|
|
2166
|
+
readonly kind: Schema.Literals<readonly ["agent", "check", "question", "child", "wait", "activity"]>;
|
|
2167
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2168
|
+
readonly startedAt: Schema.String;
|
|
2169
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
2170
|
+
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
2171
|
+
readonly id: Schema.String;
|
|
2172
|
+
readonly attempt: Schema.Int;
|
|
2173
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2174
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2175
|
+
}>>;
|
|
2176
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2177
|
+
readonly id: Schema.String;
|
|
2178
|
+
readonly harness: Schema.optionalKey<Schema.String>;
|
|
2179
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
2180
|
+
readonly runner: Schema.optionalKey<Schema.Struct<{
|
|
2181
|
+
readonly id: Schema.String;
|
|
2182
|
+
readonly name: Schema.String;
|
|
2183
|
+
}>>;
|
|
2184
|
+
}>>;
|
|
2185
|
+
readonly child: Schema.optionalKey<Schema.Struct<{
|
|
2186
|
+
readonly runId: Schema.String;
|
|
2187
|
+
readonly loopTitle: Schema.String;
|
|
2188
|
+
readonly display: Schema.Struct<{
|
|
2189
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2190
|
+
/** A Step needed more than one attempt. */
|
|
2191
|
+
readonly retried: Schema.Boolean;
|
|
2192
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2193
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2194
|
+
}>;
|
|
2195
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2196
|
+
readonly id: Schema.String;
|
|
2197
|
+
readonly key: Schema.String;
|
|
2198
|
+
readonly title: Schema.String;
|
|
2199
|
+
}>>;
|
|
2200
|
+
}>>;
|
|
2201
|
+
}>;
|
|
2202
|
+
export type RunGraphNode = (typeof RunGraphNode)['Type'];
|
|
2203
|
+
export declare const RunGraph: Schema.Struct<{
|
|
2204
|
+
/** The Steps the Run reached together, left to right. */
|
|
2205
|
+
readonly columns: Schema.$Array<Schema.$Array<Schema.Struct<{
|
|
2206
|
+
/** The Step's name in the journal, such as `agent_work/fix:1`. */
|
|
2207
|
+
readonly id: Schema.String;
|
|
2208
|
+
readonly name: Schema.String;
|
|
2209
|
+
readonly kind: Schema.Literals<readonly ["agent", "check", "question", "child", "wait", "activity"]>;
|
|
2210
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2211
|
+
readonly startedAt: Schema.String;
|
|
2212
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
2213
|
+
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
2214
|
+
readonly id: Schema.String;
|
|
2215
|
+
readonly attempt: Schema.Int;
|
|
2216
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2217
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2218
|
+
}>>;
|
|
2219
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2220
|
+
readonly id: Schema.String;
|
|
2221
|
+
readonly harness: Schema.optionalKey<Schema.String>;
|
|
2222
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
2223
|
+
readonly runner: Schema.optionalKey<Schema.Struct<{
|
|
2224
|
+
readonly id: Schema.String;
|
|
2225
|
+
readonly name: Schema.String;
|
|
2226
|
+
}>>;
|
|
2227
|
+
}>>;
|
|
2228
|
+
readonly child: Schema.optionalKey<Schema.Struct<{
|
|
2229
|
+
readonly runId: Schema.String;
|
|
2230
|
+
readonly loopTitle: Schema.String;
|
|
2231
|
+
readonly display: Schema.Struct<{
|
|
2232
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2233
|
+
/** A Step needed more than one attempt. */
|
|
2234
|
+
readonly retried: Schema.Boolean;
|
|
2235
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2236
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2237
|
+
}>;
|
|
2238
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2239
|
+
readonly id: Schema.String;
|
|
2240
|
+
readonly key: Schema.String;
|
|
2241
|
+
readonly title: Schema.String;
|
|
2242
|
+
}>>;
|
|
2243
|
+
}>>;
|
|
2244
|
+
}>>>;
|
|
2245
|
+
/** From a Child Run node to one it needs: a `blocks` Task Relation joins their Tasks. */
|
|
2246
|
+
readonly needs: Schema.$Array<Schema.Struct<{
|
|
2247
|
+
readonly from: Schema.String;
|
|
2248
|
+
readonly to: Schema.String;
|
|
2249
|
+
}>>;
|
|
2250
|
+
}>;
|
|
2251
|
+
export type RunGraph = (typeof RunGraph)['Type'];
|
|
2252
|
+
/** What the Run page leads with. */
|
|
2253
|
+
export declare const RunHeader: Schema.Struct<{
|
|
2254
|
+
readonly loopTitle: Schema.String;
|
|
2255
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
2256
|
+
/** The newest ChangeRequest from the Run's branch. */
|
|
2257
|
+
readonly changeRequest: Schema.optionalKey<Schema.Struct<{
|
|
2258
|
+
readonly id: Schema.String;
|
|
2259
|
+
readonly title: Schema.String;
|
|
2260
|
+
readonly url: Schema.String;
|
|
2261
|
+
}>>;
|
|
2262
|
+
readonly startedBy: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2263
|
+
readonly kind: Schema.Literal<"person">;
|
|
2264
|
+
readonly name: Schema.String;
|
|
2265
|
+
}>, Schema.Struct<{
|
|
2266
|
+
readonly kind: Schema.Literal<"event">;
|
|
2267
|
+
readonly event: Schema.String;
|
|
2268
|
+
}>]>>;
|
|
2269
|
+
}>;
|
|
2270
|
+
export type RunHeader = (typeof RunHeader)['Type'];
|
|
2122
2271
|
export declare const RunShow: Schema.Struct<{
|
|
2123
2272
|
readonly run: Schema.Struct<{
|
|
2124
2273
|
readonly id: Schema.String;
|
|
2125
2274
|
readonly workspaceId: Schema.String;
|
|
2126
|
-
readonly
|
|
2275
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2127
2276
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2128
2277
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
2129
2278
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -2210,7 +2359,7 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2210
2359
|
/** A program Run's bundle digest, fixed at admission. */
|
|
2211
2360
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
2212
2361
|
/** The layer a program Run's Loop resolved from. */
|
|
2213
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2362
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2214
2363
|
/** A Child Run's parent. */
|
|
2215
2364
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
2216
2365
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2259,6 +2408,78 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2259
2408
|
readonly createdAt: Schema.String;
|
|
2260
2409
|
readonly updatedAt: Schema.String;
|
|
2261
2410
|
}>;
|
|
2411
|
+
readonly header: Schema.Struct<{
|
|
2412
|
+
readonly loopTitle: Schema.String;
|
|
2413
|
+
readonly branch: Schema.optionalKey<Schema.String>;
|
|
2414
|
+
/** The newest ChangeRequest from the Run's branch. */
|
|
2415
|
+
readonly changeRequest: Schema.optionalKey<Schema.Struct<{
|
|
2416
|
+
readonly id: Schema.String;
|
|
2417
|
+
readonly title: Schema.String;
|
|
2418
|
+
readonly url: Schema.String;
|
|
2419
|
+
}>>;
|
|
2420
|
+
readonly startedBy: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2421
|
+
readonly kind: Schema.Literal<"person">;
|
|
2422
|
+
readonly name: Schema.String;
|
|
2423
|
+
}>, Schema.Struct<{
|
|
2424
|
+
readonly kind: Schema.Literal<"event">;
|
|
2425
|
+
readonly event: Schema.String;
|
|
2426
|
+
}>]>>;
|
|
2427
|
+
}>;
|
|
2428
|
+
readonly display: Schema.Struct<{
|
|
2429
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2430
|
+
/** A Step needed more than one attempt. */
|
|
2431
|
+
readonly retried: Schema.Boolean;
|
|
2432
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2433
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2434
|
+
}>;
|
|
2435
|
+
readonly graph: Schema.Struct<{
|
|
2436
|
+
/** The Steps the Run reached together, left to right. */
|
|
2437
|
+
readonly columns: Schema.$Array<Schema.$Array<Schema.Struct<{
|
|
2438
|
+
/** The Step's name in the journal, such as `agent_work/fix:1`. */
|
|
2439
|
+
readonly id: Schema.String;
|
|
2440
|
+
readonly name: Schema.String;
|
|
2441
|
+
readonly kind: Schema.Literals<readonly ["agent", "check", "question", "child", "wait", "activity"]>;
|
|
2442
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2443
|
+
readonly startedAt: Schema.String;
|
|
2444
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
2445
|
+
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
2446
|
+
readonly id: Schema.String;
|
|
2447
|
+
readonly attempt: Schema.Int;
|
|
2448
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2449
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2450
|
+
}>>;
|
|
2451
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
2452
|
+
readonly id: Schema.String;
|
|
2453
|
+
readonly harness: Schema.optionalKey<Schema.String>;
|
|
2454
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
2455
|
+
readonly runner: Schema.optionalKey<Schema.Struct<{
|
|
2456
|
+
readonly id: Schema.String;
|
|
2457
|
+
readonly name: Schema.String;
|
|
2458
|
+
}>>;
|
|
2459
|
+
}>>;
|
|
2460
|
+
readonly child: Schema.optionalKey<Schema.Struct<{
|
|
2461
|
+
readonly runId: Schema.String;
|
|
2462
|
+
readonly loopTitle: Schema.String;
|
|
2463
|
+
readonly display: Schema.Struct<{
|
|
2464
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2465
|
+
/** A Step needed more than one attempt. */
|
|
2466
|
+
readonly retried: Schema.Boolean;
|
|
2467
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2468
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2469
|
+
}>;
|
|
2470
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2471
|
+
readonly id: Schema.String;
|
|
2472
|
+
readonly key: Schema.String;
|
|
2473
|
+
readonly title: Schema.String;
|
|
2474
|
+
}>>;
|
|
2475
|
+
}>>;
|
|
2476
|
+
}>>>;
|
|
2477
|
+
/** From a Child Run node to one it needs: a `blocks` Task Relation joins their Tasks. */
|
|
2478
|
+
readonly needs: Schema.$Array<Schema.Struct<{
|
|
2479
|
+
readonly from: Schema.String;
|
|
2480
|
+
readonly to: Schema.String;
|
|
2481
|
+
}>>;
|
|
2482
|
+
}>;
|
|
2262
2483
|
readonly steps: Schema.$Array<Schema.Struct<{
|
|
2263
2484
|
readonly name: Schema.String;
|
|
2264
2485
|
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
@@ -2270,12 +2491,15 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2270
2491
|
readonly attempt: Schema.Int;
|
|
2271
2492
|
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
2272
2493
|
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2494
|
+
/** What the attempt's agent submitted: its claims. */
|
|
2495
|
+
readonly output: Schema.optionalKey<Schema.Unknown>;
|
|
2496
|
+
readonly revision: Schema.optionalKey<Schema.String>;
|
|
2273
2497
|
}>>;
|
|
2274
2498
|
}>>;
|
|
2275
2499
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
2276
2500
|
readonly id: Schema.String;
|
|
2277
2501
|
readonly workspaceId: Schema.String;
|
|
2278
|
-
readonly
|
|
2502
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2279
2503
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2280
2504
|
readonly runId: Schema.String;
|
|
2281
2505
|
/** The Step that asked: a program's `ask` name or an agent's Step name, such as `next:1`. */
|
|
@@ -2318,7 +2542,20 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2318
2542
|
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
2319
2543
|
readonly id: Schema.String;
|
|
2320
2544
|
readonly runId: Schema.String;
|
|
2321
|
-
readonly
|
|
2545
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2546
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2547
|
+
readonly step: Schema.String;
|
|
2548
|
+
readonly kind: Schema.String;
|
|
2549
|
+
readonly title: Schema.String;
|
|
2550
|
+
readonly text: Schema.String;
|
|
2551
|
+
readonly data: Schema.optionalKey<Schema.Unknown>;
|
|
2552
|
+
readonly createdAt: Schema.String;
|
|
2553
|
+
}>>;
|
|
2554
|
+
/** The `review-findings` artifacts of every Run in this Run's lineage. */
|
|
2555
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
2556
|
+
readonly id: Schema.String;
|
|
2557
|
+
readonly runId: Schema.String;
|
|
2558
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2322
2559
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2323
2560
|
readonly step: Schema.String;
|
|
2324
2561
|
readonly kind: Schema.String;
|
|
@@ -2345,6 +2582,8 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2345
2582
|
readonly tree: Schema.String;
|
|
2346
2583
|
readonly durationMs: Schema.Int;
|
|
2347
2584
|
readonly outputTail: Schema.String;
|
|
2585
|
+
/** The Run Files the check kept in this Run: its log and what it recorded. */
|
|
2586
|
+
readonly fileIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2348
2587
|
readonly recordedAt: Schema.String;
|
|
2349
2588
|
}>>;
|
|
2350
2589
|
readonly steers: Schema.$Array<Schema.Struct<{
|
|
@@ -2400,7 +2639,7 @@ export declare const RunStartPreview: Schema.Struct<{
|
|
|
2400
2639
|
readonly inputSchema: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2401
2640
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2402
2641
|
readonly missing: Schema.$Array<Schema.String>;
|
|
2403
|
-
readonly
|
|
2642
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2404
2643
|
readonly inferred: Schema.Struct<{
|
|
2405
2644
|
readonly repoBindingId: Schema.optionalKey<Schema.String>;
|
|
2406
2645
|
readonly branch: Schema.optionalKey<Schema.String>;
|
|
@@ -2414,7 +2653,7 @@ export type RunStartPreview = (typeof RunStartPreview)['Type'];
|
|
|
2414
2653
|
export declare const ProgramLoop: Schema.Struct<{
|
|
2415
2654
|
readonly id: Schema.String;
|
|
2416
2655
|
readonly title: Schema.String;
|
|
2417
|
-
readonly layer: Schema.Literals<readonly ["
|
|
2656
|
+
readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
|
|
2418
2657
|
readonly digest: Schema.String;
|
|
2419
2658
|
readonly outcome: Schema.optionalKey<Schema.String>;
|
|
2420
2659
|
readonly offers: Schema.$Array<Schema.Struct<{
|
|
@@ -2427,31 +2666,11 @@ export declare const ProgramLoop: Schema.Struct<{
|
|
|
2427
2666
|
readonly package: Schema.String;
|
|
2428
2667
|
}>;
|
|
2429
2668
|
export type ProgramLoop = (typeof ProgramLoop)['Type'];
|
|
2430
|
-
/** A Loop as it resolves where it was asked about. */
|
|
2431
|
-
export declare const LoopDetail: Schema.Struct<{
|
|
2432
|
-
readonly id: Schema.String;
|
|
2433
|
-
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
2434
|
-
readonly id: Schema.String;
|
|
2435
|
-
readonly title: Schema.String;
|
|
2436
|
-
readonly layer: Schema.Literals<readonly ["project", "workspace", "shipped"]>;
|
|
2437
|
-
readonly digest: Schema.String;
|
|
2438
|
-
readonly outcome: Schema.optionalKey<Schema.String>;
|
|
2439
|
-
readonly offers: Schema.$Array<Schema.Struct<{
|
|
2440
|
-
readonly id: Schema.String;
|
|
2441
|
-
readonly title: Schema.String;
|
|
2442
|
-
readonly loop: Schema.String;
|
|
2443
|
-
}>>;
|
|
2444
|
-
readonly publishedAt: Schema.String;
|
|
2445
|
-
/** The Package that declares it. */
|
|
2446
|
-
readonly package: Schema.String;
|
|
2447
|
-
}>>;
|
|
2448
|
-
}>;
|
|
2449
|
-
export type LoopDetail = (typeof LoopDetail)['Type'];
|
|
2450
2669
|
/** What an Event did to one program Loop: the Run it started, or why it started none. */
|
|
2451
2670
|
export declare const AutomaticStart: Schema.Struct<{
|
|
2452
2671
|
readonly eventId: Schema.String;
|
|
2453
2672
|
readonly eventType: Schema.String;
|
|
2454
|
-
readonly
|
|
2673
|
+
readonly teamId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2455
2674
|
readonly loop: Schema.String;
|
|
2456
2675
|
readonly runId: Schema.optionalKey<Schema.String>;
|
|
2457
2676
|
readonly rejection: Schema.optionalKey<Schema.String>;
|
|
@@ -2462,7 +2681,7 @@ export declare const AutomaticStartList: Schema.Struct<{
|
|
|
2462
2681
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
2463
2682
|
readonly eventId: Schema.String;
|
|
2464
2683
|
readonly eventType: Schema.String;
|
|
2465
|
-
readonly
|
|
2684
|
+
readonly teamId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2466
2685
|
readonly loop: Schema.String;
|
|
2467
2686
|
readonly runId: Schema.optionalKey<Schema.String>;
|
|
2468
2687
|
readonly rejection: Schema.optionalKey<Schema.String>;
|
|
@@ -2473,7 +2692,7 @@ export type AutomaticStartList = (typeof AutomaticStartList)['Type'];
|
|
|
2473
2692
|
/** An Agent as it resolves where it was asked about, merged with what it extends. */
|
|
2474
2693
|
export declare const ProgramAgent: Schema.Struct<{
|
|
2475
2694
|
readonly id: Schema.String;
|
|
2476
|
-
readonly layer: Schema.Literals<readonly ["
|
|
2695
|
+
readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
|
|
2477
2696
|
/** The Package that declares it. */
|
|
2478
2697
|
readonly package: Schema.String;
|
|
2479
2698
|
readonly extends: Schema.optionalKey<Schema.String>;
|
|
@@ -2489,20 +2708,20 @@ export declare const ProgramAgent: Schema.Struct<{
|
|
|
2489
2708
|
readonly sandbox: Schema.optionalKey<Schema.Literal<"docker">>;
|
|
2490
2709
|
/** The layer each resolved field came from. */
|
|
2491
2710
|
readonly fieldLayers: Schema.optionalKey<Schema.Struct<{
|
|
2492
|
-
readonly instructions: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2493
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2494
|
-
readonly model: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2495
|
-
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2496
|
-
readonly kits: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2497
|
-
readonly network: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2498
|
-
readonly sandbox: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2711
|
+
readonly instructions: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2712
|
+
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2713
|
+
readonly model: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2714
|
+
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2715
|
+
readonly kits: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2716
|
+
readonly network: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2717
|
+
readonly sandbox: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2499
2718
|
}>>;
|
|
2500
2719
|
}>;
|
|
2501
2720
|
export type ProgramAgent = (typeof ProgramAgent)['Type'];
|
|
2502
2721
|
export declare const ProgramAgentList: Schema.Struct<{
|
|
2503
2722
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
2504
2723
|
readonly id: Schema.String;
|
|
2505
|
-
readonly layer: Schema.Literals<readonly ["
|
|
2724
|
+
readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
|
|
2506
2725
|
/** The Package that declares it. */
|
|
2507
2726
|
readonly package: Schema.String;
|
|
2508
2727
|
readonly extends: Schema.optionalKey<Schema.String>;
|
|
@@ -2518,13 +2737,13 @@ export declare const ProgramAgentList: Schema.Struct<{
|
|
|
2518
2737
|
readonly sandbox: Schema.optionalKey<Schema.Literal<"docker">>;
|
|
2519
2738
|
/** The layer each resolved field came from. */
|
|
2520
2739
|
readonly fieldLayers: Schema.optionalKey<Schema.Struct<{
|
|
2521
|
-
readonly instructions: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2522
|
-
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2523
|
-
readonly model: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2524
|
-
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2525
|
-
readonly kits: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2526
|
-
readonly network: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2527
|
-
readonly sandbox: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2740
|
+
readonly instructions: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2741
|
+
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2742
|
+
readonly model: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2743
|
+
readonly effort: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2744
|
+
readonly kits: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2745
|
+
readonly network: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2746
|
+
readonly sandbox: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2528
2747
|
}>>;
|
|
2529
2748
|
}>>;
|
|
2530
2749
|
}>;
|
|
@@ -2533,7 +2752,7 @@ export declare const ProgramLoopList: Schema.Struct<{
|
|
|
2533
2752
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
2534
2753
|
readonly id: Schema.String;
|
|
2535
2754
|
readonly title: Schema.String;
|
|
2536
|
-
readonly layer: Schema.Literals<readonly ["
|
|
2755
|
+
readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
|
|
2537
2756
|
readonly digest: Schema.String;
|
|
2538
2757
|
readonly outcome: Schema.optionalKey<Schema.String>;
|
|
2539
2758
|
readonly offers: Schema.$Array<Schema.Struct<{
|
|
@@ -2547,11 +2766,12 @@ export declare const ProgramLoopList: Schema.Struct<{
|
|
|
2547
2766
|
}>>;
|
|
2548
2767
|
}>;
|
|
2549
2768
|
export type ProgramLoopList = (typeof ProgramLoopList)['Type'];
|
|
2550
|
-
|
|
2551
|
-
|
|
2769
|
+
/** A top-level Run as a list row shows it (ADR-0072). */
|
|
2770
|
+
export declare const RunListItem: Schema.Struct<{
|
|
2771
|
+
readonly run: Schema.Struct<{
|
|
2552
2772
|
readonly id: Schema.String;
|
|
2553
2773
|
readonly workspaceId: Schema.String;
|
|
2554
|
-
readonly
|
|
2774
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2555
2775
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2556
2776
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
2557
2777
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -2638,7 +2858,7 @@ export declare const RunList: Schema.Struct<{
|
|
|
2638
2858
|
/** A program Run's bundle digest, fixed at admission. */
|
|
2639
2859
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
2640
2860
|
/** The layer a program Run's Loop resolved from. */
|
|
2641
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
2861
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2642
2862
|
/** A Child Run's parent. */
|
|
2643
2863
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
2644
2864
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2686,7 +2906,189 @@ export declare const RunList: Schema.Struct<{
|
|
|
2686
2906
|
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
2687
2907
|
readonly createdAt: Schema.String;
|
|
2688
2908
|
readonly updatedAt: Schema.String;
|
|
2909
|
+
}>;
|
|
2910
|
+
readonly loop: Schema.Struct<{
|
|
2911
|
+
readonly id: Schema.String;
|
|
2912
|
+
readonly title: Schema.String;
|
|
2913
|
+
}>;
|
|
2914
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
2915
|
+
readonly id: Schema.String;
|
|
2916
|
+
readonly key: Schema.String;
|
|
2917
|
+
readonly title: Schema.String;
|
|
2918
|
+
}>>;
|
|
2919
|
+
readonly display: Schema.Struct<{
|
|
2920
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
2921
|
+
/** A Step needed more than one attempt. */
|
|
2922
|
+
readonly retried: Schema.Boolean;
|
|
2923
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
2924
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
2925
|
+
}>;
|
|
2926
|
+
/** The worst node status of each Run graph column. */
|
|
2927
|
+
readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
|
|
2928
|
+
}>;
|
|
2929
|
+
export type RunListItem = (typeof RunListItem)['Type'];
|
|
2930
|
+
export declare const RunList: Schema.Struct<{
|
|
2931
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
2932
|
+
readonly run: Schema.Struct<{
|
|
2933
|
+
readonly id: Schema.String;
|
|
2934
|
+
readonly workspaceId: Schema.String;
|
|
2935
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2936
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2937
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
2938
|
+
/** The Loop's id in the Package that declared it. */
|
|
2939
|
+
readonly loopId: Schema.String;
|
|
2940
|
+
/** The Package version the Run was admitted with. */
|
|
2941
|
+
readonly packageVersionId: Schema.optionalKey<Schema.String>;
|
|
2942
|
+
readonly resourceVersion: Schema.Int;
|
|
2943
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "blocked", "completed", "failed", "canceled", "expired"]>;
|
|
2944
|
+
readonly trigger: Schema.Struct<{
|
|
2945
|
+
readonly event: Schema.String;
|
|
2946
|
+
readonly eventId: Schema.String;
|
|
2947
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
2948
|
+
readonly kind: Schema.String;
|
|
2949
|
+
readonly id: Schema.String;
|
|
2950
|
+
}>>;
|
|
2951
|
+
readonly occurredAt: Schema.String;
|
|
2952
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>;
|
|
2953
|
+
}>;
|
|
2954
|
+
readonly state: Schema.Struct<{
|
|
2955
|
+
readonly stepStates: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2956
|
+
readonly stepKey: Schema.String;
|
|
2957
|
+
readonly sequence: Schema.Int;
|
|
2958
|
+
readonly attempts: Schema.Int;
|
|
2959
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
2960
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
2961
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
2962
|
+
readonly output: Schema.optionalKey<Schema.Struct<{
|
|
2963
|
+
readonly stepKey: Schema.String;
|
|
2964
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
2965
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
2966
|
+
readonly name: Schema.String;
|
|
2967
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
2968
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
2969
|
+
}>;
|
|
2970
|
+
readonly summary: Schema.String;
|
|
2971
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>;
|
|
2972
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>>;
|
|
2973
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
2974
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
2975
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
2976
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
2977
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
2978
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2979
|
+
}>>;
|
|
2980
|
+
}>>;
|
|
2981
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
2982
|
+
readonly updatedAt: Schema.String;
|
|
2983
|
+
readonly required: Schema.Literal<true>;
|
|
2984
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "canceled"]>;
|
|
2985
|
+
}>, Schema.Struct<{
|
|
2986
|
+
readonly stepKey: Schema.String;
|
|
2987
|
+
readonly sequence: Schema.Int;
|
|
2988
|
+
readonly attempts: Schema.Int;
|
|
2989
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
2990
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
2991
|
+
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
2992
|
+
readonly output: Schema.optionalKey<Schema.Struct<{
|
|
2993
|
+
readonly stepKey: Schema.String;
|
|
2994
|
+
readonly outputSchemaRef: Schema.Struct<{
|
|
2995
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
2996
|
+
readonly name: Schema.String;
|
|
2997
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
2998
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
2999
|
+
}>;
|
|
3000
|
+
readonly summary: Schema.String;
|
|
3001
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>;
|
|
3002
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>>;
|
|
3003
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
3004
|
+
readonly kind: Schema.Literals<readonly ["task", "kit", "memory", "decision", "knowledge_record", "context_pack", "step_attempt", "change_request", "change_request_review", "provider_action", "thread_entry", "run", "artifact"]>;
|
|
3005
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
3006
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
3007
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
3008
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3009
|
+
}>>;
|
|
3010
|
+
}>>;
|
|
3011
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
3012
|
+
readonly updatedAt: Schema.String;
|
|
3013
|
+
readonly required: Schema.Literal<false>;
|
|
3014
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "waiting", "blocked", "completed", "failed", "skipped", "canceled"]>;
|
|
3015
|
+
}>]>>;
|
|
3016
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
3017
|
+
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<LoopStepOutputDataValue, LoopStepOutputDataValue, never, never>>;
|
|
3018
|
+
}>;
|
|
3019
|
+
/** A program Run's bundle digest, fixed at admission. */
|
|
3020
|
+
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
3021
|
+
/** The layer a program Run's Loop resolved from. */
|
|
3022
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
3023
|
+
/** A Child Run's parent. */
|
|
3024
|
+
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
3025
|
+
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3026
|
+
readonly kind: Schema.Literal<"question">;
|
|
3027
|
+
readonly name: Schema.String;
|
|
3028
|
+
readonly questionId: Schema.String;
|
|
3029
|
+
}>, Schema.Struct<{
|
|
3030
|
+
readonly kind: Schema.Literal<"clock">;
|
|
3031
|
+
readonly name: Schema.String;
|
|
3032
|
+
readonly firesAt: Schema.String;
|
|
3033
|
+
}>, Schema.Struct<{
|
|
3034
|
+
readonly kind: Schema.Literal<"event">;
|
|
3035
|
+
readonly name: Schema.String;
|
|
3036
|
+
readonly event: Schema.String;
|
|
3037
|
+
readonly timesOutAt: Schema.String;
|
|
3038
|
+
}>, Schema.Struct<{
|
|
3039
|
+
readonly kind: Schema.Literal<"step">;
|
|
3040
|
+
readonly name: Schema.String;
|
|
3041
|
+
readonly stepAttemptId: Schema.String;
|
|
3042
|
+
}>, Schema.Struct<{
|
|
3043
|
+
readonly kind: Schema.Literal<"child">;
|
|
3044
|
+
readonly name: Schema.String;
|
|
3045
|
+
readonly runId: Schema.String;
|
|
3046
|
+
}>, Schema.Struct<{
|
|
3047
|
+
readonly kind: Schema.Literal<"verification">;
|
|
3048
|
+
readonly name: Schema.String;
|
|
3049
|
+
readonly verificationId: Schema.String;
|
|
3050
|
+
}>]>>>;
|
|
3051
|
+
readonly output: Schema.optionalKey<Schema.Unknown>;
|
|
3052
|
+
readonly failureSummary: Schema.optionalKey<Schema.String>;
|
|
3053
|
+
/** The latest Closure of a top-level Run. */
|
|
3054
|
+
readonly closure: Schema.optionalKey<Schema.Struct<{
|
|
3055
|
+
readonly kind: Schema.Literals<readonly ["complete", "abandoned"]>;
|
|
3056
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
3057
|
+
readonly closedByUserId: Schema.String;
|
|
3058
|
+
readonly closedAt: Schema.String;
|
|
3059
|
+
}>>;
|
|
3060
|
+
readonly alignment: Schema.optionalKey<Schema.Struct<{
|
|
3061
|
+
readonly verdict: Schema.Literals<readonly ["aligned", "not_aligned", "unverified"]>;
|
|
3062
|
+
readonly reasons: Schema.$Array<Schema.String>;
|
|
3063
|
+
readonly intentVersion: Schema.Int;
|
|
3064
|
+
readonly judgedAt: Schema.String;
|
|
3065
|
+
}>>;
|
|
3066
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
3067
|
+
readonly completedAt: Schema.optionalKey<Schema.String>;
|
|
3068
|
+
readonly createdAt: Schema.String;
|
|
3069
|
+
readonly updatedAt: Schema.String;
|
|
3070
|
+
}>;
|
|
3071
|
+
readonly loop: Schema.Struct<{
|
|
3072
|
+
readonly id: Schema.String;
|
|
3073
|
+
readonly title: Schema.String;
|
|
3074
|
+
}>;
|
|
3075
|
+
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
3076
|
+
readonly id: Schema.String;
|
|
3077
|
+
readonly key: Schema.String;
|
|
3078
|
+
readonly title: Schema.String;
|
|
3079
|
+
}>>;
|
|
3080
|
+
readonly display: Schema.Struct<{
|
|
3081
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
3082
|
+
/** A Step needed more than one attempt. */
|
|
3083
|
+
readonly retried: Schema.Boolean;
|
|
3084
|
+
/** What now: the open Question, the failure, what went missing, or the Steps it is in. */
|
|
3085
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
3086
|
+
}>;
|
|
3087
|
+
/** The worst node status of each Run graph column. */
|
|
3088
|
+
readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
|
|
2689
3089
|
}>>;
|
|
3090
|
+
/** The cursor for the next page, while more Runs remain. */
|
|
3091
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
2690
3092
|
}>;
|
|
2691
3093
|
export type RunList = (typeof RunList)['Type'];
|
|
2692
3094
|
export declare const RunWaitUntils: readonly ['attention', 'finished'];
|
|
@@ -2697,7 +3099,7 @@ export declare const RunWaitResult: Schema.Struct<{
|
|
|
2697
3099
|
readonly run: Schema.Struct<{
|
|
2698
3100
|
readonly id: Schema.String;
|
|
2699
3101
|
readonly workspaceId: Schema.String;
|
|
2700
|
-
readonly
|
|
3102
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2701
3103
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2702
3104
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
2703
3105
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -2784,7 +3186,7 @@ export declare const RunWaitResult: Schema.Struct<{
|
|
|
2784
3186
|
/** A program Run's bundle digest, fixed at admission. */
|
|
2785
3187
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
2786
3188
|
/** The layer a program Run's Loop resolved from. */
|
|
2787
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
3189
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2788
3190
|
/** A Child Run's parent. */
|
|
2789
3191
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
2790
3192
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2836,7 +3238,7 @@ export declare const RunWaitResult: Schema.Struct<{
|
|
|
2836
3238
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
2837
3239
|
readonly id: Schema.String;
|
|
2838
3240
|
readonly workspaceId: Schema.String;
|
|
2839
|
-
readonly
|
|
3241
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2840
3242
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2841
3243
|
readonly runId: Schema.String;
|
|
2842
3244
|
/** The Step that asked: a program's `ask` name or an agent's Step name, such as `next:1`. */
|
|
@@ -2894,7 +3296,7 @@ export declare const RunActionTaken: Schema.Struct<{
|
|
|
2894
3296
|
readonly run: Schema.Struct<{
|
|
2895
3297
|
readonly id: Schema.String;
|
|
2896
3298
|
readonly workspaceId: Schema.String;
|
|
2897
|
-
readonly
|
|
3299
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
2898
3300
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2899
3301
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
2900
3302
|
/** The Loop's id in the Package that declared it. */
|
|
@@ -2981,7 +3383,7 @@ export declare const RunActionTaken: Schema.Struct<{
|
|
|
2981
3383
|
/** A program Run's bundle digest, fixed at admission. */
|
|
2982
3384
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
2983
3385
|
/** The layer a program Run's Loop resolved from. */
|
|
2984
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
3386
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
2985
3387
|
/** A Child Run's parent. */
|
|
2986
3388
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
2987
3389
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|