dreamteamer 0.52.0 → 0.54.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/api.d.ts +3 -1
- package/dist/api.js +4 -0
- package/dist/check/check.js +1 -0
- package/dist/cli.js +1 -1
- package/dist/commands/updateCommand.js +67 -1
- package/dist/compile/lib/compileCollections.js +1 -0
- package/dist/compile/lib/resolveFields.js +5 -1
- package/dist/compile/lib/toJsonSchema.js +3 -0
- package/dist/install/installDrift.d.ts +8 -0
- package/dist/install/installDrift.js +39 -0
- package/dist/install/observeState.d.ts +1 -0
- package/dist/install/observeState.js +3 -0
- package/dist/install/parseNpmView.d.ts +12 -0
- package/dist/install/parseNpmView.js +27 -0
- package/dist/install/planInstall.js +14 -3
- package/dist/install/readSpecManifest.js +8 -19
- package/dist/record/consts.d.ts +5 -0
- package/dist/record/consts.js +6 -0
- package/dist/record/presentation.js +1 -0
- package/dist/statusCommand.js +10 -0
- package/dist/store/Store.js +1 -0
- package/dist/types.d.ts +23 -1
- package/dist/update/parseUpdateArgs.d.ts +3 -1
- package/dist/update/parseUpdateArgs.js +3 -1
- package/dist/update/updateCheck.d.ts +11 -0
- package/dist/update/updateCheck.js +86 -0
- package/dist/usage.d.ts +1 -1
- package/dist/usage.js +5 -2
- package/package.json +1 -1
- package/skills/using-dreamteamer/references/collections.md +1 -0
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findWorkspace } from "./workspace/findWorkspace.js";
|
|
2
2
|
import type { Workspace } from "./types.js";
|
|
3
3
|
export * from "./records-api.js";
|
|
4
|
-
export type { Workspace, PackageJson, DreamteamerBlock, Flags, Contribution, CheckItem, DoctorRow, ExtensionContext, Activate, LoadedExtension, Entry, CompileDraft, HarnessContext, TemplatePart, SchemaOp, NavDoc, NavEntry, NavWarning, ModuleFields, ModuleRecordRow, } from "./types.js";
|
|
4
|
+
export type { Workspace, PackageJson, DreamteamerBlock, Flags, Contribution, CheckItem, DoctorRow, ExtensionContext, Activate, LoadedExtension, Entry, CompileDraft, HarnessContext, TemplatePart, SchemaOp, NavDoc, NavEntry, NavWarning, ModuleFields, ModuleRecordRow, UpdateCheckRow, InstallDriftRow, } from "./types.js";
|
|
5
5
|
import { openWorkspace } from "./openWorkspace.js";
|
|
6
6
|
export { openWorkspace };
|
|
7
7
|
export { findWorkspace };
|
|
@@ -41,6 +41,8 @@ export { staleness } from "./compile/staleness.js";
|
|
|
41
41
|
export { discoverModules } from "./workspace/discoverModules.js";
|
|
42
42
|
export { moduleRows } from "./workspace/moduleRows.js";
|
|
43
43
|
export { aheadCount } from "./workspace/lib/aheadCount.js";
|
|
44
|
+
export { updateCheck } from "./update/updateCheck.js";
|
|
45
|
+
export { installDrift } from "./install/installDrift.js";
|
|
44
46
|
export { KINDS } from "./compile/consts.js";
|
|
45
47
|
export { MANAGED_BLOCKS } from "./doctor/consts.js";
|
|
46
48
|
export { createCollection } from "./collections/createCollection.js";
|
package/dist/api.js
CHANGED
|
@@ -96,6 +96,10 @@ export { moduleRows } from "./workspace/moduleRows.js";
|
|
|
96
96
|
// commits a repo has that its upstream does not — the count `dt commit` reports after a write; the
|
|
97
97
|
// pending half of the same picture is `commitPending(store, { dryRun: true })`
|
|
98
98
|
export { aheadCount } from "./workspace/lib/aheadCount.js";
|
|
99
|
+
// what `dt update --all` would move: the engine and each npm module, installed → latest (`dt update --check`)
|
|
100
|
+
export { updateCheck } from "./update/updateCheck.js";
|
|
101
|
+
// declared packages installed at another version than the checkout pins (a pulled upgrade) — `dt install` fixes them
|
|
102
|
+
export { installDrift } from "./install/installDrift.js";
|
|
99
103
|
export { KINDS } from "./compile/consts.js";
|
|
100
104
|
export { MANAGED_BLOCKS } from "./doctor/consts.js";
|
|
101
105
|
export { createCollection } from "./collections/createCollection.js";
|
package/dist/check/check.js
CHANGED
|
@@ -43,6 +43,7 @@ export function check({ root }, { extra = [], strictExport = false, } = {}) {
|
|
|
43
43
|
});
|
|
44
44
|
addFormats(ajv);
|
|
45
45
|
ajv.addFormat("markdown", true); // rich-text marker, not a syntax to validate
|
|
46
|
+
ajv.addFormat("html", true); // likewise: markup is stored as written, never validated
|
|
46
47
|
const descriptors = loadDescriptors(root);
|
|
47
48
|
if (!descriptors) {
|
|
48
49
|
console.error(`✖ ${NO_RUNTIME}`);
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,76 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
1
3
|
import { parseUpdateArgs } from "../update/parseUpdateArgs.js";
|
|
2
4
|
import { updateModules } from "../update/updateModules.js";
|
|
5
|
+
import { updateCheck } from "../update/updateCheck.js";
|
|
3
6
|
import { openWorkspace } from "../openWorkspace.js";
|
|
7
|
+
import { emit } from "../lib/emit.js";
|
|
8
|
+
import { childEnv } from "../lib/childEnv.js";
|
|
9
|
+
import { EXIT } from "../lib/consts.js";
|
|
4
10
|
export async function updateCommand(rest) {
|
|
5
11
|
const ws = await openWorkspace();
|
|
6
12
|
const u = parseUpdateArgs(rest);
|
|
13
|
+
if (u.check) {
|
|
14
|
+
const rows = await updateCheck(ws, { from: u.from });
|
|
15
|
+
if (rest.includes("--json")) {
|
|
16
|
+
emit(JSON.stringify({ packages: rows, outdated: rows.filter(r => r.outdated).length }, null, 2));
|
|
17
|
+
return EXIT.done;
|
|
18
|
+
}
|
|
19
|
+
printCheck(rows);
|
|
20
|
+
return EXIT.done;
|
|
21
|
+
}
|
|
22
|
+
if (u.all) {
|
|
23
|
+
// the engine first, in THIS process (the old engine); then the modules, by the engine just installed — a module's
|
|
24
|
+
// closure and compile are judged by the engine that will run it
|
|
25
|
+
const rows = await updateCheck(ws, { from: u.from });
|
|
26
|
+
const forward = (extra) => [
|
|
27
|
+
...extra,
|
|
28
|
+
...(u.from ? ["--from", u.from] : []),
|
|
29
|
+
...[...u.allow].flatMap(a => ["--allow", a]),
|
|
30
|
+
...(u.noCommit ? ["--no-commit"] : []),
|
|
31
|
+
];
|
|
32
|
+
if (rows.find(r => r.kind === "engine")?.outdated) {
|
|
33
|
+
const code = await updateModules(ws, { ...u, engine: true, name: null, version: null }, { open: openWorkspace });
|
|
34
|
+
if (code !== EXIT.done)
|
|
35
|
+
return code;
|
|
36
|
+
const bin = path.join(ws.root, "node_modules", "dreamteamer", "bin", "dreamteamer.js");
|
|
37
|
+
const r = spawnSync(process.execPath, [bin, "update", ...forward(["--all"])], {
|
|
38
|
+
cwd: ws.root,
|
|
39
|
+
stdio: "inherit",
|
|
40
|
+
env: childEnv(),
|
|
41
|
+
});
|
|
42
|
+
return r.status ?? EXIT.failed;
|
|
43
|
+
}
|
|
44
|
+
const modules = rows.filter(r => r.kind === "module" && r.outdated);
|
|
45
|
+
if (!modules.length) {
|
|
46
|
+
console.log("✔ every package is at its latest release — nothing to update");
|
|
47
|
+
return EXIT.done;
|
|
48
|
+
}
|
|
49
|
+
let worst = EXIT.done;
|
|
50
|
+
for (const m of modules) {
|
|
51
|
+
const code = await updateModules(await openWorkspace(ws.root), { ...u, engine: false, name: m.name, version: null }, { open: openWorkspace });
|
|
52
|
+
if (code !== EXIT.done)
|
|
53
|
+
worst = code;
|
|
54
|
+
}
|
|
55
|
+
return worst;
|
|
56
|
+
}
|
|
7
57
|
if (!u.engine && !u.name)
|
|
8
|
-
throw new Error("dt update needs a target — <name>[@<version>] moves one module's pin, --engine the engine's");
|
|
58
|
+
throw new Error("dt update needs a target — <name>[@<version>] moves one module's pin, --engine the engine's, --all every outdated one, --check lists them");
|
|
9
59
|
return await updateModules(ws, u, { open: openWorkspace });
|
|
10
60
|
}
|
|
61
|
+
/** `dreamteamer 0.52.0 → 0.53.0`, one line per package, then the count and the verb that moves them. */
|
|
62
|
+
function printCheck(rows) {
|
|
63
|
+
const width = Math.max(...rows.map(r => r.name.length), 10);
|
|
64
|
+
for (const r of rows) {
|
|
65
|
+
const state = r.linked
|
|
66
|
+
? "a development link — not pinned"
|
|
67
|
+
: r.error
|
|
68
|
+
? `✖ ${r.error}`
|
|
69
|
+
: r.outdated
|
|
70
|
+
? `${r.installed} → ${r.latest}`
|
|
71
|
+
: `${r.installed} (latest)`;
|
|
72
|
+
console.log(` ${r.name.padEnd(width)} ${state}`);
|
|
73
|
+
}
|
|
74
|
+
const n = rows.filter(r => r.outdated).length;
|
|
75
|
+
console.log(n ? `${n} of ${rows.length} can move forward — dt update --all` : `✔ all ${rows.length} at their latest release`);
|
|
76
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INJECTED_FIELDS } from "../../record/consts.js";
|
|
1
|
+
import { HTML_MAX_LENGTH, INJECTED_FIELDS } from "../../record/consts.js";
|
|
2
2
|
import { SCALAR_TYPES } from "../../record/consts.js";
|
|
3
3
|
import { enumValues, fieldTitleOf, referenceTargets } from "../../record/fields.js";
|
|
4
4
|
/** The closed set of keys a field may carry. Anything else is a compile error naming the key. */
|
|
@@ -96,6 +96,10 @@ export function resolveFields(authored, ctx) {
|
|
|
96
96
|
out.on_delete = "restrict";
|
|
97
97
|
d.on_delete = "restrict";
|
|
98
98
|
}
|
|
99
|
+
if (out.type === "html" && out.maxLength === undefined) {
|
|
100
|
+
out.maxLength = HTML_MAX_LENGTH;
|
|
101
|
+
d.maxLength = HTML_MAX_LENGTH;
|
|
102
|
+
}
|
|
99
103
|
if (Object.keys(d).length)
|
|
100
104
|
defaults[name] = d;
|
|
101
105
|
fields[name] = out;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HTML_MAX_LENGTH } from "../../record/consts.js";
|
|
1
2
|
import { enumValues, referenceTargets } from "../../record/fields.js";
|
|
2
3
|
/** JSON Schema keywords copied onto the emitted property unchanged. */
|
|
3
4
|
const PASS_THROUGH = [
|
|
@@ -62,6 +63,8 @@ function scalarSchema(f, collections) {
|
|
|
62
63
|
return f.enum !== undefined ? { type: "string", enum: enumValues(f.enum) } : { type: "string" };
|
|
63
64
|
case "markdown":
|
|
64
65
|
return { type: "string", format: "markdown" };
|
|
66
|
+
case "html":
|
|
67
|
+
return { type: "string", format: "html", maxLength: HTML_MAX_LENGTH };
|
|
65
68
|
case "boolean":
|
|
66
69
|
return { type: "boolean" };
|
|
67
70
|
case "integer":
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InstallDriftRow, Workspace } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Every declared package whose installed version differs from the one this checkout pins: package-lock.json's entry,
|
|
4
|
+
* else an exact package.json pin. What a teammate's pushed upgrade looks like after a pull — the pins moved,
|
|
5
|
+
* node_modules did not — and what `dt install` then makes match. A missing package is not drift (`dt install` reports
|
|
6
|
+
* it as missing), nor is a development link (never pinned), nor a ranged pin with no lockfile (no single answer).
|
|
7
|
+
*/
|
|
8
|
+
export declare function installDrift(ws: Workspace): InstallDriftRow[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { declaredDeps } from "./declaredDeps.js";
|
|
4
|
+
/** A version string as an exact pin writes it (`0.53.0`, `1.2.3-rc.1`), not a range. */
|
|
5
|
+
const EXACT = /^\d+\.\d+\.\d+(?:[-+][\w.-]+)?$/;
|
|
6
|
+
/**
|
|
7
|
+
* Every declared package whose installed version differs from the one this checkout pins: package-lock.json's entry,
|
|
8
|
+
* else an exact package.json pin. What a teammate's pushed upgrade looks like after a pull — the pins moved,
|
|
9
|
+
* node_modules did not — and what `dt install` then makes match. A missing package is not drift (`dt install` reports
|
|
10
|
+
* it as missing), nor is a development link (never pinned), nor a ranged pin with no lockfile (no single answer).
|
|
11
|
+
*/
|
|
12
|
+
export function installDrift(ws) {
|
|
13
|
+
let lock = {};
|
|
14
|
+
try {
|
|
15
|
+
lock = JSON.parse(fs.readFileSync(path.join(ws.root, "package-lock.json"), "utf8"));
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
/* no lockfile: the exact pins in package.json are all there is */
|
|
19
|
+
}
|
|
20
|
+
const specs = { ...ws.pkg?.devDependencies, ...ws.pkg?.dependencies };
|
|
21
|
+
const out = [];
|
|
22
|
+
for (const name of declaredDeps(ws)) {
|
|
23
|
+
const dir = path.join(ws.root, "node_modules", name);
|
|
24
|
+
let installed;
|
|
25
|
+
try {
|
|
26
|
+
if (fs.lstatSync(dir).isSymbolicLink())
|
|
27
|
+
continue;
|
|
28
|
+
installed = JSON.parse(fs.readFileSync(path.join(dir, "package.json"), "utf8")).version;
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const locked = lock.packages?.[`node_modules/${name}`]?.version;
|
|
34
|
+
const pinned = locked ?? (EXACT.test(specs[name] ?? "") ? specs[name] : undefined);
|
|
35
|
+
if (pinned && installed && pinned !== installed)
|
|
36
|
+
out.push({ name, pinned, installed });
|
|
37
|
+
}
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { declaredDeps } from "./declaredDeps.js";
|
|
4
|
+
import { installDrift } from "./installDrift.js";
|
|
4
5
|
import { resolves } from "./resolves.js";
|
|
5
6
|
import { describeCheckout } from "../lib/git/describeCheckout.js";
|
|
6
7
|
import { discoverModules } from "../workspace/discoverModules.js";
|
|
@@ -60,6 +61,8 @@ export function observeState(ws) {
|
|
|
60
61
|
return {
|
|
61
62
|
checkout,
|
|
62
63
|
missingDeps: declaredDeps(ws).filter(d => !resolves(here(path.join("node_modules", d)))),
|
|
64
|
+
// installed, but not the version the checkout pins — a teammate's pushed upgrade after a pull
|
|
65
|
+
drift: installDrift(ws),
|
|
63
66
|
hasEnv: resolves(here(".env")),
|
|
64
67
|
envIsLink: isLink(here(".env")),
|
|
65
68
|
primaryHasEnv: resolves(there(".env")),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SpecEntry } from "./types.js";
|
|
2
|
+
/** What `npm view <spec>` is asked for: the manifest fields install and update read. */
|
|
3
|
+
export declare const NPM_VIEW_FIELDS: string[];
|
|
4
|
+
/**
|
|
5
|
+
* One `npm view <spec> … --json` run → the spec npm will be handed and its manifest, or a refusal naming why. Shared
|
|
6
|
+
* by `readSpecManifest` (one synchronous view) and `updateCheck` (many at once), so both read the registry one way.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseNpmView(spec: string, { status, stdout, stderr }: {
|
|
9
|
+
status: number | null;
|
|
10
|
+
stdout: string;
|
|
11
|
+
stderr: string;
|
|
12
|
+
}): SpecEntry;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { refuse } from "./versions.js";
|
|
2
|
+
/** What `npm view <spec>` is asked for: the manifest fields install and update read. */
|
|
3
|
+
export const NPM_VIEW_FIELDS = ["name", "version", "dreamteamer", "peerDependencies", "dependencies", "--json"];
|
|
4
|
+
/**
|
|
5
|
+
* One `npm view <spec> … --json` run → the spec npm will be handed and its manifest, or a refusal naming why. Shared
|
|
6
|
+
* by `readSpecManifest` (one synchronous view) and `updateCheck` (many at once), so both read the registry one way.
|
|
7
|
+
*/
|
|
8
|
+
export function parseNpmView(spec, { status, stdout, stderr }) {
|
|
9
|
+
if (status !== 0)
|
|
10
|
+
throw refuse(`npm view ${spec} failed${stderr
|
|
11
|
+
? ` — ${stderr
|
|
12
|
+
.trim()
|
|
13
|
+
.split("\n")
|
|
14
|
+
.filter(l => /E404|ETARGET|ENOTFOUND|EAI_AGAIN/.test(l))[0] ?? stderr.trim().split("\n")[0]}`
|
|
15
|
+
: ""}`);
|
|
16
|
+
let out;
|
|
17
|
+
try {
|
|
18
|
+
out = JSON.parse(stdout);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
throw refuse(`npm view ${spec}: unreadable answer`);
|
|
22
|
+
}
|
|
23
|
+
const manifest = Array.isArray(out) ? out.at(-1) : out; // a range answers with every match; the last is the newest
|
|
24
|
+
if (!manifest?.name)
|
|
25
|
+
throw refuse(`npm view ${spec}: no such package`);
|
|
26
|
+
return { kind: "registry", spec: `${manifest.name}@${manifest.version}`, manifest };
|
|
27
|
+
}
|
|
@@ -10,13 +10,24 @@ export function planInstall(state, opts = {}) {
|
|
|
10
10
|
// LINK used to read as ready while an installed extension was missing — so
|
|
11
11
|
// npm never ran, and compile then refused the extension's source folder as an unknown kind.
|
|
12
12
|
const missing = state.missingDeps ?? [];
|
|
13
|
-
|
|
13
|
+
// ⚠ AND every one installed at another version than the checkout pins. A teammate's pushed upgrade moves the pins
|
|
14
|
+
// while node_modules stays behind; "present" alone read that checkout as ready, and it ran on the old packages.
|
|
15
|
+
const drift = state.drift ?? [];
|
|
16
|
+
const why = [
|
|
17
|
+
...(missing.length ? [`${missing.join(", ")} missing`] : []),
|
|
18
|
+
...drift.map(d => `${d.name} ${d.installed} installed, ${d.pinned} pinned`),
|
|
19
|
+
];
|
|
20
|
+
steps.push(why.length
|
|
14
21
|
? {
|
|
15
22
|
id: "dependencies",
|
|
16
|
-
label: `dependencies: ${
|
|
23
|
+
label: `dependencies: ${why.join("; ")} — npm ci --prefer-offline (package-lock.json) or npm install; a linked one is kept`,
|
|
17
24
|
state: "todo",
|
|
18
25
|
}
|
|
19
|
-
: {
|
|
26
|
+
: {
|
|
27
|
+
id: "dependencies",
|
|
28
|
+
label: "dependencies: every declared package present, at its pinned version",
|
|
29
|
+
state: "already",
|
|
30
|
+
});
|
|
20
31
|
if (c.kind === "primary")
|
|
21
32
|
steps.push({ id: "env", label: ".env: primary checkout — nothing to link", state: "skip" });
|
|
22
33
|
else if (state.hasEnv && !state.envIsLink)
|
|
@@ -4,6 +4,7 @@ import { spawnSync } from "node:child_process";
|
|
|
4
4
|
import { childEnv } from "../lib/childEnv.js";
|
|
5
5
|
import { indexFolder } from "./indexFolder.js";
|
|
6
6
|
import { readTarballManifest } from "./lib/readTarballManifest.js";
|
|
7
|
+
import { NPM_VIEW_FIELDS, parseNpmView } from "./parseNpmView.js";
|
|
7
8
|
import { resolveNpm } from "../lib/npm/resolveNpm.js";
|
|
8
9
|
import { isPathSpec, refuse, splitSpec } from "./versions.js";
|
|
9
10
|
/**
|
|
@@ -33,23 +34,11 @@ export function readSpecManifest(spec, { from = null, index = null, npm = resolv
|
|
|
33
34
|
}
|
|
34
35
|
if (!npm)
|
|
35
36
|
throw refuse("cannot read the registry — node found, npm not on PATH");
|
|
36
|
-
const r = spawnSync(npm, ["view", spec,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
: ""}`);
|
|
44
|
-
let out;
|
|
45
|
-
try {
|
|
46
|
-
out = JSON.parse(r.stdout);
|
|
47
|
-
}
|
|
48
|
-
catch {
|
|
49
|
-
throw refuse(`npm view ${spec}: unreadable answer`);
|
|
50
|
-
}
|
|
51
|
-
const manifest = Array.isArray(out) ? out.at(-1) : out; // a range answers with every match; the last is the newest
|
|
52
|
-
if (!manifest?.name)
|
|
53
|
-
throw refuse(`npm view ${spec}: no such package`);
|
|
54
|
-
return { kind: "registry", spec: `${manifest.name}@${manifest.version}`, manifest };
|
|
37
|
+
const r = spawnSync(npm, ["view", spec, ...NPM_VIEW_FIELDS], {
|
|
38
|
+
encoding: "utf8",
|
|
39
|
+
cwd,
|
|
40
|
+
env: childEnv(),
|
|
41
|
+
timeout: 120_000,
|
|
42
|
+
});
|
|
43
|
+
return parseNpmView(spec, r);
|
|
55
44
|
}
|
package/dist/record/consts.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const EXT: Record<string, string>;
|
|
|
10
10
|
* not fit the video someone will one day try to make a record.
|
|
11
11
|
*/
|
|
12
12
|
export declare const MAX_RECORD_BYTES = 204800;
|
|
13
|
+
/**
|
|
14
|
+
* The longest `html` value, in characters as `maxLength` counts them, when its field declares no
|
|
15
|
+
* `maxLength`. The same number as a binary record, so a page past it is a file record of its own.
|
|
16
|
+
*/
|
|
17
|
+
export declare const HTML_MAX_LENGTH = 204800;
|
|
13
18
|
export declare const DATE_ONLY: RegExp;
|
|
14
19
|
export declare const DATE_TIME: RegExp;
|
|
15
20
|
/** Never a namespace: it would give the default namespace a second, prefixed spelling. */
|
package/dist/record/consts.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export const SCALAR_TYPES = [
|
|
3
3
|
"string",
|
|
4
4
|
"markdown",
|
|
5
|
+
"html",
|
|
5
6
|
"boolean",
|
|
6
7
|
"integer",
|
|
7
8
|
"number",
|
|
@@ -24,6 +25,11 @@ export const EXT = { md: ".md", yaml: ".yaml", json: ".json" };
|
|
|
24
25
|
* not fit the video someone will one day try to make a record.
|
|
25
26
|
*/
|
|
26
27
|
export const MAX_RECORD_BYTES = 204800;
|
|
28
|
+
/**
|
|
29
|
+
* The longest `html` value, in characters as `maxLength` counts them, when its field declares no
|
|
30
|
+
* `maxLength`. The same number as a binary record, so a page past it is a file record of its own.
|
|
31
|
+
*/
|
|
32
|
+
export const HTML_MAX_LENGTH = 204800;
|
|
27
33
|
export const DATE_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
28
34
|
export const DATE_TIME = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,3})\d*)?\s*(Z|[+-]\d{2}:?\d{2})?$/i;
|
|
29
35
|
/** Never a namespace: it would give the default namespace a second, prefixed spelling. */
|
package/dist/statusCommand.js
CHANGED
|
@@ -13,6 +13,7 @@ import { discoverModules } from "./workspace/discoverModules.js";
|
|
|
13
13
|
import { listRepos } from "./repos/listRepos.js";
|
|
14
14
|
import { staleness } from "./compile/staleness.js";
|
|
15
15
|
import { presetMembers } from "./install/presetMembers.js";
|
|
16
|
+
import { installDrift } from "./install/installDrift.js";
|
|
16
17
|
export function statusCommand(ws, rest) {
|
|
17
18
|
const s = staleness(ws.root);
|
|
18
19
|
if (!s.compiled) {
|
|
@@ -32,6 +33,8 @@ export function statusCommand(ws, rest) {
|
|
|
32
33
|
compiled: s.manifest.compiled,
|
|
33
34
|
stale: s.stale,
|
|
34
35
|
modules: mods.map(modEntry),
|
|
36
|
+
// installed at another version than the checkout pins — `dt install` makes them match
|
|
37
|
+
drift: installDrift(ws),
|
|
35
38
|
setup: statusLines(ws),
|
|
36
39
|
}, null, 2));
|
|
37
40
|
return 0;
|
|
@@ -87,6 +90,13 @@ export function statusCommand(ws, rest) {
|
|
|
87
90
|
console.log(` ${x.name} ${x.installed} (preset ${p.id} names ${x.pinned})`);
|
|
88
91
|
}
|
|
89
92
|
}
|
|
93
|
+
// a pulled upgrade: the pins moved, node_modules did not
|
|
94
|
+
const drift = installDrift(ws);
|
|
95
|
+
if (drift.length) {
|
|
96
|
+
console.log("drift:");
|
|
97
|
+
for (const d of drift)
|
|
98
|
+
console.log(` ${d.name.padEnd(20)} ${d.installed} installed, ${d.pinned} pinned — dt install`);
|
|
99
|
+
}
|
|
90
100
|
// env-pointed roots (`storage.path: ${env:NAME}/…`), rendered per machine by compile: the
|
|
91
101
|
// folder a record of each lands in on THIS machine, or why it cannot. Wrapped like the
|
|
92
102
|
// blocks below — status is the command run when things are already wrong.
|
package/dist/store/Store.js
CHANGED
|
@@ -87,6 +87,7 @@ export class Store {
|
|
|
87
87
|
});
|
|
88
88
|
addFormats(this.ajv);
|
|
89
89
|
this.ajv.addFormat("markdown", true);
|
|
90
|
+
this.ajv.addFormat("html", true);
|
|
90
91
|
this._idsCache = new Map(); // collection -> { key, ids } (see ids())
|
|
91
92
|
this._duplicates = new Map(); // placed collection -> id -> [files], refreshed by every walk (see assertUnambiguous)
|
|
92
93
|
this._head = undefined; // memoized `git rev-parse HEAD` (see gitHead())
|
package/dist/types.d.ts
CHANGED
|
@@ -235,6 +235,28 @@ export interface ModuleRecordRow {
|
|
|
235
235
|
id: string;
|
|
236
236
|
fields: ModuleFields;
|
|
237
237
|
}
|
|
238
|
+
/** One package `updateCheck` looked at: the engine or an npm module, what is installed and the newest release. */
|
|
239
|
+
export interface UpdateCheckRow {
|
|
240
|
+
name: string;
|
|
241
|
+
kind: "engine" | "module";
|
|
242
|
+
installed: string | null;
|
|
243
|
+
/** The version `dt update` would move to; null for a development link, or when the registry did not answer. */
|
|
244
|
+
latest: string | null;
|
|
245
|
+
/** A development link (`npm link`, a folder spec): never pinned, so never offered. */
|
|
246
|
+
linked: boolean;
|
|
247
|
+
/** `latest` is newer than `installed`. */
|
|
248
|
+
outdated: boolean;
|
|
249
|
+
/** Why `latest` is unknown — the registry's refusal, in one line. */
|
|
250
|
+
error?: string;
|
|
251
|
+
}
|
|
252
|
+
/** A declared package whose installed version is not the one the checkout pins — what `dt install` makes match. */
|
|
253
|
+
export interface InstallDriftRow {
|
|
254
|
+
name: string;
|
|
255
|
+
/** What package-lock.json names (else an exact package.json pin). */
|
|
256
|
+
pinned: string;
|
|
257
|
+
/** What node_modules holds. */
|
|
258
|
+
installed: string;
|
|
259
|
+
}
|
|
238
260
|
/** The display contract (descriptor v2, design §4.3): what every surface draws from. */
|
|
239
261
|
export interface PresentationChoice {
|
|
240
262
|
label: string;
|
|
@@ -253,7 +275,7 @@ export interface PresentationComponentOptions {
|
|
|
253
275
|
export interface PresentationField {
|
|
254
276
|
collection?: string;
|
|
255
277
|
field: string;
|
|
256
|
-
type: "string" | "markdown" | "integer" | "number" | "boolean" | "date" | "datetime" | "url" | "email" | "object" | "map" | "position";
|
|
278
|
+
type: "string" | "markdown" | "html" | "integer" | "number" | "boolean" | "date" | "datetime" | "url" | "email" | "object" | "map" | "position";
|
|
257
279
|
many?: true;
|
|
258
280
|
title: string;
|
|
259
281
|
description?: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
/** The `dt update` argv: a target (`name`, `name@version`), `--engine`, `--allow downgrade|nav-reset`, `--from <dir>`, `--no-commit`. */
|
|
1
|
+
/** The `dt update` argv: a target (`name`, `name@version`), `--engine`, `--check`, `--all`, `--allow downgrade|nav-reset`, `--from <dir>`, `--no-commit`. */
|
|
2
2
|
export declare function parseUpdateArgs(argv: string[]): {
|
|
3
3
|
name: string | null;
|
|
4
4
|
version: string | null;
|
|
5
5
|
engine: boolean;
|
|
6
|
+
check: boolean;
|
|
7
|
+
all: boolean;
|
|
6
8
|
allow: Set<string>;
|
|
7
9
|
from: string | null;
|
|
8
10
|
noCommit: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/** The `dt update` argv: a target (`name`, `name@version`), `--engine`, `--allow downgrade|nav-reset`, `--from <dir>`, `--no-commit`. */
|
|
1
|
+
/** The `dt update` argv: a target (`name`, `name@version`), `--engine`, `--check`, `--all`, `--allow downgrade|nav-reset`, `--from <dir>`, `--no-commit`. */
|
|
2
2
|
export function parseUpdateArgs(argv) {
|
|
3
3
|
const out = {
|
|
4
4
|
name: null,
|
|
5
5
|
version: null,
|
|
6
6
|
engine: argv.includes("--engine"),
|
|
7
|
+
check: argv.includes("--check"),
|
|
8
|
+
all: argv.includes("--all"),
|
|
7
9
|
allow: new Set(),
|
|
8
10
|
from: null,
|
|
9
11
|
noCommit: argv.includes("--no-commit"),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UpdateCheckRow, Workspace } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* What `dt update` would move: the engine and every module installed from npm, each with its installed version and
|
|
4
|
+
* the release `dt update <name>` (or `--engine`) would re-pin to. Read the same way update reads it — one `npm view`
|
|
5
|
+
* per package, or the folder `--from` names — so a row that says `outdated` is exactly what `dt update --all` moves.
|
|
6
|
+
* A development link is listed and never outdated; a package the registry did not answer carries `error`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function updateCheck(ws: Workspace, { npm, from }?: {
|
|
9
|
+
npm?: string | null;
|
|
10
|
+
from?: string | null;
|
|
11
|
+
}): Promise<UpdateCheckRow[]>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { childEnv } from "../lib/childEnv.js";
|
|
5
|
+
import { resolveNpm } from "../lib/npm/resolveNpm.js";
|
|
6
|
+
import { installedModules } from "../install/installedModules.js";
|
|
7
|
+
import { readSpecManifest } from "../install/readSpecManifest.js";
|
|
8
|
+
import { NPM_VIEW_FIELDS, parseNpmView } from "../install/parseNpmView.js";
|
|
9
|
+
import { compareVersions } from "../install/versions.js";
|
|
10
|
+
/** How many `npm view` calls run at once: enough to make thirty modules a few seconds, few enough to be polite. */
|
|
11
|
+
const CONCURRENT_VIEWS = 8;
|
|
12
|
+
/**
|
|
13
|
+
* What `dt update` would move: the engine and every module installed from npm, each with its installed version and
|
|
14
|
+
* the release `dt update <name>` (or `--engine`) would re-pin to. Read the same way update reads it — one `npm view`
|
|
15
|
+
* per package, or the folder `--from` names — so a row that says `outdated` is exactly what `dt update --all` moves.
|
|
16
|
+
* A development link is listed and never outdated; a package the registry did not answer carries `error`.
|
|
17
|
+
*/
|
|
18
|
+
export async function updateCheck(ws, { npm = resolveNpm(), from = null } = {}) {
|
|
19
|
+
const here = [];
|
|
20
|
+
const engineDir = path.join(ws.root, "node_modules", "dreamteamer");
|
|
21
|
+
try {
|
|
22
|
+
here.push({
|
|
23
|
+
name: "dreamteamer",
|
|
24
|
+
kind: "engine",
|
|
25
|
+
installed: JSON.parse(fs.readFileSync(path.join(engineDir, "package.json"), "utf8")).version ?? null,
|
|
26
|
+
linked: fs.lstatSync(engineDir).isSymbolicLink(),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
/* no installed engine: nothing to compare against */
|
|
31
|
+
}
|
|
32
|
+
for (const m of installedModules(ws).values())
|
|
33
|
+
if (m.channel === "npm" && m.name !== "dreamteamer")
|
|
34
|
+
here.push({ name: m.name, kind: "module", installed: m.version, linked: m.linked });
|
|
35
|
+
here.sort((a, b) => (a.kind === b.kind ? a.name.localeCompare(b.name) : a.kind === "engine" ? -1 : 1));
|
|
36
|
+
const latestOf = async (name) => from || !npm ? readSpecManifest(name, { from, npm, cwd: ws.root }) : view(npm, name, ws.root);
|
|
37
|
+
const rows = new Array(here.length);
|
|
38
|
+
let next = 0;
|
|
39
|
+
const worker = async () => {
|
|
40
|
+
while (next < here.length) {
|
|
41
|
+
const i = next++;
|
|
42
|
+
const p = here[i];
|
|
43
|
+
if (p.linked) {
|
|
44
|
+
rows[i] = { ...p, latest: null, outdated: false };
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
const latest = (await latestOf(p.name)).manifest.version ?? null;
|
|
49
|
+
rows[i] = {
|
|
50
|
+
...p,
|
|
51
|
+
latest,
|
|
52
|
+
outdated: !!latest && !!p.installed && compareVersions(latest, p.installed) > 0,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
rows[i] = { ...p, latest: null, outdated: false, error: e.message };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
await Promise.all(Array.from({ length: Math.min(CONCURRENT_VIEWS, here.length) }, worker));
|
|
61
|
+
return rows;
|
|
62
|
+
}
|
|
63
|
+
/** One `npm view` without blocking, parsed exactly as `readSpecManifest` parses its own. */
|
|
64
|
+
function view(npm, spec, cwd) {
|
|
65
|
+
return new Promise((resolve, reject) => {
|
|
66
|
+
const child = spawn(npm, ["view", spec, ...NPM_VIEW_FIELDS], { cwd, env: childEnv() });
|
|
67
|
+
let stdout = "";
|
|
68
|
+
let stderr = "";
|
|
69
|
+
const timer = setTimeout(() => child.kill(), 120_000);
|
|
70
|
+
child.stdout.on("data", d => (stdout += d));
|
|
71
|
+
child.stderr.on("data", d => (stderr += d));
|
|
72
|
+
child.on("error", e => {
|
|
73
|
+
clearTimeout(timer);
|
|
74
|
+
reject(e);
|
|
75
|
+
});
|
|
76
|
+
child.on("close", status => {
|
|
77
|
+
clearTimeout(timer);
|
|
78
|
+
try {
|
|
79
|
+
resolve(parseNpmView(spec, { status, stdout, stderr }));
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
reject(e);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
package/dist/usage.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const USAGE = "usage: dreamteamer <verb> [<target>] [flags]\n\n --workspace, -w <path>\n run the verb in another workspace. The path resolves from the\n directory you typed it in; every other path in the command resolves inside the\n target. The working directory is unchanged, and the flag reaches this command\n only: a process it starts resolves its own workspace from its own directory.\n --vault <path> deprecated \u2014 the old spelling of --workspace, still honoured.\n\nrecord verbs (hard validation \u2014 invalid writes are rejected before disk).\nA <target> is either a collection name or a <collection>/<id> reference; the reference splits at\nthe longest DECLARED collection prefix, so finance/transactions/2026/03/coffee is ONE argument:\n list <collection> [--filter k=v] [--where <json>] [--sort [-]<field>] [--json]\n (--filter is ONE condition \u2014 repeat it to AND more\n (--filter a=1 --filter b=2 wants both);\n anything compound goes in one --where, operator\n objects e.g. '{\"starts\":{\"_gte\":\"2026-07-01\"}}' \u2014\n operators: _eq _neq _lt _lte _gt _gte _in _nin\n _null _empty _contains _starts_with _ends_with\n _between _regex _and _or, plus _n*/_i* negated and\n case-insensitive variants; date-times sort and\n compare as instants, across offsets; an enum\n sorts in its declared order)\n get <collection>/<id> [--json] (--json, and each list --json row, adds $file and\n $repo: where the record is read from and the repo\n that commits it \u2014 null outside every repo here)\n add <collection> [\"<title>\"] --<field> <value> \u2026 [--id <explicit-id>]\n (ONE bare positional fills the collection's title\n field \u2014 the one its record_title opens with \u2014 so\n dt add task \"call the bank\" is\n dt add tasks --name \"call the bank\".\n a format: binary collection takes --from <path>\n instead \u2014 the file IS the record, fields derive;\n --force replaces an existing file record.\n A repeated --<field> is one ELEMENT of an array\n field \u2014 refused on a scalar one; a single value\n still splits on commas)\n set <collection>/<id> <field>=<value> \u2026 (repeating a pair adds an element, exactly as a\n repeated --<field> does)\n rm <collection>/<id> [--force]\n rename <collection>/<id> <new-id> (rewrites all inbound refs in one WRITE \u2014\n commit publishes the set together)\n reorder <collection>/<id> --after|--before <id> | --top | --bottom\n reorder <collection> --init (place every record that has no position yet \u2014 the collection's `type: position` field)\n values <collection> <field> [--limit n] (the vocabulary a field actually uses \u2014\n what a filter/validator offers as choices)\n history <collection>/<id> [--json] (git revisions of this record, newest first)\n diff <collection>/<id> [--hash <sha>] (the patch one revision applied; defaults to HEAD)\n revert <collection>/<id> --hash <sha> (restore the content at <sha> as a pending write)\n next <collection>[/<id>] [--ids <id>,\u2026] (which bound commands apply, and in which state:\n available / done / not-applicable \u2014 what can\n happen to this record next)\n relations [<collection>] (every two-way pair: owner.field \u2192 target.mirror)\n relations rebuild <collection> [--drop <f>] (regenerate mirror VALUES from the owning side;\n --drop removes a stale ex-mirror key from records)\n relocate <target> [--dry-run] [--json] (move record FILES to where the compiled descriptor\n puts them \u2014 a record stored under another\n collection (storage.under) whose folder disagrees\n with its owner field, or a file record in a\n collection that became shape: folder. Ids and\n references never change; a pending edit on a\n moved file, or a dangling owner, refuses the whole\n plan \u2014 commit, or fix the field, first)\n relocate <collection> --to-root [--dry-run] (the REVERSE: every placed record back into the\n collection's own folder, ids unchanged \u2014 the step\n before removing or changing storage.under)\n resolve '<string>' | <collection>/<id> <field>\n (render ${env:NAME} \u00B7 ${workspaceFolder} \u00B7\n ${userHome} \u2014 the ONLY substitution point; a\n record keeps the template verbatim. An array\n field prints one item per line)\n\nsystem verbs \u2014 the SAME verbs, on the entities the compiler materializes (modules, collections,\nskills, agents, commands, command-bindings, ui-views, mixins, and any kind an\ninstalled extension adds). \u26A0 ONE\ndifference in POLICY, not in spelling: a SYSTEM write commits itself, because an uncompilable or\nunpublished schema is not a state a workspace should sit in; a RECORD write does not \u2014 `commit`\npublishes it. The commit lands in the repo that holds the source, so a write into a module that\nis a repo of its own commits there.\n add collections --name <name> [--module <m>] [--namespace <ns>] [--mixins docs,\u2026]\n [--id-from '{{ \u2026 }}'] [--description \"\u2026\"] [--suffix <s>]\n (--namespace health --name doctors === --name\n health/doctors; a module declaring exactly ONE\n namespace infers it, and the resolved name is echoed.\n --namespace '' means no namespace)\n add modules --name <id> [--description \"\u2026\"] [--namespace <ns>] [--extension] [--package <npm name>]\n (modules/<id>/ + every kind folder + package.json + README.md,\n floored on this engine. --namespace DECLARES it in the module\n (\u00A78), so every later `add collections --module <id>` infers it.\n --extension adds src/extension.js with a one-token setup unit;\n --package names it for npm and makes it publishable \u2014 the\n folder stays the id. Without it, folder = package name = id.)\n add skills --name <id> --description \"\u2026\" (skills/<id>/SKILL.md \u2014 --description is required,\n because an undescribed skill is undiscoverable)\n add ui-views --route </route> --scope collection --collection collections/<c>\n [--id <id>] [display.list.layout=<id>] [k.v=\u2026]\n set <system>/<id> <field>=<value> \u2026 (collections: description \u00B7 use_when \u00B7 title \u00B7\n singular \u00B7 record_title \u00B7 sensitive \u00B7 internal \u00B7\n display.nav.icon \u00B7 display.nav.order \u00B7\n display.nav.section \u00B7 display.list.columns \u00B7\n display.list.sort, plus module=<m>, which MOVES it.\n modules: description \u00B7 namespaces \u00B7 dependencies \u00B7\n peer_collections, record-shaped (modules/core).\n ui-views: dotted keys \u2014 display.list.sort=-date. An\n empty value REMOVES the key; quote it to write the\n empty string itself ('display.list.sort=\"\"').\n skills/agents/commands/\u2026: frontmatter keys)\n rm <system>/<id> [--force] [--dry-run]\n rename <system>/<id> <new-id> (a collection's rename moves its records, re-suffixes\n the files and rewrites every inbound ref, ONE commit)\n reorder collections/<c> \u2026 (refused since 0.49: the nav's order is nav.yaml \u2014 the\n sidebar's Move entries or a hand edit; display.nav.order\n compiles and moves no row)\n get collections/<c> [--module <m>] (--module prints ONE module's source contribution\n rather than the merged descriptor)\n list modules | collections | skills | \u2026 (id \u00B7 location \u00B7 path \u00B7 namespaces \u00B7 package name)\n revert <system>/<id> (refused: its source is in git \u2014\n `git checkout <sha> -- <path>` then `dt compile`)\n fmt [<collection>] [--dry-run] (collection and mixin sources in block style, top-level\n keys in canonical order; fields, the keys inside a\n field and every comment stay where they are. Sources\n under node_modules/ are skipped)\n\nfield verbs \u2014 a field is the one sub-entity, and it has verbs of its own (there is no `fields`\ncollection: the ENGINE does not read one, and `rename-field` was the only capability it would buy):\n add-field <collection> --name <field> [--type <type>] [--many] [--required]\n [--enum a,b] [--default-value v] [--unique] [--mirror-of <field>]\n [--on-delete restrict|set-null] [--soft] [--sensitive] [--body]\n [--description \"\u2026\"] [--module <m>]\n types: string markdown boolean integer number date datetime url email\n reference map position, a collection name (a reference), or\n a,b for a union of collections (an object's sub-fields are\n authored in the descriptor). --many makes it a list; a\n date-time may be written as \"2026-07-28 12:00\" and the local\n offset is stamped on for you.\n --mirror-of <field> makes this the generated, read-only mirror of the\n --type collection's <field>, which references this one; a unique key\n mirrors as one record, any other as a list.\n --soft lets a reference name a record that does not exist (yet); the\n value must still name one of its collections.\n --body marks the field a record's PROSE lands in (the text after the\n frontmatter): --type markdown, one per collection, and it stays last.\n A field the collection's module does not own lands in an OVERLAY\n (--module names the module; it must depend on the owner).\n set-field <collection> --name <field> [the add-field flags] [--module <m>]\n (each flag changes the key it names and nothing else; an empty value\n clears it \u2014 --enum= --default-value= \u2014 and false clears a switch \u2014\n --unique false. set-field never moves a field.)\n rm-field <collection> --name <field> [--module <m>] [--dry-run]\n (clears the field's VALUES in the same write, and reports the count;\n prunes it from its own columns, sort, badge and sections, and refuses\n naming every other position that still names it)\n rename-field <collection> --name <field> --to <new-name> [--dry-run]\n (rewrites the key in every record AND every position that names the\n field: the collection's sources, templates, ids.from, display,\n constraints, storage.under.parent, a mirror's mirror_of, a ui-view's\n filter and display, a binding's conditions. ONE commit; a position it\n cannot rewrite is refused by name, and --dry-run lists each one)\n rename-value <collection> <field> <old> <new> [--dry-run]\n (renames one enum value: the enum, its default, a constraint's const or\n enum, view filters, binding conditions and every record. ONE commit)\n\nEvery <collection> above may be spelled in the SINGULAR: dt add task \u2026, dt get task/<id>,\ndt list meeting-analysis, dt add-field task \u2026. The singular is derived from the descriptor\n(tasks \u2192 task, companies \u2192 company) and authored on it as singular: where inflection is\nwrong (people \u2192 person); compile refuses two collections whose words collide. A REFERENCE\ninside a record still names the collection in full \u2014 tasks/kickoff, never task/kickoff.\n\nEvery verb that MOVES records or CLEARS values takes --dry-run and prints its plan first:\n records N \u00B7 refs M \u00B7 descriptors K \u00B7 values cleared V\n\nworkspace verbs:\n init from a folder to a workspace in ONE command: pins the engine that runs it (exactly),\n writes the skeleton, installs, compiles, checks, runs the safe part of any declared\n module's setup, makes the folder a git repository when it is not one and commits what\n it wrote (inside a repository: the same scoped commit, your staged work untouched).\n Refused before any write: an engine of another version declared, locked or installed\n (never upgraded \u2014 dt update --engine), and a path it writes that links out of the\n folder. Re-run it to resume \u2014 a repeat changes nothing.\n [--no-git] [--git <remote-url>] (adds origin, never pushes) [--no-compile]\n [--from <dir>] (a preset's missing packages from a folder of tarballs, offline)\n [--input <id>=<value>]\u2026 [--allow <kind>]\u2026 [--no-input] (a preset's setup, as `setup`)\n [--harnesses claude-code,codex,pi,gemini-cli,cursor] [--workspace_module <name>]\n --version print the engine version (works anywhere)\n install make THIS checkout ready \u2014 the engine, .env (linked from the primary when this is a\n worktree), declared local assets, compile, and a declared postinstall.\n Idempotent: it prints a board of what it found and what it did\n [--dry-run] plan only [--json] the board as data\n [--link-env] link .env even into a worktree OUTSIDE the primary root\n install --hook | --print-adapters\n --hook: read a harness hook's JSON payload from stdin and install the checkout its\n `cwd` names \u2014 the process cwd is the harness's, never the worktree's\n --print-adapters: print the hook snippet for each declared harness, with every hook an\n installed extension adds. Merging it into the harness's own settings file is the\n operator's act \u2014 the engine never writes one\n install repos/<id> | repos --all [--json]\n materialize an attached repo's working tree ON DEMAND \u2014 never as part of making a\n checkout ready; --all is the explicit opt-in, e.g. before going offline\n install <spec>\u2026 [--from <dir>] bring a MODULE in: a name, name@version, ./file.tgz,\n ./folder (a development link) or a git URL \u2014 installs it and every module its\n dreamteamer.dependencies names, and a module preset's members at the versions it pins\n (refusing, before npm writes anything, a package with no dreamteamer key, an engine\n floor this engine does not meet, a ring, and a version installed differently), pins\n exact versions, compiles, merges the shipped nav fragments into nav.yaml, runs the\n safe part of the module's setup and commits package.json, package-lock.json, nav.yaml\n and what setup wrote. Without a version: npm's latest. --from resolves names from a\n folder of tarballs (offline). Old nav settings with no nav.yaml refuse a package that\n ships a nav fragment until migrated; [--allow nav-reset] starts from the fragments.\n Setup flags as for `setup`: [--input <id>=<value>]\u2026 [--allow <kind>]\u2026 [--no-input];\n [--no-commit] [--json]\n Exit 0 done \u00B7 1 refused or failed (nothing half-written) \u00B7 2 usage \u00B7 3 input missing\n update <name>[@<version>] | --engine move ONE npm pin forward on purpose: to the latest\n release (or the named version), re-pinned exactly, closure-checked as install is,\n compiled, committed; a module preset moves its installed members to its new pins.\n A downgrade needs [--allow downgrade]; old nav settings with no nav.yaml refuse a\n module update until migrated, or [--allow nav-reset]; a development link is skipped\n and named; [--from <dir>] resolves from a folder of tarballs; [--no-commit]\n compile materialize modules + workspace sources into .dreamteamer (+ harness adapters)\n [--watch] recompile on source changes\n check validate every record against the compiled descriptors (report-only), then every\n installed extension's own checks. A reference no record here answers is external when\n the workspace's exports manifest vouches for it. nav.yaml: a name that resolves to\n nothing or is listed twice is a \u26A0 line, never a violation\n [--strict-export] makes a stale manifest a violation\n modules/<id> --alone: is that inline module publishable \u2014 packed, installed into a fresh\n workspace on this engine with only its declared dependencies, compiled, checked; exit 0\n publishable, 1 refused naming why, 2 usage [--keep] leaves the temp workspace\n exports bring this workspace's dreamteamer-exports.json level with its records \u2014 drop each entry\n for an id a record here now holds, or (when every record is read) one nothing\n references \u2014 and commit that one file [--dry-run] [--json]\n doctor what works on this machine \u2014 the engine, then each extension's checks \u2014 as one board:\n READY / DEGRADED / UNAVAILABLE, each fix on its row. Exit 0 [--strict] exit 1 when\n anything is UNAVAILABLE [--json]\n setup [<unit>] drive the setup a module declares \u2014 resume, repair, verify, sign in. The\n engine names no module: a unit is what an installed package contributes (dt status\n lists them). Inputs: [--input <id>=<value>]\u2026 (or <unit>.<id>=; then the environment,\n then the declared default; a terminal asks for what is still missing, [--no-input]\n never asks \u2192 exit 3 with the ids). Effects: workspace-file writes run; download,\n network and machine ask y/n in a terminal or run under [--allow <kind>]\u2026; an account\n step (sign-in, consent) runs only under [--authorize], in a terminal. [--verify] runs\n the unit's live check and writes its receipt. [--skip] records the skip in\n package.json (dt setup <unit> clears it). [--json] the result as data.\n Exit 0 done (pending and blocked steps printed) \u00B7 1 a unit's apply failed \u00B7 2 usage \u00B7 3 a required input missing\n status workspace status: compiled runtime freshness, per-module channel/ref, staleness\n run <module> [<script> [<arg>\u2026]] run a script a module declares (dreamteamer.scripts) by\n NAME, never by its path inside the package: on this node, at the workspace root, every\n argument after the script passed to it untouched, its exit code returned. The module is\n its package name or its id; modules/<id> shadows the installed package, as for\n extensions. Without a script: list the module's scripts.\n Exit: the script's \u00B7 1 no such module, script or file \u00B7 2 usage\n\n changes the records created / updated / deleted in every repo that holds records \u2014\n grouped by collection, each with its path and whether it is committed. Its first line is the report a reply ends with\n [--since <sha|YYYY-MM-DD>] (default: HEAD \u2014 what is written but not committed;\n a sha or date adds the commits since then, e.g. --since HEAD~1) [--json]\n commit publish records already written to disk: samples git status over every\n collection's record dirs, one commit PER REPO, subject composed from the\n status letters. Scope it with any number of targets, each either a whole\n <collection> or one <collection>/<id> \u2014 the record form is what keeps a\n concurrent session's pending records out of your commit. Ends with the same\n record report `changes` prints, for what it published.\n [<collection>|<collection>/<id> \u2026] [-m <subject>] [--dry-run] [--json]\n help this text\n\nextension verbs \u2014 an extension (a module that also ships code: its package.json declares\n`dreamteamer.extension`) adds its own verbs, listed below when this workspace has any.\n";
|
|
1
|
+
export declare const USAGE = "usage: dreamteamer <verb> [<target>] [flags]\n\n --workspace, -w <path>\n run the verb in another workspace. The path resolves from the\n directory you typed it in; every other path in the command resolves inside the\n target. The working directory is unchanged, and the flag reaches this command\n only: a process it starts resolves its own workspace from its own directory.\n --vault <path> deprecated \u2014 the old spelling of --workspace, still honoured.\n\nrecord verbs (hard validation \u2014 invalid writes are rejected before disk).\nA <target> is either a collection name or a <collection>/<id> reference; the reference splits at\nthe longest DECLARED collection prefix, so finance/transactions/2026/03/coffee is ONE argument:\n list <collection> [--filter k=v] [--where <json>] [--sort [-]<field>] [--json]\n (--filter is ONE condition \u2014 repeat it to AND more\n (--filter a=1 --filter b=2 wants both);\n anything compound goes in one --where, operator\n objects e.g. '{\"starts\":{\"_gte\":\"2026-07-01\"}}' \u2014\n operators: _eq _neq _lt _lte _gt _gte _in _nin\n _null _empty _contains _starts_with _ends_with\n _between _regex _and _or, plus _n*/_i* negated and\n case-insensitive variants; date-times sort and\n compare as instants, across offsets; an enum\n sorts in its declared order)\n get <collection>/<id> [--json] (--json, and each list --json row, adds $file and\n $repo: where the record is read from and the repo\n that commits it \u2014 null outside every repo here)\n add <collection> [\"<title>\"] --<field> <value> \u2026 [--id <explicit-id>]\n (ONE bare positional fills the collection's title\n field \u2014 the one its record_title opens with \u2014 so\n dt add task \"call the bank\" is\n dt add tasks --name \"call the bank\".\n a format: binary collection takes --from <path>\n instead \u2014 the file IS the record, fields derive;\n --force replaces an existing file record.\n A repeated --<field> is one ELEMENT of an array\n field \u2014 refused on a scalar one; a single value\n still splits on commas)\n set <collection>/<id> <field>=<value> \u2026 (repeating a pair adds an element, exactly as a\n repeated --<field> does)\n rm <collection>/<id> [--force]\n rename <collection>/<id> <new-id> (rewrites all inbound refs in one WRITE \u2014\n commit publishes the set together)\n reorder <collection>/<id> --after|--before <id> | --top | --bottom\n reorder <collection> --init (place every record that has no position yet \u2014 the collection's `type: position` field)\n values <collection> <field> [--limit n] (the vocabulary a field actually uses \u2014\n what a filter/validator offers as choices)\n history <collection>/<id> [--json] (git revisions of this record, newest first)\n diff <collection>/<id> [--hash <sha>] (the patch one revision applied; defaults to HEAD)\n revert <collection>/<id> --hash <sha> (restore the content at <sha> as a pending write)\n next <collection>[/<id>] [--ids <id>,\u2026] (which bound commands apply, and in which state:\n available / done / not-applicable \u2014 what can\n happen to this record next)\n relations [<collection>] (every two-way pair: owner.field \u2192 target.mirror)\n relations rebuild <collection> [--drop <f>] (regenerate mirror VALUES from the owning side;\n --drop removes a stale ex-mirror key from records)\n relocate <target> [--dry-run] [--json] (move record FILES to where the compiled descriptor\n puts them \u2014 a record stored under another\n collection (storage.under) whose folder disagrees\n with its owner field, or a file record in a\n collection that became shape: folder. Ids and\n references never change; a pending edit on a\n moved file, or a dangling owner, refuses the whole\n plan \u2014 commit, or fix the field, first)\n relocate <collection> --to-root [--dry-run] (the REVERSE: every placed record back into the\n collection's own folder, ids unchanged \u2014 the step\n before removing or changing storage.under)\n resolve '<string>' | <collection>/<id> <field>\n (render ${env:NAME} \u00B7 ${workspaceFolder} \u00B7\n ${userHome} \u2014 the ONLY substitution point; a\n record keeps the template verbatim. An array\n field prints one item per line)\n\nsystem verbs \u2014 the SAME verbs, on the entities the compiler materializes (modules, collections,\nskills, agents, commands, command-bindings, ui-views, mixins, and any kind an\ninstalled extension adds). \u26A0 ONE\ndifference in POLICY, not in spelling: a SYSTEM write commits itself, because an uncompilable or\nunpublished schema is not a state a workspace should sit in; a RECORD write does not \u2014 `commit`\npublishes it. The commit lands in the repo that holds the source, so a write into a module that\nis a repo of its own commits there.\n add collections --name <name> [--module <m>] [--namespace <ns>] [--mixins docs,\u2026]\n [--id-from '{{ \u2026 }}'] [--description \"\u2026\"] [--suffix <s>]\n (--namespace health --name doctors === --name\n health/doctors; a module declaring exactly ONE\n namespace infers it, and the resolved name is echoed.\n --namespace '' means no namespace)\n add modules --name <id> [--description \"\u2026\"] [--namespace <ns>] [--extension] [--package <npm name>]\n (modules/<id>/ + every kind folder + package.json + README.md,\n floored on this engine. --namespace DECLARES it in the module\n (\u00A78), so every later `add collections --module <id>` infers it.\n --extension adds src/extension.js with a one-token setup unit;\n --package names it for npm and makes it publishable \u2014 the\n folder stays the id. Without it, folder = package name = id.)\n add skills --name <id> --description \"\u2026\" (skills/<id>/SKILL.md \u2014 --description is required,\n because an undescribed skill is undiscoverable)\n add ui-views --route </route> --scope collection --collection collections/<c>\n [--id <id>] [display.list.layout=<id>] [k.v=\u2026]\n set <system>/<id> <field>=<value> \u2026 (collections: description \u00B7 use_when \u00B7 title \u00B7\n singular \u00B7 record_title \u00B7 sensitive \u00B7 internal \u00B7\n display.nav.icon \u00B7 display.nav.order \u00B7\n display.nav.section \u00B7 display.list.columns \u00B7\n display.list.sort, plus module=<m>, which MOVES it.\n modules: description \u00B7 namespaces \u00B7 dependencies \u00B7\n peer_collections, record-shaped (modules/core).\n ui-views: dotted keys \u2014 display.list.sort=-date. An\n empty value REMOVES the key; quote it to write the\n empty string itself ('display.list.sort=\"\"').\n skills/agents/commands/\u2026: frontmatter keys)\n rm <system>/<id> [--force] [--dry-run]\n rename <system>/<id> <new-id> (a collection's rename moves its records, re-suffixes\n the files and rewrites every inbound ref, ONE commit)\n reorder collections/<c> \u2026 (refused since 0.49: the nav's order is nav.yaml \u2014 the\n sidebar's Move entries or a hand edit; display.nav.order\n compiles and moves no row)\n get collections/<c> [--module <m>] (--module prints ONE module's source contribution\n rather than the merged descriptor)\n list modules | collections | skills | \u2026 (id \u00B7 location \u00B7 path \u00B7 namespaces \u00B7 package name)\n revert <system>/<id> (refused: its source is in git \u2014\n `git checkout <sha> -- <path>` then `dt compile`)\n fmt [<collection>] [--dry-run] (collection and mixin sources in block style, top-level\n keys in canonical order; fields, the keys inside a\n field and every comment stay where they are. Sources\n under node_modules/ are skipped)\n\nfield verbs \u2014 a field is the one sub-entity, and it has verbs of its own (there is no `fields`\ncollection: the ENGINE does not read one, and `rename-field` was the only capability it would buy):\n add-field <collection> --name <field> [--type <type>] [--many] [--required]\n [--enum a,b] [--default-value v] [--unique] [--mirror-of <field>]\n [--on-delete restrict|set-null] [--soft] [--sensitive] [--body]\n [--description \"\u2026\"] [--module <m>]\n types: string markdown html boolean integer number date datetime url\n email reference map position, a collection name (a reference), or\n a,b for a union of collections (an object's sub-fields are\n authored in the descriptor). --many makes it a list; a\n date-time may be written as \"2026-07-28 12:00\" and the local\n offset is stamped on for you.\n --mirror-of <field> makes this the generated, read-only mirror of the\n --type collection's <field>, which references this one; a unique key\n mirrors as one record, any other as a list.\n --soft lets a reference name a record that does not exist (yet); the\n value must still name one of its collections.\n --body marks the field a record's PROSE lands in (the text after the\n frontmatter): --type markdown, one per collection, and it stays last.\n A field the collection's module does not own lands in an OVERLAY\n (--module names the module; it must depend on the owner).\n set-field <collection> --name <field> [the add-field flags] [--module <m>]\n (each flag changes the key it names and nothing else; an empty value\n clears it \u2014 --enum= --default-value= \u2014 and false clears a switch \u2014\n --unique false. set-field never moves a field.)\n rm-field <collection> --name <field> [--module <m>] [--dry-run]\n (clears the field's VALUES in the same write, and reports the count;\n prunes it from its own columns, sort, badge and sections, and refuses\n naming every other position that still names it)\n rename-field <collection> --name <field> --to <new-name> [--dry-run]\n (rewrites the key in every record AND every position that names the\n field: the collection's sources, templates, ids.from, display,\n constraints, storage.under.parent, a mirror's mirror_of, a ui-view's\n filter and display, a binding's conditions. ONE commit; a position it\n cannot rewrite is refused by name, and --dry-run lists each one)\n rename-value <collection> <field> <old> <new> [--dry-run]\n (renames one enum value: the enum, its default, a constraint's const or\n enum, view filters, binding conditions and every record. ONE commit)\n\nEvery <collection> above may be spelled in the SINGULAR: dt add task \u2026, dt get task/<id>,\ndt list meeting-analysis, dt add-field task \u2026. The singular is derived from the descriptor\n(tasks \u2192 task, companies \u2192 company) and authored on it as singular: where inflection is\nwrong (people \u2192 person); compile refuses two collections whose words collide. A REFERENCE\ninside a record still names the collection in full \u2014 tasks/kickoff, never task/kickoff.\n\nEvery verb that MOVES records or CLEARS values takes --dry-run and prints its plan first:\n records N \u00B7 refs M \u00B7 descriptors K \u00B7 values cleared V\n\nworkspace verbs:\n init from a folder to a workspace in ONE command: pins the engine that runs it (exactly),\n writes the skeleton, installs, compiles, checks, runs the safe part of any declared\n module's setup, makes the folder a git repository when it is not one and commits what\n it wrote (inside a repository: the same scoped commit, your staged work untouched).\n Refused before any write: an engine of another version declared, locked or installed\n (never upgraded \u2014 dt update --engine), and a path it writes that links out of the\n folder. Re-run it to resume \u2014 a repeat changes nothing.\n [--no-git] [--git <remote-url>] (adds origin, never pushes) [--no-compile]\n [--from <dir>] (a preset's missing packages from a folder of tarballs, offline)\n [--input <id>=<value>]\u2026 [--allow <kind>]\u2026 [--no-input] (a preset's setup, as `setup`)\n [--harnesses claude-code,codex,pi,gemini-cli,cursor] [--workspace_module <name>]\n --version print the engine version (works anywhere)\n install make THIS checkout ready \u2014 the engine, .env (linked from the primary when this is a\n worktree), declared local assets, compile, and a declared postinstall.\n Idempotent: it prints a board of what it found and what it did\n [--dry-run] plan only [--json] the board as data\n [--link-env] link .env even into a worktree OUTSIDE the primary root\n install --hook | --print-adapters\n --hook: read a harness hook's JSON payload from stdin and install the checkout its\n `cwd` names \u2014 the process cwd is the harness's, never the worktree's\n --print-adapters: print the hook snippet for each declared harness, with every hook an\n installed extension adds. Merging it into the harness's own settings file is the\n operator's act \u2014 the engine never writes one\n install repos/<id> | repos --all [--json]\n materialize an attached repo's working tree ON DEMAND \u2014 never as part of making a\n checkout ready; --all is the explicit opt-in, e.g. before going offline\n install <spec>\u2026 [--from <dir>] bring a MODULE in: a name, name@version, ./file.tgz,\n ./folder (a development link) or a git URL \u2014 installs it and every module its\n dreamteamer.dependencies names, and a module preset's members at the versions it pins\n (refusing, before npm writes anything, a package with no dreamteamer key, an engine\n floor this engine does not meet, a ring, and a version installed differently), pins\n exact versions, compiles, merges the shipped nav fragments into nav.yaml, runs the\n safe part of the module's setup and commits package.json, package-lock.json, nav.yaml\n and what setup wrote. Without a version: npm's latest. --from resolves names from a\n folder of tarballs (offline). Old nav settings with no nav.yaml refuse a package that\n ships a nav fragment until migrated; [--allow nav-reset] starts from the fragments.\n Setup flags as for `setup`: [--input <id>=<value>]\u2026 [--allow <kind>]\u2026 [--no-input];\n [--no-commit] [--json]\n Exit 0 done \u00B7 1 refused or failed (nothing half-written) \u00B7 2 usage \u00B7 3 input missing\n update --check [--json] list the engine and every npm module: installed \u2192 latest\n update --all move every outdated pin forward: the engine first, then each\n module, by the engine just installed; each step as below\n update <name>[@<version>] | --engine move ONE npm pin forward on purpose: to the latest\n release (or the named version), re-pinned exactly, closure-checked as install is,\n compiled, committed; a module preset moves its installed members to its new pins.\n A downgrade needs [--allow downgrade]; old nav settings with no nav.yaml refuse a\n module update until migrated, or [--allow nav-reset]; a development link is skipped\n and named; [--from <dir>] resolves from a folder of tarballs; [--no-commit]\n compile materialize modules + workspace sources into .dreamteamer (+ harness adapters)\n [--watch] recompile on source changes\n check validate every record against the compiled descriptors (report-only), then every\n installed extension's own checks. A reference no record here answers is external when\n the workspace's exports manifest vouches for it. nav.yaml: a name that resolves to\n nothing or is listed twice is a \u26A0 line, never a violation\n [--strict-export] makes a stale manifest a violation\n modules/<id> --alone: is that inline module publishable \u2014 packed, installed into a fresh\n workspace on this engine with only its declared dependencies, compiled, checked; exit 0\n publishable, 1 refused naming why, 2 usage [--keep] leaves the temp workspace\n exports bring this workspace's dreamteamer-exports.json level with its records \u2014 drop each entry\n for an id a record here now holds, or (when every record is read) one nothing\n references \u2014 and commit that one file [--dry-run] [--json]\n doctor what works on this machine \u2014 the engine, then each extension's checks \u2014 as one board:\n READY / DEGRADED / UNAVAILABLE, each fix on its row. Exit 0 [--strict] exit 1 when\n anything is UNAVAILABLE [--json]\n setup [<unit>] drive the setup a module declares \u2014 resume, repair, verify, sign in. The\n engine names no module: a unit is what an installed package contributes (dt status\n lists them). Inputs: [--input <id>=<value>]\u2026 (or <unit>.<id>=; then the environment,\n then the declared default; a terminal asks for what is still missing, [--no-input]\n never asks \u2192 exit 3 with the ids). Effects: workspace-file writes run; download,\n network and machine ask y/n in a terminal or run under [--allow <kind>]\u2026; an account\n step (sign-in, consent) runs only under [--authorize], in a terminal. [--verify] runs\n the unit's live check and writes its receipt. [--skip] records the skip in\n package.json (dt setup <unit> clears it). [--json] the result as data.\n Exit 0 done (pending and blocked steps printed) \u00B7 1 a unit's apply failed \u00B7 2 usage \u00B7 3 a required input missing\n status workspace status: compiled runtime freshness, per-module channel/ref, staleness\n run <module> [<script> [<arg>\u2026]] run a script a module declares (dreamteamer.scripts) by\n NAME, never by its path inside the package: on this node, at the workspace root, every\n argument after the script passed to it untouched, its exit code returned. The module is\n its package name or its id; modules/<id> shadows the installed package, as for\n extensions. Without a script: list the module's scripts.\n Exit: the script's \u00B7 1 no such module, script or file \u00B7 2 usage\n\n changes the records created / updated / deleted in every repo that holds records \u2014\n grouped by collection, each with its path and whether it is committed. Its first line is the report a reply ends with\n [--since <sha|YYYY-MM-DD>] (default: HEAD \u2014 what is written but not committed;\n a sha or date adds the commits since then, e.g. --since HEAD~1) [--json]\n commit publish records already written to disk: samples git status over every\n collection's record dirs, one commit PER REPO, subject composed from the\n status letters. Scope it with any number of targets, each either a whole\n <collection> or one <collection>/<id> \u2014 the record form is what keeps a\n concurrent session's pending records out of your commit. Ends with the same\n record report `changes` prints, for what it published.\n [<collection>|<collection>/<id> \u2026] [-m <subject>] [--dry-run] [--json]\n help this text\n\nextension verbs \u2014 an extension (a module that also ships code: its package.json declares\n`dreamteamer.extension`) adds its own verbs, listed below when this workspace has any.\n";
|
package/dist/usage.js
CHANGED
|
@@ -131,8 +131,8 @@ collection: the ENGINE does not read one, and \`rename-field\` was the only capa
|
|
|
131
131
|
[--enum a,b] [--default-value v] [--unique] [--mirror-of <field>]
|
|
132
132
|
[--on-delete restrict|set-null] [--soft] [--sensitive] [--body]
|
|
133
133
|
[--description "…"] [--module <m>]
|
|
134
|
-
types: string markdown boolean integer number date datetime url
|
|
135
|
-
reference map position, a collection name (a reference), or
|
|
134
|
+
types: string markdown html boolean integer number date datetime url
|
|
135
|
+
email reference map position, a collection name (a reference), or
|
|
136
136
|
a,b for a union of collections (an object's sub-fields are
|
|
137
137
|
authored in the descriptor). --many makes it a list; a
|
|
138
138
|
date-time may be written as "2026-07-28 12:00" and the local
|
|
@@ -213,6 +213,9 @@ workspace verbs:
|
|
|
213
213
|
Setup flags as for \`setup\`: [--input <id>=<value>]… [--allow <kind>]… [--no-input];
|
|
214
214
|
[--no-commit] [--json]
|
|
215
215
|
Exit 0 done · 1 refused or failed (nothing half-written) · 2 usage · 3 input missing
|
|
216
|
+
update --check [--json] list the engine and every npm module: installed → latest
|
|
217
|
+
update --all move every outdated pin forward: the engine first, then each
|
|
218
|
+
module, by the engine just installed; each step as below
|
|
216
219
|
update <name>[@<version>] | --engine move ONE npm pin forward on purpose: to the latest
|
|
217
220
|
release (or the named version), re-pinned exactly, closure-checked as install is,
|
|
218
221
|
compiled, committed; a module preset moves its installed members to its new pins.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dreamteamer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "A workspace compiler for coding agents — schema-validated records as plain files over git, compiled into every harness",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Gilad Khen <giladkhen@gmail.com>",
|
|
@@ -66,6 +66,7 @@ The top-level keys, closed (any other is a compile error naming the list):
|
|
|
66
66
|
| `type` | stores | notes |
|
|
67
67
|
|---|---|---|
|
|
68
68
|
| `string` · `markdown` | text | `markdown` with `body: true` is the record's prose, one per collection, kept last |
|
|
69
|
+
| `html` | a static page, as written | at most its `maxLength`, else 204,800 characters; never validated as markup, and a surface that draws it decides what may run |
|
|
69
70
|
| `boolean` · `integer` · `number` | as named | |
|
|
70
71
|
| `date` · `datetime` | `2026-10-02` · an instant with its offset | the CLI stamps the local offset on `"2026-10-02 12:00"` |
|
|
71
72
|
| `url` · `email` | text, format-checked | |
|