@dtmd/temper 0.0.24 → 0.0.25

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.
@@ -68,7 +68,7 @@ export const rootDefaultContract = [
68
68
  }),
69
69
  clause(locusDeclared(), {
70
70
  severity: "advisory",
71
- guidance: "A document sits at a governed locus that your program declares no member for. temper maintains nothing about it: `emit` never writes or reaps it, `guard` never bound it, and every address under it resolves to nothing — so it reads as governed configuration while being governed by no one. Where the locus is one the harness itself loads — a built-in kind's — it is live context on top of that; where the kind is your own, who reads it is yours to know and not temper's to claim. Declare the member in the program and re-emit; for a directory whose documents are authored in place rather than projected, declare its kind `local` so `check` derives the rows at read time instead. Advisory because a tree mid-adoption legitimately carries documents the program has not reached yet; dial this label to `required` — or re-declare the clause — once every document at a governed locus should be one you declared.",
71
+ guidance: "A document sits at a governed locus that your program declares no member for. temper maintains nothing about it: `emit` never reaps it, and where your registrations write into it, `emit` renders their entries and refuses to delete any key it does not own; `guard` never bound it, and every address under it resolves to nothing — so it reads as governed configuration while being governed by no one. Where the locus is one the harness itself loads — a built-in kind's — it is live context on top of that; where the kind is your own, who reads it is yours to know and not temper's to claim. Declare the member in the program and re-emit; for a directory whose documents are authored in place rather than projected, declare its kind `local` so `check` derives the rows at read time instead. Advisory because a tree mid-adoption legitimately carries documents the program has not reached yet; dial this label to `required` — or re-declare the clause — once every document at a governed locus should be one you declared.",
72
72
  }),
73
73
  clause(engineMatches(), {
74
74
  severity: "advisory",
@@ -462,6 +462,9 @@ export interface GateHookInit {
462
462
  readonly matcher?: string;
463
463
  /** The temper binary the hook runs — a name resolved on the PATH, or a path. */
464
464
  readonly binary?: string;
465
+ /** The requirements this member fills — every member's `satisfies` edge, as on
466
+ * {@link hook} (specs/model/contract.md, "edge"). */
467
+ readonly satisfies?: readonly string[];
465
468
  }
466
469
  /**
467
470
  * The key a gate hook's registration row carries its declared binary under — the engine's
@@ -282,9 +282,10 @@ export function gateHook(init) {
282
282
  `runs, or omit it for \`temper\` on the PATH (specs/model/adoption.md, "Install").`);
283
283
  }
284
284
  const handlers = [{ type: "command" }];
285
+ const satisfies = init.satisfies === undefined ? {} : { satisfies: init.satisfies };
285
286
  const member = init.matcher === undefined
286
- ? hook({ name: init.name, hooks: handlers })
287
- : hook({ name: init.name, matcher: init.matcher, hooks: handlers });
287
+ ? hook({ name: init.name, hooks: handlers, ...satisfies })
288
+ : hook({ name: init.name, matcher: init.matcher, hooks: handlers, ...satisfies });
288
289
  gateHookBinaries.set(member, init.binary ?? null);
289
290
  return member;
290
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtmd/temper",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "The temper authoring face — the six-noun model as typed modules: harness(), kind<T>(), clause values, needs, and file()/text/blocks(). Emit compiles to the declaration rows the engine reads, a byte-faithful projection, and the lock.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "repository": {
@@ -52,7 +52,7 @@
52
52
  "temper": "bin/temper.js"
53
53
  },
54
54
  "optionalDependencies": {
55
- "@dtmd/temper-linux-x64": "0.0.24",
56
- "@dtmd/temper-win32-x64": "0.0.24"
55
+ "@dtmd/temper-linux-x64": "0.0.25",
56
+ "@dtmd/temper-win32-x64": "0.0.25"
57
57
  }
58
58
  }