clawvault 3.0.0 → 3.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.
Files changed (60) hide show
  1. package/README.md +156 -105
  2. package/bin/clawvault.js +0 -2
  3. package/bin/register-core-commands.js +20 -2
  4. package/dist/{chunk-3D6BCTP6.js → chunk-33UGEQRT.js} +70 -145
  5. package/dist/{chunk-ZVVFWOLW.js → chunk-3WRJEKN4.js} +1 -1
  6. package/dist/{chunk-DEFFDRVP.js → chunk-3ZIH425O.js} +3 -70
  7. package/dist/{chunk-K234IDRJ.js → chunk-D2H45LON.js} +1 -0
  8. package/dist/{chunk-YKTA5JOJ.js → chunk-H62BP7RI.js} +3 -3
  9. package/dist/{chunk-WGRQ6HDV.js → chunk-LI4O6NVK.js} +1 -1
  10. package/dist/{chunk-7R7O6STJ.js → chunk-OCGVIN3L.js} +1 -1
  11. package/dist/{chunk-GAJV4IGR.js → chunk-YCUNCH2I.js} +3 -7
  12. package/dist/cli/index.cjs +10 -1459
  13. package/dist/cli/index.js +5 -8
  14. package/dist/commands/compat.cjs +70 -145
  15. package/dist/commands/compat.js +1 -1
  16. package/dist/commands/context.cjs +1 -0
  17. package/dist/commands/context.js +3 -3
  18. package/dist/commands/doctor.cjs +68 -144
  19. package/dist/commands/doctor.js +4 -4
  20. package/dist/commands/embed.js +2 -2
  21. package/dist/commands/setup.cjs +2 -69
  22. package/dist/commands/setup.d.cts +0 -1
  23. package/dist/commands/setup.d.ts +0 -1
  24. package/dist/commands/setup.js +2 -2
  25. package/dist/commands/sleep.cjs +1 -0
  26. package/dist/commands/sleep.js +2 -2
  27. package/dist/commands/status.cjs +1 -0
  28. package/dist/commands/status.js +2 -2
  29. package/dist/commands/wake.cjs +1 -0
  30. package/dist/commands/wake.js +2 -2
  31. package/dist/index.cjs +447 -2600
  32. package/dist/index.d.cts +0 -4
  33. package/dist/index.d.ts +0 -4
  34. package/dist/index.js +8 -69
  35. package/dist/plugin/index.cjs +3 -3
  36. package/dist/plugin/index.js +10 -10
  37. package/package.json +11 -17
  38. package/bin/register-tailscale-commands.js +0 -106
  39. package/dist/chunk-IVRIKYFE.js +0 -520
  40. package/dist/chunk-THRJVD4L.js +0 -373
  41. package/dist/chunk-TIGW564L.js +0 -628
  42. package/dist/commands/tailscale.cjs +0 -1532
  43. package/dist/commands/tailscale.d.cts +0 -52
  44. package/dist/commands/tailscale.d.ts +0 -52
  45. package/dist/commands/tailscale.js +0 -26
  46. package/dist/lib/canvas-layout.cjs +0 -136
  47. package/dist/lib/canvas-layout.d.cts +0 -31
  48. package/dist/lib/canvas-layout.d.ts +0 -31
  49. package/dist/lib/canvas-layout.js +0 -92
  50. package/dist/lib/tailscale.cjs +0 -1183
  51. package/dist/lib/tailscale.d.cts +0 -225
  52. package/dist/lib/tailscale.d.ts +0 -225
  53. package/dist/lib/tailscale.js +0 -50
  54. package/dist/lib/webdav.cjs +0 -568
  55. package/dist/lib/webdav.d.cts +0 -109
  56. package/dist/lib/webdav.d.ts +0 -109
  57. package/dist/lib/webdav.js +0 -35
  58. package/hooks/clawvault/HOOK.md +0 -83
  59. package/hooks/clawvault/handler.js +0 -879
  60. package/hooks/clawvault/handler.test.js +0 -354
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClawVault
3
- } from "./chunk-WGRQ6HDV.js";
3
+ } from "./chunk-LI4O6NVK.js";
4
4
  import {
5
5
  getMemoryGraph
6
6
  } from "./chunk-ZZA73MFY.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  hasQmd,
7
7
  withQmdIndexArgs
8
- } from "./chunk-K234IDRJ.js";
8
+ } from "./chunk-D2H45LON.js";
9
9
  import {
10
10
  DEFAULT_CATEGORIES
11
11
  } from "./chunk-2CDEETQN.js";
@@ -800,54 +800,6 @@ function importToVault(vaultPath, extracted, force) {
800
800
  }
801
801
  return summary;
802
802
  }
803
- function printImportSummary(summary) {
804
- const totalCreated = summary.created.people.length + summary.created.preferences.length + summary.created.decisions.length + summary.created.tasks.length;
805
- const totalSkipped = summary.skipped.people.length + summary.skipped.preferences.length + summary.skipped.decisions.length + summary.skipped.tasks.length;
806
- console.log("\n\u{1F4E5} Memory Import Summary");
807
- console.log("\u2500".repeat(40));
808
- if (summary.created.people.length > 0) {
809
- console.log(`\u2713 People (${summary.created.people.length}):`);
810
- for (const name of summary.created.people.slice(0, 5)) {
811
- console.log(` - ${name}`);
812
- }
813
- if (summary.created.people.length > 5) {
814
- console.log(` ... and ${summary.created.people.length - 5} more`);
815
- }
816
- }
817
- if (summary.created.preferences.length > 0) {
818
- console.log(`\u2713 Preferences (${summary.created.preferences.length}):`);
819
- for (const pref of summary.created.preferences.slice(0, 5)) {
820
- console.log(` - ${pref}`);
821
- }
822
- if (summary.created.preferences.length > 5) {
823
- console.log(` ... and ${summary.created.preferences.length - 5} more`);
824
- }
825
- }
826
- if (summary.created.decisions.length > 0) {
827
- console.log(`\u2713 Decisions (${summary.created.decisions.length}):`);
828
- for (const dec of summary.created.decisions.slice(0, 5)) {
829
- console.log(` - ${dec}`);
830
- }
831
- if (summary.created.decisions.length > 5) {
832
- console.log(` ... and ${summary.created.decisions.length - 5} more`);
833
- }
834
- }
835
- if (summary.created.tasks.length > 0) {
836
- console.log(`\u2713 Tasks (${summary.created.tasks.length}):`);
837
- for (const task of summary.created.tasks.slice(0, 5)) {
838
- console.log(` - ${task}`);
839
- }
840
- if (summary.created.tasks.length > 5) {
841
- console.log(` ... and ${summary.created.tasks.length - 5} more`);
842
- }
843
- }
844
- if (totalSkipped > 0) {
845
- console.log(`
846
- \u2298 Skipped ${totalSkipped} items (already exist or similar)`);
847
- }
848
- console.log("\u2500".repeat(40));
849
- console.log(`Total: ${totalCreated} created, ${totalSkipped} skipped`);
850
- }
851
803
  async function setupCommand(options = {}) {
852
804
  const target = resolveVaultTarget(options.vault);
853
805
  if (target.existed && !fs.statSync(target.vaultPath).isDirectory()) {
@@ -859,27 +811,9 @@ async function setupCommand(options = {}) {
859
811
  console.log(initialized ? "\u2713 Initialized vault structure." : "\u2713 Vault structure already present.");
860
812
  const force = options.force ?? false;
861
813
  const theme = options.theme ?? "neural";
862
- if (options.from) {
863
- const sourcePath = path.resolve(options.from);
864
- if (!fs.existsSync(sourcePath)) {
865
- throw new Error(`Source path does not exist: ${sourcePath}`);
866
- }
867
- console.log(`
868
- \u{1F4C2} Scanning source: ${sourcePath}`);
869
- const extracted = scanAndExtract(sourcePath);
870
- const totalFound = extracted.people.length + extracted.preferences.length + extracted.decisions.length + extracted.tasks.length;
871
- if (totalFound === 0) {
872
- console.log("\u2298 No structured data found in source files.");
873
- } else {
874
- console.log(`Found: ${extracted.people.length} people, ${extracted.preferences.length} preferences, ${extracted.decisions.length} decisions, ${extracted.tasks.length} tasks`);
875
- const summary = importToVault(target.vaultPath, extracted, force);
876
- printImportSummary(summary);
877
- }
878
- }
879
814
  const explicitFlags = options.graphColors !== void 0 || options.bases !== void 0;
880
- const fromOnly = options.from && !explicitFlags;
881
- const doGraphColors = fromOnly ? false : explicitFlags ? options.graphColors !== false : true;
882
- const doBases = fromOnly ? false : explicitFlags ? options.bases !== false : true;
815
+ const doGraphColors = explicitFlags ? options.graphColors !== false : true;
816
+ const doBases = explicitFlags ? options.bases !== false : true;
883
817
  if (doGraphColors && theme !== "none") {
884
818
  const wrote = writeGraphColors(target.vaultPath, theme, force);
885
819
  if (wrote) {
@@ -922,7 +856,6 @@ async function setupCommand(options = {}) {
922
856
  console.log(" clawvault setup --theme neural # Neural neural graph colors");
923
857
  console.log(" clawvault setup --theme minimal # Subtle category colors");
924
858
  console.log(" clawvault setup --no-bases --no-graph-colors # Structure only");
925
- console.log(" clawvault setup --from <path> # Import from existing memory");
926
859
  console.log(" clawvault setup --force # Overwrite existing configs");
927
860
  }
928
861
 
@@ -334,6 +334,7 @@ function stripQmdNoise(raw) {
334
334
  function parseQmdOutput(raw) {
335
335
  const trimmed = stripQmdNoise(raw).trim();
336
336
  if (!trimmed) return [];
337
+ if (trimmed.startsWith("No results") || trimmed.startsWith("No matches")) return [];
337
338
  const direct = tryParseJson(trimmed);
338
339
  const extracted = direct ? null : extractJsonPayload(trimmed);
339
340
  const parsed = direct ?? (extracted ? tryParseJson(extracted) : null);
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-LNJA2UGL.js";
10
10
  import {
11
11
  checkOpenClawCompatibility
12
- } from "./chunk-3D6BCTP6.js";
12
+ } from "./chunk-33UGEQRT.js";
13
13
  import {
14
14
  ClawVault,
15
15
  findVault
16
- } from "./chunk-WGRQ6HDV.js";
16
+ } from "./chunk-LI4O6NVK.js";
17
17
  import {
18
18
  hasQmd
19
- } from "./chunk-K234IDRJ.js";
19
+ } from "./chunk-D2H45LON.js";
20
20
  import {
21
21
  loadMemoryGraphIndex
22
22
  } from "./chunk-ZZA73MFY.js";
@@ -6,7 +6,7 @@ import {
6
6
  hasQmd,
7
7
  qmdEmbed,
8
8
  qmdUpdate
9
- } from "./chunk-K234IDRJ.js";
9
+ } from "./chunk-D2H45LON.js";
10
10
  import {
11
11
  DEFAULT_CATEGORIES,
12
12
  TYPE_TO_CATEGORY
@@ -5,7 +5,7 @@ import {
5
5
  QmdUnavailableError,
6
6
  hasQmd,
7
7
  qmdEmbed
8
- } from "./chunk-K234IDRJ.js";
8
+ } from "./chunk-D2H45LON.js";
9
9
 
10
10
  // src/lib/vault-qmd-config.ts
11
11
  import * as fs from "fs";
@@ -1,6 +1,3 @@
1
- import {
2
- registerTailscaleCommands
3
- } from "./chunk-THRJVD4L.js";
4
1
  import {
5
2
  registerObserveCommand
6
3
  } from "./chunk-F2JEUD4J.js";
@@ -9,7 +6,7 @@ import {
9
6
  } from "./chunk-SJSFRIYS.js";
10
7
  import {
11
8
  registerEmbedCommand
12
- } from "./chunk-7R7O6STJ.js";
9
+ } from "./chunk-OCGVIN3L.js";
13
10
  import {
14
11
  registerInjectCommand
15
12
  } from "./chunk-U55BGUAU.js";
@@ -18,10 +15,10 @@ import {
18
15
  } from "./chunk-MXSSG3QU.js";
19
16
  import {
20
17
  registerContextCommand
21
- } from "./chunk-ZVVFWOLW.js";
18
+ } from "./chunk-3WRJEKN4.js";
22
19
  import {
23
20
  reweave
24
- } from "./chunk-K234IDRJ.js";
21
+ } from "./chunk-D2H45LON.js";
25
22
 
26
23
  // src/commands/reweave.ts
27
24
  async function reweaveCommand(options) {
@@ -71,7 +68,6 @@ function registerCliCommands(program) {
71
68
  registerReflectCommand(program);
72
69
  registerEmbedCommand(program);
73
70
  registerReweaveCommand(program);
74
- registerTailscaleCommands(program);
75
71
  return program;
76
72
  }
77
73