@bevel-software/platform-shared 0.20.0 → 0.22.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/dist/git/pr.types.d.ts +53 -2
- package/dist/git/pr.types.d.ts.map +1 -1
- package/dist/git/protected.d.ts +82 -25
- package/dist/git/protected.d.ts.map +1 -1
- package/dist/git/protected.js +85 -27
- package/dist/git/protected.js.map +1 -1
- package/dist/git/types.d.ts +21 -1
- package/dist/git/types.d.ts.map +1 -1
- package/dist/workflow/interface.d.ts +23 -2
- package/dist/workflow/interface.d.ts.map +1 -1
- package/dist/workflow/types.d.ts +18 -0
- package/dist/workflow/types.d.ts.map +1 -1
- package/dist/workspace/kb-layout.d.ts +47 -33
- package/dist/workspace/kb-layout.d.ts.map +1 -1
- package/dist/workspace/kb-layout.js +65 -43
- package/dist/workspace/kb-layout.js.map +1 -1
- package/dist/workspace/platform-files.d.ts +13 -12
- package/dist/workspace/platform-files.d.ts.map +1 -1
- package/dist/workspace/platform-files.js +23 -22
- package/dist/workspace/platform-files.js.map +1 -1
- package/package.json +1 -1
- package/src/git/pr.types.ts +53 -2
- package/src/git/protected.ts +112 -38
- package/src/git/types.ts +29 -1
- package/src/workflow/interface.ts +27 -1
- package/src/workflow/types.ts +16 -0
- package/src/workspace/kb-layout.ts +66 -43
- package/src/workspace/platform-files.ts +22 -20
|
@@ -32,12 +32,19 @@
|
|
|
32
32
|
* Don't hard-code these strings elsewhere — import them from here.
|
|
33
33
|
*
|
|
34
34
|
* CONFIGURABLE, WITH DEFAULTS. The three roots a deployment may rename
|
|
35
|
-
* (`KnowledgeBase/`, `Skills/`, `Plugins/`)
|
|
36
|
-
* {@link
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
35
|
+
* (`KnowledgeBase/`, `Skills/`, `Plugins/`) and the guide's file name travel
|
|
36
|
+
* as a {@link KbLayout} VALUE: every helper below that depends on a name takes
|
|
37
|
+
* the layout it judges against, and the backend hands each knowledge base's
|
|
38
|
+
* layout to its services at construction — a server hosting several knowledge
|
|
39
|
+
* bases in one process holds one per knowledge base, never a process-wide one.
|
|
40
|
+
*
|
|
41
|
+
* The `let` bindings (`KNOWLEDGE_BASE_DIR`, …) are the BROWSER'S copy, applied
|
|
42
|
+
* once by {@link configureKbLayout} from `GET /api/config`, the same shape as
|
|
43
|
+
* the branch model in `git/protected.ts`: a page shows one deployment, so one
|
|
44
|
+
* process-wide value is right there. The backend package forbids importing
|
|
45
|
+
* them (an ESLint rule names each one). They carry defaults, so nothing waits
|
|
46
|
+
* for configuration; but read them inside a function body, never capture one
|
|
47
|
+
* at module scope.
|
|
41
48
|
*/
|
|
42
49
|
/** Folder under the repo root that contains all team ontologies. */
|
|
43
50
|
export declare let KNOWLEDGE_BASE_DIR: string;
|
|
@@ -190,7 +197,7 @@ export declare function gitignoreLiteral(name: string): string;
|
|
|
190
197
|
* whether this sentence is present by searching for the RAW name — see
|
|
191
198
|
* {@link mentionsAgentsFile}, which is how the startup step asks.
|
|
192
199
|
*/
|
|
193
|
-
export declare function agentsFilePointerSentence(agentsFile
|
|
200
|
+
export declare function agentsFilePointerSentence(agentsFile: string): string;
|
|
194
201
|
/**
|
|
195
202
|
* `text` with every pointer sentence THE PLATFORM WROTE aimed at `agentsFile`
|
|
196
203
|
* — or null when it holds none of ours.
|
|
@@ -207,7 +214,7 @@ export declare function agentsFilePointerSentence(agentsFile?: string): string;
|
|
|
207
214
|
* answers, and only the caller knows that the second one means "consider
|
|
208
215
|
* appending".
|
|
209
216
|
*/
|
|
210
|
-
export declare function retargetAgentsFilePointer(text: string, agentsFile
|
|
217
|
+
export declare function retargetAgentsFilePointer(text: string, agentsFile: string): string | null;
|
|
211
218
|
/**
|
|
212
219
|
* Whether `text` already points at the guide — the ONE question the startup
|
|
213
220
|
* step asks before appending {@link agentsFilePointerSentence} to a customer's
|
|
@@ -222,7 +229,7 @@ export declare function retargetAgentsFilePointer(text: string, agentsFile?: str
|
|
|
222
229
|
* that one would append a second copy on the next boot, and a third on the
|
|
223
230
|
* one after — the exact failure this feature exists to prevent.
|
|
224
231
|
*/
|
|
225
|
-
export declare function mentionsAgentsFile(text: string, agentsFile
|
|
232
|
+
export declare function mentionsAgentsFile(text: string, agentsFile: string): boolean;
|
|
226
233
|
/**
|
|
227
234
|
* What is wrong with one root name, or null. A root is joined onto the repo
|
|
228
235
|
* root and onto `<dir>/.gitkeep`, so a separator or `..` would write outside
|
|
@@ -254,7 +261,7 @@ export declare function validateKbRootName(name: string): string | null;
|
|
|
254
261
|
* `roots` is the layout the name is judged against — the names this save would
|
|
255
262
|
* put in effect, not necessarily the ones running now.
|
|
256
263
|
*/
|
|
257
|
-
export declare function validateAgentsFileName(name: string, roots
|
|
264
|
+
export declare function validateAgentsFileName(name: string, roots: Pick<KbLayout, 'knowledgeBaseDir' | 'skillsDir' | 'pluginsDir'>): string | null;
|
|
258
265
|
/**
|
|
259
266
|
* What is wrong with a layout, or null — the same rule {@link configureKbLayout}
|
|
260
267
|
* enforces, without applying anything. Separate so the setup screen can judge a
|
|
@@ -285,22 +292,29 @@ export declare function validateKbLayout(layout: KbLayout): string | null;
|
|
|
285
292
|
*/
|
|
286
293
|
export declare function onKbLayoutApplied(listener: () => void): void;
|
|
287
294
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
295
|
+
* A layout as the helpers hold it: validated, every name trimmed, the guide's
|
|
296
|
+
* name filled in from the default when absent. Throws on an invalid one so a
|
|
297
|
+
* bad deployment setting fails beside the rest of the wiring rather than
|
|
298
|
+
* scattering a half-renamed tree.
|
|
299
|
+
*/
|
|
300
|
+
export declare function resolveKbLayout(layout: KbLayout): Required<KbLayout>;
|
|
301
|
+
/**
|
|
302
|
+
* Apply the layout to the BROWSER'S live bindings. Called once during boot
|
|
303
|
+
* from `GET /api/config`; validated by {@link resolveKbLayout}. Applying the
|
|
304
|
+
* defaults is a no-op.
|
|
291
305
|
*/
|
|
292
306
|
export declare function configureKbLayout(layout: KbLayout): void;
|
|
293
|
-
/** The layout currently
|
|
307
|
+
/** The browser's layout as a value — what the live bindings currently hold. */
|
|
294
308
|
export declare function currentKbLayout(): Required<KbLayout>;
|
|
295
309
|
/**
|
|
296
|
-
* Whether a layout
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
310
|
+
* Whether a layout is the default one. The setup-completing save applies the
|
|
311
|
+
* stored names while this holds of the one in effect, the same "only from
|
|
312
|
+
* none to some" rule the branch model follows — and also on a retry after its
|
|
313
|
+
* own failed initialization run, when the process holds names setup applied
|
|
314
|
+
* but the app never opened (see `setup.routes.ts`). A layout the process
|
|
315
|
+
* booted with is never replaced there.
|
|
302
316
|
*/
|
|
303
|
-
export declare function isDefaultKbLayout(layout
|
|
317
|
+
export declare function isDefaultKbLayout(layout: KbLayout): boolean;
|
|
304
318
|
/**
|
|
305
319
|
* Render the layout placeholders a managed template carries —
|
|
306
320
|
* `{{knowledgeBaseDir}}`, `{{skillsDir}}`, `{{pluginsDir}}`, `{{agentsFile}}`
|
|
@@ -310,7 +324,7 @@ export declare function isDefaultKbLayout(layout?: KbLayout): boolean;
|
|
|
310
324
|
* renamed the guide gets a guide naming the file it lives in. Text without
|
|
311
325
|
* placeholders passes through unchanged.
|
|
312
326
|
*/
|
|
313
|
-
export declare function renderKbLayoutPlaceholders(text: string, layout
|
|
327
|
+
export declare function renderKbLayoutPlaceholders(text: string, layout: KbLayout): string;
|
|
314
328
|
/**
|
|
315
329
|
* The pre-rename name of {@link PLUGINS_DIR}. Referenced ONLY by the migration
|
|
316
330
|
* that renames it — every other consumer should be reading the new name, and a
|
|
@@ -472,7 +486,7 @@ export declare function isPersonalPluginFolder(folderName: string): boolean;
|
|
|
472
486
|
* to start with the prefix is a plugin — discovery, the principal picker and
|
|
473
487
|
* the item pages all ask this one question of the FOLDER.
|
|
474
488
|
*/
|
|
475
|
-
export declare function isPersonalPluginDir(repoRelDir: string): boolean;
|
|
489
|
+
export declare function isPersonalPluginDir(repoRelDir: string, layout: KbLayout): boolean;
|
|
476
490
|
/**
|
|
477
491
|
* The plugin a repo-root-relative path belongs to, or `null` for content that
|
|
478
492
|
* sits outside any plugin.
|
|
@@ -486,7 +500,7 @@ export declare function isPersonalPluginDir(repoRelDir: string): boolean;
|
|
|
486
500
|
* have. Callers bucket by it; nothing requires it. A plugin-less skill is a
|
|
487
501
|
* real, supported state — the prototype calls those "yours alone".
|
|
488
502
|
*/
|
|
489
|
-
export declare function pluginOfPath(repoRelativePath: string): string | null;
|
|
503
|
+
export declare function pluginOfPath(repoRelativePath: string, layout: KbLayout): string | null;
|
|
490
504
|
/**
|
|
491
505
|
* Folder under the repo root for agent-produced records (pipeline instances,
|
|
492
506
|
* work items, intermediate outputs). Parsed exactly like `KnowledgeBase/`:
|
|
@@ -500,25 +514,25 @@ export declare const PIPELINES_DIR = "Pipelines";
|
|
|
500
514
|
/**
|
|
501
515
|
* The roots whose subfolders are discovered as ontologies by the graph parser
|
|
502
516
|
* (each subfolder with both `NodeTypes/` and `Knowledge/` is an ontology).
|
|
503
|
-
* A function, not a constant:
|
|
504
|
-
*
|
|
517
|
+
* A function of the layout, not a constant: the knowledge-base root is
|
|
518
|
+
* configurable per deployment.
|
|
505
519
|
*/
|
|
506
|
-
export declare function ontologyRoots(): readonly string[];
|
|
520
|
+
export declare function ontologyRoots(layout: KbLayout): readonly string[];
|
|
507
521
|
/**
|
|
508
|
-
* Every reserved root name
|
|
509
|
-
*
|
|
522
|
+
* Every reserved root name under `layout` — the set the file tree renders as
|
|
523
|
+
* its own sections rather than folding into Knowledge.
|
|
510
524
|
*/
|
|
511
|
-
export declare function reservedRootDirNames(): ReadonlySet<string>;
|
|
525
|
+
export declare function reservedRootDirNames(layout: KbLayout): ReadonlySet<string>;
|
|
512
526
|
/**
|
|
513
527
|
* The roots anyone may start a new folder in — knowledge, skills and plugins
|
|
514
528
|
* — whatever the root's own `access.md` grants them. Everywhere else a change
|
|
515
529
|
* needs read access to where it lands (the "read before write" rule); a new
|
|
516
530
|
* folder directly under one of these three is the one place that rule does
|
|
517
531
|
* not apply, because the new folder carries its creator's own grant. A
|
|
518
|
-
* function, like {@link reservedRootDirNames}, because the
|
|
519
|
-
* configurable.
|
|
532
|
+
* function of the layout, like {@link reservedRootDirNames}, because the
|
|
533
|
+
* names are configurable.
|
|
520
534
|
*/
|
|
521
|
-
export declare function creatableRootDirNames(): ReadonlySet<string>;
|
|
535
|
+
export declare function creatableRootDirNames(layout: KbLayout): ReadonlySet<string>;
|
|
522
536
|
/** The `Knowledge/` marker subfolder of an ontology (holds the graph nodes). */
|
|
523
537
|
export declare const KNOWLEDGE_DIR = "Knowledge";
|
|
524
538
|
/** The `NodeTypes/` marker subfolder of an ontology (holds the type definitions). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kb-layout.d.ts","sourceRoot":"","sources":["../../src/workspace/kb-layout.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"kb-layout.d.ts","sourceRoot":"","sources":["../../src/workspace/kb-layout.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,oEAAoE;AACpE,eAAO,IAAI,kBAAkB,QAAkB,CAAC;AAEhD;;;;;;;;;;;;GAYG;AACH,eAAO,IAAI,UAAU,QAAW,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,IAAI,WAAW,QAAY,CAAC;AAEnC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,IAAI,WAAW,QAAc,CAAC;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAIrD,CAAC;AAEH;;;GAGG;AACH,MAAM,WAA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,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAOtF;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,SAAS,CAAC;AAE/B,0GAA0G;AAC1G,eAAO,MAAM,UAAU,WAAW,CAAC;AAEnC,6GAA6G;AAC7G,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,MAAM,EAAE,CAEjE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAE1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAE3E;AAED,gFAAgF;AAChF,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,qFAAqF;AACrF,eAAO,MAAM,YAAY,cAAc,CAAC;AAExC,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,aAAyC,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC"}
|
|
@@ -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/`)
|
|
39
|
-
* {@link
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
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
|
|
440
|
+
export function resolveKbLayout(layout) {
|
|
433
441
|
const problem = validateKbLayout(layout);
|
|
434
442
|
if (problem)
|
|
435
443
|
throw new Error(problem);
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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
|
|
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
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
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
|
|
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
|
|
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] ===
|
|
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] !==
|
|
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:
|
|
779
|
-
*
|
|
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 [
|
|
803
|
+
export function ontologyRoots(layout) {
|
|
804
|
+
return [layout.knowledgeBaseDir, DATA_DIR];
|
|
783
805
|
}
|
|
784
806
|
/**
|
|
785
|
-
* Every reserved root name
|
|
786
|
-
*
|
|
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([
|
|
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
|
|
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([
|
|
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
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;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
|
|
10
|
-
* change on this side: the guide's name is a deployment
|
|
11
|
-
* platform file is `HEXIS.md` on one deployment and
|
|
12
|
-
* and on the first, a root `AGENTS.md` is the
|
|
13
|
-
* which has to move and delete like any page.
|
|
14
|
-
*
|
|
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
|
|
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,
|
|
1
|
+
{"version":3,"file":"platform-files.d.ts","sourceRoot":"","sources":["../../src/workspace/platform-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,MAAM,EAAE,CAErE;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAEhD,CAAC;AA2BF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,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,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