@kitman-sh/sdk 0.7.4 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/build/index.js +10 -11
  2. package/dist/{chunk-p8v1smcg.js → chunk-160ww64c.js} +668 -185
  3. package/dist/{chunk-7jc5y0mj.js → chunk-36jhc745.js} +285 -83
  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 +10 -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 +694 -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 +488 -86
  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 +238 -40
  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 +97 -31
  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 +12 -0
  46. package/types/packages/core/src/run-file.d.ts +190 -0
  47. package/types/packages/core/src/run-graph.d.ts +67 -0
  48. package/types/packages/core/src/run-launch.d.ts +7 -5
  49. package/types/packages/core/src/run.d.ts +9 -9
  50. package/types/packages/core/src/runner-eligibility.d.ts +4 -4
  51. package/types/packages/core/src/runner.d.ts +339 -111
  52. package/types/packages/core/src/schedule.d.ts +2 -2
  53. package/types/packages/core/src/scope-directory.d.ts +5 -5
  54. package/types/packages/core/src/secret.d.ts +9 -9
  55. package/types/packages/core/src/session.d.ts +2 -2
  56. package/types/packages/core/src/step-brief.d.ts +10 -3
  57. package/types/packages/core/src/storage.d.ts +49 -0
  58. package/types/packages/core/src/sync-kit.d.ts +25 -25
  59. package/types/packages/core/src/task-detail.d.ts +20 -13
  60. package/types/packages/core/src/task-execution-record.d.ts +6 -6
  61. package/types/packages/core/src/task.d.ts +52 -16
  62. package/types/packages/core/src/team-context.d.ts +33 -0
  63. package/types/packages/core/src/transcript.d.ts +230 -0
  64. package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
  65. package/types/packages/core/src/trust-panel.d.ts +27 -0
  66. package/types/packages/core/src/work-unit.d.ts +44 -18
  67. package/types/packages/core/src/workspace.d.ts +77 -6
  68. package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
  69. package/types/packages/live/src/rpc/runner-group.d.ts +597 -241
  70. package/types/packages/sdk/src/loop/activities.d.ts +208 -1
  71. package/types/packages/sdk/src/loop/config.d.ts +1 -1
  72. package/types/packages/sdk/src/loop/define.d.ts +8 -2
  73. package/types/packages/sdk/src/loop/plan.d.ts +2 -2
  74. package/types/packages/sdk/src/loop/steps.d.ts +2 -2
  75. package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
  76. package/types/packages/sdk/src/program/engine.d.ts +71 -3
  77. package/types/packages/sdk/src/program/host.d.ts +13 -1
  78. package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
  79. package/types/packages/core/src/project.d.ts +0 -66
@@ -1,6 +1,6 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import type { WorkspaceNotificationPreferences } from './workspace';
3
- export declare const NotificationKinds: readonly ['question_waiting', 'run_failed', 'review_ready', 'no_runner', 'proposal_waiting', 'assigned', 'mentioned', 'commented', 'state_changed', 'run_finished', 'drift_unresolved', 'run_progress', 'change_request_update', 'start_blocked'];
3
+ export declare const NotificationKinds: readonly ['question_waiting', 'run_failed', 'review_ready', 'no_runner', 'proposal_waiting', 'approval_waiting', 'assigned', 'mentioned', 'commented', 'state_changed', 'run_finished', 'drift_unresolved', 'run_progress', 'change_request_update', 'start_blocked', 'update_drafted', 'runner_problem'];
4
4
  export type NotificationKind = (typeof NotificationKinds)[number];
5
5
  /** The facts a Notification's fixed templates render; never Outputs, transcripts, source or secrets. */
6
6
  export declare const NotificationPayload: Schema.Struct<{
@@ -8,6 +8,9 @@ export declare const NotificationPayload: Schema.Struct<{
8
8
  readonly taskTitle: Schema.optionalKey<Schema.String>;
9
9
  readonly loopTitle: Schema.optionalKey<Schema.String>;
10
10
  readonly proposalTitle: Schema.optionalKey<Schema.String>;
11
+ /** The Code Mode operation a hosted MCP approval waits on. */
12
+ readonly toolName: Schema.optionalKey<Schema.String>;
13
+ readonly workspaceName: Schema.optionalKey<Schema.String>;
11
14
  /** The Question's name, the Run's status, or the drifted constraint. */
12
15
  readonly cause: Schema.optionalKey<Schema.String>;
13
16
  /** The state a Task moved to. */
@@ -15,19 +18,31 @@ export declare const NotificationPayload: Schema.Struct<{
15
18
  readonly changeRequestUrl: Schema.optionalKey<Schema.String>;
16
19
  /** What a Run needs that Kitman could not choose, such as its Loop or repository. */
17
20
  readonly missing: Schema.optionalKey<Schema.$Array<Schema.String>>;
21
+ readonly projectId: Schema.optionalKey<Schema.String>;
22
+ readonly projectName: Schema.optionalKey<Schema.String>;
23
+ /** What a drafted Project Update was written from, since the Update before it. */
24
+ readonly writtenFrom: Schema.optionalKey<Schema.Struct<{
25
+ readonly runs: Schema.Int;
26
+ readonly taskChanges: Schema.Int;
27
+ readonly since: Schema.optionalKey<Schema.String>;
28
+ }>>;
29
+ readonly runnerName: Schema.optionalKey<Schema.String>;
30
+ /** A Runner Problem and the one command or action that fixes it. */
31
+ readonly problem: Schema.optionalKey<Schema.String>;
32
+ readonly fix: Schema.optionalKey<Schema.String>;
18
33
  }>;
19
34
  export type NotificationPayload = (typeof NotificationPayload)['Type'];
20
35
  export declare const NotificationSubject: Schema.Struct<{
21
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
36
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
22
37
  readonly id: Schema.String;
23
38
  }>;
24
39
  export declare const Notification: Schema.Struct<{
25
40
  readonly id: Schema.String;
26
41
  readonly workspaceId: Schema.String;
27
42
  readonly recipientUserId: Schema.String;
28
- readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked"]>;
43
+ readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "approval_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked", "update_drafted", "runner_problem"]>;
29
44
  readonly subject: Schema.Struct<{
30
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
45
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
31
46
  readonly id: Schema.String;
32
47
  }>;
33
48
  /** Empty when Kitman acted. */
@@ -38,6 +53,9 @@ export declare const Notification: Schema.Struct<{
38
53
  readonly taskTitle: Schema.optionalKey<Schema.String>;
39
54
  readonly loopTitle: Schema.optionalKey<Schema.String>;
40
55
  readonly proposalTitle: Schema.optionalKey<Schema.String>;
56
+ /** The Code Mode operation a hosted MCP approval waits on. */
57
+ readonly toolName: Schema.optionalKey<Schema.String>;
58
+ readonly workspaceName: Schema.optionalKey<Schema.String>;
41
59
  /** The Question's name, the Run's status, or the drifted constraint. */
42
60
  readonly cause: Schema.optionalKey<Schema.String>;
43
61
  /** The state a Task moved to. */
@@ -45,6 +63,18 @@ export declare const Notification: Schema.Struct<{
45
63
  readonly changeRequestUrl: Schema.optionalKey<Schema.String>;
46
64
  /** What a Run needs that Kitman could not choose, such as its Loop or repository. */
47
65
  readonly missing: Schema.optionalKey<Schema.$Array<Schema.String>>;
66
+ readonly projectId: Schema.optionalKey<Schema.String>;
67
+ readonly projectName: Schema.optionalKey<Schema.String>;
68
+ /** What a drafted Project Update was written from, since the Update before it. */
69
+ readonly writtenFrom: Schema.optionalKey<Schema.Struct<{
70
+ readonly runs: Schema.Int;
71
+ readonly taskChanges: Schema.Int;
72
+ readonly since: Schema.optionalKey<Schema.String>;
73
+ }>>;
74
+ readonly runnerName: Schema.optionalKey<Schema.String>;
75
+ /** A Runner Problem and the one command or action that fixes it. */
76
+ readonly problem: Schema.optionalKey<Schema.String>;
77
+ readonly fix: Schema.optionalKey<Schema.String>;
48
78
  }>;
49
79
  readonly title: Schema.String;
50
80
  readonly body: Schema.String;
@@ -59,7 +89,7 @@ export type InboxFilter = (typeof InboxFilters)[number];
59
89
  /** One subject's Notifications for its recipient, newest first; the item a person works in their Inbox. */
60
90
  export declare const InboxItem: Schema.Struct<{
61
91
  readonly subject: Schema.Struct<{
62
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
92
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
63
93
  readonly id: Schema.String;
64
94
  }>;
65
95
  /** What the item asks of its recipient, until it is done. */
@@ -72,9 +102,9 @@ export declare const InboxItem: Schema.Struct<{
72
102
  readonly id: Schema.String;
73
103
  readonly workspaceId: Schema.String;
74
104
  readonly recipientUserId: Schema.String;
75
- readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked"]>;
105
+ readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "approval_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked", "update_drafted", "runner_problem"]>;
76
106
  readonly subject: Schema.Struct<{
77
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
107
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
78
108
  readonly id: Schema.String;
79
109
  }>;
80
110
  /** Empty when Kitman acted. */
@@ -85,6 +115,9 @@ export declare const InboxItem: Schema.Struct<{
85
115
  readonly taskTitle: Schema.optionalKey<Schema.String>;
86
116
  readonly loopTitle: Schema.optionalKey<Schema.String>;
87
117
  readonly proposalTitle: Schema.optionalKey<Schema.String>;
118
+ /** The Code Mode operation a hosted MCP approval waits on. */
119
+ readonly toolName: Schema.optionalKey<Schema.String>;
120
+ readonly workspaceName: Schema.optionalKey<Schema.String>;
88
121
  /** The Question's name, the Run's status, or the drifted constraint. */
89
122
  readonly cause: Schema.optionalKey<Schema.String>;
90
123
  /** The state a Task moved to. */
@@ -92,6 +125,18 @@ export declare const InboxItem: Schema.Struct<{
92
125
  readonly changeRequestUrl: Schema.optionalKey<Schema.String>;
93
126
  /** What a Run needs that Kitman could not choose, such as its Loop or repository. */
94
127
  readonly missing: Schema.optionalKey<Schema.$Array<Schema.String>>;
128
+ readonly projectId: Schema.optionalKey<Schema.String>;
129
+ readonly projectName: Schema.optionalKey<Schema.String>;
130
+ /** What a drafted Project Update was written from, since the Update before it. */
131
+ readonly writtenFrom: Schema.optionalKey<Schema.Struct<{
132
+ readonly runs: Schema.Int;
133
+ readonly taskChanges: Schema.Int;
134
+ readonly since: Schema.optionalKey<Schema.String>;
135
+ }>>;
136
+ readonly runnerName: Schema.optionalKey<Schema.String>;
137
+ /** A Runner Problem and the one command or action that fixes it. */
138
+ readonly problem: Schema.optionalKey<Schema.String>;
139
+ readonly fix: Schema.optionalKey<Schema.String>;
95
140
  }>;
96
141
  readonly title: Schema.String;
97
142
  readonly body: Schema.String;
@@ -104,7 +149,7 @@ export type InboxItem = (typeof InboxItem)['Type'];
104
149
  export declare const InboxList: Schema.Struct<{
105
150
  readonly items: Schema.$Array<Schema.Struct<{
106
151
  readonly subject: Schema.Struct<{
107
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
152
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
108
153
  readonly id: Schema.String;
109
154
  }>;
110
155
  /** What the item asks of its recipient, until it is done. */
@@ -117,9 +162,9 @@ export declare const InboxList: Schema.Struct<{
117
162
  readonly id: Schema.String;
118
163
  readonly workspaceId: Schema.String;
119
164
  readonly recipientUserId: Schema.String;
120
- readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked"]>;
165
+ readonly kind: Schema.Literals<readonly ["question_waiting", "run_failed", "review_ready", "no_runner", "proposal_waiting", "approval_waiting", "assigned", "mentioned", "commented", "state_changed", "run_finished", "drift_unresolved", "run_progress", "change_request_update", "start_blocked", "update_drafted", "runner_problem"]>;
121
166
  readonly subject: Schema.Struct<{
122
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
167
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
123
168
  readonly id: Schema.String;
124
169
  }>;
125
170
  /** Empty when Kitman acted. */
@@ -130,6 +175,9 @@ export declare const InboxList: Schema.Struct<{
130
175
  readonly taskTitle: Schema.optionalKey<Schema.String>;
131
176
  readonly loopTitle: Schema.optionalKey<Schema.String>;
132
177
  readonly proposalTitle: Schema.optionalKey<Schema.String>;
178
+ /** The Code Mode operation a hosted MCP approval waits on. */
179
+ readonly toolName: Schema.optionalKey<Schema.String>;
180
+ readonly workspaceName: Schema.optionalKey<Schema.String>;
133
181
  /** The Question's name, the Run's status, or the drifted constraint. */
134
182
  readonly cause: Schema.optionalKey<Schema.String>;
135
183
  /** The state a Task moved to. */
@@ -137,6 +185,18 @@ export declare const InboxList: Schema.Struct<{
137
185
  readonly changeRequestUrl: Schema.optionalKey<Schema.String>;
138
186
  /** What a Run needs that Kitman could not choose, such as its Loop or repository. */
139
187
  readonly missing: Schema.optionalKey<Schema.$Array<Schema.String>>;
188
+ readonly projectId: Schema.optionalKey<Schema.String>;
189
+ readonly projectName: Schema.optionalKey<Schema.String>;
190
+ /** What a drafted Project Update was written from, since the Update before it. */
191
+ readonly writtenFrom: Schema.optionalKey<Schema.Struct<{
192
+ readonly runs: Schema.Int;
193
+ readonly taskChanges: Schema.Int;
194
+ readonly since: Schema.optionalKey<Schema.String>;
195
+ }>>;
196
+ readonly runnerName: Schema.optionalKey<Schema.String>;
197
+ /** A Runner Problem and the one command or action that fixes it. */
198
+ readonly problem: Schema.optionalKey<Schema.String>;
199
+ readonly fix: Schema.optionalKey<Schema.String>;
140
200
  }>;
141
201
  readonly title: Schema.String;
142
202
  readonly body: Schema.String;
@@ -155,14 +215,14 @@ export declare const InboxCounts: Schema.Struct<{
155
215
  export type InboxCounts = (typeof InboxCounts)['Type'];
156
216
  export declare const InboxSubjects: Schema.Struct<{
157
217
  readonly subjects: Schema.$Array<Schema.Struct<{
158
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
218
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
159
219
  readonly id: Schema.String;
160
220
  }>>;
161
221
  }>;
162
222
  export type InboxSubjects = (typeof InboxSubjects)['Type'];
163
223
  export declare const InboxSnooze: Schema.Struct<{
164
224
  readonly subjects: Schema.$Array<Schema.Struct<{
165
- readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">]>;
225
+ readonly kind: Schema.Union<readonly [Schema.Literal<"task">, Schema.Literal<"run">, Schema.Literal<"proposal">, Schema.Literal<"memory">, Schema.Literal<"mcp_approval">, Schema.Literal<"project_update">, Schema.Literal<"runner">]>;
166
226
  readonly id: Schema.String;
167
227
  }>>;
168
228
  readonly until: Schema.String;
@@ -179,3 +239,4 @@ export declare const renderNotification: (notification: {
179
239
  readonly subject: (typeof NotificationSubject)['Type'];
180
240
  readonly payload: NotificationPayload;
181
241
  }) => RenderedNotification;
242
+ export declare const writtenFromText: (from: NotificationPayload['writtenFrom']) => string;
@@ -0,0 +1,15 @@
1
+ import * as Schema from 'effect/Schema';
2
+ /** What can move between the Workspace and one of its Teams. */
3
+ export declare const OwnedKind: Schema.Literals<readonly ["repository", "memory", "decision", "secret"]>;
4
+ /** The new owner: a Team, or the Workspace when `team` is null. */
5
+ export declare const OwnerChange: Schema.Struct<{
6
+ readonly team: Schema.Union<readonly [Schema.String, Schema.Null]>;
7
+ }>;
8
+ export declare const OwnerMoved: Schema.Struct<{
9
+ readonly kind: Schema.Literals<readonly ["repository", "memory", "decision", "secret"]>;
10
+ readonly id: Schema.String;
11
+ readonly team: Schema.Union<readonly [Schema.String, Schema.Null]>;
12
+ }>;
13
+ export type OwnedKind = (typeof OwnedKind)['Type'];
14
+ export type OwnerChange = (typeof OwnerChange)['Type'];
15
+ export type OwnerMoved = (typeof OwnerMoved)['Type'];
@@ -1,8 +1,8 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { KitKinds } from './kit';
3
3
  import type { JsonObject, JsonValue } from './runtime-type';
4
- import { type ScheduleRule, type ScheduleMisfirePolicy, type ScheduleOverlapPolicy } from './schedule';
5
- export declare const LoopCapabilities: readonly ['agent_work', 'ask', 'call', 'verify', 'change_request', 'write_back', 'post_comment', 'create_tasks', 'merge_change_request', 'publish_release'];
4
+ import { ScheduleRule, type ScheduleMisfirePolicy, type ScheduleOverlapPolicy } from './schedule';
5
+ export declare const LoopCapabilities: readonly ['agent_work', 'ask', 'call', 'verify', 'change_request', 'write_back', 'post_comment', 'create_tasks', 'merge_change_request', 'publish_release', 'read_transcripts', 'propose', 'read_project', 'draft_update'];
6
6
  declare const JsonObject: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7
7
  /** What the control plane reads from a Loop without running it. */
8
8
  export declare const LoopManifest: Schema.Struct<{
@@ -23,15 +23,68 @@ export declare const LoopManifest: Schema.Struct<{
23
23
  readonly title: Schema.String;
24
24
  readonly loop: Schema.String;
25
25
  }>>;
26
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["agent_work", "ask", "call", "verify", "change_request", "write_back", "post_comment", "create_tasks", "merge_change_request", "publish_release"]>>;
26
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["agent_work", "ask", "call", "verify", "change_request", "write_back", "post_comment", "create_tasks", "merge_change_request", "publish_release", "read_transcripts", "propose", "read_project", "draft_update"]>>;
27
27
  /** The names of the Secrets the Loop reads. */
28
28
  readonly secrets: Schema.optionalKey<Schema.$Array<Schema.String>>;
29
29
  /** The hosts the program calls besides Kitman, or `open`. */
30
30
  readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
31
31
  readonly hosts: Schema.$Array<Schema.String>;
32
32
  }>, Schema.Literal<"open">]>>;
33
+ /** A Schedule a Workspace can turn on for the Loop; it is off until someone does. */
34
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
35
+ readonly rule: Schema.Union<readonly [Schema.Struct<{
36
+ readonly frequency: Schema.Literals<readonly ["daily", "weekly"]>;
37
+ readonly hour: Schema.Int;
38
+ readonly minute: Schema.Int;
39
+ readonly second: Schema.optionalKey<Schema.Int>;
40
+ readonly daysOfWeek: Schema.optionalKey<Schema.$Array<Schema.Int>>;
41
+ }>, Schema.Struct<{
42
+ readonly cron: Schema.String;
43
+ }>]>;
44
+ readonly timezone: Schema.String;
45
+ }>>;
33
46
  }>;
34
47
  export type LoopManifest = typeof LoopManifest.Type;
48
+ /** A Loop as it resolves where it was asked about, with the Agent each role uses and what starts it. */
49
+ export declare const LoopDetail: Schema.Struct<{
50
+ readonly id: Schema.String;
51
+ readonly resolved: Schema.optionalKey<Schema.Struct<{
52
+ readonly id: Schema.String;
53
+ readonly title: Schema.String;
54
+ readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
55
+ readonly digest: Schema.String;
56
+ readonly outcome: Schema.optionalKey<Schema.String>;
57
+ readonly offers: Schema.$Array<Schema.Struct<{
58
+ readonly id: Schema.String;
59
+ readonly title: Schema.String;
60
+ readonly loop: Schema.String;
61
+ }>>;
62
+ readonly publishedAt: Schema.String;
63
+ readonly package: Schema.String;
64
+ readonly agents: Schema.$Record<Schema.String, Schema.String>;
65
+ readonly when: Schema.$Array<Schema.Struct<{
66
+ readonly event: Schema.String;
67
+ readonly filter: 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]>>]>>>;
68
+ readonly input: Schema.$Record<Schema.String, Schema.String>;
69
+ }>>;
70
+ /** The Schedule the Loop offers: whether this Workspace turned it on, and when it next runs. */
71
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
72
+ readonly rule: Schema.Union<readonly [Schema.Struct<{
73
+ readonly frequency: Schema.Literals<readonly ["daily", "weekly"]>;
74
+ readonly hour: Schema.Int;
75
+ readonly minute: Schema.Int;
76
+ readonly second: Schema.optionalKey<Schema.Int>;
77
+ readonly daysOfWeek: Schema.optionalKey<Schema.$Array<Schema.Int>>;
78
+ }>, Schema.Struct<{
79
+ readonly cron: Schema.String;
80
+ }>]>;
81
+ readonly timezone: Schema.String;
82
+ readonly on: Schema.Boolean;
83
+ readonly nextRunAt: Schema.optionalKey<Schema.String>;
84
+ }>>;
85
+ }>>;
86
+ }>;
87
+ export type LoopDetail = (typeof LoopDetail)['Type'];
35
88
  /** An Agent as a Package declares it, with its instructions already read from the repository. */
36
89
  export declare const AgentDeclaration: Schema.Struct<{
37
90
  readonly extends: Schema.optionalKey<Schema.String>;
@@ -50,7 +103,7 @@ export type AgentDeclaration = typeof AgentDeclaration.Type;
50
103
  export declare const ScheduleDeclaration: Schema.Union<readonly [Schema.Struct<{
51
104
  readonly name: Schema.String;
52
105
  readonly loop: Schema.String;
53
- readonly project: Schema.optionalKey<Schema.String>;
106
+ readonly team: Schema.optionalKey<Schema.String>;
54
107
  readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
55
108
  readonly timezone: Schema.String;
56
109
  readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
@@ -60,7 +113,7 @@ export declare const ScheduleDeclaration: Schema.Union<readonly [Schema.Struct<{
60
113
  }>, Schema.Struct<{
61
114
  readonly name: Schema.String;
62
115
  readonly loop: Schema.String;
63
- readonly project: Schema.optionalKey<Schema.String>;
116
+ readonly team: Schema.optionalKey<Schema.String>;
64
117
  readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
65
118
  readonly timezone: Schema.String;
66
119
  readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
@@ -91,12 +144,12 @@ export declare const KitInstallationDeclaration: Schema.Struct<{
91
144
  readonly version: Schema.optionalKey<Schema.String>;
92
145
  }>;
93
146
  export type KitInstallationDeclaration = typeof KitInstallationDeclaration.Type;
94
- /** Where a Kit applies: as Workspace policy, and attached to Projects by slug. */
147
+ /** Where a Kit applies: as Workspace policy, and attached to Teams by slug. */
95
148
  export declare const KitAssignmentDeclaration: Schema.Struct<{
96
149
  /** An authored Kit's key, or an installed Kit's source slug. */
97
150
  readonly kit: Schema.String;
98
151
  readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
99
- readonly projects: Schema.optionalKey<Schema.$Array<Schema.String>>;
152
+ readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
100
153
  }>;
101
154
  export type KitAssignmentDeclaration = typeof KitAssignmentDeclaration.Type;
102
155
  export declare const KitDeclaration: Schema.Union<readonly [Schema.Struct<{
@@ -106,7 +159,7 @@ export declare const KitDeclaration: Schema.Union<readonly [Schema.Struct<{
106
159
  /** An authored Kit's key, or an installed Kit's source slug. */
107
160
  readonly kit: Schema.String;
108
161
  readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
109
- readonly projects: Schema.optionalKey<Schema.$Array<Schema.String>>;
162
+ readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
110
163
  }>, Schema.Struct<{
111
164
  readonly name: Schema.String;
112
165
  readonly kind: Schema.optionalKey<Schema.Literals<readonly ["technology", "brand", "domain", "process", "other"]>>;
@@ -138,13 +191,26 @@ export declare const PackageDeclarations: Schema.Struct<{
138
191
  readonly title: Schema.String;
139
192
  readonly loop: Schema.String;
140
193
  }>>;
141
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["agent_work", "ask", "call", "verify", "change_request", "write_back", "post_comment", "create_tasks", "merge_change_request", "publish_release"]>>;
194
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["agent_work", "ask", "call", "verify", "change_request", "write_back", "post_comment", "create_tasks", "merge_change_request", "publish_release", "read_transcripts", "propose", "read_project", "draft_update"]>>;
142
195
  /** The names of the Secrets the Loop reads. */
143
196
  readonly secrets: Schema.optionalKey<Schema.$Array<Schema.String>>;
144
197
  /** The hosts the program calls besides Kitman, or `open`. */
145
198
  readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
146
199
  readonly hosts: Schema.$Array<Schema.String>;
147
200
  }>, Schema.Literal<"open">]>>;
201
+ /** A Schedule a Workspace can turn on for the Loop; it is off until someone does. */
202
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
203
+ readonly rule: Schema.Union<readonly [Schema.Struct<{
204
+ readonly frequency: Schema.Literals<readonly ["daily", "weekly"]>;
205
+ readonly hour: Schema.Int;
206
+ readonly minute: Schema.Int;
207
+ readonly second: Schema.optionalKey<Schema.Int>;
208
+ readonly daysOfWeek: Schema.optionalKey<Schema.$Array<Schema.Int>>;
209
+ }>, Schema.Struct<{
210
+ readonly cron: Schema.String;
211
+ }>]>;
212
+ readonly timezone: Schema.String;
213
+ }>>;
148
214
  }>>;
149
215
  readonly agents: Schema.$Record<Schema.String, Schema.Struct<{
150
216
  readonly extends: Schema.optionalKey<Schema.String>;
@@ -161,7 +227,7 @@ export declare const PackageDeclarations: Schema.Struct<{
161
227
  readonly schedules: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
162
228
  readonly name: Schema.String;
163
229
  readonly loop: Schema.String;
164
- readonly project: Schema.optionalKey<Schema.String>;
230
+ readonly team: Schema.optionalKey<Schema.String>;
165
231
  readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
166
232
  readonly timezone: Schema.String;
167
233
  readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
@@ -171,7 +237,7 @@ export declare const PackageDeclarations: Schema.Struct<{
171
237
  }>, Schema.Struct<{
172
238
  readonly name: Schema.String;
173
239
  readonly loop: Schema.String;
174
- readonly project: Schema.optionalKey<Schema.String>;
240
+ readonly team: Schema.optionalKey<Schema.String>;
175
241
  readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
176
242
  readonly timezone: Schema.String;
177
243
  readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
@@ -193,7 +259,7 @@ export declare const PackageDeclarations: Schema.Struct<{
193
259
  /** An authored Kit's key, or an installed Kit's source slug. */
194
260
  readonly kit: Schema.String;
195
261
  readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
196
- readonly projects: Schema.optionalKey<Schema.$Array<Schema.String>>;
262
+ readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
197
263
  }>, Schema.Struct<{
198
264
  readonly name: Schema.String;
199
265
  readonly kind: Schema.optionalKey<Schema.Literals<readonly ["technology", "brand", "domain", "process", "other"]>>;
@@ -220,7 +286,7 @@ export type PackageRecordChanges = PackageChanges & {
220
286
  export type ScheduleRecord = {
221
287
  readonly name?: string;
222
288
  readonly loop: string;
223
- readonly projectId: string;
289
+ readonly teamId: string;
224
290
  readonly input: JsonValue;
225
291
  readonly rule: ScheduleRule;
226
292
  readonly timezone: string;
@@ -256,12 +322,12 @@ export type KitInstallationRecord = {
256
322
  readonly source: string;
257
323
  readonly version: string | null;
258
324
  };
259
- /** A Kit's Workspace policy mode and the Projects it is attached to. */
325
+ /** A Kit's Workspace policy mode and the Teams it is attached to. */
260
326
  export type KitAssignmentRecord = {
261
327
  /** As declared: an authored Kit's key or an installed Kit's source slug. */
262
328
  readonly kit: string;
263
329
  readonly workspace: 'default' | 'mandatory' | null;
264
- readonly projects: readonly string[];
330
+ readonly teams: readonly string[];
265
331
  };
266
332
  /** A Kit source the Marketplace offers the Workspace, its versions newest first. */
267
333
  export type KitSourceOption = {
@@ -320,12 +386,12 @@ export type PackagePlanConflict = {
320
386
  /** The other Package in the layer that declares it. */
321
387
  readonly package: string;
322
388
  } | {
323
- readonly kind: 'not_for_project';
389
+ readonly kind: 'not_for_team';
324
390
  readonly declaration: string;
325
391
  } | {
326
- readonly kind: 'schedule_project';
392
+ readonly kind: 'schedule_team';
327
393
  readonly key: string;
328
- /** `missing` in a Workspace Package, `not_allowed` in a Project Package, `unknown` for no such Project. */
394
+ /** `missing` in a Workspace Package, `not_allowed` in a Team Package, `unknown` for no such Team. */
329
395
  readonly problem: 'missing' | 'not_allowed' | 'unknown';
330
396
  } | {
331
397
  readonly kind: 'loop_unresolved';
@@ -346,9 +412,9 @@ export type PackagePlanConflict = {
346
412
  readonly kind: 'kit_policy_disabled';
347
413
  readonly key: string;
348
414
  } | {
349
- readonly kind: 'kit_project_unknown';
415
+ readonly kind: 'kit_team_unknown';
350
416
  readonly key: string;
351
- readonly project: string;
417
+ readonly team: string;
352
418
  };
353
419
  /** A Loop or Agent the deploy removes that a record outside the Package still names. */
354
420
  export type PackagePlanWarning = {
@@ -371,21 +437,21 @@ export type PackagePlan = {
371
437
  };
372
438
  /** A Package's layer, and where it puts its Schedules. */
373
439
  export type PackagePlanScope = {
374
- readonly layer: 'project';
375
- readonly projectId: string;
440
+ readonly layer: 'team';
441
+ readonly teamId: string;
376
442
  } | {
377
443
  readonly layer: 'workspace';
378
- /** The Workspace's Projects, by slug. */
379
- readonly projects: ReadonlyMap<string, string>;
444
+ /** The Workspace's Teams, by key. */
445
+ readonly teams: ReadonlyMap<string, string>;
380
446
  };
381
- /** The Project a declared Schedule runs in, or why it has none. */
382
- export declare const scheduleProject: (declaration: ScheduleDeclaration, scope: PackagePlanScope) => {
383
- readonly projectId: string;
447
+ /** The Team a declared Schedule runs in, or why it has none. */
448
+ export declare const scheduleTeam: (declaration: ScheduleDeclaration, scope: PackagePlanScope) => {
449
+ readonly teamId: string;
384
450
  } | {
385
451
  readonly problem: 'missing' | 'not_allowed' | 'unknown';
386
452
  };
387
453
  /** The live Schedule a declaration asks for. */
388
- export declare const scheduleRecord: (declaration: ScheduleDeclaration, projectId: string) => ScheduleRecord;
454
+ export declare const scheduleRecord: (declaration: ScheduleDeclaration, teamId: string) => ScheduleRecord;
389
455
  /** The fields where a record's live value left what was deployed, each with the version that last changed it. */
390
456
  export declare const recordDrift: (kind: RecordDrift['kind'], owned: OwnedRecord<JsonObject>) => RecordDrift[];
391
457
  /** The live Kit an authored Kit declaration asks for; its key is its slug. */
@@ -394,9 +460,9 @@ export declare const authoredKitRecord: (key: string, declaration: AuthoredKitDe
394
460
  export declare const kitInstallationRecord: (declaration: KitInstallationDeclaration, sources: readonly KitSourceOption[]) => KitInstallationRecord | {
395
461
  readonly problem: 'unknown' | 'untrusted' | 'version_unknown';
396
462
  };
397
- /** The assignment a declaration asks for, with its Projects' ids, or the first Project slug that names none. */
398
- export declare const kitAssignmentRecord: (declaration: KitAssignmentDeclaration, projects: ReadonlyMap<string, string>) => KitAssignmentRecord | {
399
- readonly unknownProject: string;
463
+ /** The assignment a declaration asks for, with its Teams' ids, or the first Team slug that names none. */
464
+ export declare const kitAssignmentRecord: (declaration: KitAssignmentDeclaration, teams: ReadonlyMap<string, string>) => KitAssignmentRecord | {
465
+ readonly unknownTeam: string;
400
466
  };
401
467
  /**
402
468
  * Compares a Package's current declarations with new ones. `others` are the other Packages in the same layer,
@@ -2,7 +2,7 @@ import * as Schema from 'effect/Schema';
2
2
  /** A Package's name, from its `package.json`. */
3
3
  export declare const PackageName: Schema.String;
4
4
  export declare const PackageDigest: Schema.String;
5
- export declare const PackageLayer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
5
+ export declare const PackageLayer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
6
6
  export type PackageLayer = (typeof PackageLayer)['Type'];
7
7
  export declare const PackageProvenance: Schema.Struct<{
8
8
  readonly repository: Schema.optionalKey<Schema.String>;
@@ -18,8 +18,8 @@ export type PackageBundleUpload = (typeof PackageBundleUpload)['Type'];
18
18
  /** A Package already built and its bundle uploaded, to plan. */
19
19
  export declare const PackagePlanRequest: Schema.Struct<{
20
20
  name: Schema.String;
21
- /** The Project layer; without it, the Workspace's. */
22
- projectId: Schema.optionalKey<Schema.String>;
21
+ /** The Team layer; without it, the Workspace's. */
22
+ teamId: Schema.optionalKey<Schema.String>;
23
23
  digest: Schema.String;
24
24
  /** As the build read them out: `loops`, `agents`, and any other kind the Package declares. */
25
25
  declarations: Schema.$Record<Schema.String, Schema.Unknown>;
@@ -34,7 +34,7 @@ export type PackagePlanRequest = (typeof PackagePlanRequest)['Type'];
34
34
  /** Deploys against the version the plan was made from; `null` when the Package has none yet. */
35
35
  export declare const PackageDeployRequest: Schema.Struct<{
36
36
  readonly name: Schema.String;
37
- readonly projectId: Schema.optionalKey<Schema.String>;
37
+ readonly teamId: Schema.optionalKey<Schema.String>;
38
38
  readonly digest: Schema.String;
39
39
  readonly declarations: Schema.$Record<Schema.String, Schema.Unknown>;
40
40
  readonly protocolVersion: Schema.Int;
@@ -82,7 +82,7 @@ export declare const PackageDrift: Schema.Struct<{
82
82
  export type PackageDrift = (typeof PackageDrift)['Type'];
83
83
  export declare const PackagePlanResult: Schema.Struct<{
84
84
  readonly name: Schema.String;
85
- readonly layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
85
+ readonly layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
86
86
  readonly currentVersion: Schema.Union<readonly [Schema.Int, Schema.Null]>;
87
87
  /** The commit the current version was built from; a deploy must descend from it. */
88
88
  readonly currentCommit: Schema.optionalKey<Schema.String>;
@@ -155,10 +155,10 @@ export declare const PackagePlanResult: Schema.Struct<{
155
155
  readonly id: Schema.String;
156
156
  readonly package: Schema.String;
157
157
  }>, Schema.Struct<{
158
- readonly kind: Schema.Literal<"not_for_project">;
158
+ readonly kind: Schema.Literal<"not_for_team">;
159
159
  readonly declaration: Schema.String;
160
160
  }>, Schema.Struct<{
161
- readonly kind: Schema.Literal<"schedule_project">;
161
+ readonly kind: Schema.Literal<"schedule_team">;
162
162
  readonly key: Schema.String;
163
163
  readonly problem: Schema.Union<readonly [Schema.Literal<"missing">, Schema.Literal<"not_allowed">, Schema.Literal<"unknown">]>;
164
164
  }>, Schema.Struct<{
@@ -179,9 +179,9 @@ export declare const PackagePlanResult: Schema.Struct<{
179
179
  readonly kind: Schema.Literal<"kit_policy_disabled">;
180
180
  readonly key: Schema.String;
181
181
  }>, Schema.Struct<{
182
- readonly kind: Schema.Literal<"kit_project_unknown">;
182
+ readonly kind: Schema.Literal<"kit_team_unknown">;
183
183
  readonly key: Schema.String;
184
- readonly project: Schema.String;
184
+ readonly team: Schema.String;
185
185
  }>]>>;
186
186
  /** Loops and Agents the deploy removes that records outside the Package still name. */
187
187
  readonly warnings: Schema.$Array<Schema.Struct<{
@@ -213,8 +213,8 @@ export declare const PackageVersionSummary: Schema.Struct<{
213
213
  export type PackageVersionSummary = (typeof PackageVersionSummary)['Type'];
214
214
  export declare const PackageSummary: Schema.Struct<{
215
215
  name: Schema.String;
216
- layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
217
- projectId: Schema.optionalKey<Schema.String>;
216
+ layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
217
+ teamId: Schema.optionalKey<Schema.String>;
218
218
  current: Schema.optionalKey<Schema.Struct<{
219
219
  readonly number: Schema.Int;
220
220
  readonly digest: Schema.String;
@@ -238,8 +238,8 @@ export type PackageSummary = (typeof PackageSummary)['Type'];
238
238
  export declare const PackageList: Schema.Struct<{
239
239
  readonly items: Schema.$Array<Schema.Struct<{
240
240
  name: Schema.String;
241
- layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
242
- projectId: Schema.optionalKey<Schema.String>;
241
+ layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
242
+ teamId: Schema.optionalKey<Schema.String>;
243
243
  current: Schema.optionalKey<Schema.Struct<{
244
244
  readonly number: Schema.Int;
245
245
  readonly digest: Schema.String;
@@ -264,8 +264,8 @@ export type PackageList = (typeof PackageList)['Type'];
264
264
  /** A Package with every version, newest first. */
265
265
  export declare const PackageDetail: Schema.Struct<{
266
266
  readonly name: Schema.String;
267
- readonly layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
268
- readonly projectId: Schema.optionalKey<Schema.String>;
267
+ readonly layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
268
+ readonly teamId: Schema.optionalKey<Schema.String>;
269
269
  readonly current: Schema.optionalKey<Schema.Struct<{
270
270
  readonly number: Schema.Int;
271
271
  readonly digest: Schema.String;
@@ -328,7 +328,7 @@ export declare const PackageDetail: Schema.Struct<{
328
328
  }>;
329
329
  export type PackageDetail = (typeof PackageDetail)['Type'];
330
330
  export declare const PackageScopeQuery: Schema.Struct<{
331
- readonly projectId: Schema.optionalKey<Schema.String>;
331
+ readonly teamId: Schema.optionalKey<Schema.String>;
332
332
  }>;
333
333
  /** A Workspace owner's or admin's trust in one repository branch to deploy one Package to one layer from CI. */
334
334
  export declare const DeployBinding: Schema.Struct<{
@@ -338,18 +338,18 @@ export declare const DeployBinding: Schema.Struct<{
338
338
  readonly repository: Schema.String;
339
339
  readonly branch: Schema.String;
340
340
  readonly packageName: Schema.String;
341
- readonly layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
342
- readonly projectId: Schema.optionalKey<Schema.String>;
341
+ readonly layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
342
+ readonly teamId: Schema.optionalKey<Schema.String>;
343
343
  readonly createdByUserId: Schema.String;
344
344
  readonly createdAt: Schema.String;
345
345
  }>;
346
346
  export type DeployBinding = (typeof DeployBinding)['Type'];
347
- /** Binds a RepoBinding's branch to a Package in a Project's layer, or the Workspace's without `projectId`. */
347
+ /** Binds a RepoBinding's branch to a Package in a Team's layer, or the Workspace's without `teamId`. */
348
348
  export declare const DeployBindingCreate: Schema.Struct<{
349
349
  readonly repoBindingId: Schema.String;
350
350
  readonly branch: Schema.String;
351
351
  readonly packageName: Schema.String;
352
- readonly projectId: Schema.optionalKey<Schema.String>;
352
+ readonly teamId: Schema.optionalKey<Schema.String>;
353
353
  }>;
354
354
  export type DeployBindingCreate = (typeof DeployBindingCreate)['Type'];
355
355
  export declare const DeployBindingList: Schema.Struct<{
@@ -360,8 +360,8 @@ export declare const DeployBindingList: Schema.Struct<{
360
360
  readonly repository: Schema.String;
361
361
  readonly branch: Schema.String;
362
362
  readonly packageName: Schema.String;
363
- readonly layer: Schema.Union<readonly [Schema.Literal<"project">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
364
- readonly projectId: Schema.optionalKey<Schema.String>;
363
+ readonly layer: Schema.Union<readonly [Schema.Literal<"team">, Schema.Literal<"workspace">, Schema.Literal<"shipped">]>;
364
+ readonly teamId: Schema.optionalKey<Schema.String>;
365
365
  readonly createdByUserId: Schema.String;
366
366
  readonly createdAt: Schema.String;
367
367
  }>>;