@kitman-sh/sdk 0.7.5 → 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-72z6zbfz.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-8byx9rx2.js → chunk-36jhc745.js} +195 -76
- 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 +8 -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 +684 -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 +73 -67
- 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 +65 -32
- 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 +73 -32
- 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 +1 -1
- package/types/packages/core/src/run-file.d.ts +190 -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 +623 -267
- 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 @@
|
|
|
3
3
|
* foreground development runner. New capabilities require a new profile.
|
|
4
4
|
*/
|
|
5
5
|
export declare const PersonalDevelopmentProfileName: 'personal_development_v1';
|
|
6
|
-
export declare const PersonalDevelopmentProfileCapabilityNames: readonly ["
|
|
6
|
+
export declare const PersonalDevelopmentProfileCapabilityNames: readonly ["kitman_resolve_team_context", "kitman_list_accessible_teams", "kitman_get_task", "kitman_search_tasks", "kitman_list_task_dependencies", "kitman_list_repo_bindings", "kitman_list_task_members", "kitman_list_task_thread_entries", "kitman_list_task_sessions", "kitman_get_session", "kitman_list_session_updates", "kitman_get_context_pack_snapshot", "kitman_get_latest_context_pack", "kitman_get_context_pack_retrieval_ref", "kitman_get_context_pack", "kitman_record_context_relevance_feedback", "kitman_get_task_execution_record", "kitman_list_memories", "kitman_get_memory", "kitman_record_session_update", "kitman_record_task_thread_entry", "kitman_post_task_question", "kitman_record_decision", "kitman_record_blocker", "kitman_link_task_artifact", "kitman_create_task_asset_upload", "kitman_complete_task_asset_upload", "kitman_get_task_asset_download_url", "kitman_generate_handoff"];
|
|
7
7
|
export declare const PersonalDevelopmentProfile: {
|
|
8
8
|
readonly name: "personal_development_v1";
|
|
9
|
-
readonly capabilityNames: readonly ["
|
|
9
|
+
readonly capabilityNames: readonly ["kitman_resolve_team_context", "kitman_list_accessible_teams", "kitman_get_task", "kitman_search_tasks", "kitman_list_task_dependencies", "kitman_list_repo_bindings", "kitman_list_task_members", "kitman_list_task_thread_entries", "kitman_list_task_sessions", "kitman_get_session", "kitman_list_session_updates", "kitman_get_context_pack_snapshot", "kitman_get_latest_context_pack", "kitman_get_context_pack_retrieval_ref", "kitman_get_context_pack", "kitman_record_context_relevance_feedback", "kitman_get_task_execution_record", "kitman_list_memories", "kitman_get_memory", "kitman_record_session_update", "kitman_record_task_thread_entry", "kitman_post_task_question", "kitman_record_decision", "kitman_record_blocker", "kitman_link_task_artifact", "kitman_create_task_asset_upload", "kitman_complete_task_asset_upload", "kitman_get_task_asset_download_url", "kitman_generate_handoff"];
|
|
10
10
|
};
|
|
11
11
|
export type PersonalDevelopmentProfileName = typeof PersonalDevelopmentProfileName;
|
|
@@ -2,12 +2,12 @@ import * as Schema from 'effect/Schema';
|
|
|
2
2
|
export declare const ProposalStatuses: readonly ['proposed', 'in_review', 'approved', 'rejected', 'applied', 'reverted', 'superseded', 'canceled'];
|
|
3
3
|
export declare const KitMarketplaceProposalTargetTypes: readonly ['kit_source', 'kit_version', 'kit_installation', 'kit_activation', 'kit_trust_policy'];
|
|
4
4
|
export declare const KitMarketplaceProposalActions: readonly ['source_publish', 'version_publish', 'source_update', 'trust_change', 'visibility_change', 'broad_activation', 'risky_agent_environment_effect', 'rollback'];
|
|
5
|
-
export declare const ProposalTargetTypes: readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
5
|
+
export declare const ProposalTargetTypes: readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"];
|
|
6
6
|
export declare const ProposalRiskLevels: readonly ['low', 'medium', 'high'];
|
|
7
|
-
export declare const ProposalApprovalPolicyModes: readonly ['auto_approve_low_risk', '
|
|
7
|
+
export declare const ProposalApprovalPolicyModes: readonly ['auto_approve_low_risk', 'require_other_team_member', 'require_workspace_owner_or_admin'];
|
|
8
8
|
export declare const ProposalPolicyViolationCodes: readonly ['autonomous_self_approval', 'self_capability_escalation', 'missing_required_approval', 'unsafe_payload', 'target_conflict'];
|
|
9
9
|
export declare const ProposalStatus: Schema.Literals<readonly ["proposed", "in_review", "approved", "rejected", "applied", "reverted", "superseded", "canceled"]>;
|
|
10
|
-
export declare const ProposalTargetType: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
10
|
+
export declare const ProposalTargetType: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
11
11
|
export declare const ProposalRiskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
12
12
|
export declare const ProposalCheckKind: Schema.Literals<readonly ["schema", "policy", "preflight", "conflict", "safety"]>;
|
|
13
13
|
export declare const ProposalCheckStatus: Schema.Literals<readonly ["pending", "passed", "failed", "warning", "skipped"]>;
|
|
@@ -25,17 +25,17 @@ export declare const ProposalPayload: Schema.Struct<{
|
|
|
25
25
|
readonly agent_environment_policy: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
26
26
|
readonly decision: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
27
27
|
readonly task: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
28
|
-
readonly
|
|
28
|
+
readonly team_context: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
29
29
|
readonly context_relevance: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
30
30
|
}>;
|
|
31
31
|
export declare const ProposalTargetRef: Schema.Struct<{
|
|
32
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
32
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
33
33
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
34
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
34
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
35
35
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
36
36
|
}>;
|
|
37
37
|
export declare const ProposalApprovalPolicy: Schema.Struct<{
|
|
38
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
38
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
39
39
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
40
40
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
41
41
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -46,9 +46,9 @@ export declare const ProposalPolicyViolation: Schema.Struct<{
|
|
|
46
46
|
readonly message: Schema.String;
|
|
47
47
|
readonly actorId: Schema.optionalKey<Schema.String>;
|
|
48
48
|
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
49
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
49
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
50
50
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
51
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
51
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
52
52
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
53
53
|
}>>;
|
|
54
54
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
@@ -64,7 +64,7 @@ export declare const ProposalRenderedDiff: Schema.Struct<{
|
|
|
64
64
|
readonly risk: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
65
65
|
}>>;
|
|
66
66
|
readonly refs: Schema.$Array<Schema.Struct<{
|
|
67
|
-
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "
|
|
67
|
+
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy", "session", "step_attempt", "change_request"]>;
|
|
68
68
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
69
69
|
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
70
70
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
@@ -79,9 +79,9 @@ export declare const ProposalRiskSummary: Schema.Struct<{
|
|
|
79
79
|
export declare const KitMarketplaceProposalReview: Schema.Struct<{
|
|
80
80
|
readonly action: Schema.Literals<readonly ["source_publish", "version_publish", "source_update", "trust_change", "visibility_change", "broad_activation", "risky_agent_environment_effect", "rollback"]>;
|
|
81
81
|
readonly target: Schema.Struct<{
|
|
82
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
82
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
83
83
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
84
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
84
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
85
85
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
86
86
|
}>;
|
|
87
87
|
readonly payload: Schema.Struct<{
|
|
@@ -95,7 +95,7 @@ export declare const KitMarketplaceProposalReview: Schema.Struct<{
|
|
|
95
95
|
readonly agent_environment_policy: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
96
96
|
readonly decision: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
97
97
|
readonly task: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
98
|
-
readonly
|
|
98
|
+
readonly team_context: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
99
99
|
readonly context_relevance: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
100
100
|
}>;
|
|
101
101
|
readonly renderedDiff: Schema.Struct<{
|
|
@@ -109,7 +109,7 @@ export declare const KitMarketplaceProposalReview: Schema.Struct<{
|
|
|
109
109
|
readonly risk: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
110
110
|
}>>;
|
|
111
111
|
readonly refs: Schema.$Array<Schema.Struct<{
|
|
112
|
-
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "
|
|
112
|
+
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy", "session", "step_attempt", "change_request"]>;
|
|
113
113
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
114
114
|
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
115
115
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
@@ -127,15 +127,15 @@ export declare const KitMarketplaceProposalReview: Schema.Struct<{
|
|
|
127
127
|
readonly message: Schema.String;
|
|
128
128
|
readonly actorId: Schema.optionalKey<Schema.String>;
|
|
129
129
|
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
130
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
130
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
131
131
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
132
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
132
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
133
133
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
134
134
|
}>>;
|
|
135
135
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
136
136
|
}>>;
|
|
137
137
|
readonly approvalPolicy: Schema.Struct<{
|
|
138
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
138
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
139
139
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
140
140
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
141
141
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -144,12 +144,12 @@ export declare const KitMarketplaceProposalReview: Schema.Struct<{
|
|
|
144
144
|
export declare const Proposal: Schema.Struct<{
|
|
145
145
|
readonly id: Schema.String;
|
|
146
146
|
readonly workspaceId: Schema.String;
|
|
147
|
-
readonly
|
|
147
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
148
148
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
149
149
|
readonly target: Schema.Struct<{
|
|
150
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
150
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
151
151
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
152
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
152
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
153
153
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
154
154
|
}>;
|
|
155
155
|
readonly title: Schema.String;
|
|
@@ -157,7 +157,7 @@ export declare const Proposal: Schema.Struct<{
|
|
|
157
157
|
readonly status: Schema.Literals<readonly ["proposed", "in_review", "approved", "rejected", "applied", "reverted", "superseded", "canceled"]>;
|
|
158
158
|
readonly riskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
159
159
|
readonly approvalPolicy: Schema.Struct<{
|
|
160
|
-
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "
|
|
160
|
+
readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
|
|
161
161
|
readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
|
|
162
162
|
readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
|
|
163
163
|
readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
|
|
@@ -183,7 +183,7 @@ export declare const ProposalRevision: Schema.Struct<{
|
|
|
183
183
|
readonly agent_environment_policy: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
184
184
|
readonly decision: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
185
185
|
readonly task: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
186
|
-
readonly
|
|
186
|
+
readonly team_context: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
187
187
|
readonly context_relevance: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>]>>>;
|
|
188
188
|
}>;
|
|
189
189
|
readonly renderedDiff: Schema.Struct<{
|
|
@@ -197,7 +197,7 @@ export declare const ProposalRevision: Schema.Struct<{
|
|
|
197
197
|
readonly risk: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
198
198
|
}>>;
|
|
199
199
|
readonly refs: Schema.$Array<Schema.Struct<{
|
|
200
|
-
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "
|
|
200
|
+
readonly kind: Schema.Literals<readonly ["memory", "kit", "loop", "agent", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy", "session", "step_attempt", "change_request"]>;
|
|
201
201
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
202
202
|
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
203
203
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
@@ -247,9 +247,9 @@ export declare const ProposalApplication: Schema.Struct<{
|
|
|
247
247
|
readonly revisionId: Schema.String;
|
|
248
248
|
readonly action: Schema.Literals<readonly ["applied", "rejected", "reverted"]>;
|
|
249
249
|
readonly target: Schema.Struct<{
|
|
250
|
-
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "
|
|
250
|
+
readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "team_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
|
|
251
251
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
252
|
-
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"
|
|
252
|
+
readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
|
|
253
253
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
254
254
|
}>;
|
|
255
255
|
readonly appliedByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
@@ -68,6 +68,7 @@ export declare function scanDurableSurface<ValueType>(value: ValueType, path?: s
|
|
|
68
68
|
export declare function assertDurableSurfaceClean<ValueType>(value: ValueType, path?: string): void;
|
|
69
69
|
export declare function redactDurableSurface<ValueType>(value: ValueType, path?: string): RedactedDurableSurface;
|
|
70
70
|
export declare function sha256Hex(input: string): string;
|
|
71
|
-
/**
|
|
71
|
+
/** Command output with secrets and credentials replaced; other content stays readable. */
|
|
72
|
+
export declare function redactCredentials(output: string): string;
|
|
72
73
|
export declare function redactedOutputTail(output: string, maxChars?: number): string;
|
|
73
74
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
|
|
2
|
+
/** The forges Kitman reaches through `forges`. */
|
|
3
|
+
export declare const ForgeKinds: readonly ['github', 'gitlab', 'forgejo', 'gitea', 'gitee', 'bitbucket', 'azure-devops'];
|
|
4
|
+
export declare const ForgeKind: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
|
|
5
|
+
export declare const ForgeLabels: Readonly<Record<(typeof ForgeKinds)[number], string>>;
|
|
6
|
+
export declare const RepoBindingProviders: readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"];
|
|
3
7
|
export declare const RepoBindingCredentialProviderTypes: readonly ['env', 'file', 'exec'];
|
|
4
8
|
export declare const RepoBindingPathPrefixPattern = "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*//)\\S+$";
|
|
5
|
-
export declare const RepoBindingProvider: Schema.
|
|
9
|
+
export declare const RepoBindingProvider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
6
10
|
export declare const RepoBindingCredentialProviderType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
|
|
7
11
|
export declare const RepoBindingCredentialRef: Schema.Union<readonly [Schema.Struct<{
|
|
8
12
|
readonly kind: Schema.Literal<"none">;
|
|
@@ -19,8 +23,8 @@ export declare const RepoBindingCredentialRef: Schema.Union<readonly [Schema.Str
|
|
|
19
23
|
export declare const RepoBinding: Schema.Struct<{
|
|
20
24
|
readonly id: Schema.String;
|
|
21
25
|
readonly workspaceId: Schema.String;
|
|
22
|
-
readonly
|
|
23
|
-
readonly provider: Schema.
|
|
26
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
27
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
24
28
|
readonly host: Schema.String;
|
|
25
29
|
readonly owner: Schema.String;
|
|
26
30
|
readonly name: Schema.String;
|
|
@@ -43,14 +47,17 @@ export declare const RepoBinding: Schema.Struct<{
|
|
|
43
47
|
}>]>>;
|
|
44
48
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
45
49
|
readonly webhook: Schema.optionalKey<Schema.Struct<{
|
|
46
|
-
|
|
50
|
+
/** `unavailable`: the forge makes no webhooks Kitman can use, so no Task automation follows its events. */
|
|
51
|
+
readonly status: Schema.Literals<readonly ["active", "missing", "unavailable"]>;
|
|
47
52
|
readonly message: Schema.optionalKey<Schema.String>;
|
|
48
53
|
}>>;
|
|
49
54
|
readonly createdAt: Schema.String;
|
|
50
55
|
readonly updatedAt: Schema.String;
|
|
51
56
|
}>;
|
|
52
57
|
export declare const RepoBindingCreate: Schema.Struct<{
|
|
53
|
-
|
|
58
|
+
/** The owning Team; the Workspace owns the repository when absent. */
|
|
59
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
54
61
|
readonly host: Schema.String;
|
|
55
62
|
readonly owner: Schema.String;
|
|
56
63
|
readonly name: Schema.String;
|
|
@@ -79,8 +86,8 @@ export declare const RepoBindingList: Schema.Struct<{
|
|
|
79
86
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
80
87
|
readonly id: Schema.String;
|
|
81
88
|
readonly workspaceId: Schema.String;
|
|
82
|
-
readonly
|
|
83
|
-
readonly provider: Schema.
|
|
89
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
90
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
84
91
|
readonly host: Schema.String;
|
|
85
92
|
readonly owner: Schema.String;
|
|
86
93
|
readonly name: Schema.String;
|
|
@@ -103,7 +110,8 @@ export declare const RepoBindingList: Schema.Struct<{
|
|
|
103
110
|
}>]>>;
|
|
104
111
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
105
112
|
readonly webhook: Schema.optionalKey<Schema.Struct<{
|
|
106
|
-
|
|
113
|
+
/** `unavailable`: the forge makes no webhooks Kitman can use, so no Task automation follows its events. */
|
|
114
|
+
readonly status: Schema.Literals<readonly ["active", "missing", "unavailable"]>;
|
|
107
115
|
readonly message: Schema.optionalKey<Schema.String>;
|
|
108
116
|
}>>;
|
|
109
117
|
readonly createdAt: Schema.String;
|
|
@@ -112,7 +120,7 @@ export declare const RepoBindingList: Schema.Struct<{
|
|
|
112
120
|
}>;
|
|
113
121
|
export declare const RunnerRepoBindingCapability: Schema.Struct<{
|
|
114
122
|
readonly repoBindingId: Schema.String;
|
|
115
|
-
readonly provider: Schema.
|
|
123
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
|
|
116
124
|
readonly host: Schema.String;
|
|
117
125
|
readonly accessModes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"local_checkout">, Schema.Literal<"managed_clone">, Schema.Literal<"runner_secret_provider">]>>;
|
|
118
126
|
readonly credentialProviderTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>>;
|
|
@@ -120,6 +128,7 @@ export declare const RunnerRepoBindingCapability: Schema.Struct<{
|
|
|
120
128
|
readonly canPush: Schema.optionalKey<Schema.Boolean>;
|
|
121
129
|
}>;
|
|
122
130
|
export type RepoBindingProvider = (typeof RepoBindingProvider)['Type'];
|
|
131
|
+
export type ForgeKind = (typeof ForgeKind)['Type'];
|
|
123
132
|
export type RepoBindingCredentialProviderType = (typeof RepoBindingCredentialProviderType)['Type'];
|
|
124
133
|
export type RepoBindingCredentialRef = (typeof RepoBindingCredentialRef)['Type'];
|
|
125
134
|
export type RepoBinding = (typeof RepoBinding)['Type'];
|
|
@@ -2,7 +2,7 @@ import type { RunDisplay, RunDisplayState, RunShow } from './loop';
|
|
|
2
2
|
export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'children' | 'waiting'> & {
|
|
3
3
|
/** A Runner has leased one of the Run's orchestration Work Units. */
|
|
4
4
|
readonly claimed: boolean;
|
|
5
|
-
/** An eligible Runner is online for the Run's
|
|
5
|
+
/** An eligible Runner is online for the Run's Team, or for no Team. */
|
|
6
6
|
readonly runnerOnline: boolean;
|
|
7
7
|
/** The `verify` Steps whose verification failed. */
|
|
8
8
|
readonly failedChecks: readonly string[];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { type JsonObject, type JsonValue } from './runtime-type';
|
|
3
|
+
export declare const RunFileRefusalReasons: readonly ['type', 'too_large', 'too_many', 'quota', 'name_taken'];
|
|
4
|
+
export type RunFileRefusalReason = (typeof RunFileRefusalReasons)[number];
|
|
5
|
+
export declare const isRunFileRefusalReason: (reason: string) => reason is RunFileRefusalReason;
|
|
6
|
+
/** Why Kitman refused a file, in the words every reader shows. */
|
|
7
|
+
export declare const runFileRefusalWords: (refusal: {
|
|
8
|
+
readonly reason: RunFileRefusalReason;
|
|
9
|
+
readonly limit?: number;
|
|
10
|
+
readonly actual?: number;
|
|
11
|
+
}) => string;
|
|
12
|
+
declare const RunFileRefused_base: Schema.Class<RunFileRefused, Schema.TaggedStruct<"RunFileRefused", {
|
|
13
|
+
readonly reason: Schema.Literals<readonly ["type", "too_large", "too_many", "quota", "name_taken"]>;
|
|
14
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
15
|
+
readonly actual: Schema.optionalKey<Schema.Int>;
|
|
16
|
+
}>, import("effect/Cause").YieldableError>;
|
|
17
|
+
/** A file Kitman would not keep, with the limit it hit and the number that hit it. */
|
|
18
|
+
export declare class RunFileRefused extends RunFileRefused_base {
|
|
19
|
+
get message(): string;
|
|
20
|
+
}
|
|
21
|
+
export declare const runFileContentType: (name: string) => string;
|
|
22
|
+
export declare const RunFileKinds: readonly ['image', 'video', 'html', 'text', 'other'];
|
|
23
|
+
export declare const RunFileStatuses: readonly ['uploading', 'available', 'rejected', 'refused', 'removing', 'removed', 'expired'];
|
|
24
|
+
/** A Run File as its maker sees it; its key stays in Kitman. */
|
|
25
|
+
export declare const RunFileRecord: Schema.Struct<{
|
|
26
|
+
readonly id: Schema.String;
|
|
27
|
+
readonly runId: Schema.String;
|
|
28
|
+
readonly step: Schema.String;
|
|
29
|
+
readonly name: Schema.String;
|
|
30
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
31
|
+
readonly contentType: Schema.String;
|
|
32
|
+
readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
|
|
33
|
+
readonly byteSize: Schema.Int;
|
|
34
|
+
readonly sha256: Schema.String;
|
|
35
|
+
readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
|
|
36
|
+
}>;
|
|
37
|
+
export type RunFileRecord = typeof RunFileRecord.Type;
|
|
38
|
+
export declare const RunFileMakers: readonly ['program', 'agent', 'check'];
|
|
39
|
+
/** A Run File as people and Loops read it; its key stays in Kitman. */
|
|
40
|
+
export declare const RunFileView: Schema.Struct<{
|
|
41
|
+
readonly id: Schema.String;
|
|
42
|
+
readonly runId: Schema.String;
|
|
43
|
+
readonly step: Schema.String;
|
|
44
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
45
|
+
readonly verificationId: Schema.optionalKey<Schema.String>;
|
|
46
|
+
readonly madeBy: Schema.Literals<readonly ["program", "agent", "check"]>;
|
|
47
|
+
readonly name: Schema.String;
|
|
48
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
49
|
+
readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
|
|
50
|
+
readonly contentType: Schema.String;
|
|
51
|
+
readonly byteSize: Schema.Int;
|
|
52
|
+
readonly sha256: Schema.String;
|
|
53
|
+
readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
|
|
54
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
55
|
+
/** A refused file's limit and the number that passed it, as `RunFileRefused` gave them. */
|
|
56
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
57
|
+
readonly actual: Schema.optionalKey<Schema.Int>;
|
|
58
|
+
readonly removedBy: Schema.optionalKey<Schema.String>;
|
|
59
|
+
readonly removedAt: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly createdAt: Schema.String;
|
|
61
|
+
}>;
|
|
62
|
+
export type RunFileView = typeof RunFileView.Type;
|
|
63
|
+
/** Without access to the content of the Run's repositories, only how many files it kept. */
|
|
64
|
+
export declare const RunFileList: Schema.Union<readonly [Schema.Struct<{
|
|
65
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
66
|
+
readonly id: Schema.String;
|
|
67
|
+
readonly runId: Schema.String;
|
|
68
|
+
readonly step: Schema.String;
|
|
69
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
70
|
+
readonly verificationId: Schema.optionalKey<Schema.String>;
|
|
71
|
+
readonly madeBy: Schema.Literals<readonly ["program", "agent", "check"]>;
|
|
72
|
+
readonly name: Schema.String;
|
|
73
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
74
|
+
readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
|
|
75
|
+
readonly contentType: Schema.String;
|
|
76
|
+
readonly byteSize: Schema.Int;
|
|
77
|
+
readonly sha256: Schema.String;
|
|
78
|
+
readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
|
|
79
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
80
|
+
/** A refused file's limit and the number that passed it, as `RunFileRefused` gave them. */
|
|
81
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
82
|
+
readonly actual: Schema.optionalKey<Schema.Int>;
|
|
83
|
+
readonly removedBy: Schema.optionalKey<Schema.String>;
|
|
84
|
+
readonly removedAt: Schema.optionalKey<Schema.String>;
|
|
85
|
+
readonly createdAt: Schema.String;
|
|
86
|
+
}>>;
|
|
87
|
+
}>, Schema.Struct<{
|
|
88
|
+
readonly count: Schema.Int;
|
|
89
|
+
}>]>;
|
|
90
|
+
export type RunFileList = typeof RunFileList.Type;
|
|
91
|
+
export declare const RunFileUrlsRequest: Schema.Struct<{
|
|
92
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
93
|
+
readonly use: Schema.Literals<readonly ["view", "download"]>;
|
|
94
|
+
}>;
|
|
95
|
+
export type RunFileUrlsRequest = typeof RunFileUrlsRequest.Type;
|
|
96
|
+
/** Why a person removed a file, for the note the Run keeps. */
|
|
97
|
+
export declare const RunFileRemoveRequest: Schema.Struct<{
|
|
98
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
99
|
+
}>;
|
|
100
|
+
export type RunFileRemoveRequest = typeof RunFileRemoveRequest.Type;
|
|
101
|
+
export declare const RunFileUrl: Schema.Struct<{
|
|
102
|
+
readonly id: Schema.String;
|
|
103
|
+
readonly url: Schema.String;
|
|
104
|
+
readonly expiresAt: Schema.String;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const RunFileUrls: Schema.Struct<{
|
|
107
|
+
readonly urls: Schema.$Array<Schema.Struct<{
|
|
108
|
+
readonly id: Schema.String;
|
|
109
|
+
readonly url: Schema.String;
|
|
110
|
+
readonly expiresAt: Schema.String;
|
|
111
|
+
}>>;
|
|
112
|
+
}>;
|
|
113
|
+
export type RunFileUrls = typeof RunFileUrls.Type;
|
|
114
|
+
export declare const RunFilePartUrl: Schema.Struct<{
|
|
115
|
+
readonly url: Schema.String;
|
|
116
|
+
readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
117
|
+
readonly expiresAt: Schema.String;
|
|
118
|
+
readonly partNumber: Schema.Int;
|
|
119
|
+
}>;
|
|
120
|
+
/** Where a maker PUTs a file's bytes: one URL, or one per part of `partSize` bytes. */
|
|
121
|
+
export declare const RunFileUpload: Schema.Union<readonly [Schema.Struct<{
|
|
122
|
+
readonly url: Schema.String;
|
|
123
|
+
readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
124
|
+
readonly expiresAt: Schema.String;
|
|
125
|
+
readonly kind: Schema.Literal<"single">;
|
|
126
|
+
}>, Schema.Struct<{
|
|
127
|
+
readonly kind: Schema.Literal<"multipart">;
|
|
128
|
+
readonly partSize: Schema.Int;
|
|
129
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
130
|
+
readonly url: Schema.String;
|
|
131
|
+
readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
132
|
+
readonly expiresAt: Schema.String;
|
|
133
|
+
readonly partNumber: Schema.Int;
|
|
134
|
+
}>>;
|
|
135
|
+
}>]>;
|
|
136
|
+
export type RunFileUpload = typeof RunFileUpload.Type;
|
|
137
|
+
export declare const UploadedRunFilePart: Schema.Struct<{
|
|
138
|
+
readonly partNumber: Schema.Int;
|
|
139
|
+
readonly etag: Schema.String;
|
|
140
|
+
}>;
|
|
141
|
+
/** A Run File an Output cites, as Kitman holds it. */
|
|
142
|
+
export type CitedRunFile = {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly runId: string;
|
|
145
|
+
readonly status: (typeof RunFileStatuses)[number];
|
|
146
|
+
readonly purpose: 'evidence' | 'checkpoint';
|
|
147
|
+
};
|
|
148
|
+
/** The Run Files an Output cites, by the field its schema places each in. */
|
|
149
|
+
export declare function runFileReferences(schema: JsonObject, output: JsonValue): readonly {
|
|
150
|
+
readonly field: string;
|
|
151
|
+
readonly id: string;
|
|
152
|
+
}[];
|
|
153
|
+
/** A file a Step's agent keeps on the Run; Kitman names its Step and attempt. */
|
|
154
|
+
export declare const StepRunFileRequest: Schema.Struct<{
|
|
155
|
+
readonly name: Schema.String;
|
|
156
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
157
|
+
readonly contentType: Schema.String;
|
|
158
|
+
readonly byteSize: Schema.Int;
|
|
159
|
+
readonly sha256: Schema.String;
|
|
160
|
+
}>;
|
|
161
|
+
export declare const RunFileSlotted: Schema.Struct<{
|
|
162
|
+
readonly file: Schema.Struct<{
|
|
163
|
+
readonly id: Schema.String;
|
|
164
|
+
readonly runId: Schema.String;
|
|
165
|
+
readonly step: Schema.String;
|
|
166
|
+
readonly name: Schema.String;
|
|
167
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
168
|
+
readonly contentType: Schema.String;
|
|
169
|
+
readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
|
|
170
|
+
readonly byteSize: Schema.Int;
|
|
171
|
+
readonly sha256: Schema.String;
|
|
172
|
+
readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
|
|
173
|
+
}>;
|
|
174
|
+
readonly upload: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
175
|
+
readonly url: Schema.String;
|
|
176
|
+
readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
177
|
+
readonly expiresAt: Schema.String;
|
|
178
|
+
readonly kind: Schema.Literal<"single">;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly kind: Schema.Literal<"multipart">;
|
|
181
|
+
readonly partSize: Schema.Int;
|
|
182
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
183
|
+
readonly url: Schema.String;
|
|
184
|
+
readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
185
|
+
readonly expiresAt: Schema.String;
|
|
186
|
+
readonly partNumber: Schema.Int;
|
|
187
|
+
}>>;
|
|
188
|
+
}>]>>;
|
|
189
|
+
}>;
|
|
190
|
+
export {};
|
|
@@ -2,19 +2,21 @@ import type { JsonObject } from './runtime-type';
|
|
|
2
2
|
export type LaunchOutcome = 'feature' | 'bug' | 'refactor' | 'investigation' | 'docs' | 'migration';
|
|
3
3
|
/** Where and how a developer launched: their checkout, and the words they typed. */
|
|
4
4
|
export type LaunchContext = {
|
|
5
|
-
/** The
|
|
6
|
-
readonly
|
|
5
|
+
/** The Team the request names; it wins over the repository's. */
|
|
6
|
+
readonly teamId?: string;
|
|
7
7
|
readonly remoteUrl?: string;
|
|
8
8
|
/** A repository chosen outright, as the web's New run form does. */
|
|
9
9
|
readonly repoBindingId?: string;
|
|
10
10
|
readonly branch?: string;
|
|
11
11
|
readonly words?: string;
|
|
12
|
+
/** A Task key in the words is text, as New run from words means them. */
|
|
13
|
+
readonly plainWords?: boolean;
|
|
12
14
|
};
|
|
13
15
|
/** What the control plane knows that a launch may point at. */
|
|
14
16
|
export type LaunchCandidates = {
|
|
15
17
|
readonly repositories: readonly {
|
|
16
18
|
readonly repoBindingId: string;
|
|
17
|
-
readonly
|
|
19
|
+
readonly teamId: string | null;
|
|
18
20
|
readonly repositoryUrl: string;
|
|
19
21
|
}[];
|
|
20
22
|
/** Open ChangeRequests in those repositories. */
|
|
@@ -33,7 +35,7 @@ export type LaunchTask = {
|
|
|
33
35
|
readonly words: string;
|
|
34
36
|
};
|
|
35
37
|
export type InferredLaunch = {
|
|
36
|
-
readonly
|
|
38
|
+
readonly teamId?: string;
|
|
37
39
|
readonly repoBindingId?: string;
|
|
38
40
|
readonly branch?: string;
|
|
39
41
|
readonly changeRequestId?: string;
|
|
@@ -53,7 +55,7 @@ export declare const launchInputSchema: (schema: JsonObject) => {
|
|
|
53
55
|
required: any[];
|
|
54
56
|
};
|
|
55
57
|
/**
|
|
56
|
-
* What a launch means: the
|
|
58
|
+
* What a launch means: the Team, repository, branch, open ChangeRequest, Task and Outcome its context points at,
|
|
57
59
|
* and the Loop Input they fill. The words fill a `words` field, or else the one required text field left.
|
|
58
60
|
*/
|
|
59
61
|
export declare const inferLaunch: (launch: {
|