skillwiki 0.10.106 → 0.10.107

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/cli.js CHANGED
@@ -9856,7 +9856,11 @@ function localRecord(p, githubOid) {
9856
9856
  }
9857
9857
  function liveDriftRecord(p) {
9858
9858
  if (!p || p.unknown || p.content === void 0 && p.ledger === void 0) {
9859
- return { state: "unknown", detail: p?.detail ?? "live drift unmeasured" };
9859
+ return {
9860
+ state: "unknown",
9861
+ reason_code: p?.reason_code ?? "live_drift_unmeasured",
9862
+ detail: p?.detail ?? "live drift unmeasured"
9863
+ };
9860
9864
  }
9861
9865
  const content = p.content ?? 0;
9862
9866
  const ledger = p.ledger ?? 0;
@@ -9872,6 +9876,7 @@ function formatLiveDrift(rec) {
9872
9876
  const parts = [`live_drift: ${rec.state}`];
9873
9877
  if (rec.content !== void 0) parts.push(`content=${rec.content}`);
9874
9878
  if (rec.ledger !== void 0) parts.push(`ledger=${rec.ledger}`);
9879
+ if (rec.reason_code) parts.push(`reason_code=${rec.reason_code}`);
9875
9880
  if (rec.detail) parts.push(rec.detail);
9876
9881
  return parts.join(" ");
9877
9882
  }
@@ -9929,6 +9934,9 @@ function defaultCopyStatusDeps(input) {
9929
9934
  const nestedWithLive = selection.path !== void 0 && (pathsAreNested(selection.path, input.vault) || pathsAreNested(input.vault, selection.path));
9930
9935
  const configuredProjection = sameAsLive || nestedWithLive ? void 0 : selection.path;
9931
9936
  const projectionProblem = selection.invalidDetail ?? (sameAsLive ? "configured fetch projection must be distinct from live vault" : nestedWithLive ? "configured fetch projection and live vault must not be nested" : void 0);
9937
+ let unmeasuredLiveDriftReason = "fetch_projection_not_configured";
9938
+ if (selection.invalidDetail) unmeasuredLiveDriftReason = "fetch_projection_invalid";
9939
+ else if (projectionProblem) unmeasuredLiveDriftReason = "fetch_projection_conflicts_with_live_vault";
9932
9940
  const gitVault = input.vault;
9933
9941
  const projectionWarning = selection.configured ? `configured fetch projection ignored for Git status; using live vault${projectionProblem ? ` (${projectionProblem})` : ""}` : void 0;
9934
9942
  const invalidProjectionDetail = projectionProblem ?? "configured fetch projection is not a git repository";
@@ -9999,10 +10007,18 @@ function defaultCopyStatusDeps(input) {
9999
10007
  },
10000
10008
  probeLiveDrift() {
10001
10009
  if (!configuredProjection) {
10002
- return { unknown: true, detail: projectionProblem ?? "live drift requires a configured fetch projection" };
10010
+ return {
10011
+ unknown: true,
10012
+ reason_code: unmeasuredLiveDriftReason,
10013
+ detail: projectionProblem ?? "live drift requires a configured fetch projection"
10014
+ };
10003
10015
  }
10004
10016
  if (!existsSync13(join39(configuredProjection, ".git"))) {
10005
- return { unknown: true, detail: invalidProjectionDetail };
10017
+ return {
10018
+ unknown: true,
10019
+ reason_code: "fetch_projection_invalid",
10020
+ detail: invalidProjectionDetail
10021
+ };
10006
10022
  }
10007
10023
  return measureAuthoritativeLiveDrift(input.vault, configuredProjection);
10008
10024
  }
@@ -12302,7 +12318,7 @@ memoryCmd.command("index [vault]").description("build the derived project memory
12302
12318
  check: false,
12303
12319
  ifStale: !!opts.ifStale
12304
12320
  }),
12305
- { postCommit: true }
12321
+ { postCommit: false }
12306
12322
  );
12307
12323
  });
12308
12324
  memoryCmd.command("recall [vault]").description("recall bounded source summaries for a memory topic").requiredOption("--project <slug>", "project slug").requiredOption("--topic <slug>", "memory topic slug").option("--scope <scope>", "memory scope: project, global, cross-agent, or all").option("--limit <n>", "maximum sources to return", (s) => parseInt(s, 10), 10).option("--wiki <name>", "wiki profile name").action(async (vault, opts) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.106",
3
+ "version": "0.10.107",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.106",
3
+ "version": "0.10.107",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 22 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp, skillwiki-connect) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.106",
3
+ "version": "0.10.107",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 22 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.106",
3
+ "version": "0.10.107",
4
4
  "description": "Project-aware Karpathy-style knowledge base: 22 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp, skillwiki-connect) backed by HTTP MCP wiki_capture.",
5
5
  "author": {
6
6
  "name": "karlorz"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.106",
3
+ "version": "0.10.107",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",