skillwiki 0.10.21 → 0.10.22

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.
@@ -6,7 +6,7 @@ import {
6
6
  err,
7
7
  getErrorMessage,
8
8
  ok
9
- } from "./chunk-Y6KRDGI2.js";
9
+ } from "./chunk-C2DKFJFA.js";
10
10
 
11
11
  // src/utils/index-projection.ts
12
12
  import { readFile as readFile4 } from "fs/promises";
@@ -19,7 +19,7 @@ import {
19
19
  splitFrontmatter,
20
20
  vaultIoConcurrency,
21
21
  writeRootIndexProjection
22
- } from "./chunk-I5JD3BQZ.js";
22
+ } from "./chunk-54JVBNWK.js";
23
23
  import {
24
24
  CONFIG_KEYS,
25
25
  git,
@@ -34,7 +34,7 @@ import {
34
34
  satelliteGateFromFleetLoad,
35
35
  snapshotterAliasForLocalHost,
36
36
  writeDotenv
37
- } from "./chunk-GNS2ZV5P.js";
37
+ } from "./chunk-PQG26AGJ.js";
38
38
  import {
39
39
  CompoundSchema,
40
40
  ExitCode,
@@ -49,7 +49,7 @@ import {
49
49
  ok,
50
50
  parseVaultSyncKeyValue,
51
51
  systemdPropertyFor
52
- } from "./chunk-Y6KRDGI2.js";
52
+ } from "./chunk-C2DKFJFA.js";
53
53
 
54
54
  // src/commands/log-append.ts
55
55
  import { readFile as readFile2, stat } from "fs/promises";
@@ -315,13 +315,17 @@ function operationMarkers(operationId) {
315
315
  }
316
316
  return ok([
317
317
  `<!-- skillwiki-log-op:${operationId} -->`,
318
- `<!-- skillwiki-page-publish:${operationId} -->`
318
+ `<!-- skillwiki-page-publish:${operationId} -->`,
319
+ `<!-- skillwiki-project-page-publish:${operationId} -->`
319
320
  ]);
320
321
  }
321
322
  function preferredMarker(operationId, eventKind) {
322
323
  if (!eventKind || eventKind === "page-publish") {
323
324
  return `<!-- skillwiki-page-publish:${operationId} -->`;
324
325
  }
326
+ if (eventKind === "project-page-publish") {
327
+ return `<!-- skillwiki-project-page-publish:${operationId} -->`;
328
+ }
325
329
  return `<!-- skillwiki-log-op:${operationId} -->`;
326
330
  }
327
331
  async function appendWhileLocked(logPath, content, markers, writeMarker) {
@@ -3227,6 +3231,7 @@ function buildCliSurface() {
3227
3231
  program.command("ingest").requiredOption("--vault <path>").requiredOption("--type <type>").requiredOption("--title <title>").option("--tags <csv>").option("--provenance <provenance>").option("--dry-run");
3228
3232
  program.command("fleet");
3229
3233
  program.command("page");
3234
+ program.command("project-page");
3230
3235
  program.command("write-preflight").option("--command <name>").option("--dirty-threshold <n>").option("--skip-dirty").option("--prior-artifact-file <path>").option("--prior-artifact-text <text>").option("--consecutive-no-decision <n>").option("--no-decision-threshold <n>").option("--human-allow").option("--mission-kind <kind>").option("--skip-mission").option("--project <slug>").option("--capture-day <date>").option("--capture-budget <n>").option("--severity <level>").option("--skip-budget").option("--checks <list>").option("--wiki <name>");
3231
3236
  program.command("mcp");
3232
3237
  const graphCmd = program.commands.find((c) => c.name() === "graph");
@@ -3245,7 +3250,9 @@ function buildCliSurface() {
3245
3250
  const tagCmd = program.commands.find((c) => c.name() === "tag");
3246
3251
  tagCmd.command("reconcile").requiredOption("--page <path>").option("--from <path>").option("--tags <csv>").option("--reason <text>").option("--write").option("--wiki <name>");
3247
3252
  const pageCmd = program.commands.find((c) => c.name() === "page");
3248
- pageCmd.command("publish").requiredOption("--target <path>").option("--log-note <text>").option("--write").option("--wiki <name>");
3253
+ pageCmd.command("publish").requiredOption("--target <path>").option("--log-note <text>").option("--write").option("--approve <token>").option("--wiki <name>");
3254
+ const projectPageCmd = program.commands.find((c) => c.name() === "project-page");
3255
+ projectPageCmd.command("publish").requiredOption("--project <slug>").requiredOption("--target <path>").option("--log-note <text>").option("--write").option("--approve <token>").option("--wiki <name>");
3249
3256
  const logCmd = program.commands.find((c) => c.name() === "log");
3250
3257
  logCmd.command("materialize").option("--write").option("--wiki <name>");
3251
3258
  logCmd.command("migrate-legacy").option("--write").option("--converge-vault <dir>").option("--wiki <name>");
@@ -9,12 +9,12 @@ import {
9
9
  resolveConfiguredSnapshotWorktree,
10
10
  runVaultSyncPullHelper,
11
11
  supersedeStaleReviewRequiredJournals
12
- } from "./chunk-GNS2ZV5P.js";
12
+ } from "./chunk-PQG26AGJ.js";
13
13
  import {
14
14
  ExitCode,
15
15
  err,
16
16
  ok
17
- } from "./chunk-Y6KRDGI2.js";
17
+ } from "./chunk-C2DKFJFA.js";
18
18
 
19
19
  // src/utils/managed-write-preflight.ts
20
20
  import { existsSync as existsSync2 } from "fs";
@@ -56,7 +56,12 @@ var ExitCode = {
56
56
  SENSITIVE_CONTENT_DETECTED: 51,
57
57
  FLEET_SATELLITE_HEALTH_FAILED: 52,
58
58
  PROTECTED_SNAPSHOTTER_WRITE_BLOCKED: 53,
59
- INVALID_CONFIG_VALUE: 54
59
+ INVALID_CONFIG_VALUE: 54,
60
+ APPROVAL_REQUIRED: 55,
61
+ APPROVAL_INVALID: 56,
62
+ APPROVAL_MISMATCH: 57,
63
+ TARGET_DRIFT: 58,
64
+ RECOVERY_EVIDENCE_MISSING: 59
60
65
  };
61
66
 
62
67
  // ../shared/src/json-output.ts
@@ -5,7 +5,7 @@ import {
5
5
  err,
6
6
  isVaultSyncKey,
7
7
  ok
8
- } from "./chunk-Y6KRDGI2.js";
8
+ } from "./chunk-C2DKFJFA.js";
9
9
 
10
10
  // src/utils/dotenv.ts
11
11
  import { readFile, writeFile, mkdir } from "fs/promises";