@metaobjectsdev/cli 1.0.12 → 1.1.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/README.md +32 -22
- package/dist/bin/meta.js +14 -2
- package/dist/bin/meta.js.map +1 -1
- package/dist/src/commands/docs.d.ts +1 -14
- package/dist/src/commands/docs.d.ts.map +1 -1
- package/dist/src/commands/docs.js +11 -835
- package/dist/src/commands/docs.js.map +1 -1
- package/dist/src/commands/eject.d.ts +24 -1
- package/dist/src/commands/eject.d.ts.map +1 -1
- package/dist/src/commands/eject.js +240 -69
- package/dist/src/commands/eject.js.map +1 -1
- package/dist/src/commands/gen.d.ts +7 -0
- package/dist/src/commands/gen.d.ts.map +1 -1
- package/dist/src/commands/gen.js +91 -21
- package/dist/src/commands/gen.js.map +1 -1
- package/dist/src/commands/generator.js +2 -2
- package/dist/src/commands/generator.js.map +1 -1
- package/dist/src/commands/init.d.ts +7 -0
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +71 -36
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/migrate.d.ts +1 -1
- package/dist/src/commands/migrate.d.ts.map +1 -1
- package/dist/src/commands/migrate.js +224 -125
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/types.d.ts.map +1 -1
- package/dist/src/commands/types.js +16 -2
- package/dist/src/commands/types.js.map +1 -1
- package/dist/src/commands/upgrade.d.ts.map +1 -1
- package/dist/src/commands/upgrade.js +4 -1
- package/dist/src/commands/upgrade.js.map +1 -1
- package/dist/src/commands/verify.d.ts.map +1 -1
- package/dist/src/commands/verify.js +189 -125
- package/dist/src/commands/verify.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +59 -72
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/agent-context-staleness.d.ts +8 -1
- package/dist/src/lib/agent-context-staleness.d.ts.map +1 -1
- package/dist/src/lib/agent-context-staleness.js +20 -5
- package/dist/src/lib/agent-context-staleness.js.map +1 -1
- package/dist/src/lib/agent-schema.d.ts +9 -0
- package/dist/src/lib/agent-schema.d.ts.map +1 -0
- package/dist/src/lib/agent-schema.js +61 -0
- package/dist/src/lib/agent-schema.js.map +1 -0
- package/dist/src/lib/allow.d.ts +6 -0
- package/dist/src/lib/allow.d.ts.map +1 -1
- package/dist/src/lib/allow.js +49 -5
- package/dist/src/lib/allow.js.map +1 -1
- package/dist/src/lib/anti-patterns.d.ts.map +1 -1
- package/dist/src/lib/anti-patterns.js +4 -2
- package/dist/src/lib/anti-patterns.js.map +1 -1
- package/dist/src/lib/args.d.ts +51 -10
- package/dist/src/lib/args.d.ts.map +1 -1
- package/dist/src/lib/args.js +44 -18
- package/dist/src/lib/args.js.map +1 -1
- package/dist/src/lib/catalog-listing.d.ts +21 -1
- package/dist/src/lib/catalog-listing.d.ts.map +1 -1
- package/dist/src/lib/catalog-listing.js +85 -16
- package/dist/src/lib/catalog-listing.js.map +1 -1
- package/dist/src/lib/catalog.d.ts +30 -0
- package/dist/src/lib/catalog.d.ts.map +1 -1
- package/dist/src/lib/catalog.js +40 -5
- package/dist/src/lib/catalog.js.map +1 -1
- package/dist/src/lib/codegen-drift.d.ts +31 -2
- package/dist/src/lib/codegen-drift.d.ts.map +1 -1
- package/dist/src/lib/codegen-drift.js +109 -4
- package/dist/src/lib/codegen-drift.js.map +1 -1
- package/dist/src/lib/collection-load-options.d.ts +1 -1
- package/dist/src/lib/collection-load-options.d.ts.map +1 -1
- package/dist/src/lib/collection-load-options.js +1 -0
- package/dist/src/lib/collection-load-options.js.map +1 -1
- package/dist/src/lib/config.d.ts +4 -2
- package/dist/src/lib/config.d.ts.map +1 -1
- package/dist/src/lib/config.js +4 -2
- package/dist/src/lib/config.js.map +1 -1
- package/dist/src/lib/decimal-precision-advisory.d.ts +10 -0
- package/dist/src/lib/decimal-precision-advisory.d.ts.map +1 -0
- package/dist/src/lib/decimal-precision-advisory.js +34 -0
- package/dist/src/lib/decimal-precision-advisory.js.map +1 -0
- package/dist/src/lib/deprecation-lint.d.ts.map +1 -1
- package/dist/src/lib/deprecation-lint.js +17 -26
- package/dist/src/lib/deprecation-lint.js.map +1 -1
- package/dist/src/lib/docs-removed.d.ts +13 -0
- package/dist/src/lib/docs-removed.d.ts.map +1 -0
- package/dist/src/lib/docs-removed.js +31 -0
- package/dist/src/lib/docs-removed.js.map +1 -0
- package/dist/src/lib/docs-site-eject.d.ts +13 -0
- package/dist/src/lib/docs-site-eject.d.ts.map +1 -0
- package/dist/src/lib/docs-site-eject.js +40 -0
- package/dist/src/lib/docs-site-eject.js.map +1 -0
- package/dist/src/lib/field-lint.d.ts +25 -0
- package/dist/src/lib/field-lint.d.ts.map +1 -0
- package/dist/src/lib/field-lint.js +102 -0
- package/dist/src/lib/field-lint.js.map +1 -0
- package/dist/src/lib/fk-index-advisory.d.ts +1 -2
- package/dist/src/lib/fk-index-advisory.d.ts.map +1 -1
- package/dist/src/lib/fk-index-advisory.js +4 -3
- package/dist/src/lib/fk-index-advisory.js.map +1 -1
- package/dist/src/lib/format.d.ts +7 -0
- package/dist/src/lib/format.d.ts.map +1 -1
- package/dist/src/lib/format.js +13 -0
- package/dist/src/lib/format.js.map +1 -1
- package/dist/src/lib/gen-migrate-advice.d.ts +3 -1
- package/dist/src/lib/gen-migrate-advice.d.ts.map +1 -1
- package/dist/src/lib/gen-migrate-advice.js +3 -4
- package/dist/src/lib/gen-migrate-advice.js.map +1 -1
- package/dist/src/lib/install-set.d.ts +10 -1
- package/dist/src/lib/install-set.d.ts.map +1 -1
- package/dist/src/lib/install-set.js +20 -2
- package/dist/src/lib/install-set.js.map +1 -1
- package/dist/src/lib/load-metaobjects-config.d.ts +13 -11
- package/dist/src/lib/load-metaobjects-config.d.ts.map +1 -1
- package/dist/src/lib/load-metaobjects-config.js +53 -75
- package/dist/src/lib/load-metaobjects-config.js.map +1 -1
- package/dist/src/lib/manifest-ignored-check.d.ts +4 -1
- package/dist/src/lib/manifest-ignored-check.d.ts.map +1 -1
- package/dist/src/lib/manifest-ignored-check.js +9 -4
- package/dist/src/lib/manifest-ignored-check.js.map +1 -1
- package/dist/src/lib/output.d.ts +15 -0
- package/dist/src/lib/output.d.ts.map +1 -1
- package/dist/src/lib/output.js +9 -1
- package/dist/src/lib/output.js.map +1 -1
- package/dist/src/lib/payload-field-tree.d.ts +4 -5
- package/dist/src/lib/payload-field-tree.d.ts.map +1 -1
- package/dist/src/lib/payload-field-tree.js +16 -31
- package/dist/src/lib/payload-field-tree.js.map +1 -1
- package/dist/src/lib/requirement-check.d.ts +7 -0
- package/dist/src/lib/requirement-check.d.ts.map +1 -1
- package/dist/src/lib/requirement-check.js +14 -7
- package/dist/src/lib/requirement-check.js.map +1 -1
- package/dist/src/lib/strict-args.d.ts +28 -0
- package/dist/src/lib/strict-args.d.ts.map +1 -0
- package/dist/src/lib/strict-args.js +49 -0
- package/dist/src/lib/strict-args.js.map +1 -0
- package/dist/src/lib/template-eject.d.ts +108 -0
- package/dist/src/lib/template-eject.d.ts.map +1 -0
- package/dist/src/lib/template-eject.js +438 -0
- package/dist/src/lib/template-eject.js.map +1 -0
- package/dist/src/lib/version.d.ts +9 -0
- package/dist/src/lib/version.d.ts.map +1 -1
- package/dist/src/lib/version.js +15 -0
- package/dist/src/lib/version.js.map +1 -1
- package/package.json +10 -10
- package/src/commands/docs.ts +11 -952
- package/src/commands/eject.ts +318 -73
- package/src/commands/gen.ts +94 -22
- package/src/commands/generator.ts +2 -2
- package/src/commands/init.ts +80 -38
- package/src/commands/migrate.ts +248 -117
- package/src/commands/types.ts +18 -2
- package/src/commands/upgrade.ts +5 -1
- package/src/commands/verify.ts +229 -136
- package/src/index.ts +59 -72
- package/src/lib/agent-context-staleness.ts +20 -5
- package/src/lib/agent-schema.ts +74 -0
- package/src/lib/allow.ts +57 -6
- package/src/lib/anti-patterns.ts +4 -2
- package/src/lib/args.ts +83 -28
- package/src/lib/catalog-listing.ts +105 -25
- package/src/lib/catalog.ts +51 -6
- package/src/lib/codegen-drift.ts +138 -3
- package/src/lib/collection-load-options.ts +2 -1
- package/src/lib/config.ts +5 -3
- package/src/lib/decimal-precision-advisory.ts +50 -0
- package/src/lib/deprecation-lint.ts +16 -24
- package/src/lib/docs-removed.ts +41 -0
- package/src/lib/docs-site-eject.ts +48 -0
- package/src/lib/field-lint.ts +122 -0
- package/src/lib/fk-index-advisory.ts +4 -4
- package/src/lib/format.ts +12 -0
- package/src/lib/gen-migrate-advice.ts +6 -4
- package/src/lib/install-set.ts +20 -1
- package/src/lib/load-metaobjects-config.ts +57 -78
- package/src/lib/manifest-ignored-check.ts +14 -10
- package/src/lib/output.ts +18 -1
- package/src/lib/payload-field-tree.ts +18 -35
- package/src/lib/requirement-check.ts +21 -6
- package/src/lib/strict-args.ts +52 -0
- package/src/lib/template-eject.ts +526 -0
- package/src/lib/version.ts +18 -0
- package/dist/src/lib/docs-drift.d.ts +0 -42
- package/dist/src/lib/docs-drift.d.ts.map +0 -1
- package/dist/src/lib/docs-drift.js +0 -264
- package/dist/src/lib/docs-drift.js.map +0 -1
- package/src/lib/docs-drift.ts +0 -312
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ The MetaObjects CLI — scaffolds `metaobjects/` + `.metaobjects/`, runs codegen
|
|
|
4
4
|
|
|
5
5
|
**Status:** v0.3. TS reference implementation with Projects D–G shipped end-to-end.
|
|
6
6
|
|
|
7
|
+
**Upgrading from 1.0.x:** see the [1.0 to 1.1 upgrade guide](https://github.com/metaobjectsdev/metaobjects/blob/v1.1.0/docs/features/migrations/upgrading-1.0-to-1.1.md) before you regenerate. It lists every step and change that needs action, per port.
|
|
8
|
+
|
|
7
9
|
## Install
|
|
8
10
|
|
|
9
11
|
```bash
|
|
@@ -67,8 +69,15 @@ $EDITOR metaobjects/meta.myapp.json # see .metaobjects/AGENTS.md for format
|
|
|
67
69
|
# how many files it would emit, so you can see what your metadata already asks for.
|
|
68
70
|
meta gen --list --probe
|
|
69
71
|
|
|
70
|
-
# 4.
|
|
71
|
-
|
|
72
|
+
# 4. Wire the ones you want. The catalog prints the import that runs each generator as
|
|
73
|
+
# shipped; add it to metaobjects.config.ts and call it in `generators: [...]`.
|
|
74
|
+
# What to install is on the structured row only (`install.dev`, `install.runtime`),
|
|
75
|
+
# beside the config keys the generator reads (`configKeys`):
|
|
76
|
+
meta gen --list --format json
|
|
77
|
+
|
|
78
|
+
# Need to change what one emits? Copy it into your repo and own it. Prints the import
|
|
79
|
+
# to swap in, the entry to wire, and what to install.
|
|
80
|
+
meta eject entity
|
|
72
81
|
|
|
73
82
|
# Need an output none of them emits (OpenAPI, JSON Schema, a client, docs)? Write your
|
|
74
83
|
# own: this scaffolds a working, commented generator and wires it into the config.
|
|
@@ -92,7 +101,7 @@ These apply to every command:
|
|
|
92
101
|
|
|
93
102
|
Running `meta` with no arguments prints a concise status line (whether a `metaobjects/` directory is present) plus the most relevant next-step commands, rather than the full manual.
|
|
94
103
|
|
|
95
|
-
**Exit codes:** `0` success (including idempotent no-op runs), `1` runtime error, `2` usage error (bad flag, missing required argument, invalid `--format`).
|
|
104
|
+
**Exit codes:** `0` success (including idempotent no-op runs, such as `meta init` on an initialized project), `1` runtime error (including metadata that does not load, in every command), `2` usage error (bad flag, missing required argument, invalid `--format`). An unknown flag is refused by name with the command's valid flags listed. Under `--format json|toon` stdout carries exactly one document — narration goes to stderr — and `meta verify` and `meta migrate` put their errors in that document too; the other commands print errors on stderr.
|
|
96
105
|
|
|
97
106
|
## Commands
|
|
98
107
|
|
|
@@ -100,7 +109,7 @@ Running `meta` with no arguments prints a concise status line (whether a `metaob
|
|
|
100
109
|
|
|
101
110
|
Scaffolds `metaobjects/` (visible entity declarations, with a placeholder `meta.common.json`), `.metaobjects/` (hidden tool state: `config.json`, `AGENTS.md`, `CLAUDE.md`, `.gitignore`, `.gen-state/`), an **empty** `codegen/generators/` plus its `tsconfig.codegen.json`, and `metaobjects.config.ts` at the repo root.
|
|
102
111
|
|
|
103
|
-
**It copies no generators and declares no dependencies.** Codegen is opt-in (ADR-0034 Amendment 2): the scaffolded config carries `generators: []` and a comment pointing at the catalog. `meta gen --list --probe` shows what each generator would emit for your model; `meta eject <name>...` copies the ones you
|
|
112
|
+
**It copies no generators and declares no dependencies.** Codegen is opt-in (ADR-0034 Amendment 2): the scaffolded config carries `generators: []` and a comment pointing at the catalog. `meta gen --list --probe` shows what each generator would emit for your model, with the import line that runs it as shipped; `meta gen --list --format json` adds what to install (`install.dev`, `install.runtime`) and the config keys each generator reads (`configKeys`), which the text listing does not print. Import a generator from its package to use it unchanged; `meta eject <name>...` copies the ones you want to change into `codegen/generators/` — **yours to edit** — and prints the import line to swap in, the entry to add, the install command and any config keys those generators read. `meta gen` runs whatever `generators: [...]` holds: the package's generator where you imported it, your copy where you ejected it.
|
|
104
113
|
|
|
105
114
|
Flags:
|
|
106
115
|
- `--force` — overwrite scaffold files (memory records preserved)
|
|
@@ -169,7 +178,7 @@ Flags:
|
|
|
169
178
|
- `--allow <csv>` — destructive-change permissions: `drop-column,drop-table,type-change,drop-index,drop-fk,drop-check,drop-view,drop-view-cascade,adopt-view,nullable-to-not-null,drop-identity-default`
|
|
170
179
|
- `--on-ambiguous abort|rename|drop-add` (default `abort`) — non-interactive
|
|
171
180
|
- `--rename-table [schema.]old=new` / `--rename-column [schema.]table.old=new` — declare a rename (repeatable), so the migration is `RENAME` instead of drop+add whatever the rename heuristic makes of the names. Refused if nothing matches. See [Renames and populated tables](../../../../docs/features/migrations-and-drift.md#renames-and-populated-tables).
|
|
172
|
-
- `--dry-run` — print SQL pair
|
|
181
|
+
- `--dry-run` — print the SQL pair, write nothing (under `--format json|toon` the pair is the document's `sql` field, so stdout stays one parseable document)
|
|
173
182
|
- `--apply` — after writing migration files, immediately apply all pending migrations against the DB (runs `up.sql` for each unapplied entry, tracked in the migration ledger). Mutually exclusive with `--rollback`. Postgres and SQLite only (D1 uses `--apply` to invoke `wrangler d1 migrations apply` instead).
|
|
174
183
|
- `--rollback <version>` — roll back applied migrations newer than `<version>` by running their `down.sql` in reverse order, ledger-tracked. Pass an empty string (`--rollback ""`) to roll back everything. Mutually exclusive with `--apply`. Postgres and SQLite only.
|
|
175
184
|
|
|
@@ -185,15 +194,11 @@ Flags:
|
|
|
185
194
|
|
|
186
195
|
Two config files, by design:
|
|
187
196
|
|
|
188
|
-
**`metaobjects.config.ts`** (at repo root) — generator wiring and codegen knobs, type-checked TS. It starts with `generators: []
|
|
197
|
+
**`metaobjects.config.ts`** (at repo root) — generator wiring and codegen knobs, type-checked TS. It starts with `generators: []`. Import a stock generator from its package to run it as shipped (`meta gen --list` prints each line):
|
|
189
198
|
|
|
190
199
|
```ts
|
|
191
200
|
import { defineConfig } from "@metaobjectsdev/cli";
|
|
192
|
-
import { entityFile } from "
|
|
193
|
-
import { queriesFile } from "./codegen/generators/queries";
|
|
194
|
-
import { routesFile } from "./codegen/generators/routes";
|
|
195
|
-
import { namesFile } from "./codegen/generators/names";
|
|
196
|
-
import { barrel } from "./codegen/generators/barrel";
|
|
201
|
+
import { entityFile, queriesFile, routesFile, namesFile, barrel } from "@metaobjectsdev/codegen-ts/generators";
|
|
197
202
|
|
|
198
203
|
export default defineConfig({
|
|
199
204
|
outDir: "packages/database/src/generated",
|
|
@@ -205,9 +210,14 @@ export default defineConfig({
|
|
|
205
210
|
});
|
|
206
211
|
```
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
213
|
+
To change what one emits, `meta eject <name>` copies it into `codegen/generators/`
|
|
214
|
+
(ADR-0034 scaffold-and-own) and prints the local import to put in place of the package
|
|
215
|
+
one, for example `import { entityFile } from "./codegen/generators/entity";`. The factory
|
|
216
|
+
keeps its name, so nothing else in the config changes.
|
|
217
|
+
|
|
218
|
+
> `entityFile`, `queriesFile`, `routesFile` and `barrel` were removed from
|
|
219
|
+
> `@metaobjectsdev/codegen-ts/generators` at 1.0 and restored in 1.1 (ADR-0034
|
|
220
|
+
> Amendment 5). Both the import and an owned copy are supported.
|
|
211
221
|
|
|
212
222
|
### Multiple output targets
|
|
213
223
|
|
|
@@ -217,11 +227,9 @@ concern — declare named **targets** and point generators at them with `target`
|
|
|
217
227
|
|
|
218
228
|
```ts
|
|
219
229
|
import { defineConfig } from "@metaobjectsdev/cli";
|
|
220
|
-
//
|
|
221
|
-
|
|
222
|
-
import { queriesFile } from "
|
|
223
|
-
import { routesFile } from "./codegen/generators/routes";
|
|
224
|
-
import { barrel } from "./codegen/generators/barrel";
|
|
230
|
+
// Stock generators, run as shipped. An owned copy (`meta eject`) is wired the same way,
|
|
231
|
+
// from "./codegen/generators/<name>".
|
|
232
|
+
import { entityFile, queriesFile, routesFile, barrel } from "@metaobjectsdev/codegen-ts/generators";
|
|
225
233
|
import { formFile } from "@metaobjectsdev/codegen-ts-react";
|
|
226
234
|
import { tanstackQuery, tanstackGrid } from "@metaobjectsdev/codegen-ts-tanstack";
|
|
227
235
|
|
|
@@ -306,7 +314,7 @@ Precedence for `meta migrate`: CLI flag > env var (`DATABASE_URL` only) > `.meta
|
|
|
306
314
|
### Metadata sources (`sources`)
|
|
307
315
|
|
|
308
316
|
`sources` is the single authority on **where metadata lives**. Every read command
|
|
309
|
-
(`gen`, `migrate`, `verify`, `
|
|
317
|
+
(`gen`, `migrate`, `verify`, `export`) resolves it. When the key is absent or
|
|
310
318
|
empty — which is what `meta init` scaffolds — it takes its default value, the
|
|
311
319
|
`metaobjects/` directory beside the config, so existing projects are unaffected.
|
|
312
320
|
|
|
@@ -349,8 +357,10 @@ means everything; `exclude` applies after `include`; matching is case-sensitive.
|
|
|
349
357
|
|
|
350
358
|
**The collection always loads in full — `scope` filters output, never input.** It
|
|
351
359
|
applies to `meta gen` and to `meta verify --codegen` (which regenerates under the
|
|
352
|
-
same scope, so a scoped `gen` is not reported as drift).
|
|
353
|
-
|
|
360
|
+
same scope, so a scoped `gen` is not reported as drift). The documentation generators are
|
|
361
|
+
not scoped: the model pages, the api reference, the agent pages and the site document the
|
|
362
|
+
whole loaded collection, whatever `scope` says. `meta export` is deliberately **not** scoped — it
|
|
363
|
+
inspects the loaded collection. `meta gen
|
|
354
364
|
<Entity>` arguments intersect with `scope`; both must pass.
|
|
355
365
|
|
|
356
366
|
The TypeScript-only per-generator `filter` function is unchanged and remains the
|
package/dist/bin/meta.js
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
// Note: this .ts source file is executed by Bun in the workspace (not Node).
|
|
3
3
|
// The shebang stays as `node` so tsc copies it unchanged to dist/bin/meta.js,
|
|
4
4
|
// keeping the published CLI runnable by Node for npm consumers.
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
//
|
|
6
|
+
// A bare version probe is answered here, from a leaf module that imports only node
|
|
7
|
+
// builtins, BEFORE the command graph loads. `src/index.ts` statically pulls in the sdk
|
|
8
|
+
// and codegen-ts, so answering `--version` there cost ~10x a bare `node` start on every
|
|
9
|
+
// probe. Everything else — including a version flag in any other position — falls
|
|
10
|
+
// through to `run()`, which stays the single owner of the general case.
|
|
11
|
+
import { cliVersion, isVersionFlag } from "../src/lib/version.js";
|
|
12
|
+
const argv = process.argv.slice(2);
|
|
13
|
+
if (argv.length === 1 && isVersionFlag(argv[0])) {
|
|
14
|
+
console.log(cliVersion());
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
const { run } = await import("../src/index.js");
|
|
18
|
+
process.exit(await run(argv));
|
|
7
19
|
//# sourceMappingURL=meta.js.map
|
package/dist/bin/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../bin/meta.ts"],"names":[],"mappings":";AACA,6EAA6E;AAC7E,8EAA8E;AAC9E,gEAAgE;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../bin/meta.ts"],"names":[],"mappings":";AACA,6EAA6E;AAC7E,8EAA8E;AAC9E,gEAAgE;AAChE,EAAE;AACF,mFAAmF;AACnF,uFAAuF;AACvF,wFAAwF;AACxF,kFAAkF;AAClF,wEAAwE;AACxE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAElE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IAC1B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AACD,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChD,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* How a caller other than the CLI wants `meta docs` to behave.
|
|
3
|
-
*
|
|
4
|
-
* `verify --docs` runs this exact command into a temp directory and diffs the result, so
|
|
5
|
-
* that the gate and the door can never be two implementations of "what the docs are". The
|
|
6
|
-
* only thing it needs differently is silence: a verify run announcing "meta docs — wrote 8
|
|
7
|
-
* entity pages" in the middle of its own report describes work the user is not getting.
|
|
8
|
-
*/
|
|
9
|
-
export interface DocsCommandOptions {
|
|
10
|
-
/** Suppress the informational output. Warnings and errors still print — a docs run that
|
|
11
|
-
* degraded is something a verify caller must see, not something to swallow. */
|
|
12
|
-
silent?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function docsCommand(args: string[], cwd: string, opts?: DocsCommandOptions): Promise<number>;
|
|
1
|
+
export declare function docsCommand(_args: string[], _cwd: string): Promise<number>;
|
|
15
2
|
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../src/commands/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../src/commands/docs.ts"],"names":[],"mappings":"AAYA,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGhF"}
|