@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.
- package/dist/build/index.js +215 -0
- package/dist/chunk-7hwhxthh.js +1055 -0
- package/dist/chunk-zp7s46pz.js +3966 -0
- package/dist/loop/index.js +193 -0
- package/dist/program/index.js +30 -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 +1434 -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 +33 -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 +18 -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 +255 -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 +435 -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 +66 -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 +131 -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 +43 -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 +3750 -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 +740 -0
- package/types/packages/core/src/workspace.d.ts +96 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +947 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +733 -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 +76 -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 +70 -0
- package/types/packages/sdk/src/program/index.d.ts +2 -0
- package/README.md +0 -3
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const FixFlowFailureCategories: readonly ['harness_error', 'sandbox_error', 'verification_failed', 'review_failed', 'delivery_failed', 'missing_context', 'context_stale', 'rate_limited', 'canceled', 'missing_skill', 'stale_lease', 'missing_secret', 'materialization_failed', 'runner_unavailable', 'sandbox_unsupported', 'readiness_blocked', 'unknown'];
|
|
3
|
+
export declare const FixFlowRecoveryActions: readonly ['retry', 'repair_readiness', 'refresh_context', 'sync_agent_environment', 'escalate_sandbox', 'pause', 'resume', 'cancel', 'takeover', 'rotate_secret_ref', 'rerun_verification', 'create_follow_up', 'drain_replica', 'discard_cache'];
|
|
4
|
+
export declare const FixFlowRecoveryAction: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
5
|
+
type FixFlowSafeMetadataValue = string | boolean | number | null | readonly FixFlowSafeMetadataValue[] | {
|
|
6
|
+
readonly [key: string]: FixFlowSafeMetadataValue;
|
|
7
|
+
};
|
|
8
|
+
declare const FixFlowSafeMetadataValue: Schema.Codec<FixFlowSafeMetadataValue>;
|
|
9
|
+
export declare const FixFlowFailure: Schema.Struct<{
|
|
10
|
+
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
11
|
+
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
12
|
+
readonly summary: Schema.String;
|
|
13
|
+
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
14
|
+
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
15
|
+
readonly title: Schema.String;
|
|
16
|
+
readonly reason: Schema.String;
|
|
17
|
+
readonly blocksCurrentTask: Schema.Boolean;
|
|
18
|
+
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
19
|
+
}>>;
|
|
20
|
+
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
21
|
+
readonly kind: Schema.String;
|
|
22
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
24
|
+
}>>>;
|
|
25
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const FixFlowRecoveryRequest: Schema.Struct<{
|
|
28
|
+
readonly action: Schema.optionalKey<Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>>;
|
|
29
|
+
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly expectedResourceVersion: Schema.optionalKey<Schema.Int>;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const FixFlowRecoveryPlan: Schema.Struct<{
|
|
33
|
+
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
34
|
+
readonly productName: Schema.Literal<"Fix Flow">;
|
|
35
|
+
readonly target: Schema.Struct<{
|
|
36
|
+
readonly kind: Schema.Literals<readonly ["loop_step", "step_attempt", "run", "task", "runner_replica"]>;
|
|
37
|
+
readonly id: Schema.String;
|
|
38
|
+
}>;
|
|
39
|
+
readonly canonicalIds: Schema.Struct<{
|
|
40
|
+
readonly workUnitId: Schema.optionalKey<Schema.String>;
|
|
41
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
42
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly runnerReplicaId: Schema.optionalKey<Schema.String>;
|
|
45
|
+
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
46
|
+
}>;
|
|
47
|
+
readonly failure: Schema.Struct<{
|
|
48
|
+
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
49
|
+
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
50
|
+
readonly summary: Schema.String;
|
|
51
|
+
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
52
|
+
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
53
|
+
readonly title: Schema.String;
|
|
54
|
+
readonly reason: Schema.String;
|
|
55
|
+
readonly blocksCurrentTask: Schema.Boolean;
|
|
56
|
+
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
57
|
+
}>>;
|
|
58
|
+
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
59
|
+
readonly kind: Schema.String;
|
|
60
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
62
|
+
}>>>;
|
|
63
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
64
|
+
}>;
|
|
65
|
+
readonly recommendedAction: Schema.Struct<{
|
|
66
|
+
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
67
|
+
readonly label: Schema.String;
|
|
68
|
+
readonly reason: Schema.String;
|
|
69
|
+
readonly requiresApproval: Schema.Boolean;
|
|
70
|
+
}>;
|
|
71
|
+
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
72
|
+
readonly kind: Schema.String;
|
|
73
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
74
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const FixFlowRecoveryResult: Schema.Struct<{
|
|
78
|
+
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
79
|
+
readonly productName: Schema.Literal<"Fix Flow">;
|
|
80
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"applied">, Schema.Literal<"queued">, Schema.Literal<"already_applied">]>;
|
|
81
|
+
readonly action: Schema.Struct<{
|
|
82
|
+
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
83
|
+
readonly label: Schema.String;
|
|
84
|
+
readonly reason: Schema.String;
|
|
85
|
+
readonly requiresApproval: Schema.Boolean;
|
|
86
|
+
}>;
|
|
87
|
+
readonly summary: Schema.String;
|
|
88
|
+
readonly changedRefs: Schema.$Array<Schema.Struct<{
|
|
89
|
+
readonly kind: Schema.String;
|
|
90
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
91
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
92
|
+
}>>;
|
|
93
|
+
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
94
|
+
readonly kind: Schema.String;
|
|
95
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
96
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
97
|
+
}>>;
|
|
98
|
+
readonly plan: Schema.optionalKey<Schema.Struct<{
|
|
99
|
+
readonly contractVersion: Schema.Literal<"fix-flow.v1">;
|
|
100
|
+
readonly productName: Schema.Literal<"Fix Flow">;
|
|
101
|
+
readonly target: Schema.Struct<{
|
|
102
|
+
readonly kind: Schema.Literals<readonly ["loop_step", "step_attempt", "run", "task", "runner_replica"]>;
|
|
103
|
+
readonly id: Schema.String;
|
|
104
|
+
}>;
|
|
105
|
+
readonly canonicalIds: Schema.Struct<{
|
|
106
|
+
readonly workUnitId: Schema.optionalKey<Schema.String>;
|
|
107
|
+
readonly stepAttemptId: Schema.optionalKey<Schema.String>;
|
|
108
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
109
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
110
|
+
readonly runnerReplicaId: Schema.optionalKey<Schema.String>;
|
|
111
|
+
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly failure: Schema.Struct<{
|
|
114
|
+
readonly outcome: Schema.Literals<readonly ["retry", "repair_task", "blocked", "terminal_failure"]>;
|
|
115
|
+
readonly category: Schema.Literals<readonly ["harness_error", "sandbox_error", "verification_failed", "review_failed", "delivery_failed", "missing_context", "context_stale", "rate_limited", "canceled", "missing_skill", "stale_lease", "missing_secret", "materialization_failed", "runner_unavailable", "sandbox_unsupported", "readiness_blocked", "unknown"]>;
|
|
116
|
+
readonly summary: Schema.String;
|
|
117
|
+
readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
|
|
118
|
+
readonly repairTask: Schema.optionalKey<Schema.Struct<{
|
|
119
|
+
readonly title: Schema.String;
|
|
120
|
+
readonly reason: Schema.String;
|
|
121
|
+
readonly blocksCurrentTask: Schema.Boolean;
|
|
122
|
+
readonly suggestedStatus: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"blocked">, Schema.Literal<"backlog">]>>;
|
|
123
|
+
}>>;
|
|
124
|
+
readonly evidenceRefs: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
125
|
+
readonly kind: Schema.String;
|
|
126
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
127
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
128
|
+
}>>>;
|
|
129
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<FixFlowSafeMetadataValue, FixFlowSafeMetadataValue, never, never>>>;
|
|
130
|
+
}>;
|
|
131
|
+
readonly recommendedAction: Schema.Struct<{
|
|
132
|
+
readonly kind: Schema.Literals<readonly ["retry", "repair_readiness", "refresh_context", "sync_agent_environment", "escalate_sandbox", "pause", "resume", "cancel", "takeover", "rotate_secret_ref", "rerun_verification", "create_follow_up", "drain_replica", "discard_cache"]>;
|
|
133
|
+
readonly label: Schema.String;
|
|
134
|
+
readonly reason: Schema.String;
|
|
135
|
+
readonly requiresApproval: Schema.Boolean;
|
|
136
|
+
}>;
|
|
137
|
+
readonly evidenceRefs: Schema.$Array<Schema.Struct<{
|
|
138
|
+
readonly kind: Schema.String;
|
|
139
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
140
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
141
|
+
}>>;
|
|
142
|
+
}>>;
|
|
143
|
+
}>;
|
|
144
|
+
export type FixFlowRecoveryAction = (typeof FixFlowRecoveryAction)['Type'];
|
|
145
|
+
export type FixFlowFailure = (typeof FixFlowFailure)['Type'];
|
|
146
|
+
export type FixFlowRecoveryPlan = (typeof FixFlowRecoveryPlan)['Type'];
|
|
147
|
+
export type FixFlowRecoveryRequest = (typeof FixFlowRecoveryRequest)['Type'];
|
|
148
|
+
export type FixFlowRecoveryResult = (typeof FixFlowRecoveryResult)['Type'];
|
|
149
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const FollowTarget: Schema.Struct<{
|
|
3
|
+
readonly kind: Schema.Literal<"task">;
|
|
4
|
+
readonly taskId: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const FollowEventPreset: Schema.Literals<readonly ["attention", "all"]>;
|
|
7
|
+
export declare const FollowCreate: Schema.Struct<{
|
|
8
|
+
readonly target: Schema.Struct<{
|
|
9
|
+
readonly kind: Schema.Literal<"task">;
|
|
10
|
+
readonly taskId: Schema.String;
|
|
11
|
+
}>;
|
|
12
|
+
readonly preset: Schema.optionalKey<Schema.Literals<readonly ["attention", "all"]>>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const Follow: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
readonly workspaceId: Schema.String;
|
|
17
|
+
readonly target: Schema.Struct<{
|
|
18
|
+
readonly kind: Schema.Literal<"task">;
|
|
19
|
+
readonly taskId: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
readonly preset: Schema.Literals<readonly ["attention", "all"]>;
|
|
22
|
+
readonly createdAt: Schema.String;
|
|
23
|
+
readonly updatedAt: Schema.String;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const FollowListQuery: Schema.Struct<{
|
|
26
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
27
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const FollowList: Schema.Struct<{
|
|
30
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
readonly workspaceId: Schema.String;
|
|
33
|
+
readonly target: Schema.Struct<{
|
|
34
|
+
readonly kind: Schema.Literal<"task">;
|
|
35
|
+
readonly taskId: Schema.String;
|
|
36
|
+
}>;
|
|
37
|
+
readonly preset: Schema.Literals<readonly ["attention", "all"]>;
|
|
38
|
+
readonly createdAt: Schema.String;
|
|
39
|
+
readonly updatedAt: Schema.String;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
|
|
42
|
+
readonly limit: Schema.Int;
|
|
43
|
+
readonly hasNextPage: Schema.Literal<false>;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
readonly limit: Schema.Int;
|
|
46
|
+
readonly hasNextPage: Schema.Literal<true>;
|
|
47
|
+
readonly nextCursor: Schema.String;
|
|
48
|
+
}>]>;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const FollowDelete: Schema.Struct<{
|
|
51
|
+
readonly deleted: Schema.Literal<true>;
|
|
52
|
+
}>;
|
|
53
|
+
export type FollowTarget = (typeof FollowTarget)['Type'];
|
|
54
|
+
export type FollowEventPreset = (typeof FollowEventPreset)['Type'];
|
|
55
|
+
export type FollowCreate = (typeof FollowCreate)['Type'];
|
|
56
|
+
export type Follow = (typeof Follow)['Type'];
|
|
57
|
+
export type FollowListQuery = (typeof FollowListQuery)['Type'];
|
|
58
|
+
export type FollowList = (typeof FollowList)['Type'];
|
|
59
|
+
export type FollowDelete = (typeof FollowDelete)['Type'];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Non-secret certification fixtures. Hosted GitHub and GHES remain independent rows. */
|
|
2
|
+
export declare const GitHubDeliveryCertificationFixtures: readonly [{
|
|
3
|
+
readonly rowId: 'DELIVERY-GITHUB-COM-EPIC-INTEGRATION-V1';
|
|
4
|
+
readonly hostClass: 'github_com';
|
|
5
|
+
readonly host: 'github.com';
|
|
6
|
+
readonly repositoryId: 'fixture-github-com-repository';
|
|
7
|
+
readonly owner: 'kitman-fixtures';
|
|
8
|
+
readonly repositoryName: 'epic-delivery';
|
|
9
|
+
readonly adapterVersion: 'github.v1';
|
|
10
|
+
readonly apiVersion: '2022-11-28';
|
|
11
|
+
readonly accountScopeDigest: string;
|
|
12
|
+
readonly apiBaseUrl: 'https://api.github.com';
|
|
13
|
+
readonly protectionProfile: 'protected-default-human-merge';
|
|
14
|
+
readonly authMode: 'runner_secret_ref';
|
|
15
|
+
}, {
|
|
16
|
+
readonly rowId: 'DELIVERY-GHES-EPIC-INTEGRATION-V1';
|
|
17
|
+
readonly hostClass: 'github_enterprise_server';
|
|
18
|
+
readonly host: 'github.example.test';
|
|
19
|
+
readonly repositoryId: 'fixture-ghes-repository';
|
|
20
|
+
readonly owner: 'kitman-fixtures';
|
|
21
|
+
readonly repositoryName: 'epic-delivery';
|
|
22
|
+
readonly adapterVersion: 'github.v1';
|
|
23
|
+
readonly apiVersion: '2022-11-28';
|
|
24
|
+
readonly accountScopeDigest: string;
|
|
25
|
+
readonly apiBaseUrl: 'https://github.example.test/api/v3';
|
|
26
|
+
readonly protectionProfile: 'protected-default-human-merge';
|
|
27
|
+
readonly authMode: 'runner_secret_ref';
|
|
28
|
+
}];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { JsonValue } from './runtime-type';
|
|
2
|
+
import type { DeliveryAttempt, DeliveryPolicy, DeliveryPolicyOperation } from './delivery-policy';
|
|
3
|
+
export declare const GitHubProviderOperations: readonly ['create_branch', 'update_branch', 'create_pull_request', 'update_pull_request', 'read_checks', 'request_review', 'record_review', 'update_description', 'reply_review_thread', 'set_draft_state', 'publish_check_run', 'set_pull_request_state', 'enqueue_pull_request', 'delete_merged_branch', 'merge_pull_request', 'reconcile', 'conflict'];
|
|
4
|
+
type GitHubProviderOperation = (typeof GitHubProviderOperations)[number];
|
|
5
|
+
type GitHubHostClass = 'github_com' | 'github_enterprise_server';
|
|
6
|
+
type GitHubObservationClassification = 'found_same' | 'not_found' | 'found_conflict';
|
|
7
|
+
export declare function assertGitHubProviderOperation(deliveryOperation: DeliveryPolicyOperation, providerOperation: GitHubProviderOperation): void;
|
|
8
|
+
export declare function githubProviderOperationForDeliveryOperation(deliveryOperation: DeliveryPolicyOperation): GitHubProviderOperation;
|
|
9
|
+
export interface DeclaredGitHubRepository {
|
|
10
|
+
readonly rowId: string;
|
|
11
|
+
readonly hostClass: GitHubHostClass;
|
|
12
|
+
readonly host: string;
|
|
13
|
+
readonly repositoryId: string;
|
|
14
|
+
readonly owner: string;
|
|
15
|
+
readonly repositoryName: string;
|
|
16
|
+
readonly adapterVersion: string;
|
|
17
|
+
readonly apiVersion: string;
|
|
18
|
+
readonly accountScopeDigest: string;
|
|
19
|
+
readonly apiBaseUrl: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GitHubDeliveryExpectation {
|
|
22
|
+
readonly operation: GitHubProviderOperation;
|
|
23
|
+
readonly deliveryOperation: DeliveryPolicyOperation;
|
|
24
|
+
readonly repositoryId: string;
|
|
25
|
+
readonly host: string;
|
|
26
|
+
readonly sourceBranch?: string;
|
|
27
|
+
readonly targetBranch?: string;
|
|
28
|
+
readonly sourceSha?: string;
|
|
29
|
+
readonly targetSha?: string;
|
|
30
|
+
readonly pullRequestNumber?: string;
|
|
31
|
+
readonly title?: string;
|
|
32
|
+
readonly effectMarker: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GitHubProviderObservation {
|
|
35
|
+
readonly operation: GitHubProviderOperation;
|
|
36
|
+
readonly repositoryId: string;
|
|
37
|
+
readonly host: string;
|
|
38
|
+
readonly providerObjectId?: string;
|
|
39
|
+
readonly pullRequestNumber?: string;
|
|
40
|
+
readonly sourceBranch?: string;
|
|
41
|
+
readonly targetBranch?: string;
|
|
42
|
+
readonly sourceSha?: string;
|
|
43
|
+
readonly targetSha?: string;
|
|
44
|
+
readonly effectMarker?: string;
|
|
45
|
+
readonly resultingSha?: string;
|
|
46
|
+
}
|
|
47
|
+
type GitHubIdentityPin = 'sourceBranch' | 'targetBranch' | 'sourceSha' | 'targetSha' | 'pullRequestNumber';
|
|
48
|
+
export declare function githubIdentityPinsForOperation(operation: GitHubProviderOperation): readonly GitHubIdentityPin[];
|
|
49
|
+
export declare function normalizeGitHubDeliveryExpectation(expectation: GitHubDeliveryExpectation, attempt: Pick<DeliveryAttempt, 'source' | 'target'>): GitHubDeliveryExpectation;
|
|
50
|
+
declare const GitHubDeliveryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
51
|
+
readonly _tag: "GitHubDeliveryError";
|
|
52
|
+
} & Readonly<A>;
|
|
53
|
+
export declare class GitHubDeliveryError extends GitHubDeliveryError_base<{
|
|
54
|
+
readonly code: string;
|
|
55
|
+
readonly message: string;
|
|
56
|
+
}> {
|
|
57
|
+
constructor(code: string, message: string);
|
|
58
|
+
}
|
|
59
|
+
export declare function isDeclaredGitHubHost(input: Pick<DeclaredGitHubRepository, 'hostClass' | 'host'>): boolean;
|
|
60
|
+
export declare function assertDeclaredGitHubRepository(repository: DeclaredGitHubRepository): void;
|
|
61
|
+
export declare function assertSafeGitHubRef(ref: string): void;
|
|
62
|
+
export declare function githubRepositoryPath(repository: Pick<DeclaredGitHubRepository, 'owner' | 'repositoryName'>): string;
|
|
63
|
+
export declare function assertGitHubDeliveryTarget(input: {
|
|
64
|
+
readonly policy: DeliveryPolicy;
|
|
65
|
+
readonly operation: DeliveryPolicyOperation;
|
|
66
|
+
readonly targetBranch: string;
|
|
67
|
+
}): void;
|
|
68
|
+
export declare function githubRequestMarker(input: {
|
|
69
|
+
readonly effectKey: string;
|
|
70
|
+
readonly policyDigest: string;
|
|
71
|
+
}): string;
|
|
72
|
+
export declare function classifyGitHubProviderObservation(expected: GitHubDeliveryExpectation, observed: GitHubProviderObservation | null): GitHubObservationClassification;
|
|
73
|
+
export declare function assertExactGitHubSha(expected: string, observed: string, kind: 'source' | 'target'): void;
|
|
74
|
+
export type GitHubProviderEvidence = {
|
|
75
|
+
readonly [key: string]: JsonValue;
|
|
76
|
+
};
|
|
77
|
+
export declare function safeGitHubProviderEvidence<Evidence extends GitHubProviderEvidence>(input: Evidence): Evidence;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Non-secret certification fixtures. They intentionally describe two independent rows. */
|
|
2
|
+
export declare const GitLabDeliveryCertificationFixtures: readonly [{
|
|
3
|
+
readonly rowId: 'DELIVERY-GITLAB-COM-EPIC-INTEGRATION-V1';
|
|
4
|
+
readonly hostClass: 'gitlab_com';
|
|
5
|
+
readonly host: 'gitlab.com';
|
|
6
|
+
readonly projectId: 'fixture-gitlab-com-project';
|
|
7
|
+
readonly owner: 'kitman-fixtures';
|
|
8
|
+
readonly repositoryName: 'epic-delivery';
|
|
9
|
+
readonly adapterVersion: 'gitlab.v1';
|
|
10
|
+
readonly accountScopeDigest: string;
|
|
11
|
+
readonly apiBaseUrl: 'https://gitlab.com/api/v4';
|
|
12
|
+
readonly protectionProfile: 'protected-default-human-merge';
|
|
13
|
+
readonly authMode: 'runner_secret_ref';
|
|
14
|
+
}, {
|
|
15
|
+
readonly rowId: 'DELIVERY-GITLAB-SELF-MANAGED-EPIC-INTEGRATION-V1';
|
|
16
|
+
readonly hostClass: 'gitlab_self_managed';
|
|
17
|
+
readonly host: 'gitlab.example.test';
|
|
18
|
+
readonly projectId: 'fixture-gitlab-self-managed-project';
|
|
19
|
+
readonly owner: 'kitman-fixtures';
|
|
20
|
+
readonly repositoryName: 'epic-delivery';
|
|
21
|
+
readonly adapterVersion: 'gitlab.v1';
|
|
22
|
+
readonly accountScopeDigest: string;
|
|
23
|
+
readonly apiBaseUrl: 'https://gitlab.example.test/api/v4';
|
|
24
|
+
readonly protectionProfile: 'protected-default-human-merge';
|
|
25
|
+
readonly authMode: 'runner_secret_ref';
|
|
26
|
+
}];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { JsonValue } from './runtime-type';
|
|
2
|
+
import type { DeliveryAttempt, DeliveryPolicy, DeliveryPolicyOperation } from './delivery-policy';
|
|
3
|
+
export declare const GitLabProviderOperations: readonly ['create_branch', 'update_branch', 'create_merge_request', 'update_merge_request', 'read_checks', 'request_review', 'record_review', 'update_description', 'reply_discussion', 'set_draft_state', 'publish_commit_status', 'set_merge_request_state', 'enqueue_merge_train', 'delete_merged_branch', 'merge_merge_request', 'revert_merge_request', 'reconcile', 'conflict'];
|
|
4
|
+
type GitLabProviderOperation = (typeof GitLabProviderOperations)[number];
|
|
5
|
+
type GitLabHostClass = 'gitlab_com' | 'gitlab_self_managed';
|
|
6
|
+
type GitLabObservationClassification = 'found_same' | 'not_found' | 'found_conflict';
|
|
7
|
+
export declare function assertGitLabProviderOperation(deliveryOperation: DeliveryPolicyOperation, providerOperation: GitLabProviderOperation): void;
|
|
8
|
+
export declare function gitlabProviderOperationForDeliveryOperation(deliveryOperation: DeliveryPolicyOperation): GitLabProviderOperation;
|
|
9
|
+
export interface DeclaredGitLabProject {
|
|
10
|
+
readonly rowId: string;
|
|
11
|
+
readonly hostClass: GitLabHostClass;
|
|
12
|
+
readonly host: string;
|
|
13
|
+
readonly projectId: string;
|
|
14
|
+
readonly owner: string;
|
|
15
|
+
readonly repositoryName: string;
|
|
16
|
+
readonly adapterVersion: string;
|
|
17
|
+
readonly accountScopeDigest: string;
|
|
18
|
+
readonly apiBaseUrl: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GitLabDeliveryExpectation {
|
|
21
|
+
readonly operation: GitLabProviderOperation;
|
|
22
|
+
readonly deliveryOperation: DeliveryPolicyOperation;
|
|
23
|
+
readonly projectId: string;
|
|
24
|
+
readonly host: string;
|
|
25
|
+
readonly sourceBranch?: string;
|
|
26
|
+
readonly targetBranch?: string;
|
|
27
|
+
readonly sourceSha?: string;
|
|
28
|
+
readonly targetSha?: string;
|
|
29
|
+
readonly mergeRequestIid?: string;
|
|
30
|
+
readonly title?: string;
|
|
31
|
+
readonly effectMarker: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GitLabProviderObservation {
|
|
34
|
+
readonly operation: GitLabProviderOperation;
|
|
35
|
+
readonly projectId: string;
|
|
36
|
+
readonly host: string;
|
|
37
|
+
readonly providerObjectId?: string;
|
|
38
|
+
readonly mergeRequestIid?: string;
|
|
39
|
+
readonly sourceBranch?: string;
|
|
40
|
+
readonly targetBranch?: string;
|
|
41
|
+
readonly sourceSha?: string;
|
|
42
|
+
readonly targetSha?: string;
|
|
43
|
+
readonly effectMarker?: string;
|
|
44
|
+
readonly resultingSha?: string;
|
|
45
|
+
}
|
|
46
|
+
type GitLabIdentityPin = 'sourceBranch' | 'targetBranch' | 'sourceSha' | 'targetSha' | 'mergeRequestIid';
|
|
47
|
+
export declare function gitLabIdentityPinsForOperation(operation: GitLabProviderOperation): readonly GitLabIdentityPin[];
|
|
48
|
+
export declare function normalizeGitLabDeliveryExpectation(expectation: GitLabDeliveryExpectation, attempt: Pick<DeliveryAttempt, 'source' | 'target'>): GitLabDeliveryExpectation;
|
|
49
|
+
declare const GitLabDeliveryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
50
|
+
readonly _tag: "GitLabDeliveryError";
|
|
51
|
+
} & Readonly<A>;
|
|
52
|
+
export declare class GitLabDeliveryError extends GitLabDeliveryError_base<{
|
|
53
|
+
readonly code: string;
|
|
54
|
+
readonly message: string;
|
|
55
|
+
}> {
|
|
56
|
+
constructor(code: string, message: string);
|
|
57
|
+
}
|
|
58
|
+
export declare function isDeclaredGitLabHost(input: Pick<DeclaredGitLabProject, 'hostClass' | 'host'>): boolean;
|
|
59
|
+
export declare function assertDeclaredGitLabProject(project: DeclaredGitLabProject): void;
|
|
60
|
+
export declare function assertSafeGitLabRef(ref: string): void;
|
|
61
|
+
export declare function assertGitLabDeliveryTarget(input: {
|
|
62
|
+
readonly policy: DeliveryPolicy;
|
|
63
|
+
readonly operation: DeliveryPolicyOperation;
|
|
64
|
+
readonly targetBranch: string;
|
|
65
|
+
}): void;
|
|
66
|
+
export declare function gitLabRequestMarker(input: {
|
|
67
|
+
readonly effectKey: string;
|
|
68
|
+
readonly policyDigest: string;
|
|
69
|
+
}): string;
|
|
70
|
+
export declare function classifyGitLabProviderObservation(expected: GitLabDeliveryExpectation, observed: GitLabProviderObservation | null): GitLabObservationClassification;
|
|
71
|
+
export declare function assertExactGitLabSha(expected: string, observed: string, kind: 'source' | 'target'): void;
|
|
72
|
+
export type GitLabProviderEvidence = {
|
|
73
|
+
readonly [key: string]: JsonValue;
|
|
74
|
+
};
|
|
75
|
+
export declare function safeGitLabProviderEvidence<Evidence extends GitLabProviderEvidence>(input: Evidence): Evidence;
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
declare const GlobalSearchKinds: readonly ['task', 'loop', 'runner'];
|
|
3
|
+
export type GlobalSearchKind = (typeof GlobalSearchKinds)[number];
|
|
4
|
+
export declare const GlobalSearchQuery: Schema.Struct<{
|
|
5
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
6
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
7
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
8
|
+
}>;
|
|
9
|
+
export type GlobalSearchQuery = (typeof GlobalSearchQuery)['Type'];
|
|
10
|
+
export declare const GlobalSearchItem: Schema.Struct<{
|
|
11
|
+
readonly id: Schema.String;
|
|
12
|
+
readonly kind: Schema.Literals<readonly ["task", "loop", "runner"]>;
|
|
13
|
+
readonly title: Schema.String;
|
|
14
|
+
readonly subtitle: Schema.String;
|
|
15
|
+
readonly to: Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>;
|
|
16
|
+
}>;
|
|
17
|
+
export type GlobalSearchItem = (typeof GlobalSearchItem)['Type'];
|
|
18
|
+
export declare const GlobalSearchPage: Schema.Struct<{
|
|
19
|
+
readonly scope: Schema.Struct<{
|
|
20
|
+
readonly workspaceId: Schema.String;
|
|
21
|
+
readonly projectId: Schema.String;
|
|
22
|
+
}>;
|
|
23
|
+
readonly query: Schema.String;
|
|
24
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly id: Schema.String;
|
|
26
|
+
readonly kind: Schema.Literals<readonly ["task", "loop", "runner"]>;
|
|
27
|
+
readonly title: Schema.String;
|
|
28
|
+
readonly subtitle: Schema.String;
|
|
29
|
+
readonly to: Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>;
|
|
30
|
+
}>>;
|
|
31
|
+
readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
|
|
32
|
+
readonly limit: Schema.Int;
|
|
33
|
+
readonly hasNextPage: Schema.Literal<false>;
|
|
34
|
+
}>, Schema.Struct<{
|
|
35
|
+
readonly limit: Schema.Int;
|
|
36
|
+
readonly hasNextPage: Schema.Literal<true>;
|
|
37
|
+
readonly nextCursor: Schema.String;
|
|
38
|
+
}>]>;
|
|
39
|
+
readonly completeness: Schema.Union<readonly [Schema.Literal<"complete">, Schema.Literal<"partial">]>;
|
|
40
|
+
}>;
|
|
41
|
+
export type GlobalSearchPage = (typeof GlobalSearchPage)['Type'];
|
|
42
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createId(): string;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './connection';
|
|
3
|
+
export * from './provider-safe-text';
|
|
4
|
+
export * from './me';
|
|
5
|
+
export * from './workspace';
|
|
6
|
+
export * from './project';
|
|
7
|
+
export * from './scope-directory';
|
|
8
|
+
export * from './agent-environment';
|
|
9
|
+
export * from './extension';
|
|
10
|
+
export * from './sync-kit';
|
|
11
|
+
export * from './agent-sandbox-policy';
|
|
12
|
+
export * from './agent-launch-snapshot';
|
|
13
|
+
export * from './kit';
|
|
14
|
+
export * from './kit-taxonomy';
|
|
15
|
+
export * from './memory';
|
|
16
|
+
export * from './proposal';
|
|
17
|
+
export * from './decision';
|
|
18
|
+
export * from './session';
|
|
19
|
+
export * from './context-pack';
|
|
20
|
+
export * from './context-feedback';
|
|
21
|
+
export * from './fix-flow';
|
|
22
|
+
export * from './task';
|
|
23
|
+
export * from './task-key';
|
|
24
|
+
export * from './agent-capabilities';
|
|
25
|
+
export * from './personal-development-profile';
|
|
26
|
+
export * from './repo-binding';
|
|
27
|
+
export * from './runner';
|
|
28
|
+
export * from './runner-routing';
|
|
29
|
+
export * from './runner-eligibility';
|
|
30
|
+
export * from './runner-trust';
|
|
31
|
+
export * from './platform-release';
|
|
32
|
+
export * from './work-unit';
|
|
33
|
+
export * from './external-effect';
|
|
34
|
+
export * from './global-search';
|
|
35
|
+
export * from './change-delivery';
|
|
36
|
+
export * from './change-request';
|
|
37
|
+
export * from './change-request-review';
|
|
38
|
+
export * from './engineering-resources';
|
|
39
|
+
export * from './delivery-policy';
|
|
40
|
+
export * from './delivery-operation';
|
|
41
|
+
export * from './epic-delivery';
|
|
42
|
+
export * from './gitlab-delivery';
|
|
43
|
+
export * from './gitlab-delivery-fixtures';
|
|
44
|
+
export * from './github-delivery';
|
|
45
|
+
export * from './github-delivery-fixtures';
|
|
46
|
+
export * from './integration';
|
|
47
|
+
export * from './enterprise-code-host';
|
|
48
|
+
export * from './loop';
|
|
49
|
+
export * from './run-launch';
|
|
50
|
+
export * from './my-teams';
|
|
51
|
+
export * from './notification';
|
|
52
|
+
export * from './intent';
|
|
53
|
+
export * from './loop-version';
|
|
54
|
+
export * from './id';
|
|
55
|
+
export * from './live';
|
|
56
|
+
export * from './run';
|
|
57
|
+
export * from './step-brief';
|
|
58
|
+
export * from './program-credential';
|
|
59
|
+
export * from './trigger-dispatch';
|
|
60
|
+
export * from './schedule';
|
|
61
|
+
export * from './task-detail';
|
|
62
|
+
export * from './task-execution-record';
|
|
63
|
+
export * from './a2a';
|
|
64
|
+
export * from './audit';
|
|
65
|
+
export * from './redaction';
|
|
66
|
+
export * from './observability';
|
|
67
|
+
export * from './following';
|
|
68
|
+
export * from './approval-queue';
|
|
69
|
+
export * from './data-lifecycle';
|
|
70
|
+
export * from './run-journal';
|
|
71
|
+
export * from './loop-layers';
|
|
72
|
+
export * from './package-declarations';
|
|
73
|
+
export * from './secret';
|
|
74
|
+
export * from './package';
|