@tangle-network/cli-agent-registry 0.15.110 → 0.15.112
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/README.md +14 -0
- package/dist/cli-auth-bundle.d.mts +3 -3
- package/dist/cli-auth-placeholder.d.mts +1 -1
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -43,6 +43,20 @@ Credential exclusions, native-store identity and conservation still apply.
|
|
|
43
43
|
environment names. Non-JavaScript Git consumers can pin this committed file by
|
|
44
44
|
commit and hash. Build emits its byte-identical package copy in `dist`; the public
|
|
45
45
|
`/host-contracts.json` export resolves there, and prepack rejects drift in either copy.
|
|
46
|
+
The invariant group, preflight and `release:check` run `check:host-contracts`
|
|
47
|
+
before a build can regenerate the copy. This reads the committed JSON and the
|
|
48
|
+
source declarations. A clean checkout uses the Node runtime in `.nvmrc`.
|
|
49
|
+
Author workspaces on Node versions without native type stripping use the
|
|
50
|
+
registry’s installed TypeScript compiler.
|
|
51
|
+
Node resolves runtime-contracts through that package’s own source exports.
|
|
52
|
+
An earlier build healing the worktree cannot make a stale commit pass.
|
|
53
|
+
`scripts/bump-nix-agent-clis.mjs --write` checks that source runtime before
|
|
54
|
+
changing pins, then exports the final versions through the same projection.
|
|
55
|
+
For other declaration edits, `export:host-contracts:source` writes only the
|
|
56
|
+
source copy; commit it with the declarations. Neither source command builds
|
|
57
|
+
packages or installs dependencies. The existing build and prepack keep their
|
|
58
|
+
package-copy requirements. These gates hold qualification and deployment;
|
|
59
|
+
they do not add a merge restriction.
|
|
46
60
|
The real CLI/Python
|
|
47
61
|
boundary check is `node tests/host-contracts.integration.mjs`.
|
|
48
62
|
|
|
@@ -5,8 +5,8 @@ import { z } from "zod";
|
|
|
5
5
|
//#region src/cli-auth-bundle.d.ts
|
|
6
6
|
declare const nativeCredentialSelectionSchema: z.ZodObject<{
|
|
7
7
|
harness: z.ZodEnum<{
|
|
8
|
-
"claude-code": "claude-code";
|
|
9
8
|
codex: "codex";
|
|
9
|
+
"claude-code": "claude-code";
|
|
10
10
|
}>;
|
|
11
11
|
cliAuth: z.ZodObject<{
|
|
12
12
|
account: z.ZodString;
|
|
@@ -21,8 +21,8 @@ declare const nativeCredentialSelectionSchema: z.ZodObject<{
|
|
|
21
21
|
/** A legacy seat replies installed; canonical admission returns its proxy receipt, pending HOME or revoked on retirement. */
|
|
22
22
|
declare const legacyNativeCredentialReplySchema: z.ZodObject<{
|
|
23
23
|
harness: z.ZodEnum<{
|
|
24
|
-
"claude-code": "claude-code";
|
|
25
24
|
codex: "codex";
|
|
25
|
+
"claude-code": "claude-code";
|
|
26
26
|
}>;
|
|
27
27
|
cliAuth: z.ZodObject<{
|
|
28
28
|
account: z.ZodString;
|
|
@@ -37,8 +37,8 @@ declare const legacyNativeCredentialReplySchema: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strict>;
|
|
38
38
|
declare const canonicalNativeCredentialReplySchema: z.ZodObject<{
|
|
39
39
|
harness: z.ZodEnum<{
|
|
40
|
-
"claude-code": "claude-code";
|
|
41
40
|
codex: "codex";
|
|
41
|
+
"claude-code": "claude-code";
|
|
42
42
|
}>;
|
|
43
43
|
cliAuth: z.ZodObject<{
|
|
44
44
|
account: z.ZodString;
|
|
@@ -81,7 +81,7 @@ type ProxySecretMaterialization = z.infer<typeof proxySecretMaterializationsSche
|
|
|
81
81
|
//#region src/native-cli-auth-metadata.d.ts
|
|
82
82
|
/** Sole decoder of the private annotation; it grants no source or scope authority. */
|
|
83
83
|
declare function decodeNativeCliAuthAnnotation(raw: unknown): {
|
|
84
|
-
harness: "
|
|
84
|
+
harness: "codex" | "claude-code";
|
|
85
85
|
cliAuth: {
|
|
86
86
|
account: string;
|
|
87
87
|
secretEnv: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/cli-agent-registry",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.112",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./cli-backend-auth-env": {
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"tsdown": "^0.21.10",
|
|
74
74
|
"typescript": "^6.0.3",
|
|
75
75
|
"vitest": "^4.1.12",
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
76
|
+
"@repo/airgap-guard": "0.0.0",
|
|
77
|
+
"@tangle-network/runtime-contracts": "0.20.0"
|
|
78
78
|
},
|
|
79
79
|
"tangleRelease": {
|
|
80
|
-
"sourceSha": "
|
|
81
|
-
"mergedAt": "2026-11-
|
|
80
|
+
"sourceSha": "8737fb2108aef6205ceb958d843c1fcfccc996c6",
|
|
81
|
+
"mergedAt": "2026-11-18T13:37:21-08:00"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsdown && node scripts/export-host-contracts.mjs --write",
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
"check-types": "node ../../scripts/tsc-native.mjs --noEmit",
|
|
87
87
|
"test": "vitest run --config ../../vitest.config.cjs",
|
|
88
88
|
"test:watch": "vitest --config ../../vitest.config.cjs",
|
|
89
|
-
"export:host-contracts": "node scripts/export-host-contracts.mjs --write"
|
|
89
|
+
"export:host-contracts": "node scripts/export-host-contracts.mjs --write",
|
|
90
|
+
"export:host-contracts:source": "node scripts/export-host-contracts.mjs --write-source",
|
|
91
|
+
"check:host-contracts": "node scripts/export-host-contracts.mjs --check-source"
|
|
90
92
|
}
|
|
91
93
|
}
|