@bitcobblers/wod-wiki-tools 0.36.2135 → 0.37.2137
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/bin/wod.cjs +299 -16
- package/dist/bin/wod.cjs.map +1 -1
- package/dist/bin/wod.mjs +3 -2
- package/dist/bin/wod.mjs.map +1 -1
- package/dist/{chunk-OTJAPVT2.mjs → chunk-GBBJBDLS.mjs} +29 -11
- package/dist/chunk-GBBJBDLS.mjs.map +1 -0
- package/dist/{chunk-FZKXOYMJ.mjs → chunk-NATJMTAW.mjs} +47 -4
- package/dist/chunk-NATJMTAW.mjs.map +1 -0
- package/dist/chunk-SQAI6B4P.mjs +12 -0
- package/dist/chunk-SQAI6B4P.mjs.map +1 -0
- package/dist/{compiler-CTPLIZJK.mjs → compiler-B77PITYH.mjs} +3 -3
- package/dist/{compiler-CTPLIZJK.mjs.map → compiler-B77PITYH.mjs.map} +1 -1
- package/dist/index.cjs +299 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -2
- package/dist/scaffoldCatalog-LQOUCJ4X.mjs +205 -0
- package/dist/scaffoldCatalog-LQOUCJ4X.mjs.map +1 -0
- package/dist/web/playground/assets/main-CFDrblxn.css +2 -0
- package/dist/web/playground/assets/main-OGIV1avF.js +188 -0
- package/dist/web/playground/assets/{statementBuilderFlow-CCaLco1R.js → statementBuilderFlow-BL8OKlcb.js} +2 -2
- package/dist/web/playground/assets/{vendor-g-NJOjvC.js → vendor-CTANVdPW.js} +19 -19
- package/dist/web/playground/assets/{vendor-codemirror-C41SFn-r.js → vendor-codemirror-BlXDdJID.js} +8 -8
- package/dist/web/playground/index.html +4 -4
- package/dist/web/playground/seed/core/chunks/{canvas.2d3e2e0e.json → canvas.a2e32d8c.json} +1 -1
- package/dist/web/playground/seed/core/manifest.json +8 -5
- package/dist/web/playground/seed/core/report.html +9 -9
- package/dist/web/server/assets/main-BdUrlkaF.js +187 -0
- package/dist/web/server/assets/main-CFDrblxn.css +2 -0
- package/dist/web/server/assets/{statementBuilderFlow-MCfILbWE.js → statementBuilderFlow-xqsK_3T8.js} +2 -2
- package/dist/web/server/assets/{vendor-g-NJOjvC.js → vendor-CTANVdPW.js} +19 -19
- package/dist/web/server/assets/{vendor-codemirror-C41SFn-r.js → vendor-codemirror-BlXDdJID.js} +8 -8
- package/dist/web/server/index.html +4 -4
- package/dist/web/server/seed/core/chunks/{canvas.2d3e2e0e.json → canvas.a2e32d8c.json} +1 -1
- package/dist/web/server/seed/core/manifest.json +8 -5
- package/dist/web/server/seed/core/report.html +9 -9
- package/package.json +6 -6
- package/dist/chunk-FZKXOYMJ.mjs.map +0 -1
- package/dist/chunk-OTJAPVT2.mjs.map +0 -1
- package/dist/web/playground/assets/main-Bhn9NHgQ.css +0 -2
- package/dist/web/playground/assets/main-Bod1taHc.js +0 -188
- package/dist/web/server/assets/main-Bhn9NHgQ.css +0 -2
- package/dist/web/server/assets/main-DtiBHHer.js +0 -187
package/dist/bin/wod.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
import { cliMain } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import { cliMain } from '../chunk-GBBJBDLS.mjs';
|
|
4
|
+
import '../chunk-NATJMTAW.mjs';
|
|
5
|
+
import '../chunk-SQAI6B4P.mjs';
|
|
5
6
|
import '../chunk-CYKNTEGY.mjs';
|
|
6
7
|
import '../chunk-6L5ZDZJ7.mjs';
|
|
7
8
|
|
package/dist/bin/wod.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/wod.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/bin/wod.ts"],"names":[],"mappings":";;;;;;;;;;;;;AASA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,WAAW,MAAM,OAAA,CAAQ,QAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AACpD,EAAA,OAAA,CAAQ,QAAA,GAAW,QAAA;AACrB,CAAA,GAAG","file":"wod.mjs","sourcesContent":["#!/usr/bin/env node\n/**\n * wod CLI Entry Point\n *\n * Dispatches to cliMain(process.argv.slice(2)).\n * Runs under Node (v18+) or Bun across all subcommands, including server and playground.\n */\nimport { cliMain } from '../cli/runner';\n\nvoid (async () => {\n const exitCode = await cliMain(process.argv.slice(2));\n process.exitCode = exitCode;\n})();\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { compileSeedRow, SEED_SCHEMA, writeBuildReport } from './chunk-
|
|
2
|
+
import { compileSeedRow, SEED_SCHEMA, writeBuildReport } from './chunk-NATJMTAW.mjs';
|
|
3
|
+
import { VERSION } from './chunk-SQAI6B4P.mjs';
|
|
3
4
|
import { openCliDb, nodeFs, sqliteIndexStore, sqliteEffortStore, sqliteBlockStore, sqliteNoteStore, sqliteEventStore, getNoteBundle, getSessionBundle, getEffortBySlug, listTagsByType, nodePath, loadSql, uuid5, CLI_UUID_NAMESPACE, nodeCrypto, stableNoteId, randomId } from './chunk-CYKNTEGY.mjs';
|
|
4
5
|
import { __require } from './chunk-6L5ZDZJ7.mjs';
|
|
5
6
|
import { createParser, frozenNow, createCompiler, createMockClock, RuntimeStack, EventBus, ScriptRuntime, createAnalyticsEngineForBlock, StartSessionAction, NextEvent, toStoredOutputStatement, bundledEfforts, parseScript } from '@bitcobblers/wod-wiki-lang';
|
|
@@ -1321,7 +1322,9 @@ async function publishCatalogSeed(db, options) {
|
|
|
1321
1322
|
})) : compileSeedRow(notePath, note.rawContent, {
|
|
1322
1323
|
routeId: `${catalogName}/${stem}`,
|
|
1323
1324
|
sourceId: `collection:${catalogName}/${stem}`,
|
|
1324
|
-
|
|
1325
|
+
// Authored frontmatter date first — exports keep the post's own
|
|
1326
|
+
// day, never the import/publish time.
|
|
1327
|
+
createdAt: note.date ?? note.createdAt,
|
|
1325
1328
|
noteTitle: note.title
|
|
1326
1329
|
}).blockIndex;
|
|
1327
1330
|
const blockEfforts = noteBlockEfforts.map((e) => ({
|
|
@@ -1375,11 +1378,6 @@ async function publishCatalogSeed(db, options) {
|
|
|
1375
1378
|
totalNotes
|
|
1376
1379
|
};
|
|
1377
1380
|
}
|
|
1378
|
-
|
|
1379
|
-
// src/version.ts
|
|
1380
|
-
var VERSION = "0.36.2135";
|
|
1381
|
-
|
|
1382
|
-
// src/cli/runner.ts
|
|
1383
1381
|
function getFs2() {
|
|
1384
1382
|
if (typeof globalThis.process?.versions?.node === "undefined" && typeof globalThis.Bun === "undefined") {
|
|
1385
1383
|
throw new Error("File system operations are only supported in Node / Bun environments");
|
|
@@ -1531,7 +1529,7 @@ function parseCliArgs(args) {
|
|
|
1531
1529
|
if (Number.isSafeInteger(v) && v >= 0) result.seedVersion = v;
|
|
1532
1530
|
i++;
|
|
1533
1531
|
} else if (!result.subcommand) {
|
|
1534
|
-
if (arg === "parse" || arg === "run" || arg === "query" || arg === "download" || arg === "export" || arg === "import" || arg === "publish" || arg === "build" || arg === "seed" || arg === "reset" || arg === "init" || arg === "server" || arg === "serve" || arg === "playground" || arg === "help" || arg === "version") {
|
|
1532
|
+
if (arg === "parse" || arg === "run" || arg === "query" || arg === "download" || arg === "export" || arg === "import" || arg === "publish" || arg === "build" || arg === "seed" || arg === "reset" || arg === "init" || arg === "server" || arg === "serve" || arg === "playground" || arg === "init-catalog" || arg === "help" || arg === "version") {
|
|
1535
1533
|
result.subcommand = arg;
|
|
1536
1534
|
} else {
|
|
1537
1535
|
result.target = arg;
|
|
@@ -1597,6 +1595,10 @@ USAGE:
|
|
|
1597
1595
|
wod import <note|playground|session|effort|equipment> <file> [options]
|
|
1598
1596
|
wod publish [catalog] [options]
|
|
1599
1597
|
wod build [dir] [options]
|
|
1598
|
+
wod init-catalog <name>
|
|
1599
|
+
Scaffold a new catalog repository (package.json, example
|
|
1600
|
+
collection, GitHub Actions Pages workflow). Refuses an
|
|
1601
|
+
existing destination.
|
|
1600
1602
|
wod seed [options]
|
|
1601
1603
|
wod reset [options]
|
|
1602
1604
|
wod init Initialize the configured database (idempotent)
|
|
@@ -1799,6 +1801,22 @@ async function cliMain(argv = process.argv.slice(2), io = {}) {
|
|
|
1799
1801
|
}
|
|
1800
1802
|
};
|
|
1801
1803
|
try {
|
|
1804
|
+
if (parsed.subcommand === "init-catalog") {
|
|
1805
|
+
if (!parsed.target) {
|
|
1806
|
+
writeErr("[wod init-catalog] Error: Missing catalog name (a single new directory name)");
|
|
1807
|
+
return 1;
|
|
1808
|
+
}
|
|
1809
|
+
const { scaffoldCatalog } = await import('./scaffoldCatalog-LQOUCJ4X.mjs');
|
|
1810
|
+
try {
|
|
1811
|
+
const result = scaffoldCatalog(parsed.target);
|
|
1812
|
+
writeOut(`[wod init-catalog] Created ${result.dir} (${result.files.length} files)`);
|
|
1813
|
+
writeOut(`Next: cd ${parsed.target} && bun install && bunx wod build . --output dist`);
|
|
1814
|
+
return 0;
|
|
1815
|
+
} catch (error) {
|
|
1816
|
+
writeErr(`[wod init-catalog] ${error.message}`);
|
|
1817
|
+
return 1;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1802
1820
|
if (parsed.subcommand === "parse") {
|
|
1803
1821
|
if (!parsed.target) {
|
|
1804
1822
|
writeErr('[wod parse] Error: Missing input file or "-" for stdin');
|
|
@@ -2126,7 +2144,7 @@ async function cliMain(argv = process.argv.slice(2), io = {}) {
|
|
|
2126
2144
|
writeErr(`[wod build] No markdown/ corpus under ${root} \u2014 run from the content repo root (or pass its directory).`);
|
|
2127
2145
|
return 1;
|
|
2128
2146
|
}
|
|
2129
|
-
const { generateSeed } = await import('./compiler-
|
|
2147
|
+
const { generateSeed } = await import('./compiler-B77PITYH.mjs');
|
|
2130
2148
|
try {
|
|
2131
2149
|
const result = generateSeed({
|
|
2132
2150
|
corpusRoot: root,
|
|
@@ -2222,5 +2240,5 @@ async function cliMain(argv = process.argv.slice(2), io = {}) {
|
|
|
2222
2240
|
}
|
|
2223
2241
|
|
|
2224
2242
|
export { PackLoadError, ParseSyntaxError, WqlSyntaxError, cliMain, formatExecutionOutput, formatParseOutput, formatQueryOutput, loadCliEnvironment, loadLanguagePack, loadQueryData, parseCliArgs, readStdin, resolveDatabaseConfig, runExecution, runParse, runQueryCli };
|
|
2225
|
-
//# sourceMappingURL=chunk-
|
|
2226
|
-
//# sourceMappingURL=chunk-
|
|
2243
|
+
//# sourceMappingURL=chunk-GBBJBDLS.mjs.map
|
|
2244
|
+
//# sourceMappingURL=chunk-GBBJBDLS.mjs.map
|