@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
|
@@ -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'];
|
|
@@ -2,7 +2,7 @@ import * as Schema from 'effect/Schema';
|
|
|
2
2
|
import { Question } from './loop';
|
|
3
3
|
declare const MyTeamsTask: Schema.Struct<{
|
|
4
4
|
readonly id: Schema.String;
|
|
5
|
-
readonly
|
|
5
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
6
6
|
readonly title: Schema.String;
|
|
7
7
|
readonly key: Schema.String;
|
|
8
8
|
readonly team: Schema.Struct<{
|
|
@@ -30,7 +30,7 @@ declare const MyTeamsProposal: Schema.Struct<{
|
|
|
30
30
|
declare const MyTeamsRun: Schema.Struct<{
|
|
31
31
|
readonly id: Schema.String;
|
|
32
32
|
readonly workspaceId: Schema.String;
|
|
33
|
-
readonly
|
|
33
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
34
34
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
35
35
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
36
36
|
readonly loopId: Schema.String;
|
|
@@ -113,7 +113,7 @@ declare const MyTeamsRun: Schema.Struct<{
|
|
|
113
113
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
114
114
|
}>;
|
|
115
115
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
116
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
116
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
117
117
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
118
118
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
119
119
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -168,10 +168,10 @@ declare const MyTeamsRun: Schema.Struct<{
|
|
|
168
168
|
export declare const MyTeamsCard: Schema.Struct<{
|
|
169
169
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
170
170
|
readonly id: Schema.String;
|
|
171
|
-
readonly
|
|
171
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
172
172
|
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
173
173
|
readonly id: Schema.String;
|
|
174
|
-
readonly
|
|
174
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
175
175
|
readonly title: Schema.String;
|
|
176
176
|
readonly key: Schema.String;
|
|
177
177
|
readonly team: Schema.Struct<{
|
|
@@ -188,7 +188,7 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
188
188
|
readonly runs: Schema.$Array<Schema.Struct<{
|
|
189
189
|
readonly id: Schema.String;
|
|
190
190
|
readonly workspaceId: Schema.String;
|
|
191
|
-
readonly
|
|
191
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
192
192
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
193
193
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
194
194
|
readonly loopId: Schema.String;
|
|
@@ -271,7 +271,7 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
271
271
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
272
272
|
}>;
|
|
273
273
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
274
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
274
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
275
275
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
276
276
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
277
277
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -326,7 +326,7 @@ export declare const MyTeamsCard: Schema.Struct<{
|
|
|
326
326
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
327
327
|
readonly id: Schema.String;
|
|
328
328
|
readonly workspaceId: Schema.String;
|
|
329
|
-
readonly
|
|
329
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
330
330
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
331
331
|
readonly runId: Schema.String;
|
|
332
332
|
readonly stepKey: Schema.String;
|
|
@@ -370,10 +370,10 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
370
370
|
readonly needsYou: Schema.$Array<Schema.Struct<{
|
|
371
371
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
372
372
|
readonly id: Schema.String;
|
|
373
|
-
readonly
|
|
373
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
374
374
|
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
375
375
|
readonly id: Schema.String;
|
|
376
|
-
readonly
|
|
376
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
377
377
|
readonly title: Schema.String;
|
|
378
378
|
readonly key: Schema.String;
|
|
379
379
|
readonly team: Schema.Struct<{
|
|
@@ -390,7 +390,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
390
390
|
readonly runs: Schema.$Array<Schema.Struct<{
|
|
391
391
|
readonly id: Schema.String;
|
|
392
392
|
readonly workspaceId: Schema.String;
|
|
393
|
-
readonly
|
|
393
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
394
394
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
395
395
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
396
396
|
readonly loopId: Schema.String;
|
|
@@ -473,7 +473,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
473
473
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
474
474
|
}>;
|
|
475
475
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
476
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
476
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
477
477
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
478
478
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
479
479
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -528,7 +528,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
528
528
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
529
529
|
readonly id: Schema.String;
|
|
530
530
|
readonly workspaceId: Schema.String;
|
|
531
|
-
readonly
|
|
531
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
532
532
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
533
533
|
readonly runId: Schema.String;
|
|
534
534
|
readonly stepKey: Schema.String;
|
|
@@ -570,10 +570,10 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
570
570
|
readonly waitingOnYou: Schema.$Array<Schema.Struct<{
|
|
571
571
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
572
572
|
readonly id: Schema.String;
|
|
573
|
-
readonly
|
|
573
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
574
574
|
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
575
575
|
readonly id: Schema.String;
|
|
576
|
-
readonly
|
|
576
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
577
577
|
readonly title: Schema.String;
|
|
578
578
|
readonly key: Schema.String;
|
|
579
579
|
readonly team: Schema.Struct<{
|
|
@@ -590,7 +590,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
590
590
|
readonly runs: Schema.$Array<Schema.Struct<{
|
|
591
591
|
readonly id: Schema.String;
|
|
592
592
|
readonly workspaceId: Schema.String;
|
|
593
|
-
readonly
|
|
593
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
594
594
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
595
595
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
596
596
|
readonly loopId: Schema.String;
|
|
@@ -673,7 +673,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
673
673
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
674
674
|
}>;
|
|
675
675
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
676
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
676
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
677
677
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
678
678
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
679
679
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -728,7 +728,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
728
728
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
729
729
|
readonly id: Schema.String;
|
|
730
730
|
readonly workspaceId: Schema.String;
|
|
731
|
-
readonly
|
|
731
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
732
732
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
733
733
|
readonly runId: Schema.String;
|
|
734
734
|
readonly stepKey: Schema.String;
|
|
@@ -770,10 +770,10 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
770
770
|
readonly working: Schema.$Array<Schema.Struct<{
|
|
771
771
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
772
772
|
readonly id: Schema.String;
|
|
773
|
-
readonly
|
|
773
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
774
774
|
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
775
775
|
readonly id: Schema.String;
|
|
776
|
-
readonly
|
|
776
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
777
777
|
readonly title: Schema.String;
|
|
778
778
|
readonly key: Schema.String;
|
|
779
779
|
readonly team: Schema.Struct<{
|
|
@@ -790,7 +790,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
790
790
|
readonly runs: Schema.$Array<Schema.Struct<{
|
|
791
791
|
readonly id: Schema.String;
|
|
792
792
|
readonly workspaceId: Schema.String;
|
|
793
|
-
readonly
|
|
793
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
794
794
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
795
795
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
796
796
|
readonly loopId: Schema.String;
|
|
@@ -873,7 +873,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
873
873
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
874
874
|
}>;
|
|
875
875
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
876
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
876
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
877
877
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
878
878
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
879
879
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -928,7 +928,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
928
928
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
929
929
|
readonly id: Schema.String;
|
|
930
930
|
readonly workspaceId: Schema.String;
|
|
931
|
-
readonly
|
|
931
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
932
932
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
933
933
|
readonly runId: Schema.String;
|
|
934
934
|
readonly stepKey: Schema.String;
|
|
@@ -970,10 +970,10 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
970
970
|
readonly finished: Schema.$Array<Schema.Struct<{
|
|
971
971
|
/** The Task's id, or `run:<id>` for a Run with no Task. */
|
|
972
972
|
readonly id: Schema.String;
|
|
973
|
-
readonly
|
|
973
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
974
974
|
readonly task: Schema.optionalKey<Schema.Struct<{
|
|
975
975
|
readonly id: Schema.String;
|
|
976
|
-
readonly
|
|
976
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
977
977
|
readonly title: Schema.String;
|
|
978
978
|
readonly key: Schema.String;
|
|
979
979
|
readonly team: Schema.Struct<{
|
|
@@ -990,7 +990,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
990
990
|
readonly runs: Schema.$Array<Schema.Struct<{
|
|
991
991
|
readonly id: Schema.String;
|
|
992
992
|
readonly workspaceId: Schema.String;
|
|
993
|
-
readonly
|
|
993
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
994
994
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
995
995
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
996
996
|
readonly loopId: Schema.String;
|
|
@@ -1073,7 +1073,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
1073
1073
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
1074
1074
|
}>;
|
|
1075
1075
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
1076
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
1076
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
1077
1077
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
1078
1078
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1079
1079
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -1128,7 +1128,7 @@ export declare const MyTeams: Schema.Struct<{
|
|
|
1128
1128
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
1129
1129
|
readonly id: Schema.String;
|
|
1130
1130
|
readonly workspaceId: Schema.String;
|
|
1131
|
-
readonly
|
|
1131
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1132
1132
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1133
1133
|
readonly runId: Schema.String;
|
|
1134
1134
|
readonly stepKey: Schema.String;
|
|
@@ -1174,7 +1174,7 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1174
1174
|
readonly run: Schema.Struct<{
|
|
1175
1175
|
readonly id: Schema.String;
|
|
1176
1176
|
readonly workspaceId: Schema.String;
|
|
1177
|
-
readonly
|
|
1177
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1178
1178
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1179
1179
|
readonly sessionId: Schema.optionalKey<Schema.String>;
|
|
1180
1180
|
readonly loopId: Schema.String;
|
|
@@ -1257,7 +1257,7 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1257
1257
|
readonly resultMetadata: Schema.$Record<Schema.String, Schema.Codec<import("./loop").LoopStepOutputDataValue, import("./loop").LoopStepOutputDataValue, never, never>>;
|
|
1258
1258
|
}>;
|
|
1259
1259
|
readonly loopDigest: Schema.optionalKey<Schema.String>;
|
|
1260
|
-
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["
|
|
1260
|
+
readonly loopLayer: Schema.optionalKey<Schema.Literals<readonly ["team", "workspace", "shipped"]>>;
|
|
1261
1261
|
readonly parentRunId: Schema.optionalKey<Schema.String>;
|
|
1262
1262
|
readonly waiting: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1263
1263
|
readonly kind: Schema.Literal<"question">;
|
|
@@ -1309,6 +1309,8 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1309
1309
|
readonly retried: Schema.Boolean;
|
|
1310
1310
|
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1311
1311
|
}>;
|
|
1312
|
+
/** The worst node status of each Run graph column, as the Runs list draws it. */
|
|
1313
|
+
readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
|
|
1312
1314
|
readonly loop: Schema.Struct<{
|
|
1313
1315
|
readonly id: Schema.String;
|
|
1314
1316
|
readonly title: Schema.String;
|
|
@@ -1318,7 +1320,7 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1318
1320
|
readonly questions: Schema.$Array<Schema.Struct<{
|
|
1319
1321
|
readonly id: Schema.String;
|
|
1320
1322
|
readonly workspaceId: Schema.String;
|
|
1321
|
-
readonly
|
|
1323
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1322
1324
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1323
1325
|
readonly runId: Schema.String;
|
|
1324
1326
|
readonly stepKey: Schema.String;
|
|
@@ -1360,7 +1362,26 @@ export declare const TaskRuns: Schema.Struct<{
|
|
|
1360
1362
|
}>>;
|
|
1361
1363
|
}>;
|
|
1362
1364
|
export type TaskRuns = (typeof TaskRuns)['Type'];
|
|
1363
|
-
/** The
|
|
1365
|
+
/** The Loop working on a Task: its most recently started unsettled top-level Run. */
|
|
1366
|
+
export declare const TaskAgent: Schema.Struct<{
|
|
1367
|
+
readonly runId: Schema.String;
|
|
1368
|
+
readonly loop: Schema.Struct<{
|
|
1369
|
+
readonly id: Schema.String;
|
|
1370
|
+
readonly title: Schema.String;
|
|
1371
|
+
}>;
|
|
1372
|
+
readonly display: Schema.Struct<{
|
|
1373
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
1374
|
+
readonly retried: Schema.Boolean;
|
|
1375
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1376
|
+
}>;
|
|
1377
|
+
}>;
|
|
1378
|
+
export type TaskAgent = (typeof TaskAgent)['Type'];
|
|
1379
|
+
/** Hands a Task to a Loop: starts a Run of it on the Task, owned by the person who assigns it. */
|
|
1380
|
+
export declare const TaskLoopAssignment: Schema.Struct<{
|
|
1381
|
+
readonly loop: Schema.String;
|
|
1382
|
+
}>;
|
|
1383
|
+
export type TaskLoopAssignment = (typeof TaskLoopAssignment)['Type'];
|
|
1384
|
+
/** The newest Run of each Task that has one, and the Task's agent while it has one. */
|
|
1364
1385
|
export declare const LatestTaskRuns: Schema.Struct<{
|
|
1365
1386
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1366
1387
|
readonly taskId: Schema.String;
|
|
@@ -1371,6 +1392,18 @@ export declare const LatestTaskRuns: Schema.Struct<{
|
|
|
1371
1392
|
readonly retried: Schema.Boolean;
|
|
1372
1393
|
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1373
1394
|
}>;
|
|
1395
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
1396
|
+
readonly runId: Schema.String;
|
|
1397
|
+
readonly loop: Schema.Struct<{
|
|
1398
|
+
readonly id: Schema.String;
|
|
1399
|
+
readonly title: Schema.String;
|
|
1400
|
+
}>;
|
|
1401
|
+
readonly display: Schema.Struct<{
|
|
1402
|
+
readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
|
|
1403
|
+
readonly retried: Schema.Boolean;
|
|
1404
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1405
|
+
}>;
|
|
1406
|
+
}>>;
|
|
1374
1407
|
}>>;
|
|
1375
1408
|
}>;
|
|
1376
1409
|
export type LatestTaskRuns = (typeof LatestTaskRuns)['Type'];
|