@kitman-sh/sdk 0.0.0-stage → 0.6.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 +215 -0
- package/dist/chunk-f3d6cvkg.js +958 -0
- package/dist/chunk-jnxc0c54.js +3963 -0
- package/dist/loop/index.js +193 -0
- package/dist/program/index.js +24 -0
- package/package.json +29 -4
- package/types/packages/core/src/a2a.d.ts +577 -0
- package/types/packages/core/src/agent-capabilities.d.ts +1424 -0
- package/types/packages/core/src/agent-environment.d.ts +2429 -0
- package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
- package/types/packages/core/src/agent-sandbox-policy.d.ts +31 -0
- package/types/packages/core/src/approval-queue.d.ts +126 -0
- package/types/packages/core/src/audit.d.ts +52 -0
- package/types/packages/core/src/change-delivery.d.ts +39 -0
- package/types/packages/core/src/change-request-review.d.ts +146 -0
- package/types/packages/core/src/change-request.d.ts +432 -0
- package/types/packages/core/src/common.d.ts +6 -0
- package/types/packages/core/src/connection.d.ts +33 -0
- package/types/packages/core/src/context-feedback.d.ts +89 -0
- package/types/packages/core/src/context-pack.d.ts +182 -0
- package/types/packages/core/src/crypto.d.ts +11 -0
- package/types/packages/core/src/data-lifecycle.d.ts +195 -0
- package/types/packages/core/src/decision.d.ts +48 -0
- package/types/packages/core/src/delivery-operation.d.ts +125 -0
- package/types/packages/core/src/delivery-policy.d.ts +174 -0
- package/types/packages/core/src/engineering-resources.d.ts +26 -0
- package/types/packages/core/src/enterprise-code-host.d.ts +21 -0
- package/types/packages/core/src/epic-delivery.d.ts +38 -0
- package/types/packages/core/src/extension.d.ts +35 -0
- package/types/packages/core/src/external-effect.d.ts +313 -0
- package/types/packages/core/src/fix-flow.d.ts +149 -0
- package/types/packages/core/src/following.d.ts +59 -0
- package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
- package/types/packages/core/src/github-delivery.d.ts +78 -0
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
- package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
- package/types/packages/core/src/global-search.d.ts +42 -0
- package/types/packages/core/src/id.d.ts +1 -0
- package/types/packages/core/src/index.d.ts +74 -0
- package/types/packages/core/src/integration.d.ts +137 -0
- package/types/packages/core/src/intent.d.ts +260 -0
- package/types/packages/core/src/json.d.ts +10 -0
- package/types/packages/core/src/kit-taxonomy.d.ts +21 -0
- package/types/packages/core/src/kit.d.ts +1489 -0
- package/types/packages/core/src/live.d.ts +8309 -0
- package/types/packages/core/src/loop-layers.d.ts +59 -0
- package/types/packages/core/src/loop-version.d.ts +59 -0
- package/types/packages/core/src/loop.d.ts +3076 -0
- package/types/packages/core/src/me.d.ts +31 -0
- package/types/packages/core/src/memory.d.ts +88 -0
- package/types/packages/core/src/my-teams.d.ts +1230 -0
- package/types/packages/core/src/notification.d.ts +181 -0
- package/types/packages/core/src/observability.d.ts +175 -0
- package/types/packages/core/src/package-declarations.d.ts +427 -0
- package/types/packages/core/src/package.d.ts +369 -0
- package/types/packages/core/src/personal-development-profile.d.ts +11 -0
- package/types/packages/core/src/platform-release.d.ts +60 -0
- package/types/packages/core/src/program-credential.d.ts +10 -0
- package/types/packages/core/src/project.d.ts +64 -0
- package/types/packages/core/src/proposal.d.ts +292 -0
- package/types/packages/core/src/provider-safe-text.d.ts +2 -0
- package/types/packages/core/src/redaction.d.ts +73 -0
- package/types/packages/core/src/repo-binding.d.ts +123 -0
- package/types/packages/core/src/run-journal.d.ts +28 -0
- package/types/packages/core/src/run-launch.d.ts +67 -0
- package/types/packages/core/src/run.d.ts +566 -0
- package/types/packages/core/src/runner-eligibility.d.ts +39 -0
- package/types/packages/core/src/runner-routing.d.ts +11 -0
- package/types/packages/core/src/runner-trust.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +3672 -0
- package/types/packages/core/src/runtime-type.d.ts +36 -0
- package/types/packages/core/src/schedule.d.ts +136 -0
- package/types/packages/core/src/schema.d.ts +89 -0
- package/types/packages/core/src/scope-directory.d.ts +100 -0
- package/types/packages/core/src/secret.d.ts +37 -0
- package/types/packages/core/src/session.d.ts +90 -0
- package/types/packages/core/src/step-brief.d.ts +50 -0
- package/types/packages/core/src/sync-kit.d.ts +587 -0
- package/types/packages/core/src/task-detail.d.ts +491 -0
- package/types/packages/core/src/task-execution-record.d.ts +620 -0
- package/types/packages/core/src/task-key.d.ts +9 -0
- package/types/packages/core/src/task.d.ts +543 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +421 -0
- package/types/packages/core/src/work-unit.d.ts +725 -0
- package/types/packages/core/src/workspace.d.ts +50 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +938 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +730 -0
- package/types/packages/sdk/src/build/index.d.ts +45 -0
- package/types/packages/sdk/src/loop/activities.d.ts +187 -0
- package/types/packages/sdk/src/loop/check.d.ts +39 -0
- package/types/packages/sdk/src/loop/config.d.ts +68 -0
- package/types/packages/sdk/src/loop/define.d.ts +69 -0
- package/types/packages/sdk/src/loop/evidence.d.ts +66 -0
- package/types/packages/sdk/src/loop/index.d.ts +9 -0
- package/types/packages/sdk/src/loop/plan.d.ts +43 -0
- package/types/packages/sdk/src/loop/review.d.ts +86 -0
- package/types/packages/sdk/src/loop/steps.d.ts +224 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +112 -0
- package/types/packages/sdk/src/program/engine.d.ts +144 -0
- package/types/packages/sdk/src/program/host.d.ts +48 -0
- package/types/packages/sdk/src/program/index.d.ts +2 -0
- package/README.md +0 -3
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
export declare const CodeHostConnection: Schema.Struct<{
|
|
5
|
+
readonly id: Schema.String;
|
|
6
|
+
readonly workspaceId: Schema.String;
|
|
7
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
8
|
+
readonly host: Schema.String;
|
|
9
|
+
readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
|
|
10
|
+
readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
|
|
11
|
+
readonly externalAccountId: Schema.optionalKey<Schema.String>;
|
|
12
|
+
readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
|
|
14
|
+
readonly credentialConfigured: Schema.Boolean;
|
|
15
|
+
readonly webhookActive: Schema.Boolean;
|
|
16
|
+
readonly administratorOwned: Schema.Boolean;
|
|
17
|
+
readonly allowedHosts: Schema.$Array<Schema.String>;
|
|
18
|
+
readonly tls: Schema.Struct<{
|
|
19
|
+
readonly verified: Schema.Literal<true>;
|
|
20
|
+
readonly customCaRef: Schema.optionalKey<Schema.String>;
|
|
21
|
+
}>;
|
|
22
|
+
readonly supportEvidence: Schema.$Array<Schema.Struct<{
|
|
23
|
+
readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
|
|
24
|
+
readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
|
|
25
|
+
readonly observedAt: Schema.String;
|
|
26
|
+
}>>;
|
|
27
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly lastTestedAt: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly healthMessage: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly connectedAt: Schema.optionalKey<Schema.String>;
|
|
31
|
+
readonly createdAt: Schema.String;
|
|
32
|
+
readonly updatedAt: Schema.String;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const CodeHostConnectionList: Schema.Struct<{
|
|
35
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
36
|
+
readonly id: Schema.String;
|
|
37
|
+
readonly workspaceId: Schema.String;
|
|
38
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
39
|
+
readonly host: Schema.String;
|
|
40
|
+
readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
|
|
41
|
+
readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
|
|
42
|
+
readonly externalAccountId: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
|
|
45
|
+
readonly credentialConfigured: Schema.Boolean;
|
|
46
|
+
readonly webhookActive: Schema.Boolean;
|
|
47
|
+
readonly administratorOwned: Schema.Boolean;
|
|
48
|
+
readonly allowedHosts: Schema.$Array<Schema.String>;
|
|
49
|
+
readonly tls: Schema.Struct<{
|
|
50
|
+
readonly verified: Schema.Literal<true>;
|
|
51
|
+
readonly customCaRef: Schema.optionalKey<Schema.String>;
|
|
52
|
+
}>;
|
|
53
|
+
readonly supportEvidence: Schema.$Array<Schema.Struct<{
|
|
54
|
+
readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
|
|
55
|
+
readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
|
|
56
|
+
readonly observedAt: Schema.String;
|
|
57
|
+
}>>;
|
|
58
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
59
|
+
readonly lastTestedAt: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly healthMessage: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly connectedAt: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly createdAt: Schema.String;
|
|
63
|
+
readonly updatedAt: Schema.String;
|
|
64
|
+
}>>;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const CodeHostConnectionWrite: Schema.Struct<{
|
|
67
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
68
|
+
readonly host: Schema.String;
|
|
69
|
+
readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
|
|
70
|
+
readonly externalAccountId: Schema.optionalKey<Schema.String>;
|
|
71
|
+
readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly appId: Schema.optionalKey<Schema.String>;
|
|
73
|
+
readonly installationId: Schema.optionalKey<Schema.String>;
|
|
74
|
+
readonly accessToken: Schema.optionalKey<Schema.String>;
|
|
75
|
+
readonly privateKey: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly webhookSecret: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
79
|
+
readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
|
|
80
|
+
readonly administratorOwned: Schema.optionalKey<Schema.Boolean>;
|
|
81
|
+
readonly allowedHosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
82
|
+
readonly tls: Schema.optionalKey<Schema.Struct<{
|
|
83
|
+
readonly verified: Schema.Literal<true>;
|
|
84
|
+
readonly customCaRef: Schema.optionalKey<Schema.String>;
|
|
85
|
+
}>>;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const CodeHostRepository: Schema.Struct<{
|
|
88
|
+
readonly providerRepositoryId: Schema.String;
|
|
89
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
90
|
+
readonly host: Schema.String;
|
|
91
|
+
readonly owner: Schema.String;
|
|
92
|
+
readonly name: Schema.String;
|
|
93
|
+
readonly repositoryUrl: Schema.String;
|
|
94
|
+
readonly defaultTargetBranch: Schema.String;
|
|
95
|
+
}>;
|
|
96
|
+
export declare const CodeHostRepositoryList: Schema.Struct<{
|
|
97
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
98
|
+
readonly providerRepositoryId: Schema.String;
|
|
99
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
100
|
+
readonly host: Schema.String;
|
|
101
|
+
readonly owner: Schema.String;
|
|
102
|
+
readonly name: Schema.String;
|
|
103
|
+
readonly repositoryUrl: Schema.String;
|
|
104
|
+
readonly defaultTargetBranch: Schema.String;
|
|
105
|
+
}>>;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const ChangeRequestProviderIntegrationMetadata: Schema.Struct<{
|
|
108
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
109
|
+
readonly host: Schema.String;
|
|
110
|
+
readonly authKind: Schema.Union<readonly [Schema.Literal<"github_app">, Schema.Literal<"gitlab_app">, Schema.Literal<"oauth_app">, Schema.Literal<"webhook_only">]>;
|
|
111
|
+
readonly externalAccountId: Schema.optionalKey<Schema.String>;
|
|
112
|
+
readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly appId: Schema.optionalKey<Schema.String>;
|
|
114
|
+
readonly appSlug: Schema.optionalKey<Schema.String>;
|
|
115
|
+
readonly installationId: Schema.optionalKey<Schema.String>;
|
|
116
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
117
|
+
readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
|
|
118
|
+
readonly connectedAt: Schema.optionalKey<Schema.String>;
|
|
119
|
+
}>;
|
|
120
|
+
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">]>;
|
|
121
|
+
export declare const ChangeRequestProviderWebhookReceipt: Schema.Struct<{
|
|
122
|
+
readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
|
|
123
|
+
readonly eventName: Schema.String;
|
|
124
|
+
readonly deliveryId: Schema.optionalKey<Schema.String>;
|
|
125
|
+
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">]>>;
|
|
126
|
+
readonly changeRequestCount: Schema.Int;
|
|
127
|
+
readonly admittedLoopDispatchCount: Schema.Int;
|
|
128
|
+
}>;
|
|
129
|
+
export type ChangeRequestProvider = (typeof ChangeRequestProvider)['Type'];
|
|
130
|
+
export type CodeHostCapability = (typeof CodeHostCapability)['Type'];
|
|
131
|
+
export type CodeHostConnection = (typeof CodeHostConnection)['Type'];
|
|
132
|
+
export type CodeHostConnectionList = (typeof CodeHostConnectionList)['Type'];
|
|
133
|
+
export type CodeHostConnectionWrite = (typeof CodeHostConnectionWrite)['Type'];
|
|
134
|
+
export type CodeHostRepository = (typeof CodeHostRepository)['Type'];
|
|
135
|
+
export type ChangeRequestProviderIntegrationMetadata = (typeof ChangeRequestProviderIntegrationMetadata)['Type'];
|
|
136
|
+
export type ProviderChangeRequestWebhookEvent = (typeof ProviderChangeRequestWebhookEvent)['Type'];
|
|
137
|
+
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 {};
|