@bevel-software/platform-shared 0.25.0 → 0.26.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 +101 -0
- package/dist/git/pr.types.d.ts.map +1 -1
- package/dist/git/types.d.ts +70 -1
- package/dist/git/types.d.ts.map +1 -1
- package/dist/workflow/interface.d.ts +12 -0
- package/dist/workflow/interface.d.ts.map +1 -1
- package/dist/workspace/kb-layout.d.ts +40 -101
- package/dist/workspace/kb-layout.d.ts.map +1 -1
- package/dist/workspace/kb-layout.js +40 -159
- package/dist/workspace/kb-layout.js.map +1 -1
- package/dist/workspace/platform-files.d.ts +21 -24
- package/dist/workspace/platform-files.d.ts.map +1 -1
- package/dist/workspace/platform-files.js +23 -25
- package/dist/workspace/platform-files.js.map +1 -1
- package/package.json +1 -1
- package/src/git/pr.types.ts +99 -0
- package/src/git/types.ts +76 -1
- package/src/workflow/interface.ts +11 -0
- package/src/workspace/kb-layout.ts +39 -172
- package/src/workspace/platform-files.ts +23 -26
package/dist/git/pr.types.d.ts
CHANGED
|
@@ -40,8 +40,33 @@ export interface PullRequestSummary {
|
|
|
40
40
|
base: string;
|
|
41
41
|
state: PullRequestState;
|
|
42
42
|
createdAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* The latest moment the change-request ROW records: the latest of its
|
|
45
|
+
* creation time, its `updated_at` stamp (written when the row itself
|
|
46
|
+
* changes — a merge, a close, a recorded apply failure) and its close time.
|
|
47
|
+
* GitHub's `updated_at` on a pull request means "when anything about it
|
|
48
|
+
* last changed"; comments and approvals carry their own times here and do
|
|
49
|
+
* not move this one, so this is as close as the row can honestly answer —
|
|
50
|
+
* never a time guessed from elsewhere. Absent only on a summary built by
|
|
51
|
+
* something other than a change-request row (test doubles).
|
|
52
|
+
*/
|
|
53
|
+
updatedAt?: string;
|
|
43
54
|
/** Relative paths within `knowledge-base/`. Empty if not yet computed. */
|
|
44
55
|
touchedNodePaths: string[];
|
|
56
|
+
/**
|
|
57
|
+
* The same changed files as {@link touchedNodePaths}, paired with the path
|
|
58
|
+
* each was renamed from — what a READ gate has to decide over, since
|
|
59
|
+
* `touchedNodePaths` reports a rename under its new name alone and so cannot
|
|
60
|
+
* say that a readable-looking file came out of a folder its reader cannot
|
|
61
|
+
* open.
|
|
62
|
+
*
|
|
63
|
+
* Absent when no summary builder filled it (a test double, a caller that
|
|
64
|
+
* constructs a summary by hand). A read gate must treat absence as "nothing
|
|
65
|
+
* proven" rather than falling back to `touchedNodePaths` — that fallback is
|
|
66
|
+
* precisely the disagreement between a list and a detail this field exists to
|
|
67
|
+
* remove, and it would come back silently.
|
|
68
|
+
*/
|
|
69
|
+
touchedNodeFiles?: ChangedPathPair[];
|
|
45
70
|
review: PullRequestReviewStatus;
|
|
46
71
|
/**
|
|
47
72
|
* Link to the change request: absolute (`<public frontend address>/change-requests/<number>`)
|
|
@@ -75,6 +100,71 @@ export interface ChangeRequestApplyFailure {
|
|
|
75
100
|
/** Display name of whoever attempted the apply. */
|
|
76
101
|
byName: string;
|
|
77
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* One changed file of a change request, named on both sides: where it is now
|
|
105
|
+
* and, for a rename, where it came from.
|
|
106
|
+
*
|
|
107
|
+
* The minimum a READ gate needs. A plain path list says a rename's new name and
|
|
108
|
+
* (with `forAccessCheck`) its old one, but not that the two are the same file —
|
|
109
|
+
* and the diff of a rename shows the old side's content, so a file moved out of
|
|
110
|
+
* a folder its reader cannot open must not be offered under its new name
|
|
111
|
+
* either. Both the list of change requests and the detail of one decide
|
|
112
|
+
* readability over these, so the two cannot disagree about whether a request is
|
|
113
|
+
* visible.
|
|
114
|
+
*/
|
|
115
|
+
export interface ChangedPathPair {
|
|
116
|
+
path: string;
|
|
117
|
+
previousPath?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* An APPLIED change request, named by BOTH the commit its row records and the
|
|
121
|
+
* number that row carries — because reading the commit's own change is only
|
|
122
|
+
* sound if the commit really is that request's merge commit, and the number is
|
|
123
|
+
* what proves it (the merge commit's subject ends with `(#<number>)`).
|
|
124
|
+
*
|
|
125
|
+
* The pair travels together so no read can ask for a commit without saying which
|
|
126
|
+
* request it must belong to. `merged_sha` is not reliably a commit the request
|
|
127
|
+
* created: a merge with nothing to merge used to record the TARGET TIP, which in
|
|
128
|
+
* a deployment that lands everything through change requests is usually ANOTHER
|
|
129
|
+
* request's merge commit.
|
|
130
|
+
*/
|
|
131
|
+
export interface AppliedChangeRef {
|
|
132
|
+
/** The change request's number, as its merge commit's subject names it. */
|
|
133
|
+
number: number;
|
|
134
|
+
/** The `merged_sha` the row records. */
|
|
135
|
+
mergeSha: string;
|
|
136
|
+
/**
|
|
137
|
+
* The request's stored title, which lets a merge commit written by an
|
|
138
|
+
* earlier release — the title not yet flattened, so a blank line in it put
|
|
139
|
+
* the number after git's subject — be recognised as the request's own.
|
|
140
|
+
*/
|
|
141
|
+
title?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* What applying a change request did.
|
|
145
|
+
*
|
|
146
|
+
* Two different commits, which is why they are two fields:
|
|
147
|
+
*
|
|
148
|
+
* `sha` is the state the target is left at — the tip at which the request
|
|
149
|
+
* counts as merged. When there was nothing to merge it is whatever landed on
|
|
150
|
+
* the target last, usually ANOTHER request's merge commit, so it must never be
|
|
151
|
+
* recorded as this request's own: a reader would answer with that other
|
|
152
|
+
* request's files under this number.
|
|
153
|
+
*
|
|
154
|
+
* `mergeCommit` is the commit this request OWNS, and the only sha a row may
|
|
155
|
+
* record as its `merged_sha` — the commit this merge wrote, or the one an
|
|
156
|
+
* earlier attempt wrote and left on the target when it failed to finalize the
|
|
157
|
+
* row. Null when the request has none, which is the genuinely empty case: its
|
|
158
|
+
* file list is empty anyway, so nothing readable is lost.
|
|
159
|
+
*/
|
|
160
|
+
export type AppliedMergeResult = {
|
|
161
|
+
kind: 'merged';
|
|
162
|
+
sha: string;
|
|
163
|
+
mergeCommit: string | null;
|
|
164
|
+
} | {
|
|
165
|
+
kind: 'conflicts';
|
|
166
|
+
paths: string[];
|
|
167
|
+
};
|
|
78
168
|
export type PrFileStatus = 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed' | 'unchanged';
|
|
79
169
|
/**
|
|
80
170
|
* A single file in a PR. Patch is GitHub's unified-diff text; it's absent for
|
|
@@ -356,6 +446,17 @@ export interface IPullRequestService {
|
|
|
356
446
|
listOpenPrs(opts?: {
|
|
357
447
|
fresh?: boolean;
|
|
358
448
|
}): Promise<PullRequestSummary[]>;
|
|
449
|
+
/**
|
|
450
|
+
* PRs in ANY of `states`, newest first — what `listOpenPrs` answers for the
|
|
451
|
+
* open ones, widened to the closed and merged rows it filters out. Only the
|
|
452
|
+
* `['open']` case goes through that method's 30s list cache; a read that
|
|
453
|
+
* asks for closed rows is rare (a reader catching up on what happened) and
|
|
454
|
+
* is served straight from the table.
|
|
455
|
+
*/
|
|
456
|
+
listPrsByState(states: PullRequestState[], opts?: {
|
|
457
|
+
fresh?: boolean;
|
|
458
|
+
workspaceId?: string;
|
|
459
|
+
}): Promise<PullRequestSummary[]>;
|
|
359
460
|
listPrsAuthoredBy(githubLoginOrEmail: string): Promise<PullRequestSummary[]>;
|
|
360
461
|
/**
|
|
361
462
|
* PRs whose touched paths have an owner with the given email.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.types.d.ts","sourceRoot":"","sources":["../../src/git/pr.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,aAAa,EAAE,MAAM,EAAE,CAA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AAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACjC,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC7E;;;OAGG;IACH,oBAAoB,CAClB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,GACzB,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACjC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAC5D;;;;OAIG;IACH,WAAW,CACT,QAAQ,EAAE,MAAM;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GACxF,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtC"}
|
package/dist/git/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthUser } from '../auth/types.js';
|
|
2
|
-
import type { PullRequestFile } from './pr.types.js';
|
|
2
|
+
import type { AppliedChangeRef, ChangedPathPair, PullRequestFile } from './pr.types.js';
|
|
3
3
|
export interface BranchInfo {
|
|
4
4
|
name: string;
|
|
5
5
|
isProtected: boolean;
|
|
@@ -206,6 +206,75 @@ export interface IGitService {
|
|
|
206
206
|
changedPathsForPr(workspaceId: string, baseBranch: string, headBranch: string, opts?: {
|
|
207
207
|
fetch?: boolean;
|
|
208
208
|
}): Promise<string[]>;
|
|
209
|
+
/**
|
|
210
|
+
* `changedPathsForPr`'s answer AND the same diff left as rename-aware pairs,
|
|
211
|
+
* from ONE `git diff`.
|
|
212
|
+
*
|
|
213
|
+
* The flat list cannot pair a rename's two paths: git reports a rename under
|
|
214
|
+
* its new name, and `forAccessCheck` adds the old name to the same
|
|
215
|
+
* undifferentiated set. That union is enough to authorize a WRITE ("may they
|
|
216
|
+
* touch everything this lands?"), but not to decide a READ — a file renamed
|
|
217
|
+
* out of a folder the caller cannot open is readable under neither of its
|
|
218
|
+
* names, since the diff of a rename shows the old side's content, and
|
|
219
|
+
* deciding that needs to know which old path belongs to which new file. The
|
|
220
|
+
* change-request read tools gate their file lists on exactly this, and the
|
|
221
|
+
* list of requests must reach the same verdict as the detail of one.
|
|
222
|
+
*/
|
|
223
|
+
changedPathsAndPairsForPr(workspaceId: string, baseBranch: string, headBranch: string, opts?: {
|
|
224
|
+
fetch?: boolean;
|
|
225
|
+
}): Promise<{
|
|
226
|
+
paths: string[];
|
|
227
|
+
pairs: ChangedPathPair[];
|
|
228
|
+
}>;
|
|
229
|
+
/**
|
|
230
|
+
* The changed-file list an APPLIED change request landed, read from its merge
|
|
231
|
+
* commit against that commit's first parent.
|
|
232
|
+
*
|
|
233
|
+
* Its source branch is retired, so the branch pair the other two methods want
|
|
234
|
+
* no longer exists; what is left is the merge commit the row records. Its
|
|
235
|
+
* first parent is the target as it stood before the merge, so the two-dot diff
|
|
236
|
+
* between them is precisely what the request applied — and immutable, which
|
|
237
|
+
* the branch pair never was.
|
|
238
|
+
*
|
|
239
|
+
* The commit is VERIFIED to be that request's own, which is why the ref
|
|
240
|
+
* carries the number as well as the sha: a merge with nothing to merge used to
|
|
241
|
+
* record the target tip, and reading that commit's change would answer with
|
|
242
|
+
* another request's files. It must be in the clone, have a second parent, and
|
|
243
|
+
* carry a subject naming this request; anything else rejects with
|
|
244
|
+
* `WorkflowValidationError`, which every caller reads as "the file set could
|
|
245
|
+
* not be resolved" and answers fail-closed (no files, so author-only) rather
|
|
246
|
+
* than reaching for a fetch per request.
|
|
247
|
+
*
|
|
248
|
+
* No network, either way.
|
|
249
|
+
*/
|
|
250
|
+
changedFilesOfAppliedChange(workspaceId: string, applied: AppliedChangeRef, opts?: {
|
|
251
|
+
patchCap?: number;
|
|
252
|
+
}): Promise<PullRequestFile[]>;
|
|
253
|
+
/**
|
|
254
|
+
* The same applied change as the two path views a change-request SUMMARY
|
|
255
|
+
* needs, out of one `git diff` — `changedPathsAndPairsForPr` for an applied
|
|
256
|
+
* request instead of a branch pair, with the same verification and the same
|
|
257
|
+
* no-network contract as {@link changedFilesOfAppliedChange}.
|
|
258
|
+
*/
|
|
259
|
+
changedPathsAndPairsOfAppliedChange(workspaceId: string, applied: AppliedChangeRef): Promise<{
|
|
260
|
+
paths: string[];
|
|
261
|
+
pairs: ChangedPathPair[];
|
|
262
|
+
}>;
|
|
263
|
+
/**
|
|
264
|
+
* The two commits an APPLIED change request spanned, recovered from its merge
|
|
265
|
+
* commit: the target before the merge (`^1`) and the source tip that was
|
|
266
|
+
* merged (`^2`).
|
|
267
|
+
*
|
|
268
|
+
* The head matters beyond being informative: an approval is called stale when
|
|
269
|
+
* the head it was given against is not the detail's `headSha`, so answering
|
|
270
|
+
* the merge commit there would report every approval a merged request ever
|
|
271
|
+
* collected as stale. Same verification, same no-network contract and the same
|
|
272
|
+
* `WorkflowValidationError` as {@link changedFilesOfAppliedChange}.
|
|
273
|
+
*/
|
|
274
|
+
appliedChangeShas(workspaceId: string, applied: AppliedChangeRef): Promise<{
|
|
275
|
+
baseSha: string;
|
|
276
|
+
headSha: string;
|
|
277
|
+
}>;
|
|
209
278
|
/**
|
|
210
279
|
* A change request's fork point (merge base of the two resolved commits)
|
|
211
280
|
* and whether the target has commits the proposal does not contain. No
|
package/dist/git/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/git/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,M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AW,EAAE,MAAM,EACnB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEjD;;;;OAIG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GACvC,OAAO,CAAC;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAE7D;;;;;;;;OAQG;IACH,mBAAmB,CACjB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAErB;;;OAGG;IACH,mBAAmB,CACjB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3B"}
|
|
@@ -338,6 +338,18 @@ export interface IWorkflowService {
|
|
|
338
338
|
listChangeRequests(opts?: {
|
|
339
339
|
fresh?: boolean;
|
|
340
340
|
}): Promise<ChangeRequest[]>;
|
|
341
|
+
/**
|
|
342
|
+
* Change requests in ANY of `states`, newest first. `listChangeRequests`
|
|
343
|
+
* answers the open ones only — the app's lists are all about what is still
|
|
344
|
+
* being decided — so a reader catching up on what HAPPENED (the agent read
|
|
345
|
+
* tools' `state: closed` / `state: all`) needs this one.
|
|
346
|
+
*/
|
|
347
|
+
listChangeRequestsByState(states: ChangeRequestState[],
|
|
348
|
+
/** `workspaceId`: the clone to read file lists in; any clone will do, and a caller that resolved one passes it so the list and the by-number reads agree. */
|
|
349
|
+
opts?: {
|
|
350
|
+
fresh?: boolean;
|
|
351
|
+
workspaceId?: string;
|
|
352
|
+
}): Promise<ChangeRequest[]>;
|
|
341
353
|
/** Change requests authored by the given user (matched on stored author identity). */
|
|
342
354
|
listChangeRequestsAuthoredBy(emailOrLogin: string, opts?: {
|
|
343
355
|
fresh?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/workflow/interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EACV,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,MAAM,EACN,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAG/B;;;;OAIG;IACH,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7G;;;;;;OAMG;IACH,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACpF;;;;;;;;;OASG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,EACd,IAAI,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,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G,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACtG"}
|
|
@@ -103,41 +103,40 @@ export declare let SKILLS_DIR: string;
|
|
|
103
103
|
*/
|
|
104
104
|
export declare let PLUGINS_DIR: string;
|
|
105
105
|
/**
|
|
106
|
-
* The
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* A live binding like the three roots above — read it inside a function body,
|
|
120
|
-
* never capture it at module scope.
|
|
106
|
+
* The name the platform's agent guide is READ BY at the repository root — the
|
|
107
|
+
* document every connected agent is told to read first.
|
|
108
|
+
*
|
|
109
|
+
* The guide is no longer a file: the backend composes it from text the code
|
|
110
|
+
* owns and serves it through `get_agent_guide` and through a `read_file` of
|
|
111
|
+
* this name (see core-backend's `modules/agent-guide`), after the knowledge
|
|
112
|
+
* base's own file of that name when it has one. ONE name on every
|
|
113
|
+
* deployment: the setting that let a deployment rename the written guide is
|
|
114
|
+
* gone, and the settings layer no longer reads a value it saved — the layout
|
|
115
|
+
* it produces carries this name. The field stays on the layout for the shape
|
|
116
|
+
* every consumer reads, and the helpers here (`agentsFileOf`,
|
|
117
|
+
* `configureKbLayout`) still apply whatever a caller puts in it, so the one
|
|
118
|
+
* name is the producer's doing, not this module's.
|
|
121
119
|
*/
|
|
122
120
|
export declare let AGENTS_FILE: string;
|
|
123
121
|
/**
|
|
124
|
-
* The name the
|
|
122
|
+
* The name the guide had when it was the only name it could have, and the
|
|
123
|
+
* name it is always read by now.
|
|
125
124
|
*
|
|
126
125
|
* Referenced ONLY by the code that has to tell OUR file from THEIRS — the
|
|
127
|
-
* boot-time removal of
|
|
128
|
-
* stops hiding
|
|
129
|
-
*
|
|
126
|
+
* boot-time removal of the guide copies earlier releases wrote, the ignore
|
|
127
|
+
* rule that stops hiding them, the instruction telling an agent what to read
|
|
128
|
+
* first. In the spirit of {@link LEGACY_GROUPS_DIR}: a second live spelling
|
|
130
129
|
* of the CURRENT name is how two layouts start being supported by accident, so
|
|
131
130
|
* this one is a constant and means exactly one thing.
|
|
132
131
|
*/
|
|
133
132
|
export declare const LEGACY_AGENTS_FILE = "AGENTS.md";
|
|
134
133
|
/**
|
|
135
134
|
* The platform files whose names are FIXED — the ones no deployment renames.
|
|
136
|
-
* The guide is
|
|
137
|
-
*
|
|
138
|
-
*
|
|
135
|
+
* The guide is NOT a platform file: nothing is written under its name, so a
|
|
136
|
+
* root `AGENTS.md` (or whatever the deployment once called the guide) is the
|
|
137
|
+
* organisation's own conventions page, movable and deletable like any other.
|
|
139
138
|
*
|
|
140
|
-
* It lives in this module rather than beside
|
|
139
|
+
* It lives in this module rather than beside `platform-files.ts` because the
|
|
141
140
|
* LAYOUT has to validate against it (a guide may not be called `access.md`),
|
|
142
141
|
* and `platform-files.ts` already reads this module — the other direction
|
|
143
142
|
* would be a cycle.
|
|
@@ -171,64 +170,10 @@ export declare function agentsFileOf(layout: KbLayout): string;
|
|
|
171
170
|
* a leading `#` is a comment and a leading `!` a negation (the rule would
|
|
172
171
|
* silently hide nothing), `[`, `]`, `*` and `?` are globs, and a backslash is
|
|
173
172
|
* the escape itself. Each is escaped so the pattern names exactly the file.
|
|
173
|
+
* Read by the startup step that takes the platform's own rule for the guide
|
|
174
|
+
* OUT of an ignore file an earlier release wrote it into.
|
|
174
175
|
*/
|
|
175
176
|
export declare function gitignoreLiteral(name: string): string;
|
|
176
|
-
/**
|
|
177
|
-
* The ONE sentence the platform offers to keep in a customer's own
|
|
178
|
-
* `AGENTS.md`, pointing at the managed guide beside it.
|
|
179
|
-
*
|
|
180
|
-
* Defined here, once, because two surfaces must produce the identical text:
|
|
181
|
-
* the deployment-settings field previews it before the admin consents, and the
|
|
182
|
-
* startup step appends it. A sentence written twice is a sentence that drifts,
|
|
183
|
-
* and a drifted one appends a SECOND copy to every customer file on the boot
|
|
184
|
-
* after the drift — which is the one thing this whole feature exists to stop.
|
|
185
|
-
*
|
|
186
|
-
* A guide name is a FILE NAME, not an identifier: everything `validateFilename`
|
|
187
|
-
* admits can appear in it — spaces, brackets, parentheses, `#`, `%` — and each
|
|
188
|
-
* of those means something in an inline link. So the link is BUILT rather than
|
|
189
|
-
* interpolated: the label backslash-escaped ({@link markdownLinkLabel}), the
|
|
190
|
-
* destination percent-encoded ({@link agentsFileLinkPath}). A name that only
|
|
191
|
-
* parenthesised would break the destination; `#` would turn the rest of the
|
|
192
|
-
* name into a URL fragment, and the link would point at the customer's own
|
|
193
|
-
* file.
|
|
194
|
-
*
|
|
195
|
-
* Neither spelling need match the name as it is on disk, so nothing may ask
|
|
196
|
-
* whether this sentence is present by searching for the RAW name — see
|
|
197
|
-
* {@link mentionsAgentsFile}, which is how the startup step asks.
|
|
198
|
-
*/
|
|
199
|
-
export declare function agentsFilePointerSentence(agentsFile: string): string;
|
|
200
|
-
/**
|
|
201
|
-
* `text` with every pointer sentence THE PLATFORM WROTE aimed at `agentsFile`
|
|
202
|
-
* — or null when it holds none of ours.
|
|
203
|
-
*
|
|
204
|
-
* This is what a SECOND rename needs. The guide's name is a setting an admin
|
|
205
|
-
* may change again: a knowledge base whose `AGENTS.md` was given a sentence
|
|
206
|
-
* pointing at `HEXIS.md` and is then renamed to `GUIDE.md` must have that
|
|
207
|
-
* sentence aimed at the new file, not a second one appended beneath a first
|
|
208
|
-
* that now points at nothing. Asking only whether the NEW name is mentioned
|
|
209
|
-
* cannot see that — the old sentence does not mention it.
|
|
210
|
-
*
|
|
211
|
-
* Returning the text unchanged (rather than null) when the sentence is already
|
|
212
|
-
* right is deliberate: "ours and correct" and "not ours at all" are different
|
|
213
|
-
* answers, and only the caller knows that the second one means "consider
|
|
214
|
-
* appending".
|
|
215
|
-
*/
|
|
216
|
-
export declare function retargetAgentsFilePointer(text: string, agentsFile: string): string | null;
|
|
217
|
-
/**
|
|
218
|
-
* Whether `text` already points at the guide — the ONE question the startup
|
|
219
|
-
* step asks before appending {@link agentsFilePointerSentence} to a customer's
|
|
220
|
-
* own `AGENTS.md`.
|
|
221
|
-
*
|
|
222
|
-
* The plain name is the answer that matters: a mention in the customer's own
|
|
223
|
-
* words, a heading, a link they wrote, all count, and the platform stays out
|
|
224
|
-
* of a file it does not own. The other two spellings are the platform's OWN,
|
|
225
|
-
* and they are here for idempotence: the sentence writes the name escaped in
|
|
226
|
-
* the label and encoded in the destination, so on a punctuated name the file
|
|
227
|
-
* the last boot wrote need not contain the raw name at all. Asking only for
|
|
228
|
-
* that one would append a second copy on the next boot, and a third on the
|
|
229
|
-
* one after — the exact failure this feature exists to prevent.
|
|
230
|
-
*/
|
|
231
|
-
export declare function mentionsAgentsFile(text: string, agentsFile: string): boolean;
|
|
232
177
|
/**
|
|
233
178
|
* What is wrong with one root name, or null. A root is joined onto the repo
|
|
234
179
|
* root and onto `<dir>/.gitkeep`, so a separator or `..` would write outside
|
|
@@ -237,22 +182,16 @@ export declare function mentionsAgentsFile(text: string, agentsFile: string): bo
|
|
|
237
182
|
*/
|
|
238
183
|
export declare function validateKbRootName(name: string): string | null;
|
|
239
184
|
/**
|
|
240
|
-
* What is wrong with the agent guide's
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* - ONE FILE NAME. The name is
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* rules and stop being readable by everyone.
|
|
251
|
-
* - NOT `CLAUDE.md`. That is the guide's own pre-rename name; knowledge bases
|
|
252
|
-
* seeded before the rename still carry one, and it stays legacy content
|
|
253
|
-
* rather than becoming a second managed file.
|
|
254
|
-
* - NOT ANOTHER PLATFORM FILE. Two platform roles on one path means whichever
|
|
255
|
-
* writer runs last wins, silently.
|
|
185
|
+
* What is wrong with the agent guide's name, or null. The rules date from when
|
|
186
|
+
* the guide was written to disk under this name; a saved name still has to be
|
|
187
|
+
* one the read tools can answer to, so they stand:
|
|
188
|
+
*
|
|
189
|
+
* - ONE FILE NAME. The name is read at the repository root and nowhere else.
|
|
190
|
+
* - A MARKDOWN NAME. The guide is markdown that agents read as text.
|
|
191
|
+
* - NOT `CLAUDE.md`. That is the guide's own pre-rename name; a knowledge
|
|
192
|
+
* base seeded before the rename may still carry one of its own.
|
|
193
|
+
* - NOT ANOTHER PLATFORM FILE. A read of `access.md` must answer with the
|
|
194
|
+
* access rules, not the guide.
|
|
256
195
|
* - NOT A ROOT FOLDER'S NAME, compared case-insensitively like the roots are
|
|
257
196
|
* to each other: the workspaces live on case-insensitive filesystems, where
|
|
258
197
|
* a file `Docs.md` and a folder `docs.md` are one entry.
|
|
@@ -315,13 +254,13 @@ export declare function currentKbLayout(): Required<KbLayout>;
|
|
|
315
254
|
*/
|
|
316
255
|
export declare function isDefaultKbLayout(layout: KbLayout): boolean;
|
|
317
256
|
/**
|
|
318
|
-
* Render the layout placeholders a managed
|
|
257
|
+
* Render the layout placeholders a managed text carries —
|
|
319
258
|
* `{{knowledgeBaseDir}}`, `{{skillsDir}}`, `{{pluginsDir}}`, `{{agentsFile}}`
|
|
320
|
-
* — with the names in effect. The
|
|
321
|
-
* written this way so a deployment that renamed its roots
|
|
322
|
-
* guide that names the folders it will actually find, and
|
|
323
|
-
*
|
|
324
|
-
* placeholders passes through unchanged.
|
|
259
|
+
* — with the names in effect. The agent guide's sections and the packaged
|
|
260
|
+
* `.bevelignore` are written this way so a deployment that renamed its roots
|
|
261
|
+
* hands the agent a guide that names the folders it will actually find, and
|
|
262
|
+
* one that gave the guide a name of its own gets a guide naming it. Text
|
|
263
|
+
* without placeholders passes through unchanged.
|
|
325
264
|
*/
|
|
326
265
|
export declare function renderKbLayoutPlaceholders(text: string, layout: KbLayout): string;
|
|
327
266
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kb-layout.d.ts","sourceRoot":"","sources":["../../src/workspace/kb-layout.ts"],"names":[],"mappings":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