@crewhaus/ir 0.4.2 → 0.5.1

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/index.d.ts CHANGED
@@ -666,6 +666,13 @@ export type IrThredz = {
666
666
  * agent memory is never public by accident (Thredz's own API defaults
667
667
  * new articles to globally-shared). */
668
668
  readonly visibility: IrThredzVisibility;
669
+ /** 0.5.0 — the Thredz wiki space (Pro/Scale) this agent's memory is scoped
670
+ * to; becomes `THREDZ_DEFAULT_SPACE`. Absent → unspaced, i.e. the legacy
671
+ * account-wide wiki, which is also the only path on Free/Starter. Inside a
672
+ * space the space's TYPE decides visibility, so {@link visibility} stops
673
+ * applying — it is still carried, because the two are independent knobs and
674
+ * a bundle may be pointed at a space after the fact. */
675
+ readonly space?: string;
669
676
  /** RESOLVED — mirror continuity goal writes to Thredz `goal_write`/
670
677
  * `goal_update` (spec-scoped only, §14.5 decision 5). Defaulted at lower
671
678
  * time to "on when continuity goals are on". */
@@ -1628,6 +1635,18 @@ export type IrCrewRole = {
1628
1635
  * PolicyRouter decides per role against the shared routing-store
1629
1636
  * scoreboard). Absent → single-model. */
1630
1637
  readonly modelPool?: IrModelPool;
1638
+ /** 0.5.0 — this role's RESOLVED Thredz config: the crew-wide defaults with
1639
+ * the role's own `thredz.roles.<name>` overrides merged in, shorthands
1640
+ * expanded and the credential lowered. Absent → this role has no hosted
1641
+ * wiki. Resolution happens at lower time precisely so the emitter does no
1642
+ * inheritance logic. */
1643
+ readonly thredz?: IrThredz;
1644
+ /** 0.5.0 — the `mcp_servers` key of the server this role's Thredz rides:
1645
+ * `"thredz"` for the crew default, `"thredz-<slug>"` for a role override.
1646
+ * Carried explicitly so the emitter never re-derives it — a name derived
1647
+ * twice is a name that can drift, and `McpHost.getClient` on a name the
1648
+ * host does not carry degrades the role to local files SILENTLY. */
1649
+ readonly thredzServer?: string;
1631
1650
  };
1632
1651
  export type IrCrewRoutingKind = "match" | "llm";
1633
1652
  export type IrCrewRouting = {
package/dist/readme.js CHANGED
@@ -16,6 +16,7 @@ export const GENERATED_README_MARKER = "<!-- crewhaus:generated-readme -->";
16
16
  */
17
17
  const SYNTHESIZED_LITERAL_KEYS = new Set([
18
18
  "THREDZ_DEFAULT_VISIBILITY",
19
+ "THREDZ_DEFAULT_SPACE",
19
20
  "THREDZ_API_BASE",
20
21
  ]);
21
22
  export function collectSecretRefs(ir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/ir",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Canonical typed intermediate representation",
6
6
  "main": "dist/index.js",