@kitman-sh/sdk 0.7.4 → 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-p8v1smcg.js → chunk-160ww64c.js} +668 -185
- package/dist/{chunk-7jc5y0mj.js → chunk-36jhc745.js} +285 -83
- 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 +10 -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 +694 -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 +488 -86
- 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 +238 -40
- 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 +97 -31
- 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 +12 -0
- package/types/packages/core/src/run-file.d.ts +190 -0
- package/types/packages/core/src/run-graph.d.ts +67 -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 +597 -241
- 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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
/** A Loop or Package in git or npm that the Marketplace lists; Kitman keeps no copy of it (ADR-0071). */
|
|
3
|
+
export declare const MarketplaceReference: Schema.Struct<{
|
|
4
|
+
readonly id: Schema.String;
|
|
5
|
+
readonly kind: Schema.Literals<readonly ["loop", "package"]>;
|
|
6
|
+
readonly name: Schema.String;
|
|
7
|
+
readonly publisher: Schema.String;
|
|
8
|
+
readonly description: Schema.String;
|
|
9
|
+
readonly category: Schema.String;
|
|
10
|
+
/** The name a configuration depends on it by. */
|
|
11
|
+
readonly package: Schema.String;
|
|
12
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
13
|
+
readonly type: Schema.Literal<"npm">;
|
|
14
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
15
|
+
}>, Schema.Struct<{
|
|
16
|
+
readonly type: Schema.Literal<"git">;
|
|
17
|
+
readonly url: Schema.String;
|
|
18
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
19
|
+
}>]>;
|
|
20
|
+
/** The Loops it provides, each by its id and the name the package exports it under. */
|
|
21
|
+
readonly loops: Schema.NonEmptyArray<Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly export: Schema.String;
|
|
24
|
+
}>>;
|
|
25
|
+
}>;
|
|
26
|
+
export type MarketplaceReference = typeof MarketplaceReference.Type;
|
|
27
|
+
export declare const MarketplaceReferences: Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly id: Schema.String;
|
|
29
|
+
readonly kind: Schema.Literals<readonly ["loop", "package"]>;
|
|
30
|
+
readonly name: Schema.String;
|
|
31
|
+
readonly publisher: Schema.String;
|
|
32
|
+
readonly description: Schema.String;
|
|
33
|
+
readonly category: Schema.String;
|
|
34
|
+
/** The name a configuration depends on it by. */
|
|
35
|
+
readonly package: Schema.String;
|
|
36
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
37
|
+
readonly type: Schema.Literal<"npm">;
|
|
38
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"git">;
|
|
41
|
+
readonly url: Schema.String;
|
|
42
|
+
readonly ref: Schema.optionalKey<Schema.String>;
|
|
43
|
+
}>]>;
|
|
44
|
+
/** The Loops it provides, each by its id and the name the package exports it under. */
|
|
45
|
+
readonly loops: Schema.NonEmptyArray<Schema.Struct<{
|
|
46
|
+
readonly id: Schema.String;
|
|
47
|
+
readonly export: Schema.String;
|
|
48
|
+
}>>;
|
|
49
|
+
}>>;
|
|
50
|
+
/** Kitman's own references. */
|
|
51
|
+
export declare const shippedMarketplaceReferences: readonly MarketplaceReference[];
|
|
52
|
+
export declare const MarketplaceItemKind: Schema.Literals<readonly ["kit", "loop", "package"]>;
|
|
53
|
+
export type MarketplaceItemKind = typeof MarketplaceItemKind.Type;
|
|
54
|
+
export declare const MarketplaceItemState: Schema.Union<readonly [Schema.Struct<{
|
|
55
|
+
readonly state: Schema.Literal<"add">;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
readonly state: Schema.Literal<"merge_request_open">;
|
|
58
|
+
readonly forge: Schema.String;
|
|
59
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly number: Schema.optionalKey<Schema.String>;
|
|
61
|
+
}>, Schema.Struct<{
|
|
62
|
+
readonly state: Schema.Literal<"added">;
|
|
63
|
+
}>]>;
|
|
64
|
+
export type MarketplaceItemState = typeof MarketplaceItemState.Type;
|
|
65
|
+
export declare const MarketplaceItem: Schema.Struct<{
|
|
66
|
+
readonly id: Schema.String;
|
|
67
|
+
readonly kind: Schema.Literals<readonly ["kit", "loop", "package"]>;
|
|
68
|
+
readonly name: Schema.String;
|
|
69
|
+
readonly publisher: Schema.String;
|
|
70
|
+
readonly description: Schema.String;
|
|
71
|
+
readonly category: Schema.String;
|
|
72
|
+
/** Where it comes from, such as `npm @kitman-sh/loops`. */
|
|
73
|
+
readonly source: Schema.String;
|
|
74
|
+
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
75
|
+
readonly state: Schema.Literal<"add">;
|
|
76
|
+
}>, Schema.Struct<{
|
|
77
|
+
readonly state: Schema.Literal<"merge_request_open">;
|
|
78
|
+
readonly forge: Schema.String;
|
|
79
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
80
|
+
readonly number: Schema.optionalKey<Schema.String>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly state: Schema.Literal<"added">;
|
|
83
|
+
}>]>;
|
|
84
|
+
}>;
|
|
85
|
+
export type MarketplaceItem = typeof MarketplaceItem.Type;
|
|
86
|
+
export declare const MarketplaceList: Schema.Struct<{
|
|
87
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
88
|
+
readonly id: Schema.String;
|
|
89
|
+
readonly kind: Schema.Literals<readonly ["kit", "loop", "package"]>;
|
|
90
|
+
readonly name: Schema.String;
|
|
91
|
+
readonly publisher: Schema.String;
|
|
92
|
+
readonly description: Schema.String;
|
|
93
|
+
readonly category: Schema.String;
|
|
94
|
+
/** Where it comes from, such as `npm @kitman-sh/loops`. */
|
|
95
|
+
readonly source: Schema.String;
|
|
96
|
+
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
97
|
+
readonly state: Schema.Literal<"add">;
|
|
98
|
+
}>, Schema.Struct<{
|
|
99
|
+
readonly state: Schema.Literal<"merge_request_open">;
|
|
100
|
+
readonly forge: Schema.String;
|
|
101
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly number: Schema.optionalKey<Schema.String>;
|
|
103
|
+
}>, Schema.Struct<{
|
|
104
|
+
readonly state: Schema.Literal<"added">;
|
|
105
|
+
}>]>;
|
|
106
|
+
}>>;
|
|
107
|
+
}>;
|
|
108
|
+
export type MarketplaceList = typeof MarketplaceList.Type;
|
|
109
|
+
/** Adds an item to the Workspace, or to one of its Teams. */
|
|
110
|
+
export declare const MarketplaceAdd: Schema.Struct<{
|
|
111
|
+
readonly kind: Schema.Literals<readonly ["kit", "loop", "package"]>;
|
|
112
|
+
readonly id: Schema.String;
|
|
113
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
114
|
+
}>;
|
|
115
|
+
export type MarketplaceAdd = typeof MarketplaceAdd.Type;
|
|
116
|
+
export declare const referenceSource: (reference: MarketplaceReference) => string;
|
|
117
|
+
/** The files a configuration merge request changes to add `reference`; `placed` is false when its Loops cannot be listed. */
|
|
118
|
+
export declare const addConfigReference: (files: {
|
|
119
|
+
readonly packageJson: string;
|
|
120
|
+
readonly config: string | undefined;
|
|
121
|
+
}, reference: MarketplaceReference) => {
|
|
122
|
+
placed: boolean;
|
|
123
|
+
changes: {
|
|
124
|
+
path: string;
|
|
125
|
+
content: string;
|
|
126
|
+
}[];
|
|
127
|
+
};
|
|
@@ -2,24 +2,24 @@ import * as Schema from 'effect/Schema';
|
|
|
2
2
|
export declare const MemoryStatuses: readonly ['proposed', 'accepted', 'rejected', 'deprecated'];
|
|
3
3
|
export declare const DefaultMemoryStatus = "proposed";
|
|
4
4
|
export declare const MemoryStatus: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"accepted">, Schema.Literal<"rejected">, Schema.Literal<"deprecated">]>;
|
|
5
|
-
export declare const MemoryScopes: readonly ['kit', '
|
|
6
|
-
export declare const MemoryScope: Schema.
|
|
5
|
+
export declare const MemoryScopes: readonly ['workspace', 'repository', 'loop', 'kit', 'team', 'task'];
|
|
6
|
+
export declare const MemoryScope: Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>;
|
|
7
7
|
export declare const MemoryConfidences: readonly ['low', 'medium', 'high'];
|
|
8
8
|
export declare const DefaultMemoryConfidence = "medium";
|
|
9
9
|
export declare const MemoryConfidence: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
10
|
-
export declare const MemorySourceType: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">]>;
|
|
10
|
+
export declare const MemorySourceType: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">, Schema.Literal<"run">]>;
|
|
11
11
|
export declare const MaxMemoryContentLength = 10000;
|
|
12
12
|
export declare const DefaultMemoryListLimit = 50;
|
|
13
13
|
export declare const MaxMemoryListLimit = 100;
|
|
14
14
|
export declare const Memory: Schema.Struct<{
|
|
15
15
|
readonly id: Schema.String;
|
|
16
16
|
readonly workspaceId: Schema.String;
|
|
17
|
-
readonly scopeType: Schema.
|
|
17
|
+
readonly scopeType: Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>;
|
|
18
18
|
readonly scopeId: Schema.String;
|
|
19
19
|
readonly content: Schema.String;
|
|
20
20
|
readonly status: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"accepted">, Schema.Literal<"rejected">, Schema.Literal<"deprecated">]>;
|
|
21
21
|
readonly confidence: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
22
|
-
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">]>>;
|
|
22
|
+
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">, Schema.Literal<"run">]>>;
|
|
23
23
|
readonly sourceId: Schema.optionalKey<Schema.String>;
|
|
24
24
|
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
25
25
|
readonly createdByActorId: Schema.String;
|
|
@@ -28,16 +28,20 @@ export declare const Memory: Schema.Struct<{
|
|
|
28
28
|
readonly updatedAt: Schema.String;
|
|
29
29
|
}>;
|
|
30
30
|
export declare const MemoryPropose: Schema.Struct<{
|
|
31
|
-
readonly scopeType: Schema.
|
|
31
|
+
readonly scopeType: Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>;
|
|
32
32
|
readonly scopeId: Schema.String;
|
|
33
33
|
readonly content: Schema.String;
|
|
34
34
|
readonly confidence: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>>;
|
|
35
|
-
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">]>>;
|
|
35
|
+
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">, Schema.Literal<"run">]>>;
|
|
36
36
|
readonly sourceId: Schema.optionalKey<Schema.String>;
|
|
37
37
|
}>;
|
|
38
|
+
/** New words for proposed Memory, before it is reviewed. */
|
|
39
|
+
export declare const MemoryEdit: Schema.Struct<{
|
|
40
|
+
readonly content: Schema.String;
|
|
41
|
+
}>;
|
|
38
42
|
export declare const MemoryListQuery: Schema.Struct<{
|
|
39
43
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"accepted">, Schema.Literal<"rejected">, Schema.Literal<"deprecated">]>>;
|
|
40
|
-
readonly scopeType: Schema.optionalKey<Schema.
|
|
44
|
+
readonly scopeType: Schema.optionalKey<Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>>;
|
|
41
45
|
readonly scopeId: Schema.optionalKey<Schema.String>;
|
|
42
46
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
43
47
|
}>;
|
|
@@ -45,12 +49,12 @@ export declare const MemoryList: Schema.Struct<{
|
|
|
45
49
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
46
50
|
readonly id: Schema.String;
|
|
47
51
|
readonly workspaceId: Schema.String;
|
|
48
|
-
readonly scopeType: Schema.
|
|
52
|
+
readonly scopeType: Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>;
|
|
49
53
|
readonly scopeId: Schema.String;
|
|
50
54
|
readonly content: Schema.String;
|
|
51
55
|
readonly status: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"accepted">, Schema.Literal<"rejected">, Schema.Literal<"deprecated">]>;
|
|
52
56
|
readonly confidence: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
53
|
-
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">]>>;
|
|
57
|
+
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">, Schema.Literal<"run">]>>;
|
|
54
58
|
readonly sourceId: Schema.optionalKey<Schema.String>;
|
|
55
59
|
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
56
60
|
readonly createdByActorId: Schema.String;
|
|
@@ -63,12 +67,12 @@ export declare const MemoryTransitionResult: Schema.Struct<{
|
|
|
63
67
|
readonly memory: Schema.Struct<{
|
|
64
68
|
readonly id: Schema.String;
|
|
65
69
|
readonly workspaceId: Schema.String;
|
|
66
|
-
readonly scopeType: Schema.
|
|
70
|
+
readonly scopeType: Schema.Literals<readonly ["workspace", "repository", "loop", "kit", "team", "task"]>;
|
|
67
71
|
readonly scopeId: Schema.String;
|
|
68
72
|
readonly content: Schema.String;
|
|
69
73
|
readonly status: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"accepted">, Schema.Literal<"rejected">, Schema.Literal<"deprecated">]>;
|
|
70
74
|
readonly confidence: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
71
|
-
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">]>>;
|
|
75
|
+
readonly sourceType: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"agent">, Schema.Literal<"session">, Schema.Literal<"context_pack">, Schema.Literal<"run">]>>;
|
|
72
76
|
readonly sourceId: Schema.optionalKey<Schema.String>;
|
|
73
77
|
readonly createdByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
|
|
74
78
|
readonly createdByActorId: Schema.String;
|
|
@@ -78,6 +82,7 @@ export declare const MemoryTransitionResult: Schema.Struct<{
|
|
|
78
82
|
}>;
|
|
79
83
|
}>;
|
|
80
84
|
export type MemoryStatus = (typeof MemoryStatus)['Type'];
|
|
85
|
+
export type MemoryEdit = (typeof MemoryEdit)['Type'];
|
|
81
86
|
export type MemoryScope = (typeof MemoryScope)['Type'];
|
|
82
87
|
export type MemoryConfidence = (typeof MemoryConfidence)['Type'];
|
|
83
88
|
export type MemorySourceType = (typeof MemorySourceType)['Type'];
|