@kitman-sh/sdk 0.10.73 → 0.10.75
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-stw541tr.js → chunk-08qcgk73.js} +5 -0
- package/dist/{chunk-w2f4s9v2.js → chunk-epczfxnt.js} +1 -1
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/runner.d.ts +23 -0
- package/types/packages/core/src/secret.d.ts +8 -2
package/dist/build/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
KitDigest,
|
|
5
5
|
AgentDeclaration,
|
|
6
6
|
KitDeclarations
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-08qcgk73.js";
|
|
8
8
|
import {
|
|
9
9
|
digestSha256,
|
|
10
10
|
digestSha512,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RunnerRpcProtocolVersion,
|
|
14
14
|
describeFlag2,
|
|
15
15
|
Described2
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-epczfxnt.js";
|
|
17
17
|
|
|
18
18
|
// packages/core/src/json.ts
|
|
19
19
|
import * as Schema from "effect/Schema";
|
|
@@ -3707,6 +3707,11 @@ var SecretName2 = Schema25.String.check(Schema25.isPattern(new RegExp("^[A-Za-z_
|
|
|
3707
3707
|
var SecretScope = Schema25.Union([Schema25.Literal("workspace"), Schema25.Literal("team")]);
|
|
3708
3708
|
var SecretHost = Schema25.String.check(Schema25.isPattern(new RegExp("^(\\*\\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[0-9]{1,5})?$", "u")), Schema25.isMaxLength(260));
|
|
3709
3709
|
var SecretHosts = Schema25.Array(SecretHost).check(Schema25.isMaxLength(32));
|
|
3710
|
+
var referencePattern = /secret:\/\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+/;
|
|
3711
|
+
var placeholderMarker = "kitmanref";
|
|
3712
|
+
var tokenCharacter = "[A-Za-z0-9._~+/-]";
|
|
3713
|
+
var placeholderPattern = new RegExp(`(?<!${tokenCharacter})(?:proxy-ep=[A-Za-z0-9.-]+;)?${tokenCharacter}*${placeholderMarker}((?:[0-9a-f]{2})+)`);
|
|
3714
|
+
var anyReference = new RegExp(`${referencePattern.source}|${placeholderPattern.source}`, "g");
|
|
3710
3715
|
var SecretSummary = Schema25.Struct({
|
|
3711
3716
|
name: SecretName2,
|
|
3712
3717
|
scope: SecretScope,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
executeLoop2,
|
|
34
34
|
LoopCheckError2,
|
|
35
35
|
checkLoop2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-08qcgk73.js";
|
|
37
37
|
// packages/core/src/agent-environment.ts
|
|
38
38
|
import * as Schema from "effect/Schema";
|
|
39
39
|
var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
|
package/dist/loop/index.js
CHANGED
package/dist/program/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-08qcgk73.js";
|
|
3
3
|
import {
|
|
4
4
|
JournalWriteFailed2,
|
|
5
5
|
refusedStep2,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
networkGuard2,
|
|
18
18
|
carriedKits2,
|
|
19
19
|
runKit2
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-epczfxnt.js";
|
|
21
21
|
export {
|
|
22
22
|
Described2 as Described,
|
|
23
23
|
JournalWriteFailed2 as JournalWriteFailed,
|
package/package.json
CHANGED
|
@@ -332,6 +332,25 @@ export declare const RunnerTeamGrantList: Schema.Struct<{
|
|
|
332
332
|
export declare const RunnerTeamGrantDeleteResult: Schema.Struct<{
|
|
333
333
|
readonly removed: Schema.Boolean;
|
|
334
334
|
}>;
|
|
335
|
+
/** Another Workspace a personal Runner serves, for the Teams its owner can read there, while the owner is a member. */
|
|
336
|
+
export declare const RunnerWorkspaceAttachment: Schema.Struct<{
|
|
337
|
+
readonly runnerId: Schema.String;
|
|
338
|
+
readonly workspaceId: Schema.String;
|
|
339
|
+
readonly createdAt: Schema.String;
|
|
340
|
+
}>;
|
|
341
|
+
export declare const RunnerWorkspaceAttachmentCreate: Schema.Struct<{
|
|
342
|
+
readonly workspaceId: Schema.String;
|
|
343
|
+
}>;
|
|
344
|
+
export declare const RunnerWorkspaceAttachmentList: Schema.Struct<{
|
|
345
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
346
|
+
readonly runnerId: Schema.String;
|
|
347
|
+
readonly workspaceId: Schema.String;
|
|
348
|
+
readonly createdAt: Schema.String;
|
|
349
|
+
}>>;
|
|
350
|
+
}>;
|
|
351
|
+
export declare const RunnerWorkspaceAttachmentDeleteResult: Schema.Struct<{
|
|
352
|
+
readonly removed: Schema.Boolean;
|
|
353
|
+
}>;
|
|
335
354
|
export declare const RunnerReplicaPlacement: Schema.Struct<{
|
|
336
355
|
readonly kind: Schema.String;
|
|
337
356
|
readonly label: Schema.optionalKey<Schema.String>;
|
|
@@ -3905,6 +3924,10 @@ export type RunnerRescope = (typeof RunnerRescope)['Type'];
|
|
|
3905
3924
|
export type RunnerDefaultHarnessInput = (typeof RunnerDefaultHarnessInput)['Type'];
|
|
3906
3925
|
export type RunnerTeamGrantList = (typeof RunnerTeamGrantList)['Type'];
|
|
3907
3926
|
export type RunnerTeamGrantDeleteResult = (typeof RunnerTeamGrantDeleteResult)['Type'];
|
|
3927
|
+
export type RunnerWorkspaceAttachment = (typeof RunnerWorkspaceAttachment)['Type'];
|
|
3928
|
+
export type RunnerWorkspaceAttachmentCreate = (typeof RunnerWorkspaceAttachmentCreate)['Type'];
|
|
3929
|
+
export type RunnerWorkspaceAttachmentList = (typeof RunnerWorkspaceAttachmentList)['Type'];
|
|
3930
|
+
export type RunnerWorkspaceAttachmentDeleteResult = (typeof RunnerWorkspaceAttachmentDeleteResult)['Type'];
|
|
3908
3931
|
export type RunnerExecutionBackend = (typeof RunnerExecutionBackend)['Type'];
|
|
3909
3932
|
export type RunnerLoopExecutionCapability = (typeof RunnerLoopExecutionCapability)['Type'];
|
|
3910
3933
|
export type RunnerCapabilities = (typeof RunnerCapabilities)['Type'];
|
|
@@ -11,9 +11,15 @@ export declare const SecretHosts: Schema.$Array<Schema.String>;
|
|
|
11
11
|
* the reference, and only to the Secret's hosts.
|
|
12
12
|
*/
|
|
13
13
|
export declare const secretReference: (owner: string, name: string) => string;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* `token` with its secret part replaced by `reference`, keeping what a Harness parses: a JWT's header and claims, a
|
|
16
|
+
* Copilot token's endpoint, or a prefix such as `sk-ant-oat01-`. The proxy swaps the whole placeholder for the value, as
|
|
17
|
+
* it does a reference.
|
|
18
|
+
*/
|
|
19
|
+
export declare const secretPlaceholder: (token: string, reference: string) => string;
|
|
20
|
+
/** `text` with each reference or placeholder in it replaced by `swap`'s answer for its reference. */
|
|
15
21
|
export declare const replaceSecretReferences: (text: string, swap: (reference: string) => string) => string;
|
|
16
|
-
/** The references in `text`, each once. */
|
|
22
|
+
/** The references in `text`, held plainly or in placeholders, each once. */
|
|
17
23
|
export declare const secretReferencesIn: (text: string) => string[];
|
|
18
24
|
/** A Secret as anyone may see it: never its value. */
|
|
19
25
|
export declare const SecretSummary: Schema.Struct<{
|