@kitman-sh/sdk 0.7.5 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.js +10 -11
- package/dist/{chunk-72z6zbfz.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-8byx9rx2.js → chunk-36jhc745.js} +195 -76
- package/dist/loop/index.js +43 -1
- package/dist/program/index.js +7 -3
- package/package.json +3 -1
- package/types/packages/core/src/agent-capabilities.d.ts +68 -74
- package/types/packages/core/src/agent-environment.d.ts +26 -26
- package/types/packages/core/src/agent-launch-snapshot.d.ts +1 -1
- package/types/packages/core/src/agent-sandbox-policy.d.ts +15 -0
- package/types/packages/core/src/approval-queue.d.ts +4 -4
- package/types/packages/core/src/audit.d.ts +1 -1
- package/types/packages/core/src/change-delivery.d.ts +1 -1
- package/types/packages/core/src/change-request-review.d.ts +199 -7
- package/types/packages/core/src/change-request.d.ts +43 -12
- package/types/packages/core/src/connection.d.ts +1 -1
- package/types/packages/core/src/context-feedback.d.ts +8 -8
- package/types/packages/core/src/context-pack.d.ts +8 -8
- package/types/packages/core/src/crypto.d.ts +5 -0
- package/types/packages/core/src/data-lifecycle.d.ts +12 -12
- package/types/packages/core/src/decision.d.ts +2 -2
- package/types/packages/core/src/delivery-policy.d.ts +3 -3
- package/types/packages/core/src/enterprise-forge.d.ts +19 -0
- package/types/packages/core/src/epic-delivery.d.ts +1 -1
- package/types/packages/core/src/external-effect.d.ts +2 -2
- package/types/packages/core/src/global-search.d.ts +1 -1
- package/types/packages/core/src/index.d.ts +8 -2
- package/types/packages/core/src/integration.d.ts +58 -57
- package/types/packages/core/src/kit.d.ts +47 -47
- package/types/packages/core/src/live.d.ts +684 -781
- package/types/packages/core/src/loop-layers.d.ts +1 -1
- package/types/packages/core/src/loop-version.d.ts +1 -1
- package/types/packages/core/src/loop.d.ts +73 -67
- package/types/packages/core/src/marketplace.d.ts +127 -0
- package/types/packages/core/src/memory.d.ts +17 -12
- package/types/packages/core/src/my-teams.d.ts +65 -32
- package/types/packages/core/src/notification.d.ts +73 -12
- package/types/packages/core/src/owner.d.ts +15 -0
- package/types/packages/core/src/package-declarations.d.ts +73 -32
- package/types/packages/core/src/package.d.ts +22 -22
- package/types/packages/core/src/personal-development-profile.d.ts +2 -2
- package/types/packages/core/src/proposal.d.ts +25 -25
- package/types/packages/core/src/redaction.d.ts +2 -1
- package/types/packages/core/src/repo-binding.d.ts +19 -10
- package/types/packages/core/src/run-display.d.ts +1 -1
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-launch.d.ts +7 -5
- package/types/packages/core/src/run.d.ts +9 -9
- package/types/packages/core/src/runner-eligibility.d.ts +4 -4
- package/types/packages/core/src/runner.d.ts +339 -111
- package/types/packages/core/src/schedule.d.ts +2 -2
- package/types/packages/core/src/scope-directory.d.ts +5 -5
- package/types/packages/core/src/secret.d.ts +9 -9
- package/types/packages/core/src/session.d.ts +2 -2
- package/types/packages/core/src/step-brief.d.ts +10 -3
- package/types/packages/core/src/storage.d.ts +49 -0
- package/types/packages/core/src/sync-kit.d.ts +25 -25
- package/types/packages/core/src/task-detail.d.ts +20 -13
- package/types/packages/core/src/task-execution-record.d.ts +6 -6
- package/types/packages/core/src/task.d.ts +52 -16
- package/types/packages/core/src/team-context.d.ts +33 -0
- package/types/packages/core/src/transcript.d.ts +230 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +2 -2
- package/types/packages/core/src/trust-panel.d.ts +27 -0
- package/types/packages/core/src/work-unit.d.ts +44 -18
- package/types/packages/core/src/workspace.d.ts +77 -6
- package/types/packages/live/src/rpc/runner-client.d.ts +586 -15
- package/types/packages/live/src/rpc/runner-group.d.ts +623 -267
- package/types/packages/sdk/src/loop/activities.d.ts +208 -1
- package/types/packages/sdk/src/loop/config.d.ts +1 -1
- package/types/packages/sdk/src/loop/define.d.ts +8 -2
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +2 -2
- package/types/packages/sdk/src/loop/test-loop.d.ts +6 -1
- package/types/packages/sdk/src/program/engine.d.ts +71 -3
- package/types/packages/sdk/src/program/host.d.ts +13 -1
- package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
- package/types/packages/core/src/project.d.ts +0 -66
|
@@ -92,7 +92,7 @@ export declare const AgentPolicy: Schema.Struct<{
|
|
|
92
92
|
}>;
|
|
93
93
|
export type AgentPolicy = (typeof AgentPolicy)['Type'];
|
|
94
94
|
export declare const AgentProvenance: Schema.Struct<{
|
|
95
|
-
readonly source: Schema.Union<readonly [Schema.Literal<"kitman">, Schema.Literal<"workspace">, Schema.Literal<"
|
|
95
|
+
readonly source: Schema.Union<readonly [Schema.Literal<"kitman">, Schema.Literal<"workspace">, Schema.Literal<"team">, Schema.Literal<"git">, Schema.Literal<"package">, Schema.Literal<"import">]>;
|
|
96
96
|
readonly sourceRef: Schema.optionalKey<Schema.String>;
|
|
97
97
|
readonly sourceCommitSha: Schema.optionalKey<Schema.String>;
|
|
98
98
|
readonly contentSha256: Schema.String;
|
|
@@ -109,7 +109,7 @@ export declare const Agent: Schema.Struct<{
|
|
|
109
109
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
110
110
|
readonly id: Schema.String;
|
|
111
111
|
readonly workspaceId: Schema.String;
|
|
112
|
-
readonly
|
|
112
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
113
113
|
readonly name: Schema.String;
|
|
114
114
|
readonly slug: Schema.String;
|
|
115
115
|
readonly currentVersion: Schema.optionalKey<Schema.Int>;
|
|
@@ -214,7 +214,7 @@ export declare const RunMessage: Schema.Struct<{
|
|
|
214
214
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
215
215
|
readonly id: Schema.String;
|
|
216
216
|
readonly workspaceId: Schema.String;
|
|
217
|
-
readonly
|
|
217
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
218
218
|
readonly rootRunId: Schema.String;
|
|
219
219
|
readonly sender: Schema.Union<readonly [Schema.Struct<{
|
|
220
220
|
readonly kind: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"step_attempt">]>;
|
|
@@ -337,7 +337,7 @@ export declare const RunResult: Schema.Struct<{
|
|
|
337
337
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
338
338
|
readonly id: Schema.String;
|
|
339
339
|
readonly workspaceId: Schema.String;
|
|
340
|
-
readonly
|
|
340
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
341
341
|
readonly runId: Schema.String;
|
|
342
342
|
readonly rootRunId: Schema.String;
|
|
343
343
|
readonly attempt: Schema.Int;
|
|
@@ -395,7 +395,7 @@ export declare const RunEvent: Schema.Struct<{
|
|
|
395
395
|
readonly streamId: Schema.String;
|
|
396
396
|
readonly sequence: Schema.Int;
|
|
397
397
|
readonly workspaceId: Schema.String;
|
|
398
|
-
readonly
|
|
398
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
399
399
|
readonly subject: Schema.Struct<{
|
|
400
400
|
readonly kind: Schema.String;
|
|
401
401
|
readonly id: Schema.String;
|
|
@@ -422,7 +422,7 @@ export declare const Wait: Schema.Struct<{
|
|
|
422
422
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
423
423
|
readonly id: Schema.String;
|
|
424
424
|
readonly workspaceId: Schema.String;
|
|
425
|
-
readonly
|
|
425
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
426
426
|
readonly runId: Schema.String;
|
|
427
427
|
readonly rootRunId: Schema.String;
|
|
428
428
|
readonly stepKey: Schema.optionalKey<Schema.String>;
|
|
@@ -464,7 +464,7 @@ export declare const ControlCommand: Schema.Struct<{
|
|
|
464
464
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
465
465
|
readonly id: Schema.String;
|
|
466
466
|
readonly workspaceId: Schema.String;
|
|
467
|
-
readonly
|
|
467
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
468
468
|
readonly target: Schema.Struct<{
|
|
469
469
|
readonly kind: Schema.String;
|
|
470
470
|
readonly id: Schema.String;
|
|
@@ -497,7 +497,7 @@ export declare const ControlCommandList: Schema.Struct<{
|
|
|
497
497
|
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
498
498
|
readonly id: Schema.String;
|
|
499
499
|
readonly workspaceId: Schema.String;
|
|
500
|
-
readonly
|
|
500
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
501
501
|
readonly target: Schema.Struct<{
|
|
502
502
|
readonly kind: Schema.String;
|
|
503
503
|
readonly id: Schema.String;
|
|
@@ -532,7 +532,7 @@ export declare const RunCommandCenterSnapshot: Schema.Struct<{
|
|
|
532
532
|
readonly scope: Schema.Struct<{
|
|
533
533
|
readonly kind: Schema.Literal<"run">;
|
|
534
534
|
readonly workspaceId: Schema.String;
|
|
535
|
-
readonly
|
|
535
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
536
536
|
readonly runId: Schema.String;
|
|
537
537
|
}>;
|
|
538
538
|
readonly capturedAt: Schema.String;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Runner, type RunnerCapabilities } from './runner';
|
|
2
2
|
import type { RunnerExecutionRouting } from './runner-routing';
|
|
3
|
-
export declare const RunnerEligibilityReasonCodes: readonly ['workspace_mismatch', '
|
|
3
|
+
export declare const RunnerEligibilityReasonCodes: readonly ['workspace_mismatch', 'team_access_denied', 'personal_owner_attribution_required', 'personal_owner_team_access_denied', 'agent_identity_authority_missing', 'foreground_target_required', 'foreground_target_mismatch', 'foreground_target_not_personal', 'runner_requirements_mismatch', 'runner_replica_unavailable'];
|
|
4
4
|
export type RunnerEligibilityReasonCode = (typeof RunnerEligibilityReasonCodes)[number];
|
|
5
5
|
export type RunnerSchedulingAuthority = {
|
|
6
6
|
readonly kind: 'direct_human';
|
|
@@ -18,10 +18,10 @@ export type RunnerSchedulingAuthority = {
|
|
|
18
18
|
export interface RunnerEligibilityInput {
|
|
19
19
|
readonly runner: Runner;
|
|
20
20
|
readonly workspaceId: string;
|
|
21
|
-
readonly
|
|
21
|
+
readonly teamId: string;
|
|
22
22
|
readonly schedulingAuthority: RunnerSchedulingAuthority;
|
|
23
23
|
readonly routing?: RunnerExecutionRouting;
|
|
24
|
-
readonly
|
|
24
|
+
readonly ownerHasTeamAccess: boolean;
|
|
25
25
|
readonly agentIdentityAuthorized: boolean;
|
|
26
26
|
readonly requirementsMatch: boolean;
|
|
27
27
|
readonly replicaReady: boolean;
|
|
@@ -32,7 +32,7 @@ export interface RunnerEligibilityResult {
|
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* The only scope/authority predicate used by runner admission callers.
|
|
35
|
-
* Inputs such as labels, claimed
|
|
35
|
+
* Inputs such as labels, claimed Team IDs, or runner metadata are
|
|
36
36
|
* deliberately absent; callers must resolve them from trusted control-plane
|
|
37
37
|
* state before invoking this function.
|
|
38
38
|
*/
|