@bevel-software/platform-shared 0.20.0 → 0.21.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.
@@ -35,12 +35,19 @@ import { validateFilename } from './filename.js';
35
35
  * Don't hard-code these strings elsewhere — import them from here.
36
36
  *
37
37
  * CONFIGURABLE, WITH DEFAULTS. The three roots a deployment may rename
38
- * (`KnowledgeBase/`, `Skills/`, `Plugins/`) are `let` bindings applied by
39
- * {@link configureKbLayout} — the backend from its deployment settings, the
40
- * browser from `GET /api/config` — the same live-binding pattern as the branch
41
- * model in `git/protected.ts`. Unlike the branch model they carry defaults, so
42
- * nothing has to wait for configuration; but the same rule applies: read them
43
- * inside a function body, never capture one at module scope.
38
+ * (`KnowledgeBase/`, `Skills/`, `Plugins/`) and the guide's file name travel
39
+ * as a {@link KbLayout} VALUE: every helper below that depends on a name takes
40
+ * the layout it judges against, and the backend hands each knowledge base's
41
+ * layout to its services at construction — a server hosting several knowledge
42
+ * bases in one process holds one per knowledge base, never a process-wide one.
43
+ *
44
+ * The `let` bindings (`KNOWLEDGE_BASE_DIR`, …) are the BROWSER'S copy, applied
45
+ * once by {@link configureKbLayout} from `GET /api/config`, the same shape as
46
+ * the branch model in `git/protected.ts`: a page shows one deployment, so one
47
+ * process-wide value is right there. The backend package forbids importing
48
+ * them (an ESLint rule names each one). They carry defaults, so nothing waits
49
+ * for configuration; but read them inside a function body, never capture one
50
+ * at module scope.
44
51
  */
45
52
  /** Folder under the repo root that contains all team ontologies. */
46
53
  export let KNOWLEDGE_BASE_DIR = 'KnowledgeBase';
@@ -188,7 +195,7 @@ export function gitignoreLiteral(name) {
188
195
  * whether this sentence is present by searching for the RAW name — see
189
196
  * {@link mentionsAgentsFile}, which is how the startup step asks.
190
197
  */
191
- export function agentsFilePointerSentence(agentsFile = AGENTS_FILE) {
198
+ export function agentsFilePointerSentence(agentsFile) {
192
199
  return `Read [${markdownLinkLabel(agentsFile)}](${agentsFileLinkPath(agentsFile)})${POINTER_SENTENCE_TAIL}`;
193
200
  }
194
201
  /**
@@ -228,7 +235,7 @@ function escapeRegExp(text) {
228
235
  * answers, and only the caller knows that the second one means "consider
229
236
  * appending".
230
237
  */
231
- export function retargetAgentsFilePointer(text, agentsFile = AGENTS_FILE) {
238
+ export function retargetAgentsFilePointer(text, agentsFile) {
232
239
  let found = false;
233
240
  const wanted = agentsFilePointerSentence(agentsFile);
234
241
  const updated = text.replace(POINTER_SENTENCE_PATTERN, () => {
@@ -274,7 +281,7 @@ function agentsFileLinkPath(agentsFile) {
274
281
  * that one would append a second copy on the next boot, and a third on the
275
282
  * one after — the exact failure this feature exists to prevent.
276
283
  */
277
- export function mentionsAgentsFile(text, agentsFile = AGENTS_FILE) {
284
+ export function mentionsAgentsFile(text, agentsFile) {
278
285
  return (text.includes(agentsFile) ||
279
286
  text.includes(markdownLinkLabel(agentsFile)) ||
280
287
  text.includes(agentsFileLinkPath(agentsFile)));
@@ -326,7 +333,7 @@ export function validateKbRootName(name) {
326
333
  * `roots` is the layout the name is judged against — the names this save would
327
334
  * put in effect, not necessarily the ones running now.
328
335
  */
329
- export function validateAgentsFileName(name, roots = currentKbLayout()) {
336
+ export function validateAgentsFileName(name, roots) {
330
337
  const v = name.trim();
331
338
  if (!v)
332
339
  return 'A file name is required.';
@@ -425,22 +432,37 @@ export function onKbLayoutApplied(listener) {
425
432
  layoutListeners.add(listener);
426
433
  }
427
434
  /**
428
- * Apply the layout. Called once during boot on each side; throws on an invalid
429
- * one so a bad deployment setting fails beside the rest of the wiring rather
430
- * than scattering a half-renamed tree. Applying the defaults is a no-op.
435
+ * A layout as the helpers hold it: validated, every name trimmed, the guide's
436
+ * name filled in from the default when absent. Throws on an invalid one so a
437
+ * bad deployment setting fails beside the rest of the wiring rather than
438
+ * scattering a half-renamed tree.
431
439
  */
432
- export function configureKbLayout(layout) {
440
+ export function resolveKbLayout(layout) {
433
441
  const problem = validateKbLayout(layout);
434
442
  if (problem)
435
443
  throw new Error(problem);
436
- KNOWLEDGE_BASE_DIR = layout.knowledgeBaseDir.trim();
437
- SKILLS_DIR = layout.skillsDir.trim();
438
- PLUGINS_DIR = layout.pluginsDir.trim();
439
- AGENTS_FILE = agentsFileOf(layout);
444
+ return Object.freeze({
445
+ knowledgeBaseDir: layout.knowledgeBaseDir.trim(),
446
+ skillsDir: layout.skillsDir.trim(),
447
+ pluginsDir: layout.pluginsDir.trim(),
448
+ agentsFile: agentsFileOf(layout),
449
+ });
450
+ }
451
+ /**
452
+ * Apply the layout to the BROWSER'S live bindings. Called once during boot
453
+ * from `GET /api/config`; validated by {@link resolveKbLayout}. Applying the
454
+ * defaults is a no-op.
455
+ */
456
+ export function configureKbLayout(layout) {
457
+ const resolved = resolveKbLayout(layout);
458
+ KNOWLEDGE_BASE_DIR = resolved.knowledgeBaseDir;
459
+ SKILLS_DIR = resolved.skillsDir;
460
+ PLUGINS_DIR = resolved.pluginsDir;
461
+ AGENTS_FILE = resolved.agentsFile;
440
462
  for (const listener of layoutListeners)
441
463
  listener();
442
464
  }
443
- /** The layout currently in effect. */
465
+ /** The browser's layout as a value — what the live bindings currently hold. */
444
466
  export function currentKbLayout() {
445
467
  return {
446
468
  knowledgeBaseDir: KNOWLEDGE_BASE_DIR,
@@ -450,14 +472,14 @@ export function currentKbLayout() {
450
472
  };
451
473
  }
452
474
  /**
453
- * Whether a layout — the one in effect, unless one is given — is the default
454
- * one. The setup-completing save applies the stored names while this holds,
455
- * the same "only from none to some" rule the branch model follows — and also
456
- * on a retry after its own failed initialization run, when the process holds
457
- * names setup applied but the app never opened (see `setup.routes.ts`). A
458
- * layout the process booted with is never replaced here.
475
+ * Whether a layout is the default one. The setup-completing save applies the
476
+ * stored names while this holds of the one in effect, the same "only from
477
+ * none to some" rule the branch model follows — and also on a retry after its
478
+ * own failed initialization run, when the process holds names setup applied
479
+ * but the app never opened (see `setup.routes.ts`). A layout the process
480
+ * booted with is never replaced there.
459
481
  */
460
- export function isDefaultKbLayout(layout = currentKbLayout()) {
482
+ export function isDefaultKbLayout(layout) {
461
483
  return (layout.knowledgeBaseDir === DEFAULT_KB_LAYOUT.knowledgeBaseDir &&
462
484
  layout.skillsDir === DEFAULT_KB_LAYOUT.skillsDir &&
463
485
  layout.pluginsDir === DEFAULT_KB_LAYOUT.pluginsDir &&
@@ -472,7 +494,7 @@ export function isDefaultKbLayout(layout = currentKbLayout()) {
472
494
  * renamed the guide gets a guide naming the file it lives in. Text without
473
495
  * placeholders passes through unchanged.
474
496
  */
475
- export function renderKbLayoutPlaceholders(text, layout = currentKbLayout()) {
497
+ export function renderKbLayoutPlaceholders(text, layout) {
476
498
  // Replacer FUNCTIONS: a string replacement would interpret `$&`, `$$` and
477
499
  // friends inside a folder name, and `$` is a legal character in one.
478
500
  return text
@@ -736,9 +758,9 @@ export function isPersonalPluginFolder(folderName) {
736
758
  * to start with the prefix is a plugin — discovery, the principal picker and
737
759
  * the item pages all ask this one question of the FOLDER.
738
760
  */
739
- export function isPersonalPluginDir(repoRelDir) {
761
+ export function isPersonalPluginDir(repoRelDir, layout) {
740
762
  const segments = repoRelDir.split('/').filter(Boolean);
741
- return segments.length === 2 && segments[0] === PLUGINS_DIR && isPersonalPluginFolder(segments[1]);
763
+ return segments.length === 2 && segments[0] === layout.pluginsDir && isPersonalPluginFolder(segments[1]);
742
764
  }
743
765
  /**
744
766
  * The plugin a repo-root-relative path belongs to, or `null` for content that
@@ -753,9 +775,9 @@ export function isPersonalPluginDir(repoRelDir) {
753
775
  * have. Callers bucket by it; nothing requires it. A plugin-less skill is a
754
776
  * real, supported state — the prototype calls those "yours alone".
755
777
  */
756
- export function pluginOfPath(repoRelativePath) {
778
+ export function pluginOfPath(repoRelativePath, layout) {
757
779
  const segments = repoRelativePath.split('/').filter(Boolean);
758
- if (segments[0] !== PLUGINS_DIR)
780
+ if (segments[0] !== layout.pluginsDir)
759
781
  return null;
760
782
  // Needs a segment for the plugin AND at least one below it, otherwise
761
783
  // `Plugins/GTM` (the folder itself) would report itself as being in a plugin,
@@ -775,18 +797,18 @@ export const PIPELINES_DIR = 'Pipelines';
775
797
  /**
776
798
  * The roots whose subfolders are discovered as ontologies by the graph parser
777
799
  * (each subfolder with both `NodeTypes/` and `Knowledge/` is an ontology).
778
- * A function, not a constant: `KNOWLEDGE_BASE_DIR` is configurable, and a
779
- * module-scope array would snapshot the default before configuration.
800
+ * A function of the layout, not a constant: the knowledge-base root is
801
+ * configurable per deployment.
780
802
  */
781
- export function ontologyRoots() {
782
- return [KNOWLEDGE_BASE_DIR, DATA_DIR];
803
+ export function ontologyRoots(layout) {
804
+ return [layout.knowledgeBaseDir, DATA_DIR];
783
805
  }
784
806
  /**
785
- * Every reserved root name, as currently configured — the set the file tree
786
- * renders as its own sections rather than folding into Knowledge.
807
+ * Every reserved root name under `layout` — the set the file tree renders as
808
+ * its own sections rather than folding into Knowledge.
787
809
  */
788
- export function reservedRootDirNames() {
789
- return new Set([KNOWLEDGE_BASE_DIR, SKILLS_DIR, PLUGINS_DIR, DATA_DIR, AGENTS_DIR, PIPELINES_DIR]);
810
+ export function reservedRootDirNames(layout) {
811
+ return new Set([layout.knowledgeBaseDir, layout.skillsDir, layout.pluginsDir, DATA_DIR, AGENTS_DIR, PIPELINES_DIR]);
790
812
  }
791
813
  /**
792
814
  * The roots anyone may start a new folder in — knowledge, skills and plugins
@@ -794,11 +816,11 @@ export function reservedRootDirNames() {
794
816
  * needs read access to where it lands (the "read before write" rule); a new
795
817
  * folder directly under one of these three is the one place that rule does
796
818
  * not apply, because the new folder carries its creator's own grant. A
797
- * function, like {@link reservedRootDirNames}, because the names are
798
- * configurable.
819
+ * function of the layout, like {@link reservedRootDirNames}, because the
820
+ * names are configurable.
799
821
  */
800
- export function creatableRootDirNames() {
801
- return new Set([KNOWLEDGE_BASE_DIR, SKILLS_DIR, PLUGINS_DIR]);
822
+ export function creatableRootDirNames(layout) {
823
+ return new Set([layout.knowledgeBaseDir, layout.skillsDir, layout.pluginsDir]);
802
824
  }
803
825
  /** The `Knowledge/` marker subfolder of an ontology (holds the graph nodes). */
804
826
  export const KNOWLEDGE_DIR = 'Knowledge';
@@ -1 +1 @@
1
- {"version":3,"file":"kb-layout.js","sourceRoot":"","sources":["../../src/workspace/kb-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,oEAAoE;AACpE,MAAM,CAAC,IAAI,kBAAkB,GAAG,eAAe,CAAC;AAEhD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,IAAI,UAAU,GAAG,QAAQ,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,IAAI,WAAW,GAAG,SAAS,CAAC;AAEnC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,IAAI,WAAW,GAAG,WAAW,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAsB,MAAM,CAAC,MAAM,CAAC;IACxE,WAAW;IACX,YAAY;IACZ,cAAc;CACf,CAAC,CAAC;AAqBH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAiC,MAAM,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,eAAe;IACjC,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,WAAW;CACxB,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,UAAU,YAAY,CAAC,MAAgB;IAC3C,OAAO,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI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AC7D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE/B,0GAA0G;AAC1G,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AAEnC,6GAA6G;AAC7G,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,MAAgB;IAC5C,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAgB;IACnD,OAAO,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;AACtH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAgB;IACpD,OAAO,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACjF,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AAEzC,qFAAqF;AACrF,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;AAExC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC;AAUvE,8EAA8E;AAC9E,+EAA+E;AAC/E,2EAA2E;AAC3E,uEAAuE"}
@@ -6,14 +6,15 @@ import { type KbLayout } from './kb-layout.js';
6
6
  * the repository root only, so a nested file of either name is ordinary
7
7
  * content. Moving one changes what the platform enforces, so moves refuse them.
8
8
  *
9
- * A FUNCTION, not a constant, and that is the whole of the configurable-guide
10
- * change on this side: the guide's name is a deployment setting, so the fourth
11
- * platform file is `HEXIS.md` on one deployment and `AGENTS.md` on the next —
12
- * and on the first, a root `AGENTS.md` is the CUSTOMER'S own conventions file,
13
- * which has to move and delete like any page. Every gate asks this rather than
14
- * reading a list captured at module load.
9
+ * A FUNCTION OF THE LAYOUT, not a constant, and that is the whole of the
10
+ * configurable-guide change on this side: the guide's name is a deployment
11
+ * setting, so the fourth platform file is `HEXIS.md` on one deployment and
12
+ * `AGENTS.md` on the next — and on the first, a root `AGENTS.md` is the
13
+ * CUSTOMER'S own conventions file, which has to move and delete like any page.
14
+ * Every gate asks this with the layout it serves rather than reading a list
15
+ * captured at module load.
15
16
  */
16
- export declare function platformFileNames(layout?: KbLayout): readonly string[];
17
+ export declare function platformFileNames(layout: KbLayout): readonly string[];
17
18
  /**
18
19
  * The platform file names under the DEFAULT layout — what they were before the
19
20
  * guide could be renamed. Kept for callers that want the default answer rather
@@ -26,7 +27,7 @@ export declare const PLATFORM_FILE_NAMES: readonly string[];
26
27
  * Exact spelling, as the platform reads it: `Access.md` is content. A caller
27
28
  * on a case-insensitive disk passes the path's on-disk spelling.
28
29
  */
29
- export declare function isPlatformFile(repoRelativePath: string): boolean;
30
+ export declare function isPlatformFile(repoRelativePath: string, layout: KbLayout): boolean;
30
31
  /** The one sentence every surface refuses a platform-file move with. */
31
32
  export declare function platformFileRefusal(pathOrName: string): string;
32
33
  /**
@@ -45,7 +46,7 @@ export declare function platformFileCreationRefusal(pathOrName: string): string;
45
46
  * one takes a whole section of the knowledge base with it. Exact spelling; a
46
47
  * caller on a case-insensitive disk passes the path's on-disk spelling.
47
48
  */
48
- export declare function isPlatformFolder(repoRelativeDir: string): boolean;
49
+ export declare function isPlatformFolder(repoRelativeDir: string, layout: KbLayout): boolean;
49
50
  /** The sentence a delete or move of a platform folder is refused with. */
50
51
  export declare function platformFolderRefusal(repoRelativeDir: string): string;
51
52
  /**
@@ -56,7 +57,7 @@ export declare function platformFolderRefusal(repoRelativeDir: string): string;
56
57
  * of the root's rather than standing in for it, which is why moving the
57
58
  * ROOT's copy into a folder is a move out and not a restore.
58
59
  */
59
- export declare function isRootPlatformFile(repoRelativePath: string): boolean;
60
+ export declare function isRootPlatformFile(repoRelativePath: string, layout: KbLayout): boolean;
60
61
  /**
61
62
  * The place a misplaced platform file is allowed to be put back, when
62
63
  * `repoRelativeDestination` names one, and null when it does not.
@@ -80,7 +81,7 @@ export type PlatformRestoreDestination = {
80
81
  kind: 'folder-without-access-md';
81
82
  dir: string;
82
83
  };
83
- export declare function platformRestoreDestination(repoRelativeDestination: string): PlatformRestoreDestination | null;
84
+ export declare function platformRestoreDestination(repoRelativeDestination: string, layout: KbLayout): PlatformRestoreDestination | null;
84
85
  /**
85
86
  * Whether moving `repoRelativeSource` to `repoRelativeDestination` has the
86
87
  * SHAPE of a platform-file restore — an admin putting a misplaced copy back.
@@ -101,5 +102,5 @@ export declare function platformRestoreDestination(repoRelativeDestination: stri
101
102
  * - the destination is a required location for that same name, so the file
102
103
  * lands under the name the platform reads rather than beside it.
103
104
  */
104
- export declare function isPlatformRestoreShape(repoRelativeSource: string, repoRelativeDestination: string): boolean;
105
+ export declare function isPlatformRestoreShape(repoRelativeSource: string, repoRelativeDestination: string, layout: KbLayout): boolean;
105
106
  //# sourceMappingURL=platform-files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform-files.d.ts","sourceRoot":"","sources":["../../src/workspace/platform-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,QAA4B,GAAG,SAAS,MAAM,EAAE,CAEzF;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAEhD,CAAC;AA2BF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED,wEAAwE;AACxE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AAE,QAAQ,GAAG,OAAO,CAKlF;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAInF;AAED,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAKrE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAEtF;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,0BAA0B,GAClC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,wBAAgB,0BAA0B,CACxC,uBAAuB,EAAE,MAAM,EAC/B,MAAM,EAAE,QAAQ,GACf,0BAA0B,GAAG,IAAI,CAUnC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CACpC,kBAAkB,EAAE,MAAM,EAC1B,uBAAuB,EAAE,MAAM,EAC/B,MAAM,EAAE,QAAQ,GACf,OAAO,CAOT"}
@@ -1,4 +1,4 @@
1
- import { DEFAULT_KB_LAYOUT, FIXED_PLATFORM_FILE_NAMES, agentsFileOf, currentKbLayout, reservedRootDirNames, } from './kb-layout.js';
1
+ import { DEFAULT_KB_LAYOUT, FIXED_PLATFORM_FILE_NAMES, agentsFileOf, reservedRootDirNames, } from './kb-layout.js';
2
2
  /**
3
3
  * The files the platform reads as configuration, not content. `access.md`
4
4
  * governs the folder it sits in and `.bevelignore` layers like `.gitignore`,
@@ -6,14 +6,15 @@ import { DEFAULT_KB_LAYOUT, FIXED_PLATFORM_FILE_NAMES, agentsFileOf, currentKbLa
6
6
  * the repository root only, so a nested file of either name is ordinary
7
7
  * content. Moving one changes what the platform enforces, so moves refuse them.
8
8
  *
9
- * A FUNCTION, not a constant, and that is the whole of the configurable-guide
10
- * change on this side: the guide's name is a deployment setting, so the fourth
11
- * platform file is `HEXIS.md` on one deployment and `AGENTS.md` on the next —
12
- * and on the first, a root `AGENTS.md` is the CUSTOMER'S own conventions file,
13
- * which has to move and delete like any page. Every gate asks this rather than
14
- * reading a list captured at module load.
9
+ * A FUNCTION OF THE LAYOUT, not a constant, and that is the whole of the
10
+ * configurable-guide change on this side: the guide's name is a deployment
11
+ * setting, so the fourth platform file is `HEXIS.md` on one deployment and
12
+ * `AGENTS.md` on the next — and on the first, a root `AGENTS.md` is the
13
+ * CUSTOMER'S own conventions file, which has to move and delete like any page.
14
+ * Every gate asks this with the layout it serves rather than reading a list
15
+ * captured at module load.
15
16
  */
16
- export function platformFileNames(layout = currentKbLayout()) {
17
+ export function platformFileNames(layout) {
17
18
  return [...FIXED_PLATFORM_FILE_NAMES, agentsFileOf(layout)];
18
19
  }
19
20
  /**
@@ -25,8 +26,8 @@ export function platformFileNames(layout = currentKbLayout()) {
25
26
  export const PLATFORM_FILE_NAMES = Object.freeze(platformFileNames(DEFAULT_KB_LAYOUT));
26
27
  /** The platform files that are read wherever they sit, not only at the root. */
27
28
  const PLATFORM_FILES_AT_ANY_DEPTH = new Set(['access.md', '.bevelignore']);
28
- /** The names in effect, as a set — rebuilt per call, because the guide's is configurable. */
29
- const platformFiles = () => new Set(platformFileNames());
29
+ /** The names under `layout`, as a set — rebuilt per call, because the guide's is configurable. */
30
+ const platformFiles = (layout) => new Set(platformFileNames(layout));
30
31
  const normalize = (path) => path.replace(/^\.?\/+/, '').replace(/\/+$/, '');
31
32
  const baseName = (path) => {
32
33
  const trimmed = normalize(path);
@@ -47,10 +48,10 @@ const hasTraversal = (path) => normalize(path).split('/').some((segment) => segm
47
48
  * Exact spelling, as the platform reads it: `Access.md` is content. A caller
48
49
  * on a case-insensitive disk passes the path's on-disk spelling.
49
50
  */
50
- export function isPlatformFile(repoRelativePath) {
51
+ export function isPlatformFile(repoRelativePath, layout) {
51
52
  const norm = normalize(repoRelativePath);
52
53
  const name = baseName(norm);
53
- if (!platformFiles().has(name))
54
+ if (!platformFiles(layout).has(name))
54
55
  return false;
55
56
  return PLATFORM_FILES_AT_ANY_DEPTH.has(name) || norm === name;
56
57
  }
@@ -76,11 +77,11 @@ export function platformFileCreationRefusal(pathOrName) {
76
77
  * one takes a whole section of the knowledge base with it. Exact spelling; a
77
78
  * caller on a case-insensitive disk passes the path's on-disk spelling.
78
79
  */
79
- export function isPlatformFolder(repoRelativeDir) {
80
+ export function isPlatformFolder(repoRelativeDir, layout) {
80
81
  const norm = normalize(repoRelativeDir);
81
82
  if (norm === '')
82
83
  return true;
83
- return !norm.includes('/') && reservedRootDirNames().has(norm);
84
+ return !norm.includes('/') && reservedRootDirNames(layout).has(norm);
84
85
  }
85
86
  /** The sentence a delete or move of a platform folder is refused with. */
86
87
  export function platformFolderRefusal(repoRelativeDir) {
@@ -97,15 +98,15 @@ export function platformFolderRefusal(repoRelativeDir) {
97
98
  * of the root's rather than standing in for it, which is why moving the
98
99
  * ROOT's copy into a folder is a move out and not a restore.
99
100
  */
100
- export function isRootPlatformFile(repoRelativePath) {
101
- return platformFiles().has(normalize(repoRelativePath));
101
+ export function isRootPlatformFile(repoRelativePath, layout) {
102
+ return platformFiles(layout).has(normalize(repoRelativePath));
102
103
  }
103
- export function platformRestoreDestination(repoRelativeDestination) {
104
+ export function platformRestoreDestination(repoRelativeDestination, layout) {
104
105
  const norm = normalize(repoRelativeDestination);
105
106
  if (hasTraversal(norm))
106
107
  return null;
107
108
  const name = baseName(norm);
108
- if (!platformFiles().has(name))
109
+ if (!platformFiles(layout).has(name))
109
110
  return null;
110
111
  if (name === 'access.md') {
111
112
  const slash = norm.lastIndexOf('/');
@@ -133,15 +134,15 @@ export function platformRestoreDestination(repoRelativeDestination) {
133
134
  * - the destination is a required location for that same name, so the file
134
135
  * lands under the name the platform reads rather than beside it.
135
136
  */
136
- export function isPlatformRestoreShape(repoRelativeSource, repoRelativeDestination) {
137
+ export function isPlatformRestoreShape(repoRelativeSource, repoRelativeDestination, layout) {
137
138
  if (hasTraversal(repoRelativeSource))
138
139
  return false;
139
140
  const name = baseName(repoRelativeSource);
140
- if (!platformFiles().has(name))
141
+ if (!platformFiles(layout).has(name))
141
142
  return false;
142
- if (isRootPlatformFile(repoRelativeSource))
143
+ if (isRootPlatformFile(repoRelativeSource, layout))
143
144
  return false;
144
- const target = platformRestoreDestination(repoRelativeDestination);
145
+ const target = platformRestoreDestination(repoRelativeDestination, layout);
145
146
  return target !== null && target.name === name;
146
147
  }
147
148
  //# sourceMappingURL=platform-files.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform-files.js","sourceRoot":"","sources":["../../src/workspace/platform-files.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,oBAAoB,GAErB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,iBAAiB,CAAC,SAAmB,eAAe,EAAE;IACpE,OAAO,CAAC,GAAG,yBAAyB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsB,MAAM,CAAC,MAAM,CACjE,iBAAiB,CAAC,iBAAiB,CAAC,CACrC,CAAC;AAEF,gFAAgF;AAChF,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;AAE3E,6FAA6F;AAC7F,MAAM,aAAa,GAAG,GAAw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MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IACnG,CAAC;IACD,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,sBAAsB,CACpC,kBAA0B,EAC1B,uBAA+B,EAC/B,MAAgB;IAEhB,IAAI,YAAY,CAAC,kBAAkB,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,MAAM,IAAI,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC1C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,IAAI,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,CAAC;QAAE,OAAO,KAAK,CAAC;IACjE,MAAM,MAAM,GAAG,0BAA0B,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;IAC3E,OAAO,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC;AACjD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bevel-software/platform-shared",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Shared types and pure domain utilities of the Bevel core platform (auth, workspace, git/workflow contracts, branch registry).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",