@swarmvaultai/cli 0.6.0 → 0.6.1
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 +6 -3
- package/dist/index.js +6 -3
- package/package.json +8 -8
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ Installed commands:
|
|
|
23
23
|
mkdir my-vault
|
|
24
24
|
cd my-vault
|
|
25
25
|
swarmvault init --obsidian --profile personal-research
|
|
26
|
+
swarmvault init --obsidian --profile reader,timeline
|
|
26
27
|
swarmvault source add https://github.com/karpathy/micrograd
|
|
27
28
|
swarmvault source add https://example.com/docs/getting-started
|
|
28
29
|
swarmvault source add ./exports/customer-call.srt --guide
|
|
@@ -52,7 +53,7 @@ swarmvault graph push neo4j --dry-run
|
|
|
52
53
|
|
|
53
54
|
## Commands
|
|
54
55
|
|
|
55
|
-
### `swarmvault init [--obsidian] [--profile
|
|
56
|
+
### `swarmvault init [--obsidian] [--profile <alias-or-presets>]`
|
|
56
57
|
|
|
57
58
|
Create a workspace with:
|
|
58
59
|
|
|
@@ -69,13 +70,15 @@ Create a workspace with:
|
|
|
69
70
|
|
|
70
71
|
The schema file is the vault-specific instruction layer. Edit it to define naming rules, categories, grounding expectations, and exclusions before a serious compile.
|
|
71
72
|
|
|
73
|
+
`--profile` accepts `default`, `personal-research`, or a comma-separated preset list such as `reader,timeline`. For fully custom vault behavior, edit the `profile` block in `swarmvault.config.json`; that deterministic profile layer works alongside the human-written `swarmvault.schema.md`.
|
|
74
|
+
|
|
72
75
|
### `swarmvault source add|list|reload|review|guide|session|delete`
|
|
73
76
|
|
|
74
77
|
Manage recurring source roots through a registry-backed workflow.
|
|
75
78
|
|
|
76
79
|
- `source add <input>` supports local files, local directories, public GitHub repo root URLs such as `https://github.com/karpathy/micrograd`, and docs/wiki/help/reference/tutorial hubs
|
|
77
80
|
- by default `source add` registers the source, syncs it into the vault, runs one compile, and writes a source brief to `wiki/outputs/source-briefs/<source-id>.md`
|
|
78
|
-
- add `--guide` when you want a resumable source session, source brief, source review, source guide, and approval-bundled `wiki/insights/`
|
|
81
|
+
- add `--guide` when you want a resumable source session, source brief, source review, source guide, and approval-bundled canonical page edits when `profile.guidedSessionMode` is `canonical_review`, with `wiki/insights/` fallback for `insights_only`
|
|
79
82
|
- `source list` shows every managed source with its kind, status, and current brief path
|
|
80
83
|
- `source reload [id]` re-syncs one source, or use `--all` to refresh everything in the registry and compile once
|
|
81
84
|
- `source review <id>` stages a lighter source-scoped review artifact
|
|
@@ -105,7 +108,7 @@ Ingest a local file path, directory path, or URL into immutable source storage a
|
|
|
105
108
|
- use `source add` instead when the same local directory, public GitHub repo root, or docs hub should stay registered and reloadable
|
|
106
109
|
- URL ingest still localizes remote image references by default
|
|
107
110
|
- local file ingest supports markdown, text, reStructuredText, HTML, PDF, DOCX, images, and code
|
|
108
|
-
- add `--guide` when you want a resumable source session, source brief, source review, source guide, and approval-bundled `wiki/insights/`
|
|
111
|
+
- add `--guide` when you want a resumable source session, source brief, source review, source guide, and approval-bundled canonical page edits when `profile.guidedSessionMode` is `canonical_review`, with `wiki/insights/` fallback for `insights_only`
|
|
109
112
|
- code-aware directory ingest currently covers JavaScript, JSX, TypeScript, TSX, Python, Go, Rust, Java, Kotlin, Scala, Lua, Zig, C#, C, C++, PHP, Ruby, and PowerShell
|
|
110
113
|
|
|
111
114
|
Useful flags:
|
package/dist/index.js
CHANGED
|
@@ -228,9 +228,9 @@ program.name("swarmvault").description("SwarmVault is a local-first knowledge co
|
|
|
228
228
|
function readCliVersion() {
|
|
229
229
|
try {
|
|
230
230
|
const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
231
|
-
return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.6.
|
|
231
|
+
return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.6.1";
|
|
232
232
|
} catch {
|
|
233
|
-
return "0.6.
|
|
233
|
+
return "0.6.1";
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
function parsePositiveInt(value, fallback) {
|
|
@@ -346,7 +346,10 @@ program.hook("postAction", async (_thisCommand, actionCommand) => {
|
|
|
346
346
|
emitNotice(notice);
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
|
-
program.command("init").description("Initialize a SwarmVault workspace in the current directory.").option("--obsidian", "Generate a minimal .obsidian workspace alongside the vault", false).
|
|
349
|
+
program.command("init").description("Initialize a SwarmVault workspace in the current directory.").option("--obsidian", "Generate a minimal .obsidian workspace alongside the vault", false).option(
|
|
350
|
+
"--profile <profile>",
|
|
351
|
+
"Starter workspace profile or comma-separated preset list (for example: personal-research or reader,timeline)"
|
|
352
|
+
).action(async (options) => {
|
|
350
353
|
await initVault(process2.cwd(), { obsidian: options.obsidian ?? false, profile: options.profile });
|
|
351
354
|
if (isJson()) {
|
|
352
355
|
emitJson({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmvaultai/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Global CLI for SwarmVault.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=24.0.0"
|
|
39
39
|
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
44
|
+
},
|
|
40
45
|
"dependencies": {
|
|
41
|
-
"@swarmvaultai/engine": "0.6.
|
|
46
|
+
"@swarmvaultai/engine": "0.6.1",
|
|
42
47
|
"commander": "^14.0.1"
|
|
43
48
|
},
|
|
44
49
|
"devDependencies": {
|
|
45
50
|
"@types/node": "^24.6.0",
|
|
46
51
|
"tsup": "^8.5.0",
|
|
47
52
|
"vitest": "^3.2.4"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "tsup src/index.ts --format esm --dts",
|
|
51
|
-
"test": "vitest run",
|
|
52
|
-
"typecheck": "tsc --noEmit"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 SwarmVault
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|