@crewhaus/harness-registry 0.5.7 → 0.5.8

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/doc.js CHANGED
@@ -73,6 +73,7 @@ function normalizeEntry(raw, ctx, taken, liftingV1) {
73
73
  groups: asStringArray(raw["groups"]),
74
74
  tags: asStringArray(raw["tags"]),
75
75
  pinned: raw["pinned"] === true,
76
+ hidden: raw["hidden"] === true,
76
77
  notes: asString(raw["notes"]) ?? "",
77
78
  kind: raw["kind"] === "remote" ? "remote" : "local",
78
79
  watchme: { ...watchmeRaw, share },
@@ -103,6 +103,9 @@ export type HangarRegistry = {
103
103
  groupMembers(group: string, opts?: ListOptions): HangarHarnessEntry[];
104
104
  setTags(dirOrId: string, tags: readonly string[]): HangarHarnessEntry | undefined;
105
105
  setPinned(dirOrId: string, pinned: boolean): HangarHarnessEntry | undefined;
106
+ /** Hide from (or return to) the manager's default Library view. The entry
107
+ * stays registered with all its state — hiding is curation, not removal. */
108
+ setHidden(dirOrId: string, hidden: boolean): HangarHarnessEntry | undefined;
106
109
  setNotes(dirOrId: string, notes: string): HangarHarnessEntry | undefined;
107
110
  listGroups(): GroupDef[];
108
111
  /** Idempotent by name; new groups append at the end of the order. */
package/dist/registry.js CHANGED
@@ -299,6 +299,7 @@ export function openHangarRegistry(opts = {}) {
299
299
  groups: [...(fields.groups ?? [])],
300
300
  tags: [...(fields.tags ?? [])],
301
301
  pinned: fields.pinned ?? false,
302
+ hidden: false,
302
303
  notes: fields.notes ?? "",
303
304
  kind: fields.kind ?? "local",
304
305
  watchme: { share: fields.watchme?.share ?? false },
@@ -560,6 +561,7 @@ export function openHangarRegistry(opts = {}) {
560
561
  groups: [],
561
562
  tags: [],
562
563
  pinned: false,
564
+ hidden: false,
563
565
  notes: "",
564
566
  kind: "local",
565
567
  watchme: { share: src.share === true },
@@ -606,6 +608,7 @@ export function openHangarRegistry(opts = {}) {
606
608
  groupMembers: (group, opts) => sortGroupMembers(group, list(opts)),
607
609
  setTags: (dirOrId, tags) => patchEntry(dirOrId, (e) => ({ ...e, tags: [...tags] })),
608
610
  setPinned: (dirOrId, pinned) => patchEntry(dirOrId, (e) => ({ ...e, pinned })),
611
+ setHidden: (dirOrId, hidden) => patchEntry(dirOrId, (e) => ({ ...e, hidden })),
609
612
  setNotes: (dirOrId, notes) => patchEntry(dirOrId, (e) => ({ ...e, notes })),
610
613
  listGroups,
611
614
  addGroup,
package/dist/types.d.ts CHANGED
@@ -57,6 +57,14 @@ export type HangarHarnessEntry = {
57
57
  readonly tags: readonly string[];
58
58
  /** User-managed; pinned entries survive prune prompts. */
59
59
  readonly pinned: boolean;
60
+ /**
61
+ * User-managed; hidden entries stay registered (their state, groups and
62
+ * history survive) but the manager's Library omits them from the default
63
+ * view. "Don't show all harnesses unless added": a scan may register a
64
+ * whole tree, and hiding is how an operator keeps the shown set curated
65
+ * without losing the registration. Never clobbered by an upsert refresh.
66
+ */
67
+ readonly hidden: boolean;
60
68
  /** User-managed free text; never clobbered by an upsert refresh. */
61
69
  readonly notes: string;
62
70
  readonly kind: HarnessKind;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/harness-registry",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "type": "module",
5
5
  "description": "Machine-wide harness registry (harnesses.json v2) — stable hrn_ ids, groups/tags/pins, scan roots, missing-dir stamping, and watchme registry interop behind the harness manager",
6
6
  "main": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/watchme-store": "0.5.7"
18
+ "@crewhaus/watchme-store": "0.5.8"
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "author": {