@kitman-sh/sdk 0.6.0 → 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 +2 -2
- package/dist/{chunk-f3d6cvkg.js → chunk-7hwhxthh.js} +103 -6
- package/dist/{chunk-jnxc0c54.js → chunk-zp7s46pz.js} +639 -636
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +9 -3
- package/package.json +1 -1
- package/types/packages/core/src/agent-capabilities.d.ts +10 -0
- package/types/packages/core/src/agent-sandbox-policy.d.ts +2 -0
- package/types/packages/core/src/enterprise-code-host.d.ts +2 -5
- package/types/packages/core/src/integration.d.ts +129 -11
- package/types/packages/core/src/package-declarations.d.ts +8 -0
- package/types/packages/core/src/project.d.ts +3 -1
- package/types/packages/core/src/repo-binding.d.ts +8 -0
- package/types/packages/core/src/runner-eligibility.d.ts +5 -1
- package/types/packages/core/src/runner.d.ts +78 -0
- package/types/packages/core/src/work-unit.d.ts +15 -0
- package/types/packages/core/src/workspace.d.ts +46 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +10 -1
- package/types/packages/live/src/rpc/runner-group.d.ts +263 -260
- package/types/packages/sdk/src/loop/define.d.ts +7 -0
- package/types/packages/sdk/src/program/host.d.ts +22 -0
|
@@ -43,7 +43,53 @@ export declare const WorkspaceList: Schema.Struct<{
|
|
|
43
43
|
readonly updatedAt: Schema.String;
|
|
44
44
|
}>>;
|
|
45
45
|
}>;
|
|
46
|
+
/** What a Workspace has set up, each part read from the rows that exist; nothing about onboarding is stored. */
|
|
47
|
+
export declare const WorkspaceSetup: Schema.Struct<{
|
|
48
|
+
readonly codeHostConnected: Schema.Boolean;
|
|
49
|
+
/** The first repository bound in the Workspace; a first Research Run reads it. */
|
|
50
|
+
readonly firstRepoBinding: Schema.NullOr<Schema.Struct<{
|
|
51
|
+
readonly id: Schema.String;
|
|
52
|
+
readonly projectId: Schema.String;
|
|
53
|
+
readonly owner: Schema.String;
|
|
54
|
+
readonly name: Schema.String;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly verificationsApproved: Schema.Boolean;
|
|
57
|
+
/** The caller's own Runner heartbeating now, the Harnesses it offers, and what each other Harness lacks. */
|
|
58
|
+
readonly machine: Schema.Struct<{
|
|
59
|
+
readonly ready: Schema.Boolean;
|
|
60
|
+
readonly harnesses: Schema.$Array<Schema.String>;
|
|
61
|
+
readonly missing: Schema.$Array<Schema.String>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly teammatesInvited: Schema.Boolean;
|
|
64
|
+
readonly firstRun: Schema.Boolean;
|
|
65
|
+
/** The code hosts this deployment connects in one click. */
|
|
66
|
+
readonly oneClickConnect: Schema.Struct<{
|
|
67
|
+
readonly github: Schema.Boolean;
|
|
68
|
+
readonly gitlab: Schema.Boolean;
|
|
69
|
+
}>;
|
|
70
|
+
}>;
|
|
71
|
+
/** A minted Pairing Code and the one command that pairs a machine with it. */
|
|
72
|
+
export declare const PairingCode: Schema.Struct<{
|
|
73
|
+
readonly code: Schema.String;
|
|
74
|
+
readonly expiresAt: Schema.String;
|
|
75
|
+
readonly command: Schema.String;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const PairingRedeem: Schema.Struct<{
|
|
78
|
+
readonly code: Schema.String;
|
|
79
|
+
}>;
|
|
80
|
+
/** The credentials `kitman login` stores, for the person and Workspace the code was minted for. */
|
|
81
|
+
export declare const PairingCredentials: Schema.Struct<{
|
|
82
|
+
readonly accessToken: Schema.String;
|
|
83
|
+
readonly refreshToken: Schema.optional<Schema.String>;
|
|
84
|
+
readonly expiresIn: Schema.optional<Schema.Finite>;
|
|
85
|
+
readonly workspaceId: Schema.String;
|
|
86
|
+
readonly userId: Schema.String;
|
|
87
|
+
}>;
|
|
46
88
|
export type Workspace = (typeof Workspace)['Type'];
|
|
89
|
+
export type PairingCode = (typeof PairingCode)['Type'];
|
|
90
|
+
export type PairingRedeem = (typeof PairingRedeem)['Type'];
|
|
91
|
+
export type PairingCredentials = (typeof PairingCredentials)['Type'];
|
|
92
|
+
export type WorkspaceSetup = (typeof WorkspaceSetup)['Type'];
|
|
47
93
|
export type WorkspaceNotificationPreferences = (typeof WorkspaceNotificationPreferences)['Type'];
|
|
48
94
|
export type WorkspaceCreate = (typeof WorkspaceCreate)['Type'];
|
|
49
95
|
export type WorkspaceUpdate = (typeof WorkspaceUpdate)['Type'];
|
|
@@ -2,7 +2,10 @@ import * as Effect from 'effect/Effect';
|
|
|
2
2
|
import * as Layer from 'effect/Layer';
|
|
3
3
|
import { RpcClient } from 'effect/rpc';
|
|
4
4
|
import { type RunnerSignal } from './runner-group';
|
|
5
|
-
|
|
5
|
+
/** The Runner RPC over a WebSocket; `proxy` is the HTTP proxy it connects through, as a sandbox's egress proxy. */
|
|
6
|
+
export declare const runnerWebSocketProtocol: (url: string, options?: {
|
|
7
|
+
readonly proxy?: string;
|
|
8
|
+
}) => Layer.Layer<RpcClient.Protocol>;
|
|
6
9
|
export declare function runnerRpcUrl(apiUrl: string): string;
|
|
7
10
|
/**
|
|
8
11
|
* A Runner's control connection, open for the caller's scope. `bearer` mints the AgentCredential token sent with
|
|
@@ -50,6 +53,9 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
50
53
|
readonly [x: string]: unknown;
|
|
51
54
|
};
|
|
52
55
|
};
|
|
56
|
+
readonly network?: "open" | {
|
|
57
|
+
readonly hosts: readonly string[];
|
|
58
|
+
};
|
|
53
59
|
readonly program: {
|
|
54
60
|
readonly loopId: string;
|
|
55
61
|
readonly credential: string;
|
|
@@ -179,6 +185,9 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
179
185
|
readonly [x: string]: unknown;
|
|
180
186
|
};
|
|
181
187
|
};
|
|
188
|
+
readonly network?: "open" | {
|
|
189
|
+
readonly hosts: readonly string[];
|
|
190
|
+
};
|
|
182
191
|
readonly program: {
|
|
183
192
|
readonly loopId: string;
|
|
184
193
|
readonly credential: string;
|