@kitman-sh/sdk 0.7.2 → 0.7.4
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 +2 -2
- package/dist/{chunk-zp7s46pz.js → chunk-7jc5y0mj.js} +2 -2
- package/dist/{chunk-7hwhxthh.js → chunk-p8v1smcg.js} +1 -1
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/a2a.d.ts +577 -0
- package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
- package/types/packages/core/src/agent-environment.d.ts +16 -16
- package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
- package/types/packages/core/src/approval-queue.d.ts +126 -0
- package/types/packages/core/src/audit.d.ts +52 -0
- package/types/packages/core/src/change-delivery.d.ts +39 -0
- package/types/packages/core/src/change-request-review.d.ts +146 -0
- package/types/packages/core/src/change-request.d.ts +432 -0
- package/types/packages/core/src/connection.d.ts +33 -0
- package/types/packages/core/src/context-feedback.d.ts +89 -0
- package/types/packages/core/src/data-lifecycle.d.ts +195 -0
- package/types/packages/core/src/decision.d.ts +48 -0
- package/types/packages/core/src/delivery-operation.d.ts +125 -0
- package/types/packages/core/src/delivery-policy.d.ts +174 -0
- package/types/packages/core/src/engineering-resources.d.ts +24 -0
- package/types/packages/core/src/enterprise-code-host.d.ts +18 -0
- package/types/packages/core/src/epic-delivery.d.ts +38 -0
- package/types/packages/core/src/external-effect.d.ts +313 -0
- package/types/packages/core/src/fix-flow.d.ts +149 -0
- package/types/packages/core/src/following.d.ts +59 -0
- package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
- package/types/packages/core/src/github-delivery.d.ts +78 -0
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
- package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
- package/types/packages/core/src/global-search.d.ts +42 -0
- package/types/packages/core/src/id.d.ts +1 -0
- package/types/packages/core/src/index.d.ts +0 -1
- package/types/packages/core/src/integration.d.ts +275 -0
- package/types/packages/core/src/intent.d.ts +260 -0
- package/types/packages/core/src/json.d.ts +10 -0
- package/types/packages/core/src/kit.d.ts +12 -12
- package/types/packages/core/src/live.d.ts +8318 -0
- package/types/packages/core/src/me.d.ts +31 -0
- package/types/packages/core/src/memory.d.ts +88 -0
- package/types/packages/core/src/my-teams.d.ts +1230 -0
- package/types/packages/core/src/notification.d.ts +181 -0
- package/types/packages/core/src/observability.d.ts +175 -0
- package/types/packages/core/src/package.d.ts +369 -0
- package/types/packages/core/src/personal-development-profile.d.ts +11 -0
- package/types/packages/core/src/platform-release.d.ts +60 -0
- package/types/packages/core/src/program-credential.d.ts +10 -0
- package/types/packages/core/src/project.d.ts +66 -0
- package/types/packages/core/src/provider-safe-text.d.ts +2 -0
- package/types/packages/core/src/repo-binding.d.ts +131 -0
- package/types/packages/core/src/run-journal.d.ts +28 -0
- package/types/packages/core/src/run-launch.d.ts +67 -0
- package/types/packages/core/src/runner-eligibility.d.ts +43 -0
- package/types/packages/core/src/runner-routing.d.ts +11 -0
- package/types/packages/core/src/runner-trust.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +3776 -0
- package/types/packages/core/src/scope-directory.d.ts +100 -0
- package/types/packages/core/src/secret.d.ts +37 -0
- package/types/packages/core/src/session.d.ts +90 -0
- package/types/packages/core/src/step-brief.d.ts +50 -0
- package/types/packages/core/src/sync-kit.d.ts +587 -0
- package/types/packages/core/src/task-detail.d.ts +491 -0
- package/types/packages/core/src/task-execution-record.d.ts +620 -0
- package/types/packages/core/src/task-key.d.ts +9 -0
- package/types/packages/core/src/task.d.ts +543 -0
- package/types/packages/core/src/work-unit.d.ts +740 -0
- package/types/packages/core/src/workspace.d.ts +96 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +216 -216
|
@@ -19,7 +19,7 @@ export declare const SkillSource: Schema.Union<readonly [Schema.Struct<{
|
|
|
19
19
|
}>, Schema.Struct<{
|
|
20
20
|
readonly kind: Schema.Literal<"git">;
|
|
21
21
|
readonly url: Schema.String;
|
|
22
|
-
readonly ref: Schema.String
|
|
22
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
23
23
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
24
24
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
25
25
|
}>, Schema.Struct<{
|
|
@@ -89,7 +89,7 @@ export declare const AgentSkillRequirement: Schema.Struct<{
|
|
|
89
89
|
}>, Schema.Struct<{
|
|
90
90
|
readonly kind: Schema.Literal<"git">;
|
|
91
91
|
readonly url: Schema.String;
|
|
92
|
-
readonly ref: Schema.String
|
|
92
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
93
93
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
94
94
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
95
95
|
}>, Schema.Struct<{
|
|
@@ -110,7 +110,7 @@ export declare const AgentSkillRequirement: Schema.Struct<{
|
|
|
110
110
|
export declare const AgentPluginRequirement: Schema.Struct<{
|
|
111
111
|
readonly name: Schema.String;
|
|
112
112
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
113
|
-
readonly
|
|
113
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
114
114
|
readonly kind: Schema.Literal<"package">;
|
|
115
115
|
readonly packageName: Schema.String;
|
|
116
116
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -125,7 +125,7 @@ export declare const AgentPluginRequirement: Schema.Struct<{
|
|
|
125
125
|
}>, Schema.Struct<{
|
|
126
126
|
readonly kind: Schema.Literal<"local_path">;
|
|
127
127
|
readonly path: Schema.String;
|
|
128
|
-
}>]
|
|
128
|
+
}>]>>;
|
|
129
129
|
}>;
|
|
130
130
|
export declare const AgentMcpServerRequirement: Schema.Struct<{
|
|
131
131
|
readonly name: Schema.String;
|
|
@@ -188,7 +188,7 @@ export declare const AgentEnvironmentFragment: Schema.Struct<{
|
|
|
188
188
|
}>, Schema.Struct<{
|
|
189
189
|
readonly kind: Schema.Literal<"git">;
|
|
190
190
|
readonly url: Schema.String;
|
|
191
|
-
readonly ref: Schema.String
|
|
191
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
192
192
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
193
193
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
194
194
|
}>, Schema.Struct<{
|
|
@@ -209,7 +209,7 @@ export declare const AgentEnvironmentFragment: Schema.Struct<{
|
|
|
209
209
|
readonly plugins: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
210
210
|
readonly name: Schema.String;
|
|
211
211
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
212
|
-
readonly
|
|
212
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
213
213
|
readonly kind: Schema.Literal<"package">;
|
|
214
214
|
readonly packageName: Schema.String;
|
|
215
215
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -224,7 +224,7 @@ export declare const AgentEnvironmentFragment: Schema.Struct<{
|
|
|
224
224
|
}>, Schema.Struct<{
|
|
225
225
|
readonly kind: Schema.Literal<"local_path">;
|
|
226
226
|
readonly path: Schema.String;
|
|
227
|
-
}>]
|
|
227
|
+
}>]>>;
|
|
228
228
|
}>>>;
|
|
229
229
|
readonly mcpServers: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
230
230
|
readonly name: Schema.String;
|
|
@@ -373,7 +373,7 @@ export declare const UserAgentPreferences: Schema.Struct<{
|
|
|
373
373
|
}>, Schema.Struct<{
|
|
374
374
|
readonly kind: Schema.Literal<"git">;
|
|
375
375
|
readonly url: Schema.String;
|
|
376
|
-
readonly ref: Schema.String
|
|
376
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
377
377
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
378
378
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
379
379
|
}>, Schema.Struct<{
|
|
@@ -394,7 +394,7 @@ export declare const UserAgentPreferences: Schema.Struct<{
|
|
|
394
394
|
readonly plugins: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
395
395
|
readonly name: Schema.String;
|
|
396
396
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
397
|
-
readonly
|
|
397
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
398
398
|
readonly kind: Schema.Literal<"package">;
|
|
399
399
|
readonly packageName: Schema.String;
|
|
400
400
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -409,7 +409,7 @@ export declare const UserAgentPreferences: Schema.Struct<{
|
|
|
409
409
|
}>, Schema.Struct<{
|
|
410
410
|
readonly kind: Schema.Literal<"local_path">;
|
|
411
411
|
readonly path: Schema.String;
|
|
412
|
-
}>]
|
|
412
|
+
}>]>>;
|
|
413
413
|
}>>>;
|
|
414
414
|
readonly mcpServers: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
415
415
|
readonly name: Schema.String;
|
|
@@ -625,7 +625,7 @@ export declare const AgentEnvironment: Schema.Struct<{
|
|
|
625
625
|
}>, Schema.Struct<{
|
|
626
626
|
readonly kind: Schema.Literal<"git">;
|
|
627
627
|
readonly url: Schema.String;
|
|
628
|
-
readonly ref: Schema.String
|
|
628
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
629
629
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
630
630
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
631
631
|
}>, Schema.Struct<{
|
|
@@ -718,7 +718,7 @@ export declare const AgentEnvironment: Schema.Struct<{
|
|
|
718
718
|
readonly item: Schema.Struct<{
|
|
719
719
|
readonly name: Schema.String;
|
|
720
720
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
721
|
-
readonly
|
|
721
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
722
722
|
readonly kind: Schema.Literal<"package">;
|
|
723
723
|
readonly packageName: Schema.String;
|
|
724
724
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -733,7 +733,7 @@ export declare const AgentEnvironment: Schema.Struct<{
|
|
|
733
733
|
}>, Schema.Struct<{
|
|
734
734
|
readonly kind: Schema.Literal<"local_path">;
|
|
735
735
|
readonly path: Schema.String;
|
|
736
|
-
}>]
|
|
736
|
+
}>]>>;
|
|
737
737
|
}>;
|
|
738
738
|
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
739
739
|
readonly kind: Schema.Literal<"built_in">;
|
|
@@ -1486,7 +1486,7 @@ export declare const AgentEnvironmentSyncPlan: Schema.Struct<{
|
|
|
1486
1486
|
}>, Schema.Struct<{
|
|
1487
1487
|
readonly kind: Schema.Literal<"git">;
|
|
1488
1488
|
readonly url: Schema.String;
|
|
1489
|
-
readonly ref: Schema.String
|
|
1489
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
1490
1490
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
1491
1491
|
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
1492
1492
|
}>, Schema.Struct<{
|
|
@@ -1579,7 +1579,7 @@ export declare const AgentEnvironmentSyncPlan: Schema.Struct<{
|
|
|
1579
1579
|
readonly item: Schema.Struct<{
|
|
1580
1580
|
readonly name: Schema.String;
|
|
1581
1581
|
readonly policy: Schema.Union<readonly [Schema.Literal<"recommended">, Schema.Literal<"required">]>;
|
|
1582
|
-
readonly
|
|
1582
|
+
readonly sources: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1583
1583
|
readonly kind: Schema.Literal<"package">;
|
|
1584
1584
|
readonly packageName: Schema.String;
|
|
1585
1585
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
@@ -1594,7 +1594,7 @@ export declare const AgentEnvironmentSyncPlan: Schema.Struct<{
|
|
|
1594
1594
|
}>, Schema.Struct<{
|
|
1595
1595
|
readonly kind: Schema.Literal<"local_path">;
|
|
1596
1596
|
readonly path: Schema.String;
|
|
1597
|
-
}>]
|
|
1597
|
+
}>]>>;
|
|
1598
1598
|
}>;
|
|
1599
1599
|
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1600
1600
|
readonly kind: Schema.Literal<"built_in">;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const AgentLaunchSnapshotContent: Schema.Union<readonly [Schema.Struct<{
|
|
3
|
+
readonly kind: Schema.Literal<"agent_environment">;
|
|
4
|
+
readonly version: Schema.Literal<1>;
|
|
5
|
+
readonly agentEnvironment: Schema.Unknown;
|
|
6
|
+
readonly installers: Schema.$Array<Schema.Struct<{
|
|
7
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"bun">, Schema.Literal<"documented_fallback">]>;
|
|
8
|
+
readonly command: Schema.String;
|
|
9
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
11
|
+
}>>;
|
|
12
|
+
}>, Schema.Struct<{
|
|
13
|
+
readonly kind: Schema.Literal<"agent_sandbox_policy">;
|
|
14
|
+
readonly version: Schema.Literal<1>;
|
|
15
|
+
readonly agentSandboxPolicy: Schema.Unknown;
|
|
16
|
+
}>]>;
|
|
17
|
+
export declare const AgentLaunchSnapshot: Schema.Struct<{
|
|
18
|
+
readonly id: Schema.String;
|
|
19
|
+
readonly workspaceId: Schema.String;
|
|
20
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly taskId: Schema.String;
|
|
22
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"agent_environment">, Schema.Literal<"agent_sandbox_policy">]>;
|
|
23
|
+
readonly version: Schema.Literal<1>;
|
|
24
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
25
|
+
readonly kind: Schema.Literal<"agent_environment">;
|
|
26
|
+
readonly version: Schema.Literal<1>;
|
|
27
|
+
readonly agentEnvironment: Schema.Unknown;
|
|
28
|
+
readonly installers: Schema.$Array<Schema.Struct<{
|
|
29
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"bun">, Schema.Literal<"documented_fallback">]>;
|
|
30
|
+
readonly command: Schema.String;
|
|
31
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly source: Schema.optionalKey<Schema.String>;
|
|
33
|
+
}>>;
|
|
34
|
+
}>, Schema.Struct<{
|
|
35
|
+
readonly kind: Schema.Literal<"agent_sandbox_policy">;
|
|
36
|
+
readonly version: Schema.Literal<1>;
|
|
37
|
+
readonly agentSandboxPolicy: Schema.Unknown;
|
|
38
|
+
}>]>;
|
|
39
|
+
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
40
|
+
readonly createdByActorId: Schema.String;
|
|
41
|
+
readonly createdAt: Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
export type AgentLaunchSnapshotContent = (typeof AgentLaunchSnapshotContent)['Type'];
|
|
44
|
+
export type AgentLaunchSnapshot = (typeof AgentLaunchSnapshot)['Type'];
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const ApprovalQueueSourceTypes: readonly ['proposal', 'mcp'];
|
|
3
|
+
export declare const ApprovalQueueSourceType: Schema.Literals<readonly ["proposal", "mcp"]>;
|
|
4
|
+
export declare const ApprovalQueueAction: Schema.Literals<readonly ["approve", "reject", "apply"]>;
|
|
5
|
+
export declare const ApprovalQueueStatuses: readonly ["proposed", "in_review", "approved", "rejected", "applied", "reverted", "superseded", "canceled", "waiting_for_interaction"];
|
|
6
|
+
export declare const ApprovalQueueStatus: Schema.Literals<readonly ("applied" | "approved" | "canceled" | "in_review" | "proposed" | "rejected" | "reverted" | "superseded" | "waiting_for_interaction")[]>;
|
|
7
|
+
export declare const ApprovalQueueCapability: Schema.Struct<{
|
|
8
|
+
readonly available: Schema.Boolean;
|
|
9
|
+
readonly reason: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ApprovalQueueItem: Schema.Struct<{
|
|
12
|
+
readonly id: Schema.String;
|
|
13
|
+
readonly type: Schema.Literals<readonly ["proposal", "mcp"]>;
|
|
14
|
+
readonly status: Schema.Literals<readonly ("applied" | "approved" | "canceled" | "in_review" | "proposed" | "rejected" | "reverted" | "superseded" | "waiting_for_interaction")[]>;
|
|
15
|
+
readonly riskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
16
|
+
readonly title: Schema.String;
|
|
17
|
+
readonly summary: Schema.String;
|
|
18
|
+
readonly target: Schema.String;
|
|
19
|
+
readonly scope: Schema.Struct<{
|
|
20
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">]>;
|
|
21
|
+
readonly workspaceId: Schema.String;
|
|
22
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly label: Schema.String;
|
|
24
|
+
}>;
|
|
25
|
+
readonly proposer: Schema.String;
|
|
26
|
+
readonly reviewer: Schema.String;
|
|
27
|
+
readonly createdAt: Schema.String;
|
|
28
|
+
readonly updatedAt: Schema.String;
|
|
29
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly safeDiffSummary: Schema.String;
|
|
31
|
+
readonly checkSummary: Schema.String;
|
|
32
|
+
readonly rollbackNotes: Schema.String;
|
|
33
|
+
readonly evidenceLinks: Schema.$Array<Schema.Struct<{
|
|
34
|
+
readonly label: Schema.String;
|
|
35
|
+
readonly path: Schema.String;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly capabilities: Schema.Struct<{
|
|
38
|
+
readonly approve: Schema.Struct<{
|
|
39
|
+
readonly available: Schema.Boolean;
|
|
40
|
+
readonly reason: Schema.String;
|
|
41
|
+
}>;
|
|
42
|
+
readonly reject: Schema.Struct<{
|
|
43
|
+
readonly available: Schema.Boolean;
|
|
44
|
+
readonly reason: Schema.String;
|
|
45
|
+
}>;
|
|
46
|
+
readonly apply: Schema.Struct<{
|
|
47
|
+
readonly available: Schema.Boolean;
|
|
48
|
+
readonly reason: Schema.String;
|
|
49
|
+
}>;
|
|
50
|
+
}>;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const ApprovalQueueSourceCompleteness: Schema.Struct<{
|
|
53
|
+
readonly source: Schema.Literals<readonly ["proposal", "mcp"]>;
|
|
54
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"complete">, Schema.Literal<"not_authorized">, Schema.Literal<"failed">]>;
|
|
55
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const ApprovalQueuePage: Schema.Struct<{
|
|
58
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
readonly type: Schema.Literals<readonly ["proposal", "mcp"]>;
|
|
61
|
+
readonly status: Schema.Literals<readonly ("applied" | "approved" | "canceled" | "in_review" | "proposed" | "rejected" | "reverted" | "superseded" | "waiting_for_interaction")[]>;
|
|
62
|
+
readonly riskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
63
|
+
readonly title: Schema.String;
|
|
64
|
+
readonly summary: Schema.String;
|
|
65
|
+
readonly target: Schema.String;
|
|
66
|
+
readonly scope: Schema.Struct<{
|
|
67
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">]>;
|
|
68
|
+
readonly workspaceId: Schema.String;
|
|
69
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
70
|
+
readonly label: Schema.String;
|
|
71
|
+
}>;
|
|
72
|
+
readonly proposer: Schema.String;
|
|
73
|
+
readonly reviewer: Schema.String;
|
|
74
|
+
readonly createdAt: Schema.String;
|
|
75
|
+
readonly updatedAt: Schema.String;
|
|
76
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly safeDiffSummary: Schema.String;
|
|
78
|
+
readonly checkSummary: Schema.String;
|
|
79
|
+
readonly rollbackNotes: Schema.String;
|
|
80
|
+
readonly evidenceLinks: Schema.$Array<Schema.Struct<{
|
|
81
|
+
readonly label: Schema.String;
|
|
82
|
+
readonly path: Schema.String;
|
|
83
|
+
}>>;
|
|
84
|
+
readonly capabilities: Schema.Struct<{
|
|
85
|
+
readonly approve: Schema.Struct<{
|
|
86
|
+
readonly available: Schema.Boolean;
|
|
87
|
+
readonly reason: Schema.String;
|
|
88
|
+
}>;
|
|
89
|
+
readonly reject: Schema.Struct<{
|
|
90
|
+
readonly available: Schema.Boolean;
|
|
91
|
+
readonly reason: Schema.String;
|
|
92
|
+
}>;
|
|
93
|
+
readonly apply: Schema.Struct<{
|
|
94
|
+
readonly available: Schema.Boolean;
|
|
95
|
+
readonly reason: Schema.String;
|
|
96
|
+
}>;
|
|
97
|
+
}>;
|
|
98
|
+
}>>;
|
|
99
|
+
readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
|
|
100
|
+
readonly hasNextPage: Schema.Literal<false>;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly hasNextPage: Schema.Literal<true>;
|
|
103
|
+
readonly endCursor: Schema.String;
|
|
104
|
+
}>]>;
|
|
105
|
+
readonly freshness: Schema.Struct<{
|
|
106
|
+
readonly state: Schema.Literal<"current">;
|
|
107
|
+
readonly asOf: Schema.String;
|
|
108
|
+
}>;
|
|
109
|
+
readonly completeness: Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly source: Schema.Literals<readonly ["proposal", "mcp"]>;
|
|
111
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"complete">, Schema.Literal<"not_authorized">, Schema.Literal<"failed">]>;
|
|
112
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
113
|
+
}>>;
|
|
114
|
+
readonly actionableCount: Schema.Struct<{
|
|
115
|
+
readonly value: Schema.Int;
|
|
116
|
+
readonly confidence: Schema.Union<readonly [Schema.Literal<"exact">, Schema.Literal<"lower_bound">]>;
|
|
117
|
+
}>;
|
|
118
|
+
}>;
|
|
119
|
+
export declare function parseApprovalQueuePage<InputType>(input: InputType): ApprovalQueuePage;
|
|
120
|
+
export type ApprovalQueueSourceType = (typeof ApprovalQueueSourceType)['Type'];
|
|
121
|
+
export type ApprovalQueueAction = (typeof ApprovalQueueAction)['Type'];
|
|
122
|
+
export type ApprovalQueueStatus = (typeof ApprovalQueueStatus)['Type'];
|
|
123
|
+
export type ApprovalQueueCapability = (typeof ApprovalQueueCapability)['Type'];
|
|
124
|
+
export type ApprovalQueueItem = (typeof ApprovalQueueItem)['Type'];
|
|
125
|
+
export type ApprovalQueueSourceCompleteness = (typeof ApprovalQueueSourceCompleteness)['Type'];
|
|
126
|
+
export type ApprovalQueuePage = (typeof ApprovalQueuePage)['Type'];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const AuditEvent: Schema.Struct<{
|
|
3
|
+
readonly id: Schema.String;
|
|
4
|
+
readonly workspaceId: Schema.String;
|
|
5
|
+
readonly actorType: Schema.String;
|
|
6
|
+
readonly actorId: Schema.String;
|
|
7
|
+
readonly delegatedByUserId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8
|
+
readonly action: Schema.String;
|
|
9
|
+
readonly entityType: Schema.String;
|
|
10
|
+
readonly entityId: Schema.String;
|
|
11
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12
|
+
readonly createdAt: Schema.String;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const AuditEventListQuery: Schema.Struct<{
|
|
15
|
+
readonly entityType: Schema.optionalKey<Schema.String>;
|
|
16
|
+
readonly entityId: Schema.optionalKey<Schema.String>;
|
|
17
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
18
|
+
readonly actorType: Schema.optionalKey<Schema.String>;
|
|
19
|
+
readonly actorId: Schema.optionalKey<Schema.String>;
|
|
20
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly target: Schema.optionalKey<Schema.String>;
|
|
22
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly task: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly loop: Schema.optionalKey<Schema.String>;
|
|
25
|
+
readonly proposal: Schema.optionalKey<Schema.String>;
|
|
26
|
+
readonly risk: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"high">, Schema.Literal<"medium">, Schema.Literal<"low">]>>;
|
|
27
|
+
readonly createdAfter: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const AuditEventList: Schema.Struct<{
|
|
32
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly id: Schema.String;
|
|
34
|
+
readonly workspaceId: Schema.String;
|
|
35
|
+
readonly actorType: Schema.String;
|
|
36
|
+
readonly actorId: Schema.String;
|
|
37
|
+
readonly delegatedByUserId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
38
|
+
readonly action: Schema.String;
|
|
39
|
+
readonly entityType: Schema.String;
|
|
40
|
+
readonly entityId: Schema.String;
|
|
41
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
42
|
+
readonly createdAt: Schema.String;
|
|
43
|
+
}>>;
|
|
44
|
+
readonly pageInfo: Schema.Struct<{
|
|
45
|
+
readonly limit: Schema.Int;
|
|
46
|
+
readonly hasNextPage: Schema.Boolean;
|
|
47
|
+
readonly nextCursor: Schema.optionalKey<Schema.String>;
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
export type AuditEvent = (typeof AuditEvent)['Type'];
|
|
51
|
+
export type AuditEventListQuery = (typeof AuditEventListQuery)['Type'];
|
|
52
|
+
export type AuditEventList = (typeof AuditEventList)['Type'];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const StepAttemptCompletionOutcomes: readonly ['delivered', 'handed_off', 'no_changes', 'verification_failed'];
|
|
3
|
+
export declare const StepAttemptDeliveryStatuses: readonly ['branch_pushed', 'change_request_opened', 'no_changes', 'verification_failed', 'failed', 'push_disabled_retained'];
|
|
4
|
+
export declare const AgentChangeDeliveryPolicy: Schema.Struct<{
|
|
5
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"branch_only">, Schema.Literal<"open_change_request">]>;
|
|
6
|
+
readonly push: Schema.optionalKey<Schema.Boolean>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const StepAttemptDeliverySummary: Schema.Struct<{
|
|
9
|
+
readonly status: Schema.Literals<readonly ["branch_pushed", "change_request_opened", "no_changes", "verification_failed", "failed", "push_disabled_retained"]>;
|
|
10
|
+
readonly sourceBranch: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly targetBranch: Schema.optionalKey<Schema.String>;
|
|
12
|
+
readonly commitSha: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly verificationResults: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
14
|
+
readonly label: Schema.String;
|
|
15
|
+
readonly exitCode: Schema.Finite;
|
|
16
|
+
readonly durationMs: Schema.Finite;
|
|
17
|
+
readonly status: Schema.Literals<readonly ["passed", "failed", "skipped"]>;
|
|
18
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
19
|
+
}>>>;
|
|
20
|
+
readonly changeRequest: Schema.optionalKey<Schema.Struct<{
|
|
21
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
22
|
+
readonly url: Schema.String;
|
|
23
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly title: Schema.String;
|
|
25
|
+
readonly sourceBranch: Schema.String;
|
|
26
|
+
readonly targetBranch: Schema.String;
|
|
27
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "closed", "merged"]>;
|
|
28
|
+
readonly lastObservedAt: Schema.String;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly localRetrieval: Schema.optionalKey<Schema.Struct<{
|
|
31
|
+
readonly worktreeRef: Schema.String;
|
|
32
|
+
readonly localPathRedacted: Schema.Literal<true>;
|
|
33
|
+
readonly retainedUntil: Schema.optionalKey<Schema.String>;
|
|
34
|
+
}>>;
|
|
35
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
36
|
+
}>;
|
|
37
|
+
export type AgentChangeDeliveryPolicy = (typeof AgentChangeDeliveryPolicy)['Type'];
|
|
38
|
+
export type StepAttemptDeliverySummary = (typeof StepAttemptDeliverySummary)['Type'];
|
|
39
|
+
export declare function findForbiddenStepAttemptDeliverySummaryPath<ValueType>(value: ValueType): string | undefined;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const ChangeRequestReviewOutcomes: readonly ['approved', 'changes_requested', 'commented', 'needs_human', 'failed'];
|
|
3
|
+
export declare const ChangeRequestReviewProviderActionKinds: readonly ['provider_review', 'provider_comment', 'provider_approval', 'provider_change_request'];
|
|
4
|
+
export declare const ChangeRequestReviewOutcome: Schema.Literals<readonly ["approved", "changes_requested", "commented", "needs_human", "failed"]>;
|
|
5
|
+
export declare const ChangeRequestReviewProviderActionKind: Schema.Literals<readonly ["provider_review", "provider_comment", "provider_approval", "provider_change_request"]>;
|
|
6
|
+
export declare const ChangeRequestReviewSafeSummary: Schema.String;
|
|
7
|
+
export declare const ChangeRequestReviewSafeMetadata: Schema.Struct<{
|
|
8
|
+
readonly providerState: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly providerStatus: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly positionCount: Schema.optionalKey<Schema.Int>;
|
|
11
|
+
readonly threadCount: Schema.optionalKey<Schema.Int>;
|
|
12
|
+
readonly noteCount: Schema.optionalKey<Schema.Int>;
|
|
13
|
+
readonly actionCount: Schema.optionalKey<Schema.Int>;
|
|
14
|
+
readonly blocking: Schema.optionalKey<Schema.Boolean>;
|
|
15
|
+
readonly resolved: Schema.optionalKey<Schema.Boolean>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const ChangeRequestReviewProviderActionRef: Schema.Struct<{
|
|
18
|
+
readonly kind: Schema.Literals<readonly ["provider_review", "provider_comment", "provider_approval", "provider_change_request"]>;
|
|
19
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
20
|
+
readonly host: Schema.String;
|
|
21
|
+
readonly externalId: Schema.String;
|
|
22
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly submittedAt: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
25
|
+
readonly providerState: Schema.optionalKey<Schema.String>;
|
|
26
|
+
readonly providerStatus: Schema.optionalKey<Schema.String>;
|
|
27
|
+
readonly positionCount: Schema.optionalKey<Schema.Int>;
|
|
28
|
+
readonly threadCount: Schema.optionalKey<Schema.Int>;
|
|
29
|
+
readonly noteCount: Schema.optionalKey<Schema.Int>;
|
|
30
|
+
readonly actionCount: Schema.optionalKey<Schema.Int>;
|
|
31
|
+
readonly blocking: Schema.optionalKey<Schema.Boolean>;
|
|
32
|
+
readonly resolved: Schema.optionalKey<Schema.Boolean>;
|
|
33
|
+
}>>;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const ChangeRequestReview: Schema.Struct<{
|
|
36
|
+
readonly id: Schema.String;
|
|
37
|
+
readonly workspaceId: Schema.String;
|
|
38
|
+
readonly projectId: Schema.String;
|
|
39
|
+
readonly changeRequestId: Schema.String;
|
|
40
|
+
readonly taskId: Schema.String;
|
|
41
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
42
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly reviewerActorType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>>;
|
|
44
|
+
readonly reviewerActorId: Schema.optionalKey<Schema.String>;
|
|
45
|
+
readonly outcome: Schema.Literals<readonly ["approved", "changes_requested", "commented", "needs_human", "failed"]>;
|
|
46
|
+
readonly summary: Schema.String;
|
|
47
|
+
readonly providerActionRefs: Schema.$Array<Schema.Struct<{
|
|
48
|
+
readonly kind: Schema.Literals<readonly ["provider_review", "provider_comment", "provider_approval", "provider_change_request"]>;
|
|
49
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
50
|
+
readonly host: Schema.String;
|
|
51
|
+
readonly externalId: Schema.String;
|
|
52
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
53
|
+
readonly submittedAt: Schema.optionalKey<Schema.String>;
|
|
54
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
55
|
+
readonly providerState: Schema.optionalKey<Schema.String>;
|
|
56
|
+
readonly providerStatus: Schema.optionalKey<Schema.String>;
|
|
57
|
+
readonly positionCount: Schema.optionalKey<Schema.Int>;
|
|
58
|
+
readonly threadCount: Schema.optionalKey<Schema.Int>;
|
|
59
|
+
readonly noteCount: Schema.optionalKey<Schema.Int>;
|
|
60
|
+
readonly actionCount: Schema.optionalKey<Schema.Int>;
|
|
61
|
+
readonly blocking: Schema.optionalKey<Schema.Boolean>;
|
|
62
|
+
readonly resolved: Schema.optionalKey<Schema.Boolean>;
|
|
63
|
+
}>>;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly createdAt: Schema.String;
|
|
66
|
+
readonly updatedAt: Schema.String;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const ChangeRequestReviewList: Schema.Struct<{
|
|
69
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
70
|
+
readonly id: Schema.String;
|
|
71
|
+
readonly workspaceId: Schema.String;
|
|
72
|
+
readonly projectId: Schema.String;
|
|
73
|
+
readonly changeRequestId: Schema.String;
|
|
74
|
+
readonly taskId: Schema.String;
|
|
75
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly reviewerActorType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>>;
|
|
78
|
+
readonly reviewerActorId: Schema.optionalKey<Schema.String>;
|
|
79
|
+
readonly outcome: Schema.Literals<readonly ["approved", "changes_requested", "commented", "needs_human", "failed"]>;
|
|
80
|
+
readonly summary: Schema.String;
|
|
81
|
+
readonly providerActionRefs: Schema.$Array<Schema.Struct<{
|
|
82
|
+
readonly kind: Schema.Literals<readonly ["provider_review", "provider_comment", "provider_approval", "provider_change_request"]>;
|
|
83
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
84
|
+
readonly host: Schema.String;
|
|
85
|
+
readonly externalId: Schema.String;
|
|
86
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
87
|
+
readonly submittedAt: Schema.optionalKey<Schema.String>;
|
|
88
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
89
|
+
readonly providerState: Schema.optionalKey<Schema.String>;
|
|
90
|
+
readonly providerStatus: Schema.optionalKey<Schema.String>;
|
|
91
|
+
readonly positionCount: Schema.optionalKey<Schema.Int>;
|
|
92
|
+
readonly threadCount: Schema.optionalKey<Schema.Int>;
|
|
93
|
+
readonly noteCount: Schema.optionalKey<Schema.Int>;
|
|
94
|
+
readonly actionCount: Schema.optionalKey<Schema.Int>;
|
|
95
|
+
readonly blocking: Schema.optionalKey<Schema.Boolean>;
|
|
96
|
+
readonly resolved: Schema.optionalKey<Schema.Boolean>;
|
|
97
|
+
}>>;
|
|
98
|
+
}>>;
|
|
99
|
+
readonly createdAt: Schema.String;
|
|
100
|
+
readonly updatedAt: Schema.String;
|
|
101
|
+
}>>;
|
|
102
|
+
readonly nextCursor: Schema.optionalKey<Schema.String>;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const ChangeRequestReviewDetail: Schema.Struct<{
|
|
105
|
+
readonly changeRequestReview: Schema.Struct<{
|
|
106
|
+
readonly id: Schema.String;
|
|
107
|
+
readonly workspaceId: Schema.String;
|
|
108
|
+
readonly projectId: Schema.String;
|
|
109
|
+
readonly changeRequestId: Schema.String;
|
|
110
|
+
readonly taskId: Schema.String;
|
|
111
|
+
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
112
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly reviewerActorType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>>;
|
|
114
|
+
readonly reviewerActorId: Schema.optionalKey<Schema.String>;
|
|
115
|
+
readonly outcome: Schema.Literals<readonly ["approved", "changes_requested", "commented", "needs_human", "failed"]>;
|
|
116
|
+
readonly summary: Schema.String;
|
|
117
|
+
readonly providerActionRefs: Schema.$Array<Schema.Struct<{
|
|
118
|
+
readonly kind: Schema.Literals<readonly ["provider_review", "provider_comment", "provider_approval", "provider_change_request"]>;
|
|
119
|
+
readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
|
|
120
|
+
readonly host: Schema.String;
|
|
121
|
+
readonly externalId: Schema.String;
|
|
122
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
123
|
+
readonly submittedAt: Schema.optionalKey<Schema.String>;
|
|
124
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
125
|
+
readonly providerState: Schema.optionalKey<Schema.String>;
|
|
126
|
+
readonly providerStatus: Schema.optionalKey<Schema.String>;
|
|
127
|
+
readonly positionCount: Schema.optionalKey<Schema.Int>;
|
|
128
|
+
readonly threadCount: Schema.optionalKey<Schema.Int>;
|
|
129
|
+
readonly noteCount: Schema.optionalKey<Schema.Int>;
|
|
130
|
+
readonly actionCount: Schema.optionalKey<Schema.Int>;
|
|
131
|
+
readonly blocking: Schema.optionalKey<Schema.Boolean>;
|
|
132
|
+
readonly resolved: Schema.optionalKey<Schema.Boolean>;
|
|
133
|
+
}>>;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly createdAt: Schema.String;
|
|
136
|
+
readonly updatedAt: Schema.String;
|
|
137
|
+
}>;
|
|
138
|
+
}>;
|
|
139
|
+
export type ChangeRequestReviewOutcome = (typeof ChangeRequestReviewOutcome)['Type'];
|
|
140
|
+
export type ChangeRequestReviewProviderActionKind = (typeof ChangeRequestReviewProviderActionKind)['Type'];
|
|
141
|
+
export type ChangeRequestReviewSafeSummary = (typeof ChangeRequestReviewSafeSummary)['Type'];
|
|
142
|
+
export type ChangeRequestReviewSafeMetadata = (typeof ChangeRequestReviewSafeMetadata)['Type'];
|
|
143
|
+
export type ChangeRequestReviewProviderActionRef = (typeof ChangeRequestReviewProviderActionRef)['Type'];
|
|
144
|
+
export type ChangeRequestReview = (typeof ChangeRequestReview)['Type'];
|
|
145
|
+
export type ChangeRequestReviewList = (typeof ChangeRequestReviewList)['Type'];
|
|
146
|
+
export type ChangeRequestReviewDetail = (typeof ChangeRequestReviewDetail)['Type'];
|