@ouro.bot/cli 0.1.0-alpha.738 → 0.1.0-alpha.739
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/changelog.json +6 -0
- package/dist/repertoire/vault-unlock.js +35 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.739",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Allow Linux auto vault unlock reads to reuse an already-approved plaintext fallback when no secure local store has usable material."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.738",
|
|
6
12
|
"changes": [
|
|
@@ -517,6 +517,15 @@ function deleteFromStoreExact(config, store, deps) {
|
|
|
517
517
|
return deleteFromWindowsDpapiExact(config, deps);
|
|
518
518
|
return deleteFromPlaintextFileExact(config, deps);
|
|
519
519
|
}
|
|
520
|
+
function readFromAutoPlaintextFallback(config, deps) {
|
|
521
|
+
if (deps.store !== undefined && deps.store !== "auto")
|
|
522
|
+
return null;
|
|
523
|
+
const store = resolveVaultUnlockStore(config, { ...deps, store: "plaintext-file" });
|
|
524
|
+
const loaded = readFromStore(config, store, deps);
|
|
525
|
+
if (!loaded)
|
|
526
|
+
return null;
|
|
527
|
+
return { secret: loaded.secret, store, source: loaded.source };
|
|
528
|
+
}
|
|
520
529
|
function clearVaultUnlockSecret(config, deps = {}) {
|
|
521
530
|
const canonicalConfig = canonicalizeVaultUnlockConfig(config);
|
|
522
531
|
const store = resolveVaultUnlockStore(canonicalConfig, deps);
|
|
@@ -540,9 +549,34 @@ function clearVaultUnlockSecret(config, deps = {}) {
|
|
|
540
549
|
}
|
|
541
550
|
function readVaultUnlockSecret(config, deps = {}) {
|
|
542
551
|
const canonicalConfig = canonicalizeVaultUnlockConfig(config);
|
|
543
|
-
|
|
552
|
+
let store;
|
|
553
|
+
try {
|
|
554
|
+
store = resolveVaultUnlockStore(canonicalConfig, deps);
|
|
555
|
+
}
|
|
556
|
+
catch (error) {
|
|
557
|
+
const fallback = readFromAutoPlaintextFallback(canonicalConfig, deps);
|
|
558
|
+
if (!fallback)
|
|
559
|
+
throw error;
|
|
560
|
+
(0, runtime_1.emitNervesEvent)({
|
|
561
|
+
component: "repertoire",
|
|
562
|
+
event: "repertoire.vault_unlock_loaded",
|
|
563
|
+
message: "loaded vault unlock material from local store",
|
|
564
|
+
meta: { store: fallback.store.kind, secure: fallback.store.secure, hasAgentName: !!config.agentName, sourceServerUrl: fallback.source.serverUrl },
|
|
565
|
+
});
|
|
566
|
+
return fallback;
|
|
567
|
+
}
|
|
544
568
|
const loaded = readFromStore(canonicalConfig, store, deps);
|
|
545
569
|
if (!loaded) {
|
|
570
|
+
const fallback = readFromAutoPlaintextFallback(canonicalConfig, deps);
|
|
571
|
+
if (fallback) {
|
|
572
|
+
(0, runtime_1.emitNervesEvent)({
|
|
573
|
+
component: "repertoire",
|
|
574
|
+
event: "repertoire.vault_unlock_loaded",
|
|
575
|
+
message: "loaded vault unlock material from local store",
|
|
576
|
+
meta: { store: fallback.store.kind, secure: fallback.store.secure, hasAgentName: !!config.agentName, sourceServerUrl: fallback.source.serverUrl },
|
|
577
|
+
});
|
|
578
|
+
return fallback;
|
|
579
|
+
}
|
|
546
580
|
throw new Error(lockedMessage(canonicalConfig, store));
|
|
547
581
|
}
|
|
548
582
|
(0, runtime_1.emitNervesEvent)({
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.739",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@ouro.bot/cli",
|
|
9
|
-
"version": "0.1.0-alpha.
|
|
9
|
+
"version": "0.1.0-alpha.739",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@azure/identity": "^4.13.0",
|