@kitman-sh/sdk 0.9.0 → 0.10.53
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 +531 -116
- package/dist/{chunk-36jhc745.js → chunk-tcbgb4wm.js} +1841 -1574
- package/dist/{chunk-e1tqypyy.js → chunk-zvzw3zs4.js} +824 -419
- package/dist/loop/index.js +117 -3
- package/dist/program/index.js +8 -4
- package/package.json +6 -6
- package/types/packages/core/src/agent-capabilities.d.ts +6 -0
- package/types/packages/core/src/agent-environment.d.ts +32 -216
- package/types/packages/core/src/agent-sandbox-policy.d.ts +17 -3
- package/types/packages/core/src/change-request-review.d.ts +20 -5
- package/types/packages/core/src/change-request.d.ts +33 -208
- package/types/packages/core/src/crypto.d.ts +2 -0
- package/types/packages/core/src/index.d.ts +8 -4
- package/types/packages/core/src/{package-declarations.d.ts → kit-declarations.d.ts} +84 -180
- package/types/packages/core/src/kit-install.d.ts +130 -0
- package/types/packages/core/src/kit-setup.d.ts +316 -0
- package/types/packages/core/src/kit.d.ts +302 -1444
- package/types/packages/core/src/loop-layers.d.ts +33 -4
- package/types/packages/core/src/loop.d.ts +325 -55
- package/types/packages/core/src/marketplace.d.ts +51 -10
- package/types/packages/core/src/my-teams.d.ts +135 -20
- package/types/packages/core/src/network-host.d.ts +41 -0
- package/types/packages/core/src/notification.d.ts +8 -0
- package/types/packages/core/src/npm-registry.d.ts +65 -0
- package/types/packages/core/src/proposal.d.ts +0 -76
- package/types/packages/core/src/push.d.ts +68 -0
- package/types/packages/core/src/question-recommendation.d.ts +28 -0
- package/types/packages/core/src/redaction.d.ts +15 -3
- package/types/packages/core/src/resource-claim.d.ts +79 -0
- package/types/packages/core/src/run-display.d.ts +7 -1
- package/types/packages/core/src/run-graph.d.ts +1 -1
- package/types/packages/core/src/run-launch.d.ts +15 -2
- package/types/packages/core/src/run-queue.d.ts +28 -0
- package/types/packages/core/src/runner-eligibility.d.ts +21 -2
- package/types/packages/core/src/runner.d.ts +46 -15
- package/types/packages/core/src/secret.d.ts +18 -1
- package/types/packages/core/src/step-brief.d.ts +21 -7
- package/types/packages/core/src/sync-kit.d.ts +8 -0
- package/types/packages/core/src/task-detail.d.ts +15 -2
- package/types/packages/core/src/task.d.ts +9 -0
- package/types/packages/core/src/transcript.d.ts +24 -4
- package/types/packages/core/src/trust-panel.d.ts +1 -1
- package/types/packages/core/src/waiting-on.d.ts +14 -0
- package/types/packages/core/src/work-unit.d.ts +339 -8
- package/types/packages/live/src/rpc/runner-client.d.ts +505 -10
- package/types/packages/live/src/rpc/runner-group.d.ts +958 -28
- package/types/packages/sdk/src/build/index.d.ts +45 -9
- package/types/packages/sdk/src/loop/activities.d.ts +382 -2
- package/types/packages/sdk/src/loop/claims.d.ts +57 -0
- package/types/packages/sdk/src/loop/config.d.ts +38 -31
- package/types/packages/sdk/src/loop/continuing.d.ts +22 -0
- package/types/packages/sdk/src/loop/define.d.ts +30 -5
- package/types/packages/sdk/src/loop/evidence.d.ts +18 -3
- package/types/packages/sdk/src/loop/index.d.ts +4 -0
- package/types/packages/sdk/src/loop/measure.d.ts +132 -0
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +127 -17
- package/types/packages/sdk/src/loop/sync.d.ts +53 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +25 -5
- package/types/packages/sdk/src/program/engine.d.ts +95 -3
- package/types/packages/sdk/src/program/host.d.ts +198 -36
- package/types/packages/core/src/engineering-resources.d.ts +0 -24
- package/types/packages/core/src/package.d.ts +0 -369
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AgentSandboxNetwork } from './agent-sandbox-policy';
|
|
2
|
+
import type { AgentFallback } from './loop';
|
|
2
3
|
/** Where a Loop or Agent version lives, nearest first. */
|
|
3
4
|
export declare const LoopLayers: readonly ['team', 'workspace', 'shipped'];
|
|
4
5
|
export type LoopLayer = (typeof LoopLayers)[number];
|
|
@@ -16,15 +17,28 @@ export declare const resolveLayered: <T extends {
|
|
|
16
17
|
} | undefined;
|
|
17
18
|
export declare const AgentEfforts: readonly ['low', 'medium', 'high', 'xhigh'];
|
|
18
19
|
export type AgentEffort = (typeof AgentEfforts)[number];
|
|
20
|
+
/** Tools an Agent opts into beyond the base set; each Harness applies what it can. */
|
|
21
|
+
export declare const AgentCapabilities: readonly ['web', 'subagents', 'artifacts', 'browser'];
|
|
22
|
+
export type AgentCapability = (typeof AgentCapabilities)[number];
|
|
19
23
|
/** Whether a harness has an effort control; a StepAttempt on any other harness records its effort as ignored. */
|
|
20
24
|
export declare const harnessTakesEffort: (harness: string) => boolean;
|
|
21
|
-
/**
|
|
25
|
+
/** One way to launch a Step; with no Harness it needs the claiming Runner's default. */
|
|
26
|
+
export type AgentChoice = Partial<AgentFallback>;
|
|
27
|
+
/**
|
|
28
|
+
* The fields an Agent version may name; one that extends another replaces these, and merges instructions by section.
|
|
29
|
+
* One that names a Harness and no model drops the inherited model.
|
|
30
|
+
*/
|
|
22
31
|
export type AgentFields = {
|
|
23
32
|
readonly instructions?: string;
|
|
24
33
|
readonly harness?: string;
|
|
25
34
|
readonly model?: string;
|
|
26
35
|
readonly effort?: AgentEffort;
|
|
27
|
-
|
|
36
|
+
/** Tried in order when a Runner does not offer the Agent's own Harness. */
|
|
37
|
+
readonly fallbacks?: readonly AgentFallback[];
|
|
38
|
+
/** The tool capabilities its Steps get beyond the base tools. */
|
|
39
|
+
readonly tools?: readonly AgentCapability[];
|
|
40
|
+
/** The skills its Steps list; the Run's other Kit skills are loaded by name. */
|
|
41
|
+
readonly skills?: readonly string[];
|
|
28
42
|
readonly network?: AgentSandboxNetwork;
|
|
29
43
|
/** The SandboxBackend its Steps require. */
|
|
30
44
|
readonly sandbox?: 'docker';
|
|
@@ -32,8 +46,8 @@ export type AgentFields = {
|
|
|
32
46
|
export type AgentListing = AgentFields & {
|
|
33
47
|
readonly id: string;
|
|
34
48
|
readonly extends?: string;
|
|
35
|
-
/** The
|
|
36
|
-
readonly
|
|
49
|
+
/** The Kit that declares it. */
|
|
50
|
+
readonly kit?: string;
|
|
37
51
|
};
|
|
38
52
|
export type ResolvedAgent = AgentFields & {
|
|
39
53
|
readonly id: string;
|
|
@@ -41,6 +55,21 @@ export type ResolvedAgent = AgentFields & {
|
|
|
41
55
|
export type AgentFieldLayers = {
|
|
42
56
|
readonly [field in keyof AgentFields]?: LoopLayer;
|
|
43
57
|
};
|
|
58
|
+
/** The ways to launch an Agent's Step, in order: its own, then each fallback. */
|
|
59
|
+
export declare const agentChoices: (agent: (AgentChoice & Pick<AgentFields, 'fallbacks'>) | undefined) => readonly AgentChoice[];
|
|
60
|
+
/** A launch's choices; one launched before Agents had fallbacks has its own fields as its only choice. */
|
|
61
|
+
export declare const launchChoices: (launch: AgentChoice & {
|
|
62
|
+
readonly choices?: readonly AgentChoice[];
|
|
63
|
+
}) => readonly AgentChoice[];
|
|
64
|
+
/** What a Step launches on until a Runner claims it. */
|
|
65
|
+
export declare const firstChoice: (choices: readonly AgentChoice[]) => AgentChoice;
|
|
66
|
+
/** The fields a launch takes from its choice. */
|
|
67
|
+
export declare const choiceLaunch: (choice: AgentChoice) => {
|
|
68
|
+
effortIgnored?: true;
|
|
69
|
+
harness?: string;
|
|
70
|
+
model?: string;
|
|
71
|
+
effort?: "high" | "low" | "medium" | "xhigh";
|
|
72
|
+
};
|
|
44
73
|
/**
|
|
45
74
|
* Merges an extending Agent's instructions into its parent's by `## ` heading: a named section replaces the parent's,
|
|
46
75
|
* a new one is appended, and text before the first heading replaces the parent's.
|