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.
- package/README.md +156 -105
- package/bin/clawvault.js +0 -2
- package/bin/register-core-commands.js +20 -2
- package/dist/{chunk-3D6BCTP6.js → chunk-33UGEQRT.js} +70 -145
- package/dist/{chunk-ZVVFWOLW.js → chunk-3WRJEKN4.js} +1 -1
- package/dist/{chunk-DEFFDRVP.js → chunk-3ZIH425O.js} +3 -70
- package/dist/{chunk-K234IDRJ.js → chunk-D2H45LON.js} +1 -0
- package/dist/{chunk-YKTA5JOJ.js → chunk-H62BP7RI.js} +3 -3
- package/dist/{chunk-WGRQ6HDV.js → chunk-LI4O6NVK.js} +1 -1
- package/dist/{chunk-7R7O6STJ.js → chunk-OCGVIN3L.js} +1 -1
- package/dist/{chunk-GAJV4IGR.js → chunk-YCUNCH2I.js} +3 -7
- package/dist/cli/index.cjs +10 -1459
- package/dist/cli/index.js +5 -8
- package/dist/commands/compat.cjs +70 -145
- package/dist/commands/compat.js +1 -1
- package/dist/commands/context.cjs +1 -0
- package/dist/commands/context.js +3 -3
- package/dist/commands/doctor.cjs +68 -144
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/embed.js +2 -2
- package/dist/commands/setup.cjs +2 -69
- package/dist/commands/setup.d.cts +0 -1
- package/dist/commands/setup.d.ts +0 -1
- package/dist/commands/setup.js +2 -2
- package/dist/commands/sleep.cjs +1 -0
- package/dist/commands/sleep.js +2 -2
- package/dist/commands/status.cjs +1 -0
- package/dist/commands/status.js +2 -2
- package/dist/commands/wake.cjs +1 -0
- package/dist/commands/wake.js +2 -2
- package/dist/index.cjs +447 -2600
- package/dist/index.d.cts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/index.js +8 -69
- package/dist/plugin/index.cjs +3 -3
- package/dist/plugin/index.js +10 -10
- package/package.json +11 -17
- package/bin/register-tailscale-commands.js +0 -106
- package/dist/chunk-IVRIKYFE.js +0 -520
- package/dist/chunk-THRJVD4L.js +0 -373
- package/dist/chunk-TIGW564L.js +0 -628
- package/dist/commands/tailscale.cjs +0 -1532
- package/dist/commands/tailscale.d.cts +0 -52
- package/dist/commands/tailscale.d.ts +0 -52
- package/dist/commands/tailscale.js +0 -26
- package/dist/lib/canvas-layout.cjs +0 -136
- package/dist/lib/canvas-layout.d.cts +0 -31
- package/dist/lib/canvas-layout.d.ts +0 -31
- package/dist/lib/canvas-layout.js +0 -92
- package/dist/lib/tailscale.cjs +0 -1183
- package/dist/lib/tailscale.d.cts +0 -225
- package/dist/lib/tailscale.d.ts +0 -225
- package/dist/lib/tailscale.js +0 -50
- package/dist/lib/webdav.cjs +0 -568
- package/dist/lib/webdav.d.cts +0 -109
- package/dist/lib/webdav.d.ts +0 -109
- package/dist/lib/webdav.js +0 -35
- package/hooks/clawvault/HOOK.md +0 -83
- package/hooks/clawvault/handler.js +0 -879
- package/hooks/clawvault/handler.test.js +0 -354
package/dist/commands/doctor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
doctor
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-H62BP7RI.js";
|
|
4
4
|
import "../chunk-7ZRP733D.js";
|
|
5
5
|
import "../chunk-4VQTUVH7.js";
|
|
6
6
|
import "../chunk-J7ZWCI2C.js";
|
|
@@ -13,9 +13,9 @@ import "../chunk-PAH27GSN.js";
|
|
|
13
13
|
import "../chunk-N2AXRYLC.js";
|
|
14
14
|
import "../chunk-LYHGEHXG.js";
|
|
15
15
|
import "../chunk-7766SIJP.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-33UGEQRT.js";
|
|
17
|
+
import "../chunk-LI4O6NVK.js";
|
|
18
|
+
import "../chunk-D2H45LON.js";
|
|
19
19
|
import "../chunk-2CDEETQN.js";
|
|
20
20
|
import "../chunk-ZZA73MFY.js";
|
|
21
21
|
import "../chunk-QK3UCXWL.js";
|
package/dist/commands/embed.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedCommand,
|
|
3
3
|
registerEmbedCommand
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OCGVIN3L.js";
|
|
5
5
|
import "../chunk-MXSSG3QU.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-D2H45LON.js";
|
|
7
7
|
import "../chunk-QK3UCXWL.js";
|
|
8
8
|
import "../chunk-Z2XBWN7A.js";
|
|
9
9
|
import "../chunk-3RG5ZIWI.js";
|
package/dist/commands/setup.cjs
CHANGED
|
@@ -1207,54 +1207,6 @@ function importToVault(vaultPath, extracted, force) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
return summary;
|
|
1209
1209
|
}
|
|
1210
|
-
function printImportSummary(summary) {
|
|
1211
|
-
const totalCreated = summary.created.people.length + summary.created.preferences.length + summary.created.decisions.length + summary.created.tasks.length;
|
|
1212
|
-
const totalSkipped = summary.skipped.people.length + summary.skipped.preferences.length + summary.skipped.decisions.length + summary.skipped.tasks.length;
|
|
1213
|
-
console.log("\n\u{1F4E5} Memory Import Summary");
|
|
1214
|
-
console.log("\u2500".repeat(40));
|
|
1215
|
-
if (summary.created.people.length > 0) {
|
|
1216
|
-
console.log(`\u2713 People (${summary.created.people.length}):`);
|
|
1217
|
-
for (const name of summary.created.people.slice(0, 5)) {
|
|
1218
|
-
console.log(` - ${name}`);
|
|
1219
|
-
}
|
|
1220
|
-
if (summary.created.people.length > 5) {
|
|
1221
|
-
console.log(` ... and ${summary.created.people.length - 5} more`);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
if (summary.created.preferences.length > 0) {
|
|
1225
|
-
console.log(`\u2713 Preferences (${summary.created.preferences.length}):`);
|
|
1226
|
-
for (const pref of summary.created.preferences.slice(0, 5)) {
|
|
1227
|
-
console.log(` - ${pref}`);
|
|
1228
|
-
}
|
|
1229
|
-
if (summary.created.preferences.length > 5) {
|
|
1230
|
-
console.log(` ... and ${summary.created.preferences.length - 5} more`);
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
if (summary.created.decisions.length > 0) {
|
|
1234
|
-
console.log(`\u2713 Decisions (${summary.created.decisions.length}):`);
|
|
1235
|
-
for (const dec of summary.created.decisions.slice(0, 5)) {
|
|
1236
|
-
console.log(` - ${dec}`);
|
|
1237
|
-
}
|
|
1238
|
-
if (summary.created.decisions.length > 5) {
|
|
1239
|
-
console.log(` ... and ${summary.created.decisions.length - 5} more`);
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
if (summary.created.tasks.length > 0) {
|
|
1243
|
-
console.log(`\u2713 Tasks (${summary.created.tasks.length}):`);
|
|
1244
|
-
for (const task of summary.created.tasks.slice(0, 5)) {
|
|
1245
|
-
console.log(` - ${task}`);
|
|
1246
|
-
}
|
|
1247
|
-
if (summary.created.tasks.length > 5) {
|
|
1248
|
-
console.log(` ... and ${summary.created.tasks.length - 5} more`);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
if (totalSkipped > 0) {
|
|
1252
|
-
console.log(`
|
|
1253
|
-
\u2298 Skipped ${totalSkipped} items (already exist or similar)`);
|
|
1254
|
-
}
|
|
1255
|
-
console.log("\u2500".repeat(40));
|
|
1256
|
-
console.log(`Total: ${totalCreated} created, ${totalSkipped} skipped`);
|
|
1257
|
-
}
|
|
1258
1210
|
async function setupCommand(options = {}) {
|
|
1259
1211
|
const target = resolveVaultTarget(options.vault);
|
|
1260
1212
|
if (target.existed && !fs2.statSync(target.vaultPath).isDirectory()) {
|
|
@@ -1266,27 +1218,9 @@ async function setupCommand(options = {}) {
|
|
|
1266
1218
|
console.log(initialized ? "\u2713 Initialized vault structure." : "\u2713 Vault structure already present.");
|
|
1267
1219
|
const force = options.force ?? false;
|
|
1268
1220
|
const theme = options.theme ?? "neural";
|
|
1269
|
-
if (options.from) {
|
|
1270
|
-
const sourcePath = path2.resolve(options.from);
|
|
1271
|
-
if (!fs2.existsSync(sourcePath)) {
|
|
1272
|
-
throw new Error(`Source path does not exist: ${sourcePath}`);
|
|
1273
|
-
}
|
|
1274
|
-
console.log(`
|
|
1275
|
-
\u{1F4C2} Scanning source: ${sourcePath}`);
|
|
1276
|
-
const extracted = scanAndExtract(sourcePath);
|
|
1277
|
-
const totalFound = extracted.people.length + extracted.preferences.length + extracted.decisions.length + extracted.tasks.length;
|
|
1278
|
-
if (totalFound === 0) {
|
|
1279
|
-
console.log("\u2298 No structured data found in source files.");
|
|
1280
|
-
} else {
|
|
1281
|
-
console.log(`Found: ${extracted.people.length} people, ${extracted.preferences.length} preferences, ${extracted.decisions.length} decisions, ${extracted.tasks.length} tasks`);
|
|
1282
|
-
const summary = importToVault(target.vaultPath, extracted, force);
|
|
1283
|
-
printImportSummary(summary);
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
1221
|
const explicitFlags = options.graphColors !== void 0 || options.bases !== void 0;
|
|
1287
|
-
const
|
|
1288
|
-
const
|
|
1289
|
-
const doBases = fromOnly ? false : explicitFlags ? options.bases !== false : true;
|
|
1222
|
+
const doGraphColors = explicitFlags ? options.graphColors !== false : true;
|
|
1223
|
+
const doBases = explicitFlags ? options.bases !== false : true;
|
|
1290
1224
|
if (doGraphColors && theme !== "none") {
|
|
1291
1225
|
const wrote = writeGraphColors(target.vaultPath, theme, force);
|
|
1292
1226
|
if (wrote) {
|
|
@@ -1329,7 +1263,6 @@ async function setupCommand(options = {}) {
|
|
|
1329
1263
|
console.log(" clawvault setup --theme neural # Neural neural graph colors");
|
|
1330
1264
|
console.log(" clawvault setup --theme minimal # Subtle category colors");
|
|
1331
1265
|
console.log(" clawvault setup --no-bases --no-graph-colors # Structure only");
|
|
1332
|
-
console.log(" clawvault setup --from <path> # Import from existing memory");
|
|
1333
1266
|
console.log(" clawvault setup --force # Overwrite existing configs");
|
|
1334
1267
|
}
|
|
1335
1268
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/commands/setup.d.ts
CHANGED
package/dist/commands/setup.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
importToVault,
|
|
8
8
|
scanAndExtract,
|
|
9
9
|
setupCommand
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-3ZIH425O.js";
|
|
11
11
|
import "../chunk-LYHGEHXG.js";
|
|
12
12
|
import "../chunk-7766SIJP.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-D2H45LON.js";
|
|
14
14
|
import "../chunk-2CDEETQN.js";
|
|
15
15
|
import "../chunk-QK3UCXWL.js";
|
|
16
16
|
import "../chunk-Z2XBWN7A.js";
|
package/dist/commands/sleep.cjs
CHANGED
|
@@ -473,6 +473,7 @@ function stripQmdNoise(raw) {
|
|
|
473
473
|
function parseQmdOutput(raw) {
|
|
474
474
|
const trimmed = stripQmdNoise(raw).trim();
|
|
475
475
|
if (!trimmed) return [];
|
|
476
|
+
if (trimmed.startsWith("No results") || trimmed.startsWith("No matches")) return [];
|
|
476
477
|
const direct = tryParseJson(trimmed);
|
|
477
478
|
const extracted = direct ? null : extractJsonPayload(trimmed);
|
|
478
479
|
const parsed = direct ?? (extracted ? tryParseJson(extracted) : null);
|
package/dist/commands/sleep.js
CHANGED
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
} from "../chunk-WAZ3NLWL.js";
|
|
21
21
|
import {
|
|
22
22
|
ClawVault
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-LI4O6NVK.js";
|
|
24
24
|
import {
|
|
25
25
|
qmdUpdate
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-D2H45LON.js";
|
|
27
27
|
import "../chunk-2CDEETQN.js";
|
|
28
28
|
import "../chunk-ZZA73MFY.js";
|
|
29
29
|
import "../chunk-QK3UCXWL.js";
|
package/dist/commands/status.cjs
CHANGED
|
@@ -147,6 +147,7 @@ function stripQmdNoise(raw) {
|
|
|
147
147
|
function parseQmdOutput(raw) {
|
|
148
148
|
const trimmed = stripQmdNoise(raw).trim();
|
|
149
149
|
if (!trimmed) return [];
|
|
150
|
+
if (trimmed.startsWith("No results") || trimmed.startsWith("No matches")) return [];
|
|
150
151
|
const direct = tryParseJson(trimmed);
|
|
151
152
|
const extracted = direct ? null : extractJsonPayload(trimmed);
|
|
152
153
|
const parsed = direct ?? (extracted ? tryParseJson(extracted) : null);
|
package/dist/commands/status.js
CHANGED
|
@@ -18,12 +18,12 @@ import "../chunk-LYHGEHXG.js";
|
|
|
18
18
|
import "../chunk-7766SIJP.js";
|
|
19
19
|
import {
|
|
20
20
|
ClawVault
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-LI4O6NVK.js";
|
|
22
22
|
import {
|
|
23
23
|
QmdUnavailableError,
|
|
24
24
|
hasQmd,
|
|
25
25
|
withQmdIndexArgs
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-D2H45LON.js";
|
|
27
27
|
import "../chunk-2CDEETQN.js";
|
|
28
28
|
import {
|
|
29
29
|
loadMemoryGraphIndex
|
package/dist/commands/wake.cjs
CHANGED
|
@@ -353,6 +353,7 @@ function stripQmdNoise(raw) {
|
|
|
353
353
|
function parseQmdOutput(raw) {
|
|
354
354
|
const trimmed = stripQmdNoise(raw).trim();
|
|
355
355
|
if (!trimmed) return [];
|
|
356
|
+
if (trimmed.startsWith("No results") || trimmed.startsWith("No matches")) return [];
|
|
356
357
|
const direct = tryParseJson(trimmed);
|
|
357
358
|
const extracted = direct ? null : extractJsonPayload(trimmed);
|
|
358
359
|
const parsed = direct ?? (extracted ? tryParseJson(extracted) : null);
|
package/dist/commands/wake.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from "../chunk-WAZ3NLWL.js";
|
|
8
8
|
import {
|
|
9
9
|
ClawVault
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-LI4O6NVK.js";
|
|
11
|
+
import "../chunk-D2H45LON.js";
|
|
12
12
|
import "../chunk-2CDEETQN.js";
|
|
13
13
|
import "../chunk-ZZA73MFY.js";
|
|
14
14
|
import {
|