@xenosystem/agent-cli 0.5.115 → 0.5.116
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/cli.js +1 -1
- package/dist/index.js +1445 -1442
- package/dist/metafile-esm.json +1 -1
- package/dist/sdk-build-identity.json +12 -12
- package/node_modules/@xeno-corporation/account/README.md +32 -1
- package/node_modules/@xeno-corporation/account/dist/node.d.mts +52 -1
- package/node_modules/@xeno-corporation/account/dist/node.d.ts +52 -1
- package/node_modules/@xeno-corporation/account/dist/node.js +580 -6
- package/node_modules/@xeno-corporation/account/dist/node.js.map +1 -1
- package/node_modules/@xeno-corporation/account/dist/node.mjs +573 -0
- package/node_modules/@xeno-corporation/account/dist/node.mjs.map +1 -1
- package/node_modules/@xeno-corporation/account/package.json +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@xenosystem/agent-sdk",
|
|
4
4
|
"version": "0.10.67",
|
|
5
|
-
"cliBundleSha256": "
|
|
5
|
+
"cliBundleSha256": "0811980a05f3b0b6e97f448dc45477872268b729ee05d0bbaedefa3bfdcf2849",
|
|
6
6
|
"inputs": [
|
|
7
7
|
{
|
|
8
8
|
"path": "dist/agents/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
],
|
|
83
83
|
"canonicalAccount": {
|
|
84
84
|
"packageName": "@xeno-corporation/account",
|
|
85
|
-
"version": "0.
|
|
85
|
+
"version": "0.3.0",
|
|
86
86
|
"inputs": [
|
|
87
87
|
{
|
|
88
88
|
"path": "dist/chunk-FELZILY4.mjs",
|
|
@@ -118,27 +118,27 @@
|
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"path": "dist/node.d.mts",
|
|
121
|
-
"sha256": "
|
|
121
|
+
"sha256": "709681b444bf0db8cacf8dbbf3e1b809d7319f2fb32f8f32f022334425f5a044"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"path": "dist/node.d.ts",
|
|
125
|
-
"sha256": "
|
|
125
|
+
"sha256": "1117f72ca0f7ec6c6288ace0450fad8ea41c9df9a824950f51f7e6f1d4e5dccc"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"path": "dist/node.js",
|
|
129
|
-
"sha256": "
|
|
129
|
+
"sha256": "6e78b19581e897af0fc9a184aaa98a37699f9a07fe8c1b7166c1fc0e4bdf0ac9"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"path": "dist/node.js.map",
|
|
133
|
-
"sha256": "
|
|
133
|
+
"sha256": "388941b128f2715800770cc23d33de22f99a648ab2cc805c3608cc04931eaf47"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"path": "dist/node.mjs",
|
|
137
|
-
"sha256": "
|
|
137
|
+
"sha256": "262660b4538a910cc636f24e21a97532e8e7f5d9abcb98f2e089c60b70563688"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "dist/node.mjs.map",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "86bafe61b186d86342e228acda46c9217bf9992a06f02f91f51e5e5c5914b482"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"path": "dist/tokenStore-CnIo2ILq.d.mts",
|
|
@@ -150,22 +150,22 @@
|
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"path": "package.json",
|
|
153
|
-
"sha256": "
|
|
153
|
+
"sha256": "1b48f0dd089a7cbc9b7d84b10e0a7f4cc5a7ab6a15ca0262d9efe516664aef8a"
|
|
154
154
|
}
|
|
155
155
|
]
|
|
156
156
|
},
|
|
157
157
|
"emitted": [
|
|
158
158
|
{
|
|
159
159
|
"path": "cli.js",
|
|
160
|
-
"sha256": "
|
|
160
|
+
"sha256": "4bbb5b46fb5623986ddc179cce26c885aedeb8958c764f62bcb0a2fd9ef0e788"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"path": "index.js",
|
|
164
|
-
"sha256": "
|
|
164
|
+
"sha256": "0811980a05f3b0b6e97f448dc45477872268b729ee05d0bbaedefa3bfdcf2849"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"path": "metafile-esm.json",
|
|
168
|
-
"sha256": "
|
|
168
|
+
"sha256": "661f328e321d1b325c19be2c3207819aeb6f56dfe61cf4d74398f495923c8659"
|
|
169
169
|
}
|
|
170
170
|
]
|
|
171
171
|
}
|
|
@@ -208,4 +208,35 @@ the exact helper and leaves account state unknown. Close refuses active work.
|
|
|
208
208
|
Hardware/non-exportability is not remote attestation or containment against
|
|
209
209
|
malicious same-user code. This candidate does not integrate real CLI login,
|
|
210
210
|
verify Hub executable trust, provision Use policy/product grants, establish MFA,
|
|
211
|
-
or qualify macOS
|
|
211
|
+
or qualify macOS keystores. See `docs/ACCOUNT_WINDOWS_HOST.md` in the owner.
|
|
212
|
+
|
|
213
|
+
## Linux Privileged Host
|
|
214
|
+
|
|
215
|
+
`createLinuxAccountHost` is also exported only from `@xeno-corporation/account/node`
|
|
216
|
+
and returns the same `{ store, dpopSigner, custody, close }` shape as the Windows host.
|
|
217
|
+
|
|
218
|
+
- **With a keyring** (Secret Service, through `secret-tool`): the refresh token, the
|
|
219
|
+
sign-in transition and the DPoP private key are keyring items, addressed by
|
|
220
|
+
attributes derived from the namespace and client id. Values travel on stdin/stdout
|
|
221
|
+
only, never argv or environment, and are encoded before storage. Every write is read
|
|
222
|
+
back, because `secret-tool store` exits 0 when a locked or absent keyring keeps
|
|
223
|
+
nothing. A probe item is written, read and cleared before a new key is committed.
|
|
224
|
+
`custody.kind` is `linux-secret-service+software-key`, `persistent: true`.
|
|
225
|
+
- **Without a keyring** (Google Cloud Shell, SSH sessions, containers): the session is
|
|
226
|
+
kept in this process's memory and ends with it. `custody.kind` is
|
|
227
|
+
`linux-session-memory+software-key`, `persistent: false`. Nothing is written to a
|
|
228
|
+
file (XENO AUTH L9: no keystore means session-only, never a plaintext file).
|
|
229
|
+
- **Exclusion** across processes is an exclusively created lock file in
|
|
230
|
+
`$XDG_RUNTIME_DIR/xeno/account` (a private per-user temp folder otherwise). A holder
|
|
231
|
+
is broken only when it is provably gone: same host and another boot, no such process,
|
|
232
|
+
or a reused pid with a different start time. A live or unknown holder is waited for,
|
|
233
|
+
and the wait is bounded.
|
|
234
|
+
- **The key is software**, not hardware-backed and not non-exportable
|
|
235
|
+
(`hardwareBacked: false`, `nonExportable: false`): Linux gives a user process no
|
|
236
|
+
portable non-exportable key store. A host that requires hardware custody must check
|
|
237
|
+
`custody` and refuse.
|
|
238
|
+
|
|
239
|
+
Default opens an existing key; `createKey: true` provisions one, and never under an
|
|
240
|
+
existing refresh or transition entry. A write the keyring refuses, or a transaction
|
|
241
|
+
that overruns, makes the host refuse everything after it. Qualify on real Linux with
|
|
242
|
+
`tests/linux-host.native.mjs` (see its header for the keyring and no-keyring runs).
|
|
@@ -29,7 +29,58 @@ interface WindowsAccountHost {
|
|
|
29
29
|
* No software-key or plaintext fallback; not a sandbox against same-user code. */
|
|
30
30
|
declare function createWindowsAccountHost(options: WindowsAccountHostOptions): Promise<WindowsAccountHost>;
|
|
31
31
|
|
|
32
|
+
interface LinuxAccountHostOptions {
|
|
33
|
+
clientId: string;
|
|
34
|
+
/** Owning installation/product namespace, not a user or token value. */
|
|
35
|
+
namespace?: string;
|
|
36
|
+
/** Explicit initial key provisioning only. Default opens an existing key. */
|
|
37
|
+
createKey?: boolean;
|
|
38
|
+
/** Per keyring command. Long enough for the desktop's unlock prompt. */
|
|
39
|
+
timeoutMs?: number;
|
|
40
|
+
lockTimeoutMs?: number;
|
|
41
|
+
transactionTimeoutMs?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Two custodies, both software keys (Linux offers no portable non-exportable key store to a user
|
|
45
|
+
* process; a TPM is usually not reachable without extra privileges and is absent on hosted shells).
|
|
46
|
+
* `persistent: false` means no keyring answered: the session lives in this process's memory only and
|
|
47
|
+
* ends with it (XENO AUTH L9: no keystore → session-only, never a file).
|
|
48
|
+
*/
|
|
49
|
+
type LinuxAccountCustody = {
|
|
50
|
+
kind: 'linux-secret-service+software-key';
|
|
51
|
+
hardwareBacked: false;
|
|
52
|
+
nonExportable: false;
|
|
53
|
+
persistent: true;
|
|
54
|
+
createdKey: boolean;
|
|
55
|
+
keyName: string;
|
|
56
|
+
} | {
|
|
57
|
+
kind: 'linux-session-memory+software-key';
|
|
58
|
+
hardwareBacked: false;
|
|
59
|
+
nonExportable: false;
|
|
60
|
+
persistent: false;
|
|
61
|
+
createdKey: true;
|
|
62
|
+
keyName: string;
|
|
63
|
+
};
|
|
64
|
+
interface LinuxAccountHost {
|
|
65
|
+
store: TokenStore;
|
|
66
|
+
dpopSigner: DpopSigner;
|
|
67
|
+
custody: LinuxAccountCustody;
|
|
68
|
+
/** Deletes a key only when this host created it, for owned qualification cleanup. */
|
|
69
|
+
close(options?: {
|
|
70
|
+
deleteCreatedKey?: boolean;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Privileged Node host: Secret Service (libsecret, through `secret-tool`) holds the refresh token,
|
|
75
|
+
* the sign-in transition and the DPoP private key; a lock file in the per-user runtime directory
|
|
76
|
+
* excludes other processes. Secrets travel on stdin/stdout only, never argv or environment, and every
|
|
77
|
+
* write is read back, because `secret-tool store` exits 0 when the keyring silently refused the item.
|
|
78
|
+
* Without a keyring a sign-in is held in memory for this process only. No plaintext file fallback.
|
|
79
|
+
* Not a sandbox against same-user code, and the key is software, not hardware-backed.
|
|
80
|
+
*/
|
|
81
|
+
declare function createLinuxAccountHost(options: LinuxAccountHostOptions): Promise<LinuxAccountHost>;
|
|
82
|
+
|
|
32
83
|
/** Node/server adapter for a secret-manager-held, stable P-256 private JWK. */
|
|
33
84
|
declare function createNodeDpopSigner(input: string | JsonWebKey): DpopSigner;
|
|
34
85
|
|
|
35
|
-
export { type WindowsAccountHost, type WindowsAccountHostOptions, createNodeDpopSigner, createWindowsAccountHost };
|
|
86
|
+
export { type LinuxAccountCustody, type LinuxAccountHost, type LinuxAccountHostOptions, type WindowsAccountHost, type WindowsAccountHostOptions, createLinuxAccountHost, createNodeDpopSigner, createWindowsAccountHost };
|
|
@@ -29,7 +29,58 @@ interface WindowsAccountHost {
|
|
|
29
29
|
* No software-key or plaintext fallback; not a sandbox against same-user code. */
|
|
30
30
|
declare function createWindowsAccountHost(options: WindowsAccountHostOptions): Promise<WindowsAccountHost>;
|
|
31
31
|
|
|
32
|
+
interface LinuxAccountHostOptions {
|
|
33
|
+
clientId: string;
|
|
34
|
+
/** Owning installation/product namespace, not a user or token value. */
|
|
35
|
+
namespace?: string;
|
|
36
|
+
/** Explicit initial key provisioning only. Default opens an existing key. */
|
|
37
|
+
createKey?: boolean;
|
|
38
|
+
/** Per keyring command. Long enough for the desktop's unlock prompt. */
|
|
39
|
+
timeoutMs?: number;
|
|
40
|
+
lockTimeoutMs?: number;
|
|
41
|
+
transactionTimeoutMs?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Two custodies, both software keys (Linux offers no portable non-exportable key store to a user
|
|
45
|
+
* process; a TPM is usually not reachable without extra privileges and is absent on hosted shells).
|
|
46
|
+
* `persistent: false` means no keyring answered: the session lives in this process's memory only and
|
|
47
|
+
* ends with it (XENO AUTH L9: no keystore → session-only, never a file).
|
|
48
|
+
*/
|
|
49
|
+
type LinuxAccountCustody = {
|
|
50
|
+
kind: 'linux-secret-service+software-key';
|
|
51
|
+
hardwareBacked: false;
|
|
52
|
+
nonExportable: false;
|
|
53
|
+
persistent: true;
|
|
54
|
+
createdKey: boolean;
|
|
55
|
+
keyName: string;
|
|
56
|
+
} | {
|
|
57
|
+
kind: 'linux-session-memory+software-key';
|
|
58
|
+
hardwareBacked: false;
|
|
59
|
+
nonExportable: false;
|
|
60
|
+
persistent: false;
|
|
61
|
+
createdKey: true;
|
|
62
|
+
keyName: string;
|
|
63
|
+
};
|
|
64
|
+
interface LinuxAccountHost {
|
|
65
|
+
store: TokenStore;
|
|
66
|
+
dpopSigner: DpopSigner;
|
|
67
|
+
custody: LinuxAccountCustody;
|
|
68
|
+
/** Deletes a key only when this host created it, for owned qualification cleanup. */
|
|
69
|
+
close(options?: {
|
|
70
|
+
deleteCreatedKey?: boolean;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Privileged Node host: Secret Service (libsecret, through `secret-tool`) holds the refresh token,
|
|
75
|
+
* the sign-in transition and the DPoP private key; a lock file in the per-user runtime directory
|
|
76
|
+
* excludes other processes. Secrets travel on stdin/stdout only, never argv or environment, and every
|
|
77
|
+
* write is read back, because `secret-tool store` exits 0 when the keyring silently refused the item.
|
|
78
|
+
* Without a keyring a sign-in is held in memory for this process only. No plaintext file fallback.
|
|
79
|
+
* Not a sandbox against same-user code, and the key is software, not hardware-backed.
|
|
80
|
+
*/
|
|
81
|
+
declare function createLinuxAccountHost(options: LinuxAccountHostOptions): Promise<LinuxAccountHost>;
|
|
82
|
+
|
|
32
83
|
/** Node/server adapter for a secret-manager-held, stable P-256 private JWK. */
|
|
33
84
|
declare function createNodeDpopSigner(input: string | JsonWebKey): DpopSigner;
|
|
34
85
|
|
|
35
|
-
export { type WindowsAccountHost, type WindowsAccountHostOptions, createNodeDpopSigner, createWindowsAccountHost };
|
|
86
|
+
export { type LinuxAccountCustody, type LinuxAccountHost, type LinuxAccountHostOptions, type WindowsAccountHost, type WindowsAccountHostOptions, createLinuxAccountHost, createNodeDpopSigner, createWindowsAccountHost };
|