@ultimat3/manifest 31.32.0 → 31.33.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/package.json +8 -8
- package/src/diff-admin.ts +8 -6
- package/src/docs-scan.ts +16 -3
- package/src/sources-admin.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/manifest",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.33.0",
|
|
4
4
|
"description": "x.manifest.json: deterministic generated facts, contract diff, AGENTS.md budget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test": "bun test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ultimat3/action": "31.
|
|
47
|
-
"@ultimat3/core": "31.
|
|
48
|
-
"@ultimat3/entity": "31.
|
|
49
|
-
"@ultimat3/jobs": "31.
|
|
50
|
-
"@ultimat3/query": "31.
|
|
51
|
-
"@ultimat3/realtime": "31.
|
|
52
|
-
"@ultimat3/schema": "31.
|
|
46
|
+
"@ultimat3/action": "31.33.0",
|
|
47
|
+
"@ultimat3/core": "31.33.0",
|
|
48
|
+
"@ultimat3/entity": "31.33.0",
|
|
49
|
+
"@ultimat3/jobs": "31.33.0",
|
|
50
|
+
"@ultimat3/query": "31.33.0",
|
|
51
|
+
"@ultimat3/realtime": "31.33.0",
|
|
52
|
+
"@ultimat3/schema": "31.33.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/diff-admin.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
// The admin in a contract diff. An admin's list URLs are bookmarked and its MCP tools are called
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
1
|
+
// The admin in a contract diff. An admin's list URLs are bookmarked and its MCP tools are called by
|
|
2
|
+
// agents, so what a list ANSWERS is contract: a filter, a sort or a scope that goes away refuses a
|
|
3
|
+
// caller it served, a default scope that moves changes what a bare URL lists, and a row scope that
|
|
4
|
+
// appears hides rows from actors who saw them.
|
|
5
|
+
//
|
|
6
|
+
// An action is an MCP tool: one that goes away, stops taking `ids`, or starts excluding rows
|
|
7
|
+
// (`when`) refuses a call it answered. A route's permissions are judged like any operation's;
|
|
8
|
+
// layout and related lists are internal.
|
|
7
9
|
|
|
8
10
|
import type { ManifestChange } from './diff-change';
|
|
9
11
|
import { diffNamedSet, index } from './diff-change';
|
package/src/docs-scan.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// the installed version. Same split `agents-md.ts` states: facts are derived, prose is
|
|
11
11
|
// human-authored — this module derives, and quotes human prose verbatim. It never writes.
|
|
12
12
|
|
|
13
|
-
// `node:` by necessity, not habit. Bun exposes no native directory listing: `Bun.Glob` walks a
|
|
13
|
+
// why: `node:` by necessity, not habit. Bun exposes no native directory listing: `Bun.Glob` walks a
|
|
14
14
|
// pattern and yields matches, while this needs the immediate children of the scope directory —
|
|
15
15
|
// including the ones that turn out not to be packages. And Bun ships no path module at all, so
|
|
16
16
|
// `basename`/`join` are the only way to build a path without hand-rolling separator handling.
|
|
@@ -106,9 +106,9 @@ export function headerComment(source: string): string {
|
|
|
106
106
|
for (const line of lines) {
|
|
107
107
|
const trimmed = line.trim();
|
|
108
108
|
out.push(
|
|
109
|
-
trimmed
|
|
109
|
+
withoutClose(trimmed)
|
|
110
110
|
.replace(/^\/\*+\s?/, '')
|
|
111
|
-
|
|
111
|
+
|
|
112
112
|
.replace(/^\*\s?/, ''),
|
|
113
113
|
);
|
|
114
114
|
if (trimmed.endsWith('*/')) break;
|
|
@@ -294,3 +294,16 @@ function parseJson(text: string): unknown {
|
|
|
294
294
|
return undefined;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* A block comment's closing `*\/`, with the `*` run and one space before it, as `/\s?\*+\/$/`
|
|
300
|
+
* removed them — in one pass: that pattern retried from every `*` of a long run (CodeQL
|
|
301
|
+
* polynomial-redos, 3.9 s on 100,000).
|
|
302
|
+
*/
|
|
303
|
+
export function withoutClose(line: string): string {
|
|
304
|
+
if (!line.endsWith('*/')) return line;
|
|
305
|
+
let end = line.length - 1;
|
|
306
|
+
while (end > 0 && line.charCodeAt(end - 1) === 42) end -= 1;
|
|
307
|
+
if (end > 0 && /\s/.test(line.charAt(end - 1))) end -= 1;
|
|
308
|
+
return line.slice(0, end);
|
|
309
|
+
}
|
package/src/sources-admin.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// The admins this process declared, as manifest facts. `@ultimat3/admin` is a tier above this
|
|
2
2
|
// package and may not be imported, so its mount registry is read off the global symbol registry —
|
|
3
3
|
// the same seam `@ultimat3/cli` mounts the screens through — and each admin is asked to describe
|
|
4
|
-
// ITSELF.
|
|
5
|
-
//
|
|
4
|
+
// ITSELF.
|
|
5
|
+
//
|
|
6
|
+
// What comes back is `unknown` and is read field by field: a description this build does not
|
|
7
|
+
// understand is skipped whole, never half-published.
|
|
6
8
|
|
|
7
9
|
import type {
|
|
8
10
|
AdminActionFact,
|