@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.
Files changed (78) hide show
  1. package/dist/build/index.js +10 -11
  2. package/dist/{chunk-72z6zbfz.js → chunk-160ww64c.js} +668 -185
  3. package/dist/{chunk-8byx9rx2.js → chunk-36jhc745.js} +195 -76
  4. package/dist/loop/index.js +43 -1
  5. package/dist/program/index.js +7 -3
  6. package/package.json +3 -1
  7. package/types/packages/core/src/agent-capabilities.d.ts +68 -74
  8. package/types/packages/core/src/agent-environment.d.ts +26 -26
  9. package/types/packages/core/src/agent-launch-snapshot.d.ts +1 -1
  10. package/types/packages/core/src/agent-sandbox-policy.d.ts +15 -0
  11. package/types/packages/core/src/approval-queue.d.ts +4 -4
  12. package/types/packages/core/src/audit.d.ts +1 -1
  13. package/types/packages/core/src/change-delivery.d.ts +1 -1
  14. package/types/packages/core/src/change-request-review.d.ts +199 -7
  15. package/types/packages/core/src/change-request.d.ts +43 -12
  16. package/types/packages/core/src/connection.d.ts +1 -1
  17. package/types/packages/core/src/context-feedback.d.ts +8 -8
  18. package/types/packages/core/src/context-pack.d.ts +8 -8
  19. package/types/packages/core/src/crypto.d.ts +5 -0
  20. package/types/packages/core/src/data-lifecycle.d.ts +12 -12
  21. package/types/packages/core/src/decision.d.ts +2 -2
  22. package/types/packages/core/src/delivery-policy.d.ts +3 -3
  23. package/types/packages/core/src/enterprise-forge.d.ts +19 -0
  24. package/types/packages/core/src/epic-delivery.d.ts +1 -1
  25. package/types/packages/core/src/external-effect.d.ts +2 -2
  26. package/types/packages/core/src/global-search.d.ts +1 -1
  27. package/types/packages/core/src/index.d.ts +8 -2
  28. package/types/packages/core/src/integration.d.ts +58 -57
  29. package/types/packages/core/src/kit.d.ts +47 -47
  30. package/types/packages/core/src/live.d.ts +684 -781
  31. package/types/packages/core/src/loop-layers.d.ts +1 -1
  32. package/types/packages/core/src/loop-version.d.ts +1 -1
  33. package/types/packages/core/src/loop.d.ts +73 -67
  34. package/types/packages/core/src/marketplace.d.ts +127 -0
  35. package/types/packages/core/src/memory.d.ts +17 -12
  36. package/types/packages/core/src/my-teams.d.ts +65 -32
  37. package/types/packages/core/src/notification.d.ts +73 -12
  38. package/types/packages/core/src/owner.d.ts +15 -0
  39. package/types/packages/core/src/package-declarations.d.ts +73 -32
  40. package/types/packages/core/src/package.d.ts +22 -22
  41. package/types/packages/core/src/personal-development-profile.d.ts +2 -2
  42. package/types/packages/core/src/proposal.d.ts +25 -25
  43. package/types/packages/core/src/redaction.d.ts +2 -1
  44. package/types/packages/core/src/repo-binding.d.ts +19 -10
  45. package/types/packages/core/src/run-display.d.ts +1 -1
  46. package/types/packages/core/src/run-file.d.ts +190 -0
  47. package/types/packages/core/src/run-launch.d.ts +7 -5
  48. package/types/packages/core/src/run.d.ts +9 -9
  49. package/types/packages/core/src/runner-eligibility.d.ts +4 -4
  50. package/types/packages/core/src/runner.d.ts +339 -111
  51. package/types/packages/core/src/schedule.d.ts +2 -2
  52. package/types/packages/core/src/scope-directory.d.ts +5 -5
  53. package/types/packages/core/src/secret.d.ts +9 -9
  54. package/types/packages/core/src/session.d.ts +2 -2
  55. package/types/packages/core/src/step-brief.d.ts +10 -3
  56. package/types/packages/core/src/storage.d.ts +49 -0
  57. package/types/packages/core/src/sync-kit.d.ts +25 -25
  58. package/types/packages/core/src/task-detail.d.ts +20 -13
  59. package/types/packages/core/src/task-execution-record.d.ts +6 -6
  60. package/types/packages/core/src/task.d.ts +52 -16
  61. package/types/packages/core/src/team-context.d.ts +33 -0
  62. package/types/packages/core/src/transcript.d.ts +230 -0
  63. package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
  64. package/types/packages/core/src/trust-panel.d.ts +27 -0
  65. package/types/packages/core/src/work-unit.d.ts +44 -18
  66. package/types/packages/core/src/workspace.d.ts +77 -6
  67. package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
  68. package/types/packages/live/src/rpc/runner-group.d.ts +623 -267
  69. package/types/packages/sdk/src/loop/activities.d.ts +208 -1
  70. package/types/packages/sdk/src/loop/config.d.ts +1 -1
  71. package/types/packages/sdk/src/loop/define.d.ts +8 -2
  72. package/types/packages/sdk/src/loop/plan.d.ts +2 -2
  73. package/types/packages/sdk/src/loop/steps.d.ts +2 -2
  74. package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
  75. package/types/packages/sdk/src/program/engine.d.ts +71 -3
  76. package/types/packages/sdk/src/program/host.d.ts +13 -1
  77. package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
  78. package/types/packages/core/src/project.d.ts +0 -66
@@ -7,7 +7,7 @@ export declare const ChangeRequestAssociationStatus: Schema.Literals<readonly ["
7
7
  export declare const ChangeRequestRoles: readonly ['primary', 'supporting', 'replacement'];
8
8
  export declare const ChangeRequestRole: Schema.Literals<readonly ["primary", "supporting", "replacement"]>;
9
9
  export declare const ChangeRequestProviderRef: Schema.Struct<{
10
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
10
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
11
11
  readonly host: Schema.String;
12
12
  readonly owner: Schema.String;
13
13
  readonly repositoryName: Schema.String;
@@ -34,12 +34,12 @@ export declare const ChangeRequestProviderMetadata: Schema.Struct<{
34
34
  export declare const ChangeRequest: Schema.Struct<{
35
35
  readonly id: Schema.String;
36
36
  readonly workspaceId: Schema.String;
37
- readonly projectId: Schema.String;
37
+ readonly teamId: Schema.optionalKey<Schema.String>;
38
38
  readonly taskId: Schema.String;
39
39
  readonly role: Schema.Literals<readonly ["primary", "supporting", "replacement"]>;
40
40
  readonly stepAttemptId: Schema.optionalKey<Schema.String>;
41
41
  readonly repoBindingId: Schema.String;
42
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
42
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
43
43
  readonly host: Schema.String;
44
44
  readonly owner: Schema.String;
45
45
  readonly repositoryName: Schema.String;
@@ -79,12 +79,12 @@ export declare const ChangeRequestList: Schema.Struct<{
79
79
  readonly items: Schema.$Array<Schema.Struct<{
80
80
  readonly id: Schema.String;
81
81
  readonly workspaceId: Schema.String;
82
- readonly projectId: Schema.String;
82
+ readonly teamId: Schema.optionalKey<Schema.String>;
83
83
  readonly taskId: Schema.String;
84
84
  readonly role: Schema.Literals<readonly ["primary", "supporting", "replacement"]>;
85
85
  readonly stepAttemptId: Schema.optionalKey<Schema.String>;
86
86
  readonly repoBindingId: Schema.String;
87
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
87
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
88
88
  readonly host: Schema.String;
89
89
  readonly owner: Schema.String;
90
90
  readonly repositoryName: Schema.String;
@@ -126,12 +126,12 @@ export declare const ChangeRequestDetail: Schema.Struct<{
126
126
  readonly changeRequest: Schema.Struct<{
127
127
  readonly id: Schema.String;
128
128
  readonly workspaceId: Schema.String;
129
- readonly projectId: Schema.String;
129
+ readonly teamId: Schema.optionalKey<Schema.String>;
130
130
  readonly taskId: Schema.String;
131
131
  readonly role: Schema.Literals<readonly ["primary", "supporting", "replacement"]>;
132
132
  readonly stepAttemptId: Schema.optionalKey<Schema.String>;
133
133
  readonly repoBindingId: Schema.String;
134
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
134
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
135
135
  readonly host: Schema.String;
136
136
  readonly owner: Schema.String;
137
137
  readonly repositoryName: Schema.String;
@@ -168,16 +168,47 @@ export declare const ChangeRequestDetail: Schema.Struct<{
168
168
  readonly updatedAt: Schema.String;
169
169
  }>;
170
170
  }>;
171
+ /** A file a ChangeRequest changes, as its forge reports it; Kitman stores none of it. */
172
+ export declare const ChangeRequestChangedFile: Schema.Struct<{
173
+ readonly path: Schema.String;
174
+ readonly previousPath: Schema.optionalKey<Schema.String>;
175
+ readonly status: Schema.Literals<readonly ["added", "modified", "removed", "renamed", "copied", "changed"]>;
176
+ readonly additions: Schema.optionalKey<Schema.Int>;
177
+ readonly deletions: Schema.optionalKey<Schema.Int>;
178
+ readonly patch: Schema.optionalKey<Schema.String>;
179
+ /** `omitted` when the forge sent no patch, `truncated` when Kitman cut it short. */
180
+ readonly patchState: Schema.Literals<readonly ["shown", "omitted", "truncated", "binary"]>;
181
+ }>;
182
+ export declare const ChangeRequestFiles: Schema.Struct<{
183
+ /** The forge's name, for "Open on GitLab". */
184
+ readonly forge: Schema.String;
185
+ readonly url: Schema.String;
186
+ /** Absent when the forge cannot list them or the read failed: the list is on the forge. */
187
+ readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
188
+ readonly path: Schema.String;
189
+ readonly previousPath: Schema.optionalKey<Schema.String>;
190
+ readonly status: Schema.Literals<readonly ["added", "modified", "removed", "renamed", "copied", "changed"]>;
191
+ readonly additions: Schema.optionalKey<Schema.Int>;
192
+ readonly deletions: Schema.optionalKey<Schema.Int>;
193
+ readonly patch: Schema.optionalKey<Schema.String>;
194
+ /** `omitted` when the forge sent no patch, `truncated` when Kitman cut it short. */
195
+ readonly patchState: Schema.Literals<readonly ["shown", "omitted", "truncated", "binary"]>;
196
+ }>>>;
197
+ /** The ChangeRequest changes more files than Kitman lists. */
198
+ readonly more: Schema.optionalKey<Schema.Boolean>;
199
+ }>;
200
+ export type ChangeRequestChangedFile = (typeof ChangeRequestChangedFile)['Type'];
201
+ export type ChangeRequestFiles = (typeof ChangeRequestFiles)['Type'];
171
202
  export declare const ChangeRequestAssociationPreview: Schema.Struct<{
172
203
  readonly changeRequest: Schema.Struct<{
173
204
  readonly id: Schema.String;
174
205
  readonly workspaceId: Schema.String;
175
- readonly projectId: Schema.String;
206
+ readonly teamId: Schema.optionalKey<Schema.String>;
176
207
  readonly taskId: Schema.String;
177
208
  readonly role: Schema.Literals<readonly ["primary", "supporting", "replacement"]>;
178
209
  readonly stepAttemptId: Schema.optionalKey<Schema.String>;
179
210
  readonly repoBindingId: Schema.String;
180
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
211
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
181
212
  readonly host: Schema.String;
182
213
  readonly owner: Schema.String;
183
214
  readonly repositoryName: Schema.String;
@@ -231,7 +262,7 @@ export declare const ChangeRequestAssociationMutation: Schema.Union<readonly [Sc
231
262
  export declare const ChangeRequestAssociationConflict: Schema.Struct<{
232
263
  readonly id: Schema.String;
233
264
  readonly workspaceId: Schema.String;
234
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
265
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
235
266
  readonly host: Schema.String;
236
267
  readonly owner: Schema.String;
237
268
  readonly repositoryName: Schema.String;
@@ -269,7 +300,7 @@ export declare const ChangeRequestAssociationConflictList: Schema.Struct<{
269
300
  readonly items: Schema.$Array<Schema.Struct<{
270
301
  readonly id: Schema.String;
271
302
  readonly workspaceId: Schema.String;
272
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
303
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
273
304
  readonly host: Schema.String;
274
305
  readonly owner: Schema.String;
275
306
  readonly repositoryName: Schema.String;
@@ -308,7 +339,7 @@ export declare const ChangeRequestAssociationConflictPreview: Schema.Struct<{
308
339
  readonly conflict: Schema.Struct<{
309
340
  readonly id: Schema.String;
310
341
  readonly workspaceId: Schema.String;
311
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
342
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
312
343
  readonly host: Schema.String;
313
344
  readonly owner: Schema.String;
314
345
  readonly repositoryName: Schema.String;
@@ -2,7 +2,7 @@ import * as Schema from 'effect/Schema';
2
2
  export declare const Connection: Schema.Struct<{
3
3
  readonly id: Schema.String;
4
4
  readonly workspaceId: Schema.String;
5
- readonly projectId: Schema.optionalKey<Schema.String>;
5
+ readonly teamId: Schema.optionalKey<Schema.String>;
6
6
  readonly owner: Schema.Struct<{
7
7
  readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
8
8
  readonly actorId: Schema.String;
@@ -1,5 +1,5 @@
1
1
  import * as Schema from 'effect/Schema';
2
- export declare const ContextRelevanceFeedbackProposalTargetTypes: readonly ['memory', 'kit', 'decision', 'agent_environment_policy', 'project_context', 'context_relevance'];
2
+ export declare const ContextRelevanceFeedbackProposalTargetTypes: readonly ['memory', 'kit', 'decision', 'agent_environment_policy', 'team_context', 'context_relevance'];
3
3
  export declare const ContextRelevanceFeedbackKind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
4
4
  export declare const ContextRelevanceFeedbackCreate: Schema.Struct<{
5
5
  readonly kind: Schema.Literals<readonly ["missing_context", "irrelevant_context", "stale_context", "useful_context"]>;
@@ -11,7 +11,7 @@ export declare const ContextRelevanceFeedbackCreate: Schema.Struct<{
11
11
  readonly content: Schema.String;
12
12
  readonly evidence: Schema.optionalKey<Schema.String>;
13
13
  readonly proposalCandidate: Schema.optionalKey<Schema.Struct<{
14
- readonly targetType: Schema.Literals<readonly ["memory", "kit", "decision", "agent_environment_policy", "project_context", "context_relevance"]>;
14
+ readonly targetType: Schema.Literals<readonly ["memory", "kit", "decision", "agent_environment_policy", "team_context", "context_relevance"]>;
15
15
  readonly title: Schema.String;
16
16
  readonly summary: Schema.String;
17
17
  readonly suggestedChange: Schema.String;
@@ -21,7 +21,7 @@ export declare const ContextRelevanceFeedbackCreate: Schema.Struct<{
21
21
  export declare const ContextRelevanceFeedback: Schema.Struct<{
22
22
  readonly id: Schema.String;
23
23
  readonly workspaceId: Schema.String;
24
- readonly projectId: Schema.optionalKey<Schema.String>;
24
+ readonly teamId: Schema.optionalKey<Schema.String>;
25
25
  readonly taskId: Schema.String;
26
26
  readonly contextPackId: Schema.String;
27
27
  readonly sessionId: Schema.optionalKey<Schema.String>;
@@ -40,7 +40,7 @@ export declare const ContextRelevanceFeedbackCreateResult: Schema.Struct<{
40
40
  readonly feedback: Schema.Struct<{
41
41
  readonly id: Schema.String;
42
42
  readonly workspaceId: Schema.String;
43
- readonly projectId: Schema.optionalKey<Schema.String>;
43
+ readonly teamId: Schema.optionalKey<Schema.String>;
44
44
  readonly taskId: Schema.String;
45
45
  readonly contextPackId: Schema.String;
46
46
  readonly sessionId: Schema.optionalKey<Schema.String>;
@@ -58,12 +58,12 @@ export declare const ContextRelevanceFeedbackCreateResult: Schema.Struct<{
58
58
  readonly proposal: Schema.optionalKey<Schema.Struct<{
59
59
  readonly id: Schema.String;
60
60
  readonly workspaceId: Schema.String;
61
- readonly projectId: Schema.optionalKey<Schema.String>;
61
+ readonly teamId: Schema.optionalKey<Schema.String>;
62
62
  readonly taskId: Schema.optionalKey<Schema.String>;
63
63
  readonly target: Schema.Struct<{
64
- readonly type: Schema.Literals<readonly ["memory", "kit", "agent_environment_policy", "decision", "task", "project_context", "context_relevance", "kit_source", "kit_version", "kit_installation", "kit_activation", "kit_trust_policy"]>;
64
+ 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"]>;
65
65
  readonly id: Schema.optionalKey<Schema.String>;
66
- readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
66
+ readonly scopeType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"kit">]>>;
67
67
  readonly scopeId: Schema.optionalKey<Schema.String>;
68
68
  }>;
69
69
  readonly title: Schema.String;
@@ -71,7 +71,7 @@ export declare const ContextRelevanceFeedbackCreateResult: Schema.Struct<{
71
71
  readonly status: Schema.Literals<readonly ["proposed", "in_review", "approved", "rejected", "applied", "reverted", "superseded", "canceled"]>;
72
72
  readonly riskLevel: Schema.Literals<readonly ["low", "medium", "high"]>;
73
73
  readonly approvalPolicy: Schema.Struct<{
74
- readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_project_member", "require_workspace_owner_or_admin"]>;
74
+ readonly mode: Schema.Literals<readonly ["auto_approve_low_risk", "require_other_team_member", "require_workspace_owner_or_admin"]>;
75
75
  readonly requireDifferentApprover: Schema.optionalKey<Schema.Boolean>;
76
76
  readonly autonomousAgentApprovalAllowed: Schema.Literal<false>;
77
77
  readonly deniedViolationCodes: Schema.$Array<Schema.Literals<readonly ["autonomous_self_approval", "self_capability_escalation", "missing_required_approval", "unsafe_payload", "target_conflict"]>>;
@@ -1,6 +1,6 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  export declare const ContextPackModes: readonly ['planning', 'implementation', 'debugging', 'review', 'handoff'];
3
- export declare const ContextPackIndexEntryKinds: readonly ['task', 'project', 'kit', 'memory', 'decision', 'session', 'session_update', 'proposal', 'task_dependency', 'repo_binding', 'agent_environment', 'loop_step'];
3
+ export declare const ContextPackIndexEntryKinds: readonly ['task', 'team', 'kit', 'memory', 'decision', 'session', 'session_update', 'proposal', 'task_dependency', 'repo_binding', 'agent_environment', 'loop_step'];
4
4
  export declare const ContextPackRetrievalRefKinds: readonly ['kit', 'memory', 'decision', 'session', 'session_update', 'proposal', 'task_dependency', 'repo_binding', 'agent_environment', 'loop_step'];
5
5
  export declare const DefaultContextPackMode = "implementation";
6
6
  export declare const ContextPackMode: Schema.Union<readonly [Schema.Literal<"planning">, Schema.Literal<"implementation">, Schema.Literal<"debugging">, Schema.Literal<"review">, Schema.Literal<"handoff">]>;
@@ -8,11 +8,11 @@ export declare const ContextPackRetrievalRefKind: Schema.Literals<readonly ["kit
8
8
  export declare const ContextPackLaunchBrief: Schema.Struct<{
9
9
  readonly mode: Schema.Union<readonly [Schema.Literal<"planning">, Schema.Literal<"implementation">, Schema.Literal<"debugging">, Schema.Literal<"review">, Schema.Literal<"handoff">]>;
10
10
  readonly taskTitle: Schema.String;
11
- readonly projectName: Schema.optionalKey<Schema.String>;
11
+ readonly teamName: Schema.optionalKey<Schema.String>;
12
12
  readonly summary: Schema.String;
13
13
  }>;
14
14
  export declare const ContextPackIndexEntry: Schema.Struct<{
15
- readonly kind: Schema.Literals<readonly ["task", "project", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
15
+ readonly kind: Schema.Literals<readonly ["task", "team", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
16
16
  readonly id: Schema.String;
17
17
  readonly title: Schema.String;
18
18
  readonly reason: Schema.String;
@@ -46,18 +46,18 @@ export declare const ContextPackBudget: Schema.Struct<{
46
46
  export declare const ContextPack: Schema.Struct<{
47
47
  readonly contextPackId: Schema.String;
48
48
  readonly workspaceId: Schema.String;
49
- readonly projectId: Schema.optionalKey<Schema.String>;
49
+ readonly teamId: Schema.optionalKey<Schema.String>;
50
50
  readonly taskId: Schema.String;
51
51
  readonly mode: Schema.Union<readonly [Schema.Literal<"planning">, Schema.Literal<"implementation">, Schema.Literal<"debugging">, Schema.Literal<"review">, Schema.Literal<"handoff">]>;
52
52
  readonly contentMarkdown: Schema.String;
53
53
  readonly launchBrief: Schema.Struct<{
54
54
  readonly mode: Schema.Union<readonly [Schema.Literal<"planning">, Schema.Literal<"implementation">, Schema.Literal<"debugging">, Schema.Literal<"review">, Schema.Literal<"handoff">]>;
55
55
  readonly taskTitle: Schema.String;
56
- readonly projectName: Schema.optionalKey<Schema.String>;
56
+ readonly teamName: Schema.optionalKey<Schema.String>;
57
57
  readonly summary: Schema.String;
58
58
  }>;
59
59
  readonly contextIndex: Schema.$Array<Schema.Struct<{
60
- readonly kind: Schema.Literals<readonly ["task", "project", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
60
+ readonly kind: Schema.Literals<readonly ["task", "team", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
61
61
  readonly id: Schema.String;
62
62
  readonly title: Schema.String;
63
63
  readonly reason: Schema.String;
@@ -109,11 +109,11 @@ export declare const ContextPackResult: Schema.Struct<{
109
109
  readonly launchBrief: Schema.optionalKey<Schema.Struct<{
110
110
  readonly mode: Schema.Union<readonly [Schema.Literal<"planning">, Schema.Literal<"implementation">, Schema.Literal<"debugging">, Schema.Literal<"review">, Schema.Literal<"handoff">]>;
111
111
  readonly taskTitle: Schema.String;
112
- readonly projectName: Schema.optionalKey<Schema.String>;
112
+ readonly teamName: Schema.optionalKey<Schema.String>;
113
113
  readonly summary: Schema.String;
114
114
  }>>;
115
115
  readonly contextIndex: Schema.optionalKey<Schema.$Array<Schema.Struct<{
116
- readonly kind: Schema.Literals<readonly ["task", "project", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
116
+ readonly kind: Schema.Literals<readonly ["task", "team", "kit", "memory", "decision", "session", "session_update", "proposal", "task_dependency", "repo_binding", "agent_environment", "loop_step"]>;
117
117
  readonly id: Schema.String;
118
118
  readonly title: Schema.String;
119
119
  readonly reason: Schema.String;
@@ -8,4 +8,9 @@ export declare function timingSafeEqualBytes(left: Uint8Array, right: Uint8Array
8
8
  export declare function timingSafeEqualText(left: string, right: string): boolean;
9
9
  export declare function rsaSha256Signature(privateKey: string, data: string): string;
10
10
  export declare function randomBase64Url(byteLength: number): string;
11
+ /** A SHA-256 fed in chunks, for content too large to hold at once. */
12
+ export declare function sha256Hasher(): {
13
+ update: (data: Data) => void;
14
+ digest: (encoding: Encoding) => string;
15
+ };
11
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as Schema from 'effect/Schema';
2
- declare const DataLifecycleSubjectKinds: readonly ['workspace', 'project', 'task', 'runner', 'runner_replica'];
2
+ declare const DataLifecycleSubjectKinds: readonly ['workspace', 'team', 'task', 'runner', 'runner_replica'];
3
3
  export type DataLifecycleSubjectKind = (typeof DataLifecycleSubjectKinds)[number];
4
4
  export declare const DataLifecycleStates: readonly ['active', 'requested', 'draining', 'export_evaluated', 'erased', 'tombstoned', 'blocked_by_hold', 'residue_unknown', 'rejected', 'canceled'];
5
5
  export type DataLifecycleState = (typeof DataLifecycleStates)[number];
@@ -11,7 +11,7 @@ declare const DataLifecycleCaseHoldStatuses: readonly ['none', 'active', 'releas
11
11
  export type DataLifecycleCaseHoldStatus = (typeof DataLifecycleCaseHoldStatuses)[number];
12
12
  declare const DataLifecycleResidueDispositions: readonly ['deleted', 'quarantined', 'retained_until', 'unknown'];
13
13
  export type DataLifecycleResidueDisposition = (typeof DataLifecycleResidueDispositions)[number];
14
- export declare const DataLifecycleSubjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
14
+ export declare const DataLifecycleSubjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
15
15
  export declare const DataLifecycleState: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"requested">, Schema.Literal<"draining">, Schema.Literal<"export_evaluated">, Schema.Literal<"erased">, Schema.Literal<"tombstoned">, Schema.Literal<"blocked_by_hold">, Schema.Literal<"residue_unknown">, Schema.Literal<"rejected">, Schema.Literal<"canceled">]>;
16
16
  export declare const DataLifecycleDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
17
17
  export declare const DataLifecycleHoldStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"released">, Schema.Literal<"superseded">]>;
@@ -20,10 +20,10 @@ export declare const DataLifecycleResidueDisposition: Schema.Union<readonly [Sch
20
20
  export declare const DataLifecycleCase: Schema.Struct<{
21
21
  readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
22
22
  readonly id: Schema.String;
23
- readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
23
+ readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
24
24
  readonly subjectId: Schema.String;
25
25
  readonly workspaceId: Schema.String;
26
- readonly projectId: Schema.optionalKey<Schema.String>;
26
+ readonly teamId: Schema.optionalKey<Schema.String>;
27
27
  readonly requestedDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
28
28
  readonly policyDigest: Schema.String;
29
29
  readonly state: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"requested">, Schema.Literal<"draining">, Schema.Literal<"export_evaluated">, Schema.Literal<"erased">, Schema.Literal<"tombstoned">, Schema.Literal<"blocked_by_hold">, Schema.Literal<"residue_unknown">, Schema.Literal<"rejected">, Schema.Literal<"canceled">]>;
@@ -44,10 +44,10 @@ export declare const DataLifecycleCase: Schema.Struct<{
44
44
  }>;
45
45
  export type DataLifecycleCase = (typeof DataLifecycleCase)['Type'];
46
46
  export declare const DataLifecycleRequest: Schema.Struct<{
47
- readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
47
+ readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
48
48
  readonly subjectId: Schema.String;
49
49
  readonly workspaceId: Schema.String;
50
- readonly projectId: Schema.optionalKey<Schema.String>;
50
+ readonly teamId: Schema.optionalKey<Schema.String>;
51
51
  readonly requestedDisposition: Schema.Union<readonly [Schema.Literal<"retain">, Schema.Literal<"erase">, Schema.Literal<"tombstone">]>;
52
52
  readonly policyDigest: Schema.String;
53
53
  readonly reasonClass: Schema.String;
@@ -55,7 +55,7 @@ export declare const DataLifecycleRequest: Schema.Struct<{
55
55
  }>;
56
56
  export type DataLifecycleRequest = (typeof DataLifecycleRequest)['Type'];
57
57
  export declare const DataLifecycleHoldRequest: Schema.Struct<{
58
- readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
58
+ readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
59
59
  readonly scopeRef: Schema.String;
60
60
  readonly categories: Schema.$Array<Schema.String>;
61
61
  readonly authorityRef: Schema.String;
@@ -68,7 +68,7 @@ export declare const DataLifecycleHold: Schema.Struct<{
68
68
  readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
69
69
  readonly id: Schema.String;
70
70
  readonly caseId: Schema.String;
71
- readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
71
+ readonly scopeKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
72
72
  readonly scopeRef: Schema.String;
73
73
  readonly categories: Schema.$Array<Schema.String>;
74
74
  readonly authorityRef: Schema.String;
@@ -89,7 +89,7 @@ export declare const DataLifecycleExportManifest: Schema.Struct<{
89
89
  readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
90
90
  readonly id: Schema.String;
91
91
  readonly caseId: Schema.String;
92
- readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
92
+ readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
93
93
  readonly subjectId: Schema.String;
94
94
  readonly workspaceId: Schema.String;
95
95
  readonly policyDigest: Schema.String;
@@ -162,10 +162,10 @@ export declare const DataLifecycleTombstone: Schema.Struct<{
162
162
  readonly contractVersion: Schema.Literal<"data-lifecycle.v1">;
163
163
  readonly id: Schema.String;
164
164
  readonly caseId: Schema.String;
165
- readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
165
+ readonly subjectKind: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"task">, Schema.Literal<"runner">, Schema.Literal<"runner_replica">]>;
166
166
  readonly subjectId: Schema.String;
167
167
  readonly workspaceId: Schema.String;
168
- readonly projectId: Schema.optionalKey<Schema.String>;
168
+ readonly teamId: Schema.optionalKey<Schema.String>;
169
169
  readonly taskId: Schema.optionalKey<Schema.String>;
170
170
  readonly priorSafeDigest: Schema.optionalKey<Schema.String>;
171
171
  readonly finalRedactionEpoch: Schema.Int;
@@ -185,7 +185,7 @@ export declare function lifecycleRequestDigest(input: {
185
185
  readonly subjectKind: DataLifecycleSubjectKind;
186
186
  readonly subjectId: string;
187
187
  readonly workspaceId: string;
188
- readonly projectId?: string;
188
+ readonly teamId?: string;
189
189
  readonly requestedDisposition: DataLifecycleDisposition;
190
190
  readonly policyDigest: string;
191
191
  readonly reasonClass: string;
@@ -2,7 +2,7 @@ import * as Schema from 'effect/Schema';
2
2
  export declare const DecisionStatuses: readonly ['active', 'superseded', 'deprecated'];
3
3
  export declare const DecisionChangeOperations: readonly ['create', 'update', 'supersede', 'deprecate'];
4
4
  export declare const DecisionStatus: Schema.Literals<readonly ["active", "superseded", "deprecated"]>;
5
- export declare const DecisionScopeType: Schema.Literals<readonly ["workspace", "project", "task", "kit"]>;
5
+ export declare const DecisionScopeType: Schema.Literals<readonly ["workspace", "team", "task", "kit"]>;
6
6
  export declare const DecisionContent: Schema.Struct<{
7
7
  readonly title: Schema.String;
8
8
  readonly decision: Schema.String;
@@ -13,7 +13,7 @@ export declare const DecisionContent: Schema.Struct<{
13
13
  export declare const Decision: Schema.Struct<{
14
14
  readonly id: Schema.String;
15
15
  readonly workspaceId: Schema.String;
16
- readonly scopeType: Schema.Literals<readonly ["workspace", "project", "task", "kit"]>;
16
+ readonly scopeType: Schema.Literals<readonly ["workspace", "team", "task", "kit"]>;
17
17
  readonly scopeId: Schema.String;
18
18
  readonly title: Schema.String;
19
19
  readonly status: Schema.Literals<readonly ["active", "superseded", "deprecated"]>;
@@ -59,7 +59,7 @@ export interface DeliveryPolicy {
59
59
  readonly version: number;
60
60
  readonly digest: DeliveryDigest;
61
61
  readonly workspaceId: string;
62
- readonly projectId?: string;
62
+ readonly teamId?: string;
63
63
  readonly repoBindingId: string;
64
64
  readonly epicTaskId: string;
65
65
  readonly childTaskId?: string;
@@ -91,7 +91,7 @@ export interface DeliveryPolicyDraft extends Omit<DeliveryPolicy, 'digest'> {
91
91
  export interface DeliveryAttempt {
92
92
  readonly id: string;
93
93
  readonly workspaceId: string;
94
- readonly projectId: string;
94
+ readonly teamId: string;
95
95
  readonly taskId: string;
96
96
  readonly deliveryId: string;
97
97
  readonly workUnitId: string;
@@ -121,7 +121,7 @@ export interface DeliveryChangeRequest {
121
121
  readonly id: string;
122
122
  readonly deliveryAttemptId: string;
123
123
  readonly workspaceId: string;
124
- readonly projectId?: string;
124
+ readonly teamId?: string;
125
125
  readonly taskId: string;
126
126
  readonly repoBindingId: string;
127
127
  readonly provider: RepoBindingProvider;
@@ -0,0 +1,19 @@
1
+ import { type ForgeCapability } from './integration';
2
+ import type { ForgeKind } from './repo-binding';
3
+ type EnterpriseForgeSetup = {
4
+ readonly provider: ForgeKind;
5
+ readonly host: string;
6
+ readonly tls?: {
7
+ readonly customCaRef?: string;
8
+ };
9
+ readonly capabilities: readonly ForgeCapability[];
10
+ };
11
+ type EnterpriseSupportEvidence = {
12
+ readonly provider: ForgeKind;
13
+ readonly host: string;
14
+ readonly capability: ForgeCapability;
15
+ readonly support: 'certified' | 'detected' | 'unsupported';
16
+ readonly evidenceDigest: string;
17
+ };
18
+ export declare function certifyEnterpriseForgeSetup(setup: EnterpriseForgeSetup): readonly EnterpriseSupportEvidence[];
19
+ export {};
@@ -14,7 +14,7 @@ export interface DeliveryWorkUnitFence {
14
14
  export interface EpicDeliveryWriterLease {
15
15
  readonly key: string;
16
16
  readonly workspaceId: string;
17
- readonly projectId: string;
17
+ readonly teamId: string;
18
18
  readonly epicTaskId: string;
19
19
  readonly repoBindingId: string;
20
20
  readonly provider: DeliveryPolicy['repositoryIdentity']['provider'];
@@ -98,7 +98,7 @@ export interface ExternalEffectOutcome {
98
98
  export interface ExternalEffect {
99
99
  readonly id: string;
100
100
  readonly workspaceId: string;
101
- readonly projectId: string | null;
101
+ readonly teamId: string | null;
102
102
  readonly rootRunId: string;
103
103
  readonly runId: string;
104
104
  readonly workUnitId: string;
@@ -136,7 +136,7 @@ export interface ExternalEffect {
136
136
  export interface EffectIntent {
137
137
  readonly id: string;
138
138
  readonly workspaceId: string;
139
- readonly projectId: string | null;
139
+ readonly teamId: string | null;
140
140
  readonly kind: EffectIntentKind;
141
141
  readonly intentKey: string;
142
142
  readonly payloadDigest: string;
@@ -18,7 +18,7 @@ export type GlobalSearchItem = (typeof GlobalSearchItem)['Type'];
18
18
  export declare const GlobalSearchPage: Schema.Struct<{
19
19
  readonly scope: Schema.Struct<{
20
20
  readonly workspaceId: Schema.String;
21
- readonly projectId: Schema.String;
21
+ readonly teamId: Schema.String;
22
22
  }>;
23
23
  readonly query: Schema.String;
24
24
  readonly items: Schema.$Array<Schema.Struct<{
@@ -3,7 +3,8 @@ export * from './connection';
3
3
  export * from './provider-safe-text';
4
4
  export * from './me';
5
5
  export * from './workspace';
6
- export * from './project';
6
+ export * from './team-context';
7
+ export * from './owner';
7
8
  export * from './scope-directory';
8
9
  export * from './agent-environment';
9
10
  export * from './extension';
@@ -11,6 +12,7 @@ export * from './sync-kit';
11
12
  export * from './agent-sandbox-policy';
12
13
  export * from './agent-launch-snapshot';
13
14
  export * from './kit';
15
+ export * from './marketplace';
14
16
  export * from './memory';
15
17
  export * from './proposal';
16
18
  export * from './decision';
@@ -43,8 +45,10 @@ export * from './gitlab-delivery-fixtures';
43
45
  export * from './github-delivery';
44
46
  export * from './github-delivery-fixtures';
45
47
  export * from './integration';
46
- export * from './enterprise-code-host';
48
+ export * from './enterprise-forge';
47
49
  export * from './loop';
50
+ export * from './run-file';
51
+ export * from './storage';
48
52
  export * from './run-launch';
49
53
  export * from './my-teams';
50
54
  export * from './notification';
@@ -62,12 +66,14 @@ export * from './task-execution-record';
62
66
  export * from './a2a';
63
67
  export * from './audit';
64
68
  export * from './redaction';
69
+ export * from './transcript';
65
70
  export * from './observability';
66
71
  export * from './following';
67
72
  export * from './approval-queue';
68
73
  export * from './data-lifecycle';
69
74
  export * from './run-display';
70
75
  export * from './run-graph';
76
+ export * from './trust-panel';
71
77
  export * from './run-journal';
72
78
  export * from './loop-layers';
73
79
  export * from './package-declarations';