@kitman-sh/sdk 0.7.5 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.js +10 -11
- package/dist/{chunk-72z6zbfz.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-8byx9rx2.js → chunk-36jhc745.js} +195 -76
- package/dist/loop/index.js +43 -1
- package/dist/program/index.js +7 -3
- package/package.json +3 -1
- package/types/packages/core/src/agent-capabilities.d.ts +68 -74
- package/types/packages/core/src/agent-environment.d.ts +26 -26
- package/types/packages/core/src/agent-launch-snapshot.d.ts +1 -1
- package/types/packages/core/src/agent-sandbox-policy.d.ts +15 -0
- package/types/packages/core/src/approval-queue.d.ts +4 -4
- package/types/packages/core/src/audit.d.ts +1 -1
- package/types/packages/core/src/change-delivery.d.ts +1 -1
- package/types/packages/core/src/change-request-review.d.ts +199 -7
- package/types/packages/core/src/change-request.d.ts +43 -12
- package/types/packages/core/src/connection.d.ts +1 -1
- package/types/packages/core/src/context-feedback.d.ts +8 -8
- package/types/packages/core/src/context-pack.d.ts +8 -8
- package/types/packages/core/src/crypto.d.ts +5 -0
- package/types/packages/core/src/data-lifecycle.d.ts +12 -12
- package/types/packages/core/src/decision.d.ts +2 -2
- package/types/packages/core/src/delivery-policy.d.ts +3 -3
- package/types/packages/core/src/enterprise-forge.d.ts +19 -0
- package/types/packages/core/src/epic-delivery.d.ts +1 -1
- package/types/packages/core/src/external-effect.d.ts +2 -2
- package/types/packages/core/src/global-search.d.ts +1 -1
- package/types/packages/core/src/index.d.ts +8 -2
- package/types/packages/core/src/integration.d.ts +58 -57
- package/types/packages/core/src/kit.d.ts +47 -47
- package/types/packages/core/src/live.d.ts +684 -781
- package/types/packages/core/src/loop-layers.d.ts +1 -1
- package/types/packages/core/src/loop-version.d.ts +1 -1
- package/types/packages/core/src/loop.d.ts +73 -67
- package/types/packages/core/src/marketplace.d.ts +127 -0
- package/types/packages/core/src/memory.d.ts +17 -12
- package/types/packages/core/src/my-teams.d.ts +65 -32
- package/types/packages/core/src/notification.d.ts +73 -12
- package/types/packages/core/src/owner.d.ts +15 -0
- package/types/packages/core/src/package-declarations.d.ts +73 -32
- package/types/packages/core/src/package.d.ts +22 -22
- package/types/packages/core/src/personal-development-profile.d.ts +2 -2
- package/types/packages/core/src/proposal.d.ts +25 -25
- package/types/packages/core/src/redaction.d.ts +2 -1
- package/types/packages/core/src/repo-binding.d.ts +19 -10
- package/types/packages/core/src/run-display.d.ts +1 -1
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-launch.d.ts +7 -5
- package/types/packages/core/src/run.d.ts +9 -9
- package/types/packages/core/src/runner-eligibility.d.ts +4 -4
- package/types/packages/core/src/runner.d.ts +339 -111
- package/types/packages/core/src/schedule.d.ts +2 -2
- package/types/packages/core/src/scope-directory.d.ts +5 -5
- package/types/packages/core/src/secret.d.ts +9 -9
- package/types/packages/core/src/session.d.ts +2 -2
- package/types/packages/core/src/step-brief.d.ts +10 -3
- package/types/packages/core/src/storage.d.ts +49 -0
- package/types/packages/core/src/sync-kit.d.ts +25 -25
- package/types/packages/core/src/task-detail.d.ts +20 -13
- package/types/packages/core/src/task-execution-record.d.ts +6 -6
- package/types/packages/core/src/task.d.ts +52 -16
- package/types/packages/core/src/team-context.d.ts +33 -0
- package/types/packages/core/src/transcript.d.ts +230 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
- package/types/packages/core/src/trust-panel.d.ts +27 -0
- package/types/packages/core/src/work-unit.d.ts +44 -18
- package/types/packages/core/src/workspace.d.ts +77 -6
- package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
- package/types/packages/live/src/rpc/runner-group.d.ts +623 -267
- package/types/packages/sdk/src/loop/activities.d.ts +208 -1
- package/types/packages/sdk/src/loop/config.d.ts +1 -1
- package/types/packages/sdk/src/loop/define.d.ts +8 -2
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +2 -2
- package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
- package/types/packages/sdk/src/program/engine.d.ts +71 -3
- package/types/packages/sdk/src/program/host.d.ts +13 -1
- package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
- package/types/packages/core/src/project.d.ts +0 -66
|
@@ -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 {
|
|
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,13 +23,26 @@ 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;
|
|
35
48
|
/** A Loop as it resolves where it was asked about, with the Agent each role uses and what starts it. */
|
|
@@ -38,7 +51,7 @@ export declare const LoopDetail: Schema.Struct<{
|
|
|
38
51
|
readonly resolved: Schema.optionalKey<Schema.Struct<{
|
|
39
52
|
readonly id: Schema.String;
|
|
40
53
|
readonly title: Schema.String;
|
|
41
|
-
readonly layer: Schema.Literals<readonly ["
|
|
54
|
+
readonly layer: Schema.Literals<readonly ["team", "workspace", "shipped"]>;
|
|
42
55
|
readonly digest: Schema.String;
|
|
43
56
|
readonly outcome: Schema.optionalKey<Schema.String>;
|
|
44
57
|
readonly offers: Schema.$Array<Schema.Struct<{
|
|
@@ -54,6 +67,21 @@ export declare const LoopDetail: Schema.Struct<{
|
|
|
54
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]>>]>>>;
|
|
55
68
|
readonly input: Schema.$Record<Schema.String, Schema.String>;
|
|
56
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
|
+
}>>;
|
|
57
85
|
}>>;
|
|
58
86
|
}>;
|
|
59
87
|
export type LoopDetail = (typeof LoopDetail)['Type'];
|
|
@@ -75,7 +103,7 @@ export type AgentDeclaration = typeof AgentDeclaration.Type;
|
|
|
75
103
|
export declare const ScheduleDeclaration: Schema.Union<readonly [Schema.Struct<{
|
|
76
104
|
readonly name: Schema.String;
|
|
77
105
|
readonly loop: Schema.String;
|
|
78
|
-
readonly
|
|
106
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
79
107
|
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
80
108
|
readonly timezone: Schema.String;
|
|
81
109
|
readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
|
|
@@ -85,7 +113,7 @@ export declare const ScheduleDeclaration: Schema.Union<readonly [Schema.Struct<{
|
|
|
85
113
|
}>, Schema.Struct<{
|
|
86
114
|
readonly name: Schema.String;
|
|
87
115
|
readonly loop: Schema.String;
|
|
88
|
-
readonly
|
|
116
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
89
117
|
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
90
118
|
readonly timezone: Schema.String;
|
|
91
119
|
readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
|
|
@@ -116,12 +144,12 @@ export declare const KitInstallationDeclaration: Schema.Struct<{
|
|
|
116
144
|
readonly version: Schema.optionalKey<Schema.String>;
|
|
117
145
|
}>;
|
|
118
146
|
export type KitInstallationDeclaration = typeof KitInstallationDeclaration.Type;
|
|
119
|
-
/** Where a Kit applies: as Workspace policy, and attached to
|
|
147
|
+
/** Where a Kit applies: as Workspace policy, and attached to Teams by slug. */
|
|
120
148
|
export declare const KitAssignmentDeclaration: Schema.Struct<{
|
|
121
149
|
/** An authored Kit's key, or an installed Kit's source slug. */
|
|
122
150
|
readonly kit: Schema.String;
|
|
123
151
|
readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
|
|
124
|
-
readonly
|
|
152
|
+
readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
125
153
|
}>;
|
|
126
154
|
export type KitAssignmentDeclaration = typeof KitAssignmentDeclaration.Type;
|
|
127
155
|
export declare const KitDeclaration: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -131,7 +159,7 @@ export declare const KitDeclaration: Schema.Union<readonly [Schema.Struct<{
|
|
|
131
159
|
/** An authored Kit's key, or an installed Kit's source slug. */
|
|
132
160
|
readonly kit: Schema.String;
|
|
133
161
|
readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
|
|
134
|
-
readonly
|
|
162
|
+
readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
135
163
|
}>, Schema.Struct<{
|
|
136
164
|
readonly name: Schema.String;
|
|
137
165
|
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["technology", "brand", "domain", "process", "other"]>>;
|
|
@@ -163,13 +191,26 @@ export declare const PackageDeclarations: Schema.Struct<{
|
|
|
163
191
|
readonly title: Schema.String;
|
|
164
192
|
readonly loop: Schema.String;
|
|
165
193
|
}>>;
|
|
166
|
-
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"]>>;
|
|
167
195
|
/** The names of the Secrets the Loop reads. */
|
|
168
196
|
readonly secrets: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
169
197
|
/** The hosts the program calls besides Kitman, or `open`. */
|
|
170
198
|
readonly network: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
171
199
|
readonly hosts: Schema.$Array<Schema.String>;
|
|
172
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
|
+
}>>;
|
|
173
214
|
}>>;
|
|
174
215
|
readonly agents: Schema.$Record<Schema.String, Schema.Struct<{
|
|
175
216
|
readonly extends: Schema.optionalKey<Schema.String>;
|
|
@@ -186,7 +227,7 @@ export declare const PackageDeclarations: Schema.Struct<{
|
|
|
186
227
|
readonly schedules: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
187
228
|
readonly name: Schema.String;
|
|
188
229
|
readonly loop: Schema.String;
|
|
189
|
-
readonly
|
|
230
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
190
231
|
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
191
232
|
readonly timezone: Schema.String;
|
|
192
233
|
readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
|
|
@@ -196,7 +237,7 @@ export declare const PackageDeclarations: Schema.Struct<{
|
|
|
196
237
|
}>, Schema.Struct<{
|
|
197
238
|
readonly name: Schema.String;
|
|
198
239
|
readonly loop: Schema.String;
|
|
199
|
-
readonly
|
|
240
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
200
241
|
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
201
242
|
readonly timezone: Schema.String;
|
|
202
243
|
readonly misfire: Schema.optionalKey<Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>>;
|
|
@@ -218,7 +259,7 @@ export declare const PackageDeclarations: Schema.Struct<{
|
|
|
218
259
|
/** An authored Kit's key, or an installed Kit's source slug. */
|
|
219
260
|
readonly kit: Schema.String;
|
|
220
261
|
readonly workspace: Schema.optionalKey<Schema.Literals<readonly ["default", "mandatory"]>>;
|
|
221
|
-
readonly
|
|
262
|
+
readonly teams: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
222
263
|
}>, Schema.Struct<{
|
|
223
264
|
readonly name: Schema.String;
|
|
224
265
|
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["technology", "brand", "domain", "process", "other"]>>;
|
|
@@ -245,7 +286,7 @@ export type PackageRecordChanges = PackageChanges & {
|
|
|
245
286
|
export type ScheduleRecord = {
|
|
246
287
|
readonly name?: string;
|
|
247
288
|
readonly loop: string;
|
|
248
|
-
readonly
|
|
289
|
+
readonly teamId: string;
|
|
249
290
|
readonly input: JsonValue;
|
|
250
291
|
readonly rule: ScheduleRule;
|
|
251
292
|
readonly timezone: string;
|
|
@@ -281,12 +322,12 @@ export type KitInstallationRecord = {
|
|
|
281
322
|
readonly source: string;
|
|
282
323
|
readonly version: string | null;
|
|
283
324
|
};
|
|
284
|
-
/** A Kit's Workspace policy mode and the
|
|
325
|
+
/** A Kit's Workspace policy mode and the Teams it is attached to. */
|
|
285
326
|
export type KitAssignmentRecord = {
|
|
286
327
|
/** As declared: an authored Kit's key or an installed Kit's source slug. */
|
|
287
328
|
readonly kit: string;
|
|
288
329
|
readonly workspace: 'default' | 'mandatory' | null;
|
|
289
|
-
readonly
|
|
330
|
+
readonly teams: readonly string[];
|
|
290
331
|
};
|
|
291
332
|
/** A Kit source the Marketplace offers the Workspace, its versions newest first. */
|
|
292
333
|
export type KitSourceOption = {
|
|
@@ -345,12 +386,12 @@ export type PackagePlanConflict = {
|
|
|
345
386
|
/** The other Package in the layer that declares it. */
|
|
346
387
|
readonly package: string;
|
|
347
388
|
} | {
|
|
348
|
-
readonly kind: '
|
|
389
|
+
readonly kind: 'not_for_team';
|
|
349
390
|
readonly declaration: string;
|
|
350
391
|
} | {
|
|
351
|
-
readonly kind: '
|
|
392
|
+
readonly kind: 'schedule_team';
|
|
352
393
|
readonly key: string;
|
|
353
|
-
/** `missing` in a Workspace Package, `not_allowed` in a
|
|
394
|
+
/** `missing` in a Workspace Package, `not_allowed` in a Team Package, `unknown` for no such Team. */
|
|
354
395
|
readonly problem: 'missing' | 'not_allowed' | 'unknown';
|
|
355
396
|
} | {
|
|
356
397
|
readonly kind: 'loop_unresolved';
|
|
@@ -371,9 +412,9 @@ export type PackagePlanConflict = {
|
|
|
371
412
|
readonly kind: 'kit_policy_disabled';
|
|
372
413
|
readonly key: string;
|
|
373
414
|
} | {
|
|
374
|
-
readonly kind: '
|
|
415
|
+
readonly kind: 'kit_team_unknown';
|
|
375
416
|
readonly key: string;
|
|
376
|
-
readonly
|
|
417
|
+
readonly team: string;
|
|
377
418
|
};
|
|
378
419
|
/** A Loop or Agent the deploy removes that a record outside the Package still names. */
|
|
379
420
|
export type PackagePlanWarning = {
|
|
@@ -396,21 +437,21 @@ export type PackagePlan = {
|
|
|
396
437
|
};
|
|
397
438
|
/** A Package's layer, and where it puts its Schedules. */
|
|
398
439
|
export type PackagePlanScope = {
|
|
399
|
-
readonly layer: '
|
|
400
|
-
readonly
|
|
440
|
+
readonly layer: 'team';
|
|
441
|
+
readonly teamId: string;
|
|
401
442
|
} | {
|
|
402
443
|
readonly layer: 'workspace';
|
|
403
|
-
/** The Workspace's
|
|
404
|
-
readonly
|
|
444
|
+
/** The Workspace's Teams, by key. */
|
|
445
|
+
readonly teams: ReadonlyMap<string, string>;
|
|
405
446
|
};
|
|
406
|
-
/** The
|
|
407
|
-
export declare const
|
|
408
|
-
readonly
|
|
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;
|
|
409
450
|
} | {
|
|
410
451
|
readonly problem: 'missing' | 'not_allowed' | 'unknown';
|
|
411
452
|
};
|
|
412
453
|
/** The live Schedule a declaration asks for. */
|
|
413
|
-
export declare const scheduleRecord: (declaration: ScheduleDeclaration,
|
|
454
|
+
export declare const scheduleRecord: (declaration: ScheduleDeclaration, teamId: string) => ScheduleRecord;
|
|
414
455
|
/** The fields where a record's live value left what was deployed, each with the version that last changed it. */
|
|
415
456
|
export declare const recordDrift: (kind: RecordDrift['kind'], owned: OwnedRecord<JsonObject>) => RecordDrift[];
|
|
416
457
|
/** The live Kit an authored Kit declaration asks for; its key is its slug. */
|
|
@@ -419,9 +460,9 @@ export declare const authoredKitRecord: (key: string, declaration: AuthoredKitDe
|
|
|
419
460
|
export declare const kitInstallationRecord: (declaration: KitInstallationDeclaration, sources: readonly KitSourceOption[]) => KitInstallationRecord | {
|
|
420
461
|
readonly problem: 'unknown' | 'untrusted' | 'version_unknown';
|
|
421
462
|
};
|
|
422
|
-
/** The assignment a declaration asks for, with its
|
|
423
|
-
export declare const kitAssignmentRecord: (declaration: KitAssignmentDeclaration,
|
|
424
|
-
readonly
|
|
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;
|
|
425
466
|
};
|
|
426
467
|
/**
|
|
427
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<"
|
|
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
|
|
22
|
-
|
|
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
|
|
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<"
|
|
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<"
|
|
158
|
+
readonly kind: Schema.Literal<"not_for_team">;
|
|
159
159
|
readonly declaration: Schema.String;
|
|
160
160
|
}>, Schema.Struct<{
|
|
161
|
-
readonly kind: Schema.Literal<"
|
|
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<"
|
|
182
|
+
readonly kind: Schema.Literal<"kit_team_unknown">;
|
|
183
183
|
readonly key: Schema.String;
|
|
184
|
-
readonly
|
|
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<"
|
|
217
|
-
|
|
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<"
|
|
242
|
-
|
|
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<"
|
|
268
|
-
readonly
|
|
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
|
|
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<"
|
|
342
|
-
readonly
|
|
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
|
|
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
|
|
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<"
|
|
364
|
-
readonly
|
|
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
|
}>>;
|