@kitman-sh/sdk 0.10.74 → 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
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
|
@@ -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<{
|