@kitman-sh/sdk 0.10.82 → 0.10.84

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 +2 -2
  2. package/dist/{chunk-fc5r66fq.js → chunk-3pz068kn.js} +11 -5
  3. package/dist/{chunk-0f530caz.js → chunk-cqknxyv9.js} +88 -47
  4. package/dist/loop/index.js +7 -1
  5. package/dist/program/index.js +2 -2
  6. package/package.json +1 -1
  7. package/types/packages/core/src/a2a.d.ts +577 -0
  8. package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
  9. package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
  10. package/types/packages/core/src/approval-queue.d.ts +126 -0
  11. package/types/packages/core/src/audit.d.ts +52 -0
  12. package/types/packages/core/src/change-delivery.d.ts +39 -0
  13. package/types/packages/core/src/change-request-review.d.ts +361 -0
  14. package/types/packages/core/src/change-request.d.ts +288 -0
  15. package/types/packages/core/src/connection.d.ts +33 -0
  16. package/types/packages/core/src/context-feedback.d.ts +89 -0
  17. package/types/packages/core/src/data-lifecycle.d.ts +195 -0
  18. package/types/packages/core/src/decision.d.ts +48 -0
  19. package/types/packages/core/src/delivery-operation.d.ts +125 -0
  20. package/types/packages/core/src/delivery-policy.d.ts +174 -0
  21. package/types/packages/core/src/enterprise-forge.d.ts +19 -0
  22. package/types/packages/core/src/epic-delivery.d.ts +38 -0
  23. package/types/packages/core/src/external-effect.d.ts +313 -0
  24. package/types/packages/core/src/fix-flow.d.ts +149 -0
  25. package/types/packages/core/src/following.d.ts +59 -0
  26. package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
  27. package/types/packages/core/src/github-delivery.d.ts +78 -0
  28. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
  29. package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
  30. package/types/packages/core/src/global-search.d.ts +42 -0
  31. package/types/packages/core/src/id.d.ts +1 -0
  32. package/types/packages/core/src/integration.d.ts +276 -0
  33. package/types/packages/core/src/intent.d.ts +260 -0
  34. package/types/packages/core/src/kit-install.d.ts +130 -0
  35. package/types/packages/core/src/live.d.ts +8231 -0
  36. package/types/packages/core/src/marketplace.d.ts +168 -0
  37. package/types/packages/core/src/me.d.ts +31 -0
  38. package/types/packages/core/src/memory.d.ts +93 -0
  39. package/types/packages/core/src/my-teams.d.ts +1599 -0
  40. package/types/packages/core/src/notification.d.ts +250 -0
  41. package/types/packages/core/src/observability.d.ts +175 -0
  42. package/types/packages/core/src/owner.d.ts +15 -0
  43. package/types/packages/core/src/personal-development-profile.d.ts +11 -0
  44. package/types/packages/core/src/platform-release.d.ts +60 -0
  45. package/types/packages/core/src/program-credential.d.ts +10 -0
  46. package/types/packages/core/src/provider-safe-text.d.ts +2 -0
  47. package/types/packages/core/src/push.d.ts +68 -0
  48. package/types/packages/core/src/run-display.d.ts +22 -0
  49. package/types/packages/core/src/run-file.d.ts +190 -0
  50. package/types/packages/core/src/run-graph.d.ts +67 -0
  51. package/types/packages/core/src/run-journal.d.ts +28 -0
  52. package/types/packages/core/src/run-launch.d.ts +82 -0
  53. package/types/packages/core/src/runner-eligibility.d.ts +62 -0
  54. package/types/packages/core/src/runner-routing.d.ts +11 -0
  55. package/types/packages/core/src/runner-trust.d.ts +67 -0
  56. package/types/packages/core/src/runner.d.ts +4076 -0
  57. package/types/packages/core/src/scope-directory.d.ts +100 -0
  58. package/types/packages/core/src/session.d.ts +90 -0
  59. package/types/packages/core/src/step-brief.d.ts +70 -0
  60. package/types/packages/core/src/storage.d.ts +49 -0
  61. package/types/packages/core/src/sync-kit.d.ts +595 -0
  62. package/types/packages/core/src/task-detail.d.ts +511 -0
  63. package/types/packages/core/src/task-execution-record.d.ts +620 -0
  64. package/types/packages/core/src/task-key.d.ts +9 -0
  65. package/types/packages/core/src/task.d.ts +588 -0
  66. package/types/packages/core/src/team-context.d.ts +43 -0
  67. package/types/packages/core/src/transcript.d.ts +250 -0
  68. package/types/packages/core/src/trust-panel.d.ts +27 -0
  69. package/types/packages/core/src/work-unit.d.ts +33 -1
  70. package/types/packages/core/src/workspace.d.ts +167 -0
  71. package/types/packages/live/src/rpc/runner-client.d.ts +15 -0
  72. package/types/packages/live/src/rpc/runner-group.d.ts +1699 -1670
  73. package/types/packages/sdk/src/loop/activities.d.ts +3 -0
  74. package/types/packages/sdk/src/loop/index.d.ts +1 -0
  75. package/types/packages/sdk/src/loop/resolve.d.ts +13 -0
  76. package/types/packages/sdk/src/loop/steps.d.ts +5 -0
  77. package/types/packages/sdk/src/loop/sync.d.ts +8 -1
  78. package/types/packages/sdk/src/loop/test-loop.d.ts +7 -0
  79. package/types/packages/sdk/src/program/engine.d.ts +2 -1
@@ -0,0 +1,260 @@
1
+ import * as Schema from 'effect/Schema';
2
+ export declare const RunIntentConstraint: Schema.Struct<{
3
+ readonly id: Schema.String;
4
+ readonly text: Schema.String;
5
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
6
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
7
+ readonly source: Schema.Union<readonly [Schema.Literal<"launch">, Schema.Literal<"repository">, Schema.Literal<"plan">, Schema.Literal<"parent">, Schema.Literal<"human">]>;
8
+ readonly rule: Schema.optionalKey<Schema.Struct<{
9
+ readonly kind: Schema.Literal<"protected_paths">;
10
+ readonly globs: Schema.$Array<Schema.String>;
11
+ }>>;
12
+ }>;
13
+ export type RunIntentConstraint = (typeof RunIntentConstraint)['Type'];
14
+ /** One version of a Run's Intent, with what changed and who changed it. */
15
+ export declare const RunIntentVersion: Schema.Struct<{
16
+ readonly version: Schema.Int;
17
+ readonly goal: Schema.String;
18
+ readonly doneWhen: Schema.$Array<Schema.String>;
19
+ readonly constraints: Schema.$Array<Schema.Struct<{
20
+ readonly id: Schema.String;
21
+ readonly text: Schema.String;
22
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
23
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
24
+ readonly source: Schema.Union<readonly [Schema.Literal<"launch">, Schema.Literal<"repository">, Schema.Literal<"plan">, Schema.Literal<"parent">, Schema.Literal<"human">]>;
25
+ readonly rule: Schema.optionalKey<Schema.Struct<{
26
+ readonly kind: Schema.Literal<"protected_paths">;
27
+ readonly globs: Schema.$Array<Schema.String>;
28
+ }>>;
29
+ }>>;
30
+ readonly corrections: Schema.Boolean;
31
+ readonly removedConstraintIds: Schema.$Array<Schema.String>;
32
+ readonly change: Schema.String;
33
+ readonly author: Schema.Struct<{
34
+ readonly actorType: Schema.String;
35
+ readonly actorId: Schema.String;
36
+ }>;
37
+ readonly createdAt: Schema.String;
38
+ }>;
39
+ export type RunIntentVersion = (typeof RunIntentVersion)['Type'];
40
+ /** What a Run is held to: its current Intent and every version, oldest first. */
41
+ export declare const RunIntent: Schema.Struct<{
42
+ readonly runId: Schema.String;
43
+ readonly current: Schema.optionalKey<Schema.Struct<{
44
+ readonly version: Schema.Int;
45
+ readonly goal: Schema.String;
46
+ readonly doneWhen: Schema.$Array<Schema.String>;
47
+ readonly constraints: Schema.$Array<Schema.Struct<{
48
+ readonly id: Schema.String;
49
+ readonly text: Schema.String;
50
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
51
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
52
+ readonly source: Schema.Union<readonly [Schema.Literal<"launch">, Schema.Literal<"repository">, Schema.Literal<"plan">, Schema.Literal<"parent">, Schema.Literal<"human">]>;
53
+ readonly rule: Schema.optionalKey<Schema.Struct<{
54
+ readonly kind: Schema.Literal<"protected_paths">;
55
+ readonly globs: Schema.$Array<Schema.String>;
56
+ }>>;
57
+ }>>;
58
+ readonly corrections: Schema.Boolean;
59
+ readonly removedConstraintIds: Schema.$Array<Schema.String>;
60
+ readonly change: Schema.String;
61
+ readonly author: Schema.Struct<{
62
+ readonly actorType: Schema.String;
63
+ readonly actorId: Schema.String;
64
+ }>;
65
+ readonly createdAt: Schema.String;
66
+ }>>;
67
+ readonly versions: Schema.$Array<Schema.Struct<{
68
+ readonly version: Schema.Int;
69
+ readonly goal: Schema.String;
70
+ readonly doneWhen: Schema.$Array<Schema.String>;
71
+ readonly constraints: Schema.$Array<Schema.Struct<{
72
+ readonly id: Schema.String;
73
+ readonly text: Schema.String;
74
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
75
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
76
+ readonly source: Schema.Union<readonly [Schema.Literal<"launch">, Schema.Literal<"repository">, Schema.Literal<"plan">, Schema.Literal<"parent">, Schema.Literal<"human">]>;
77
+ readonly rule: Schema.optionalKey<Schema.Struct<{
78
+ readonly kind: Schema.Literal<"protected_paths">;
79
+ readonly globs: Schema.$Array<Schema.String>;
80
+ }>>;
81
+ }>>;
82
+ readonly corrections: Schema.Boolean;
83
+ readonly removedConstraintIds: Schema.$Array<Schema.String>;
84
+ readonly change: Schema.String;
85
+ readonly author: Schema.Struct<{
86
+ readonly actorType: Schema.String;
87
+ readonly actorId: Schema.String;
88
+ }>;
89
+ readonly createdAt: Schema.String;
90
+ }>>;
91
+ }>;
92
+ export type RunIntent = (typeof RunIntent)['Type'];
93
+ export declare const RunIntentAmend: Schema.Union<readonly [Schema.Struct<{
94
+ readonly kind: Schema.Literal<"set_goal">;
95
+ readonly goal: Schema.String;
96
+ }>, Schema.Struct<{
97
+ readonly kind: Schema.Literal<"add_constraint">;
98
+ /** `rule:protected_paths:<glob>[,<glob>…]` spells a rule; any other text is semantic. */
99
+ readonly constraint: Schema.String;
100
+ }>, Schema.Struct<{
101
+ readonly kind: Schema.Literal<"remove_constraint">;
102
+ readonly id: Schema.String;
103
+ }>, Schema.Struct<{
104
+ readonly kind: Schema.Literal<"set_corrections">;
105
+ readonly on: Schema.Boolean;
106
+ }>]>;
107
+ export type RunIntentAmend = (typeof RunIntentAmend)['Type'];
108
+ /** A constraint every Run on a repository starts with, as a person spelled it. */
109
+ export declare const StandingConstraint: Schema.Struct<{
110
+ readonly id: Schema.String;
111
+ readonly repoBindingId: Schema.String;
112
+ readonly text: Schema.String;
113
+ readonly addedByUserId: Schema.String;
114
+ readonly createdAt: Schema.String;
115
+ }>;
116
+ export type StandingConstraint = (typeof StandingConstraint)['Type'];
117
+ export declare const StandingConstraintList: Schema.Struct<{
118
+ readonly items: Schema.$Array<Schema.Struct<{
119
+ readonly id: Schema.String;
120
+ readonly repoBindingId: Schema.String;
121
+ readonly text: Schema.String;
122
+ readonly addedByUserId: Schema.String;
123
+ readonly createdAt: Schema.String;
124
+ }>>;
125
+ }>;
126
+ export type StandingConstraintList = (typeof StandingConstraintList)['Type'];
127
+ export declare const StandingConstraintAdd: Schema.Struct<{
128
+ /** `rule:protected_paths:<glob>[,<glob>…]` spells a rule; any other text is semantic. */
129
+ readonly text: Schema.String;
130
+ }>;
131
+ export type StandingConstraintAdd = (typeof StandingConstraintAdd)['Type'];
132
+ export declare const DriftResolution: Schema.Struct<{
133
+ readonly status: Schema.Literals<readonly ["open", "correction_sent", "escalated", "verified", "dismissed"]>;
134
+ readonly intentVersion: Schema.Int;
135
+ readonly at: Schema.String;
136
+ readonly reason: Schema.optionalKey<Schema.String>;
137
+ readonly actor: Schema.optionalKey<Schema.Struct<{
138
+ readonly actorType: Schema.String;
139
+ readonly actorId: Schema.String;
140
+ }>>;
141
+ }>;
142
+ /** What a check found against one of the Run's constraints, and its resolutions, oldest first. */
143
+ export declare const DriftReport: Schema.Struct<{
144
+ readonly constraintId: Schema.String;
145
+ readonly constraintText: Schema.String;
146
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
147
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
148
+ readonly intentVersion: Schema.Int;
149
+ readonly citedPaths: Schema.$Array<Schema.String>;
150
+ readonly truncated: Schema.Boolean;
151
+ readonly status: Schema.Literals<readonly ["open", "correction_sent", "escalated", "verified", "dismissed"]>;
152
+ readonly history: Schema.$Array<Schema.Struct<{
153
+ readonly status: Schema.Literals<readonly ["open", "correction_sent", "escalated", "verified", "dismissed"]>;
154
+ readonly intentVersion: Schema.Int;
155
+ readonly at: Schema.String;
156
+ readonly reason: Schema.optionalKey<Schema.String>;
157
+ readonly actor: Schema.optionalKey<Schema.Struct<{
158
+ readonly actorType: Schema.String;
159
+ readonly actorId: Schema.String;
160
+ }>>;
161
+ }>>;
162
+ }>;
163
+ export type DriftReport = (typeof DriftReport)['Type'];
164
+ /** An accepted agent Step's boundary: what evidence it had, and why its rules went unchecked if they did. */
165
+ export declare const RunBoundary: Schema.Struct<{
166
+ readonly stepAttemptId: Schema.String;
167
+ readonly stepKey: Schema.String;
168
+ readonly intentVersion: Schema.optionalKey<Schema.Int>;
169
+ readonly evidence: Schema.optionalKey<Schema.Struct<{
170
+ readonly kind: Schema.Union<readonly [Schema.Literal<"change">, Schema.Literal<"output">]>;
171
+ readonly changedPaths: Schema.optionalKey<Schema.$Array<Schema.String>>;
172
+ readonly truncated: Schema.Boolean;
173
+ }>>;
174
+ readonly uncheckedReason: Schema.optionalKey<Schema.String>;
175
+ readonly createdAt: Schema.String;
176
+ }>;
177
+ export type RunBoundary = (typeof RunBoundary)['Type'];
178
+ /** A `judge` StepAttempt's verdicts on the Run's semantic constraints, and at the finish its goal and doneWhen. */
179
+ export declare const RunJudgement: Schema.Struct<{
180
+ readonly id: Schema.String;
181
+ readonly final: Schema.Boolean;
182
+ readonly status: Schema.Literals<readonly ["queued", "running", "judged", "skipped"]>;
183
+ readonly stepAttemptId: Schema.optionalKey<Schema.String>;
184
+ readonly intentVersion: Schema.optionalKey<Schema.Int>;
185
+ readonly constraints: Schema.optionalKey<Schema.$Array<Schema.Struct<{
186
+ readonly constraintId: Schema.String;
187
+ readonly verdict: Schema.Literals<readonly ["holds", "breached", "unverified"]>;
188
+ readonly citations: Schema.$Array<Schema.Struct<{
189
+ readonly path: Schema.String;
190
+ readonly line: Schema.optionalKey<Schema.Int>;
191
+ }>>;
192
+ }>>>;
193
+ readonly goal: Schema.optionalKey<Schema.Literals<readonly ["met", "not_met", "unverified"]>>;
194
+ readonly doneWhen: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["met", "not_met", "unverified"]>>>;
195
+ readonly skipReason: Schema.optionalKey<Schema.String>;
196
+ readonly createdAt: Schema.String;
197
+ readonly settledAt: Schema.optionalKey<Schema.String>;
198
+ }>;
199
+ export type RunJudgement = (typeof RunJudgement)['Type'];
200
+ export declare const RunDrift: Schema.Struct<{
201
+ readonly runId: Schema.String;
202
+ readonly reports: Schema.$Array<Schema.Struct<{
203
+ readonly constraintId: Schema.String;
204
+ readonly constraintText: Schema.String;
205
+ readonly kind: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"semantic">]>;
206
+ readonly severity: Schema.Union<readonly [Schema.Literal<"block">, Schema.Literal<"warn">]>;
207
+ readonly intentVersion: Schema.Int;
208
+ readonly citedPaths: Schema.$Array<Schema.String>;
209
+ readonly truncated: Schema.Boolean;
210
+ readonly status: Schema.Literals<readonly ["open", "correction_sent", "escalated", "verified", "dismissed"]>;
211
+ readonly history: Schema.$Array<Schema.Struct<{
212
+ readonly status: Schema.Literals<readonly ["open", "correction_sent", "escalated", "verified", "dismissed"]>;
213
+ readonly intentVersion: Schema.Int;
214
+ readonly at: Schema.String;
215
+ readonly reason: Schema.optionalKey<Schema.String>;
216
+ readonly actor: Schema.optionalKey<Schema.Struct<{
217
+ readonly actorType: Schema.String;
218
+ readonly actorId: Schema.String;
219
+ }>>;
220
+ }>>;
221
+ }>>;
222
+ readonly boundaries: Schema.$Array<Schema.Struct<{
223
+ readonly stepAttemptId: Schema.String;
224
+ readonly stepKey: Schema.String;
225
+ readonly intentVersion: Schema.optionalKey<Schema.Int>;
226
+ readonly evidence: Schema.optionalKey<Schema.Struct<{
227
+ readonly kind: Schema.Union<readonly [Schema.Literal<"change">, Schema.Literal<"output">]>;
228
+ readonly changedPaths: Schema.optionalKey<Schema.$Array<Schema.String>>;
229
+ readonly truncated: Schema.Boolean;
230
+ }>>;
231
+ readonly uncheckedReason: Schema.optionalKey<Schema.String>;
232
+ readonly createdAt: Schema.String;
233
+ }>>;
234
+ /** Oldest first. */
235
+ readonly judgements: Schema.$Array<Schema.Struct<{
236
+ readonly id: Schema.String;
237
+ readonly final: Schema.Boolean;
238
+ readonly status: Schema.Literals<readonly ["queued", "running", "judged", "skipped"]>;
239
+ readonly stepAttemptId: Schema.optionalKey<Schema.String>;
240
+ readonly intentVersion: Schema.optionalKey<Schema.Int>;
241
+ readonly constraints: Schema.optionalKey<Schema.$Array<Schema.Struct<{
242
+ readonly constraintId: Schema.String;
243
+ readonly verdict: Schema.Literals<readonly ["holds", "breached", "unverified"]>;
244
+ readonly citations: Schema.$Array<Schema.Struct<{
245
+ readonly path: Schema.String;
246
+ readonly line: Schema.optionalKey<Schema.Int>;
247
+ }>>;
248
+ }>>>;
249
+ readonly goal: Schema.optionalKey<Schema.Literals<readonly ["met", "not_met", "unverified"]>>;
250
+ readonly doneWhen: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["met", "not_met", "unverified"]>>>;
251
+ readonly skipReason: Schema.optionalKey<Schema.String>;
252
+ readonly createdAt: Schema.String;
253
+ readonly settledAt: Schema.optionalKey<Schema.String>;
254
+ }>>;
255
+ }>;
256
+ export type RunDrift = (typeof RunDrift)['Type'];
257
+ export declare const RunDriftDismiss: Schema.Struct<{
258
+ readonly reason: Schema.String;
259
+ }>;
260
+ export type RunDriftDismiss = (typeof RunDriftDismiss)['Type'];
@@ -0,0 +1,130 @@
1
+ import * as Schema from 'effect/Schema';
2
+ /** A Kit installed from npm on the Workspace, a Team, or one person. */
3
+ export declare const KitInstall: Schema.Struct<{
4
+ readonly name: Schema.String;
5
+ readonly owner: Schema.Literals<readonly ["workspace", "team", "personal"]>;
6
+ readonly teamId: Schema.optionalKey<Schema.String>;
7
+ /** Absent for an install carried over from the old Kit model until a Run or a check first resolves it. */
8
+ readonly version: Schema.optionalKey<Schema.String>;
9
+ /** It follows npm `latest` without one. */
10
+ readonly pinnedVersion: Schema.optionalKey<Schema.String>;
11
+ readonly lastCheckedAt: Schema.optionalKey<Schema.String>;
12
+ /** Why its last check left it at `version`. */
13
+ readonly problem: Schema.optionalKey<Schema.String>;
14
+ /** The person its Loops' automatic starts act for; with nobody, they start only once someone Adds it again. */
15
+ readonly actsFor: Schema.optionalKey<Schema.String>;
16
+ }>;
17
+ export type KitInstall = typeof KitInstall.Type;
18
+ export declare const KitInstallList: Schema.Struct<{
19
+ readonly items: Schema.$Array<Schema.Struct<{
20
+ readonly name: Schema.String;
21
+ readonly owner: Schema.Literals<readonly ["workspace", "team", "personal"]>;
22
+ readonly teamId: Schema.optionalKey<Schema.String>;
23
+ /** Absent for an install carried over from the old Kit model until a Run or a check first resolves it. */
24
+ readonly version: Schema.optionalKey<Schema.String>;
25
+ /** It follows npm `latest` without one. */
26
+ readonly pinnedVersion: Schema.optionalKey<Schema.String>;
27
+ readonly lastCheckedAt: Schema.optionalKey<Schema.String>;
28
+ /** Why its last check left it at `version`. */
29
+ readonly problem: Schema.optionalKey<Schema.String>;
30
+ /** The person its Loops' automatic starts act for; with nobody, they start only once someone Adds it again. */
31
+ readonly actsFor: Schema.optionalKey<Schema.String>;
32
+ }>>;
33
+ }>;
34
+ export type KitInstallList = typeof KitInstallList.Type;
35
+ /** Installs on the Workspace, the Team `teamId` names, or, with `me`, the caller. */
36
+ export declare const KitOwnerQuery: Schema.Struct<{
37
+ readonly teamId: Schema.optionalKey<Schema.String>;
38
+ readonly me: Schema.optionalKey<Schema.Literals<readonly ["true", "false"]>>;
39
+ }>;
40
+ export declare const KitAddRequest: Schema.Struct<{
41
+ readonly name: Schema.String;
42
+ readonly teamId: Schema.optionalKey<Schema.String>;
43
+ readonly me: Schema.optionalKey<Schema.Boolean>;
44
+ }>;
45
+ export type KitAddRequest = typeof KitAddRequest.Type;
46
+ export declare const KitPinRequest: Schema.Struct<{
47
+ readonly version: Schema.String;
48
+ }>;
49
+ /** The Kits a person's machines get, nearest first: their own, their Teams', the Workspace's, then Kitman's. */
50
+ export declare const KitChain: Schema.Struct<{
51
+ readonly kits: Schema.$Array<Schema.Struct<{
52
+ readonly name: Schema.String;
53
+ readonly version: Schema.String;
54
+ readonly setupDigest: Schema.String;
55
+ }>>;
56
+ /** Installs with no version to sync, and why. */
57
+ readonly skipped: Schema.$Array<Schema.Struct<{
58
+ readonly name: Schema.String;
59
+ readonly problem: Schema.String;
60
+ }>>;
61
+ }>;
62
+ export type KitChain = typeof KitChain.Type;
63
+ /** The Kits of an Owner chain, nearest first, each deployed or installed. */
64
+ export declare const OwnerKits: Schema.Struct<{
65
+ readonly kits: Schema.$Array<Schema.Struct<{
66
+ readonly name: Schema.String;
67
+ readonly version: Schema.String;
68
+ readonly source: Schema.Literals<readonly ["deployed", "installed"]>;
69
+ }>>;
70
+ }>;
71
+ export type OwnerKits = typeof OwnerKits.Type;
72
+ export declare const OwnerKitsQuery: Schema.Struct<{
73
+ readonly teamId: Schema.optionalKey<Schema.String>;
74
+ }>;
75
+ /** A setup archive's JSON text, whose sha256 is its digest. */
76
+ export declare const KitSetupDownload: Schema.Struct<{
77
+ readonly archive: Schema.String;
78
+ }>;
79
+ export type KitSetupDownload = typeof KitSetupDownload.Type;
80
+ export declare const KitPreviewQuery: Schema.Struct<{
81
+ readonly name: Schema.String;
82
+ readonly version: Schema.optionalKey<Schema.String>;
83
+ }>;
84
+ /** What a Kit brings, from its published build, before it is added. */
85
+ export declare const KitPreview: Schema.Struct<{
86
+ readonly name: Schema.String;
87
+ readonly version: Schema.String;
88
+ readonly loops: Schema.$Array<Schema.Struct<{
89
+ readonly id: Schema.String;
90
+ readonly title: Schema.String;
91
+ readonly when: Schema.$Array<Schema.Struct<{
92
+ readonly event: Schema.String;
93
+ 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]>>]>>>;
94
+ readonly input: Schema.$Record<Schema.String, Schema.String>;
95
+ readonly values: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
96
+ }>>;
97
+ }>>;
98
+ readonly agents: Schema.$Array<Schema.Struct<{
99
+ readonly id: Schema.String;
100
+ }>>;
101
+ readonly skills: Schema.$Array<Schema.Struct<{
102
+ readonly kit: Schema.String;
103
+ readonly name: Schema.String;
104
+ }>>;
105
+ readonly plugins: Schema.$Array<Schema.Struct<{
106
+ readonly kit: Schema.String;
107
+ readonly name: Schema.String;
108
+ readonly hooks: Schema.$Array<Schema.String>;
109
+ }>>;
110
+ readonly mcpServers: Schema.$Array<Schema.Struct<{
111
+ readonly kit: Schema.String;
112
+ readonly name: Schema.String;
113
+ /** A remote server's host; a stdio server runs `command` instead. */
114
+ readonly host: Schema.optionalKey<Schema.String>;
115
+ readonly command: Schema.optionalKey<Schema.String>;
116
+ }>>;
117
+ /** The Secrets its MCP config names by `{env:NAME}`. */
118
+ readonly secrets: Schema.$Array<Schema.String>;
119
+ }>;
120
+ export type KitPreview = typeof KitPreview.Type;
121
+ /** A published Kit's preview; declarations or archives that don't decode contribute nothing. */
122
+ export declare const kitPreview: (kit: {
123
+ readonly name: string;
124
+ readonly version: string;
125
+ readonly declarations: unknown;
126
+ readonly setupArchives: readonly {
127
+ readonly digest: string;
128
+ readonly archive: Uint8Array;
129
+ }[];
130
+ }) => KitPreview;