@kitman-sh/sdk 0.0.0-stage → 0.7.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 (102) hide show
  1. package/dist/build/index.js +215 -0
  2. package/dist/chunk-7hwhxthh.js +1055 -0
  3. package/dist/chunk-zp7s46pz.js +3966 -0
  4. package/dist/loop/index.js +193 -0
  5. package/dist/program/index.js +30 -0
  6. package/package.json +29 -4
  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-environment.d.ts +2429 -0
  10. package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
  11. package/types/packages/core/src/agent-sandbox-policy.d.ts +33 -0
  12. package/types/packages/core/src/approval-queue.d.ts +126 -0
  13. package/types/packages/core/src/audit.d.ts +52 -0
  14. package/types/packages/core/src/change-delivery.d.ts +39 -0
  15. package/types/packages/core/src/change-request-review.d.ts +146 -0
  16. package/types/packages/core/src/change-request.d.ts +432 -0
  17. package/types/packages/core/src/common.d.ts +6 -0
  18. package/types/packages/core/src/connection.d.ts +33 -0
  19. package/types/packages/core/src/context-feedback.d.ts +89 -0
  20. package/types/packages/core/src/context-pack.d.ts +182 -0
  21. package/types/packages/core/src/crypto.d.ts +11 -0
  22. package/types/packages/core/src/data-lifecycle.d.ts +195 -0
  23. package/types/packages/core/src/decision.d.ts +48 -0
  24. package/types/packages/core/src/delivery-operation.d.ts +125 -0
  25. package/types/packages/core/src/delivery-policy.d.ts +174 -0
  26. package/types/packages/core/src/engineering-resources.d.ts +26 -0
  27. package/types/packages/core/src/enterprise-code-host.d.ts +18 -0
  28. package/types/packages/core/src/epic-delivery.d.ts +38 -0
  29. package/types/packages/core/src/extension.d.ts +35 -0
  30. package/types/packages/core/src/external-effect.d.ts +313 -0
  31. package/types/packages/core/src/fix-flow.d.ts +149 -0
  32. package/types/packages/core/src/following.d.ts +59 -0
  33. package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
  34. package/types/packages/core/src/github-delivery.d.ts +78 -0
  35. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
  36. package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
  37. package/types/packages/core/src/global-search.d.ts +42 -0
  38. package/types/packages/core/src/id.d.ts +1 -0
  39. package/types/packages/core/src/index.d.ts +74 -0
  40. package/types/packages/core/src/integration.d.ts +255 -0
  41. package/types/packages/core/src/intent.d.ts +260 -0
  42. package/types/packages/core/src/json.d.ts +10 -0
  43. package/types/packages/core/src/kit-taxonomy.d.ts +21 -0
  44. package/types/packages/core/src/kit.d.ts +1489 -0
  45. package/types/packages/core/src/live.d.ts +8309 -0
  46. package/types/packages/core/src/loop-layers.d.ts +59 -0
  47. package/types/packages/core/src/loop-version.d.ts +59 -0
  48. package/types/packages/core/src/loop.d.ts +3076 -0
  49. package/types/packages/core/src/me.d.ts +31 -0
  50. package/types/packages/core/src/memory.d.ts +88 -0
  51. package/types/packages/core/src/my-teams.d.ts +1230 -0
  52. package/types/packages/core/src/notification.d.ts +181 -0
  53. package/types/packages/core/src/observability.d.ts +175 -0
  54. package/types/packages/core/src/package-declarations.d.ts +435 -0
  55. package/types/packages/core/src/package.d.ts +369 -0
  56. package/types/packages/core/src/personal-development-profile.d.ts +11 -0
  57. package/types/packages/core/src/platform-release.d.ts +60 -0
  58. package/types/packages/core/src/program-credential.d.ts +10 -0
  59. package/types/packages/core/src/project.d.ts +66 -0
  60. package/types/packages/core/src/proposal.d.ts +292 -0
  61. package/types/packages/core/src/provider-safe-text.d.ts +2 -0
  62. package/types/packages/core/src/redaction.d.ts +73 -0
  63. package/types/packages/core/src/repo-binding.d.ts +131 -0
  64. package/types/packages/core/src/run-journal.d.ts +28 -0
  65. package/types/packages/core/src/run-launch.d.ts +67 -0
  66. package/types/packages/core/src/run.d.ts +566 -0
  67. package/types/packages/core/src/runner-eligibility.d.ts +43 -0
  68. package/types/packages/core/src/runner-routing.d.ts +11 -0
  69. package/types/packages/core/src/runner-trust.d.ts +67 -0
  70. package/types/packages/core/src/runner.d.ts +3750 -0
  71. package/types/packages/core/src/runtime-type.d.ts +36 -0
  72. package/types/packages/core/src/schedule.d.ts +136 -0
  73. package/types/packages/core/src/schema.d.ts +89 -0
  74. package/types/packages/core/src/scope-directory.d.ts +100 -0
  75. package/types/packages/core/src/secret.d.ts +37 -0
  76. package/types/packages/core/src/session.d.ts +90 -0
  77. package/types/packages/core/src/step-brief.d.ts +50 -0
  78. package/types/packages/core/src/sync-kit.d.ts +587 -0
  79. package/types/packages/core/src/task-detail.d.ts +491 -0
  80. package/types/packages/core/src/task-execution-record.d.ts +620 -0
  81. package/types/packages/core/src/task-key.d.ts +9 -0
  82. package/types/packages/core/src/task.d.ts +543 -0
  83. package/types/packages/core/src/trigger-dispatch.d.ts +421 -0
  84. package/types/packages/core/src/work-unit.d.ts +740 -0
  85. package/types/packages/core/src/workspace.d.ts +96 -0
  86. package/types/packages/live/src/rpc/runner-client.d.ts +947 -0
  87. package/types/packages/live/src/rpc/runner-group.d.ts +733 -0
  88. package/types/packages/sdk/src/build/index.d.ts +45 -0
  89. package/types/packages/sdk/src/loop/activities.d.ts +187 -0
  90. package/types/packages/sdk/src/loop/check.d.ts +39 -0
  91. package/types/packages/sdk/src/loop/config.d.ts +68 -0
  92. package/types/packages/sdk/src/loop/define.d.ts +76 -0
  93. package/types/packages/sdk/src/loop/evidence.d.ts +66 -0
  94. package/types/packages/sdk/src/loop/index.d.ts +9 -0
  95. package/types/packages/sdk/src/loop/plan.d.ts +43 -0
  96. package/types/packages/sdk/src/loop/review.d.ts +86 -0
  97. package/types/packages/sdk/src/loop/steps.d.ts +224 -0
  98. package/types/packages/sdk/src/loop/test-loop.d.ts +112 -0
  99. package/types/packages/sdk/src/program/engine.d.ts +144 -0
  100. package/types/packages/sdk/src/program/host.d.ts +70 -0
  101. package/types/packages/sdk/src/program/index.d.ts +2 -0
  102. package/README.md +0 -3
@@ -0,0 +1,255 @@
1
+ import * as Schema from 'effect/Schema';
2
+ export declare const ChangeRequestProvider: Schema.Literals<readonly ["github", "gitlab"]>;
3
+ export declare const CodeHostCapability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
4
+ /** The environment variables a code-host connection may name for its custom CA. */
5
+ export declare const customCaReferencePattern: RegExp;
6
+ export declare const CodeHostConnection: Schema.Struct<{
7
+ readonly id: Schema.String;
8
+ readonly workspaceId: Schema.String;
9
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
10
+ readonly host: Schema.String;
11
+ readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token", "gitlab_oauth"]>;
12
+ readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
13
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
14
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
15
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
16
+ readonly credentialConfigured: Schema.Boolean;
17
+ readonly webhookActive: Schema.Boolean;
18
+ readonly tls: Schema.Struct<{
19
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
20
+ }>;
21
+ readonly supportEvidence: Schema.$Array<Schema.Struct<{
22
+ readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
23
+ readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
24
+ readonly observedAt: Schema.String;
25
+ }>>;
26
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
27
+ readonly lastTestedAt: Schema.optionalKey<Schema.String>;
28
+ readonly healthMessage: Schema.optionalKey<Schema.String>;
29
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
30
+ readonly createdAt: Schema.String;
31
+ readonly updatedAt: Schema.String;
32
+ }>;
33
+ export declare const CodeHostConnectionList: Schema.Struct<{
34
+ readonly items: Schema.$Array<Schema.Struct<{
35
+ readonly id: Schema.String;
36
+ readonly workspaceId: Schema.String;
37
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
38
+ readonly host: Schema.String;
39
+ readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token", "gitlab_oauth"]>;
40
+ readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
41
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
42
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
43
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
44
+ readonly credentialConfigured: Schema.Boolean;
45
+ readonly webhookActive: Schema.Boolean;
46
+ readonly tls: Schema.Struct<{
47
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
48
+ }>;
49
+ readonly supportEvidence: Schema.$Array<Schema.Struct<{
50
+ readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
51
+ readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
52
+ readonly observedAt: Schema.String;
53
+ }>>;
54
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
55
+ readonly lastTestedAt: Schema.optionalKey<Schema.String>;
56
+ readonly healthMessage: Schema.optionalKey<Schema.String>;
57
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
58
+ readonly createdAt: Schema.String;
59
+ readonly updatedAt: Schema.String;
60
+ }>>;
61
+ }>;
62
+ export declare const CodeHostConnectionWrite: Schema.Struct<{
63
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
64
+ readonly host: Schema.String;
65
+ readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
66
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
67
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
68
+ readonly appId: Schema.optionalKey<Schema.String>;
69
+ readonly installationId: Schema.optionalKey<Schema.String>;
70
+ readonly accessToken: Schema.optionalKey<Schema.String>;
71
+ readonly privateKey: Schema.optionalKey<Schema.String>;
72
+ readonly webhookSecret: Schema.optionalKey<Schema.String>;
73
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
74
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
75
+ readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
76
+ readonly tls: Schema.optionalKey<Schema.Struct<{
77
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
78
+ }>>;
79
+ }>;
80
+ /** Where to send the person to install the deployment's GitHub App, carrying a signed `state`. */
81
+ export declare const GithubConnectStart: Schema.Struct<{
82
+ readonly url: Schema.String;
83
+ }>;
84
+ /** What GitHub hands back to the App's setup URL after an installation. */
85
+ export declare const GithubConnectComplete: Schema.Struct<{
86
+ readonly state: Schema.optionalKey<Schema.String>;
87
+ readonly code: Schema.optionalKey<Schema.String>;
88
+ readonly installationId: Schema.String;
89
+ }>;
90
+ export declare const GitlabConnectStart: Schema.Struct<{
91
+ readonly url: Schema.String;
92
+ }>;
93
+ /** What GitLab hands back to the OAuth redirect after the person authorizes Kitman. */
94
+ export declare const GitlabConnectComplete: Schema.Struct<{
95
+ readonly state: Schema.String;
96
+ readonly code: Schema.String;
97
+ }>;
98
+ /** The scopes a GitLab token needs for everything Kitman does with it, webhooks included. */
99
+ export declare const GitlabTokenScopes: readonly ['api'];
100
+ /** The instance's new personal access token page, with Kitman's name and scopes filled in. */
101
+ export declare function gitlabTokenPageUrl(host: string): string;
102
+ export declare const CodeHostRepository: Schema.Struct<{
103
+ readonly providerRepositoryId: Schema.String;
104
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
105
+ readonly host: Schema.String;
106
+ readonly owner: Schema.String;
107
+ readonly name: Schema.String;
108
+ readonly fullPath: Schema.String;
109
+ readonly repositoryUrl: Schema.String;
110
+ readonly defaultTargetBranch: Schema.String;
111
+ }>;
112
+ /** One page of the repositories a connection reaches, each saying whether the Workspace has bound it already. */
113
+ export declare const CodeHostRepositoryList: Schema.Struct<{
114
+ readonly items: Schema.$Array<Schema.Struct<{
115
+ readonly providerRepositoryId: Schema.String;
116
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
117
+ readonly host: Schema.String;
118
+ readonly owner: Schema.String;
119
+ readonly name: Schema.String;
120
+ readonly fullPath: Schema.String;
121
+ readonly repositoryUrl: Schema.String;
122
+ readonly defaultTargetBranch: Schema.String;
123
+ readonly bound: Schema.Boolean;
124
+ }>>;
125
+ readonly nextPage: Schema.optionalKey<Schema.Int>;
126
+ }>;
127
+ /** Repositories, by full path, to bind into one Project: an existing one, or a new one of this name. */
128
+ export declare const CodeHostRepositoryBind: Schema.Struct<{
129
+ readonly repositories: Schema.$Array<Schema.String>;
130
+ readonly project: Schema.Union<readonly [Schema.Struct<{
131
+ readonly projectId: Schema.String;
132
+ }>, Schema.Struct<{
133
+ readonly name: Schema.String;
134
+ }>]>;
135
+ }>;
136
+ /** The Project the repositories joined, those bound now, and those the Workspace had bound already and kept as they were. */
137
+ export declare const CodeHostRepositoryBindResult: Schema.Struct<{
138
+ readonly project: Schema.Struct<{
139
+ readonly id: Schema.String;
140
+ readonly workspaceId: Schema.String;
141
+ readonly name: Schema.String;
142
+ readonly slug: Schema.String;
143
+ readonly description: Schema.optionalKey<Schema.String>;
144
+ readonly sourceType: Schema.Literal<"manual">;
145
+ readonly openTaskCount: Schema.Int;
146
+ readonly blockedTaskCount: Schema.Int;
147
+ readonly createdAt: Schema.String;
148
+ readonly updatedAt: Schema.String;
149
+ readonly defaultStatusMapping: Schema.$Record<Schema.String, Schema.String>;
150
+ }>;
151
+ readonly bound: Schema.$Array<Schema.Struct<{
152
+ readonly id: Schema.String;
153
+ readonly workspaceId: Schema.String;
154
+ readonly projectId: Schema.String;
155
+ readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
156
+ readonly host: Schema.String;
157
+ readonly owner: Schema.String;
158
+ readonly name: Schema.String;
159
+ readonly repositoryUrl: Schema.optionalKey<Schema.String>;
160
+ readonly pathPrefix: Schema.optionalKey<Schema.String>;
161
+ readonly defaultTargetBranch: Schema.String;
162
+ readonly expectedBranch: Schema.optionalKey<Schema.String>;
163
+ readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
164
+ readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
165
+ readonly kind: Schema.Literal<"none">;
166
+ }>, Schema.Struct<{
167
+ readonly kind: Schema.Literal<"local_env">;
168
+ readonly envName: Schema.String;
169
+ }>, Schema.Struct<{
170
+ readonly kind: Schema.Literal<"runner_secret">;
171
+ readonly runnerSecretName: Schema.String;
172
+ readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
173
+ }>, Schema.Struct<{
174
+ readonly kind: Schema.Literal<"ssh_agent">;
175
+ }>]>>;
176
+ readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
177
+ readonly webhook: Schema.optionalKey<Schema.Struct<{
178
+ readonly status: Schema.Literals<readonly ["active", "missing"]>;
179
+ readonly message: Schema.optionalKey<Schema.String>;
180
+ }>>;
181
+ readonly createdAt: Schema.String;
182
+ readonly updatedAt: Schema.String;
183
+ }>>;
184
+ readonly alreadyBound: Schema.$Array<Schema.Struct<{
185
+ readonly id: Schema.String;
186
+ readonly workspaceId: Schema.String;
187
+ readonly projectId: Schema.String;
188
+ readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
189
+ readonly host: Schema.String;
190
+ readonly owner: Schema.String;
191
+ readonly name: Schema.String;
192
+ readonly repositoryUrl: Schema.optionalKey<Schema.String>;
193
+ readonly pathPrefix: Schema.optionalKey<Schema.String>;
194
+ readonly defaultTargetBranch: Schema.String;
195
+ readonly expectedBranch: Schema.optionalKey<Schema.String>;
196
+ readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
197
+ readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
198
+ readonly kind: Schema.Literal<"none">;
199
+ }>, Schema.Struct<{
200
+ readonly kind: Schema.Literal<"local_env">;
201
+ readonly envName: Schema.String;
202
+ }>, Schema.Struct<{
203
+ readonly kind: Schema.Literal<"runner_secret">;
204
+ readonly runnerSecretName: Schema.String;
205
+ readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
206
+ }>, Schema.Struct<{
207
+ readonly kind: Schema.Literal<"ssh_agent">;
208
+ }>]>>;
209
+ readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
210
+ readonly webhook: Schema.optionalKey<Schema.Struct<{
211
+ readonly status: Schema.Literals<readonly ["active", "missing"]>;
212
+ readonly message: Schema.optionalKey<Schema.String>;
213
+ }>>;
214
+ readonly createdAt: Schema.String;
215
+ readonly updatedAt: Schema.String;
216
+ }>>;
217
+ }>;
218
+ export declare const ChangeRequestProviderIntegrationMetadata: Schema.Struct<{
219
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
220
+ readonly host: Schema.String;
221
+ readonly authKind: Schema.Union<readonly [Schema.Literal<"github_app">, Schema.Literal<"gitlab_app">, Schema.Literal<"oauth_app">, Schema.Literal<"webhook_only">]>;
222
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
223
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
224
+ readonly appId: Schema.optionalKey<Schema.String>;
225
+ readonly appSlug: Schema.optionalKey<Schema.String>;
226
+ readonly installationId: Schema.optionalKey<Schema.String>;
227
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
228
+ readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
229
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
230
+ }>;
231
+ export declare const ProviderChangeRequestWebhookEvent: Schema.Union<readonly [Schema.Literal<"change_request_opened">, Schema.Literal<"change_request_updated">, Schema.Literal<"change_request_ready_for_review">, Schema.Literal<"change_request_checks_changed">, Schema.Literal<"change_request_merged">]>;
232
+ export declare const ChangeRequestProviderWebhookReceipt: Schema.Struct<{
233
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
234
+ readonly eventName: Schema.String;
235
+ readonly deliveryId: Schema.optionalKey<Schema.String>;
236
+ readonly normalizedEvent: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"change_request_opened">, Schema.Literal<"change_request_updated">, Schema.Literal<"change_request_ready_for_review">, Schema.Literal<"change_request_checks_changed">, Schema.Literal<"change_request_merged">]>>;
237
+ readonly changeRequestCount: Schema.Int;
238
+ readonly admittedLoopDispatchCount: Schema.Int;
239
+ }>;
240
+ export type ChangeRequestProvider = (typeof ChangeRequestProvider)['Type'];
241
+ export type CodeHostCapability = (typeof CodeHostCapability)['Type'];
242
+ export type CodeHostConnection = (typeof CodeHostConnection)['Type'];
243
+ export type CodeHostConnectionList = (typeof CodeHostConnectionList)['Type'];
244
+ export type CodeHostConnectionWrite = (typeof CodeHostConnectionWrite)['Type'];
245
+ export type GitlabConnectStart = GithubConnectStart;
246
+ export type GitlabConnectComplete = (typeof GitlabConnectComplete)['Type'];
247
+ export type GithubConnectStart = (typeof GithubConnectStart)['Type'];
248
+ export type GithubConnectComplete = (typeof GithubConnectComplete)['Type'];
249
+ export type CodeHostRepository = (typeof CodeHostRepository)['Type'];
250
+ export type CodeHostRepositoryList = (typeof CodeHostRepositoryList)['Type'];
251
+ export type CodeHostRepositoryBind = (typeof CodeHostRepositoryBind)['Type'];
252
+ export type CodeHostRepositoryBindResult = (typeof CodeHostRepositoryBindResult)['Type'];
253
+ export type ChangeRequestProviderIntegrationMetadata = (typeof ChangeRequestProviderIntegrationMetadata)['Type'];
254
+ export type ProviderChangeRequestWebhookEvent = (typeof ProviderChangeRequestWebhookEvent)['Type'];
255
+ export type ChangeRequestProviderWebhookReceipt = (typeof ChangeRequestProviderWebhookReceipt)['Type'];
@@ -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,10 @@
1
+ import * as Schema from 'effect/Schema';
2
+ export declare const decodeJsonString: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Json, Schema.SchemaError, never>;
3
+ export declare const decodeJsonStringOption: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Option").Option<Schema.Json>;
4
+ export declare const encodeJsonStringSync: (input: Schema.Json, options?: import("effect/SchemaAST").ParseOptions) => string;
5
+ /** Two-space indented JSON text, for files people read. */
6
+ export declare const encodePrettyJsonString: (input: Schema.Json, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<string, Schema.SchemaError, never>;
7
+ /** Decodes JSON text, throwing on invalid input; for code that runs outside an Effect. */
8
+ export declare const decodeJsonStringSync: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Schema.Json;
9
+ /** JSON text for a value of any shape (diagnostics and assertions); `JSON.stringify` semantics. */
10
+ export declare const encodeUnknownJsonStringSync: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string;
@@ -0,0 +1,21 @@
1
+ import type { KitCreate } from './kit';
2
+ type SimplifiedKitDefinition = KitCreate & {
3
+ readonly slug: string;
4
+ readonly marketplace: {
5
+ readonly visibility: 'public';
6
+ readonly trusted: true;
7
+ readonly reviewStatus: 'approved';
8
+ readonly installable: true;
9
+ };
10
+ };
11
+ export declare const ComplianceKitSections: {
12
+ readonly 'privacy-ai-governance': readonly ['ai-inventory', 'aia-generation', 'pia-generation', 'use-case-triage', 'dsar-response', 'policy-monitor', 'policy-diff', 'policy-redraft', 'policy-drafting', 'policy-starter', 'reg-feed-watcher', 'reg-gap-analysis', 'gaps', 'comments', 'launch-review', 'feature-risk-assessment'];
13
+ readonly 'commercial-legal': readonly ['nda-review', 'saas-msa-review', 'vendor-agreement-review', 'vendor-ai-review', 'dpa-review', 'material-contract-schedule', 'diligence-issue-extraction', 'closing-checklist', 'renewal-tracker', 'stakeholder-summary', 'amendment-history'];
14
+ readonly 'legal-operations': readonly ['matter-intake', 'matter-briefing', 'matter-update', 'matter-close', 'matter-workspace', 'chronology', 'deadlines', 'client-letter', 'client-intake', 'review', 'memo', 'legal-writing', 'research-start', 'status', 'pdf'];
15
+ readonly 'litigation-investigations': readonly ['demand-intake', 'demand-draft', 'demand-received', 'cease-desist', 'subpoena-triage', 'deposition-prep', 'privilege-log-review', 'legal-hold', 'claim-chart', 'brief-section-drafter', 'investigation-open', 'investigation-add', 'investigation-query', 'investigation-memo', 'investigation-summary'];
16
+ readonly 'legal-education': readonly ['bar-prep-questions', 'case-brief', 'cold-call-prep', 'exam-forecast', 'flashcards', 'irac-practice', 'outline-builder', 'session', 'socratic-drill', 'study-plan', 'ramp', 'semester-handoff', 'supervisor-review-queue', 'build-guide'];
17
+ readonly 'claims-review': readonly ['marketing-claims-review'];
18
+ };
19
+ export declare const SimplifiedKitTaxonomy: readonly [SimplifiedKitDefinition, SimplifiedKitDefinition, SimplifiedKitDefinition, SimplifiedKitDefinition, SimplifiedKitDefinition, SimplifiedKitDefinition];
20
+ export declare const SimplifiedKitSlugs: string[];
21
+ export {};