@srobroek/pi-speckit-beads 3.1.0 → 3.2.0
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.md +6 -0
- package/extensions/speckit-beads.js +21 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## speckit-beads [3.2.0](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v3.1.0...speckit-beads--v3.2.0) (2026-12-05)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **beads:** hide the Beads tools and skill without a store ([#309](https://github.com/srobroek/harness-plugins/issues/309)) ([8375f31](https://github.com/srobroek/harness-plugins/commit/8375f314cea217da32c0a3c236d76d661bf83efc))
|
|
6
|
+
|
|
1
7
|
## speckit-beads [3.1.0](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v3.0.1...speckit-beads--v3.1.0) (2026-12-05)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -2351,26 +2351,28 @@ function repositoryState(cwd) {
|
|
|
2351
2351
|
current = parent;
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function sessionPinCandidates(cwd) {
|
|
2355
2355
|
const local = resolve5(cwd, ".beads");
|
|
2356
2356
|
const common = repoIdentity(cwd);
|
|
2357
2357
|
if (common === undefined)
|
|
2358
|
-
return;
|
|
2358
|
+
return [];
|
|
2359
2359
|
if (common !== cwd && common.endsWith("/.git")) {
|
|
2360
2360
|
const primaryRoot = resolve5(common, "..");
|
|
2361
2361
|
try {
|
|
2362
|
-
if (realpathSync2(cwd) === primaryRoot
|
|
2363
|
-
return local;
|
|
2362
|
+
if (realpathSync2(cwd) === primaryRoot)
|
|
2363
|
+
return [local];
|
|
2364
2364
|
} catch {
|
|
2365
|
-
return;
|
|
2365
|
+
return [];
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2368
|
-
if (isDir(primary))
|
|
2369
|
-
return primary;
|
|
2367
|
+
return [resolve5(primaryRoot, ".beads"), local];
|
|
2370
2368
|
}
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2369
|
+
return [local];
|
|
2370
|
+
}
|
|
2371
|
+
function existingStore(candidates) {
|
|
2372
|
+
return candidates.find(isDir);
|
|
2373
|
+
}
|
|
2374
|
+
function sessionPinFor(cwd) {
|
|
2375
|
+
return existingStore(sessionPinCandidates(cwd));
|
|
2374
2376
|
}
|
|
2375
2377
|
function storeFromBeadsDb(value, cwd) {
|
|
2376
2378
|
const path = resolve5(cwd, value);
|
|
@@ -3233,11 +3235,16 @@ function withoutInheritedPin(env) {
|
|
|
3233
3235
|
delete rest.BEADS_DIR;
|
|
3234
3236
|
return rest;
|
|
3235
3237
|
}
|
|
3236
|
-
function
|
|
3238
|
+
function sessionStore(cwd, env, pinFor = sessionPinFor) {
|
|
3237
3239
|
const own = withoutInheritedPin(env);
|
|
3238
3240
|
if (own.BEADS_DIR !== undefined && own.BEADS_DIR !== "")
|
|
3239
|
-
return;
|
|
3240
|
-
|
|
3241
|
+
return { store: own.BEADS_DIR, chosenBy: "user" };
|
|
3242
|
+
const pin = ambientStore(cwd, { ...own, BEADS_DIR: undefined }, pinFor);
|
|
3243
|
+
return pin === undefined ? undefined : { store: pin, chosenBy: "pin" };
|
|
3244
|
+
}
|
|
3245
|
+
function shellPin(cwd, env, pinFor = sessionPinFor) {
|
|
3246
|
+
const chosen = sessionStore(cwd, env, pinFor);
|
|
3247
|
+
return chosen?.chosenBy === "pin" ? chosen.store : undefined;
|
|
3241
3248
|
}
|
|
3242
3249
|
function selectStore(cwd, base, pinFor = sessionPinFor) {
|
|
3243
3250
|
const own = withoutInheritedPin(base);
|
package/package.json
CHANGED