@weave-tools/weave-it 0.1.1 → 0.1.3
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 +39 -1
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +525 -213
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/skills/weave-architect/SKILL.md +17 -1
package/README.md
CHANGED
|
@@ -469,9 +469,40 @@ weave status
|
|
|
469
469
|
weave status --json
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
+
## `weave doctor`
|
|
473
|
+
|
|
474
|
+
Inspects the current Weave project and optionally repairs missing safe scaffold files.
|
|
475
|
+
|
|
476
|
+
```bash
|
|
477
|
+
weave doctor [options]
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
Options:
|
|
481
|
+
|
|
482
|
+
```text
|
|
483
|
+
--fix create missing safe scaffold files without overwriting existing files
|
|
484
|
+
--json print machine-readable JSON
|
|
485
|
+
-h, --help display help for command
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
`weave doctor` is read-only by default. It reports metadata health, missing safe scaffold files, installed skill drift, active change context, branch match status when available, and a summary status of `ok`, `warning`, or `error`.
|
|
489
|
+
|
|
490
|
+
`weave doctor --fix` is intentionally narrow. It only creates missing safe scaffold directories and files through write-if-missing behavior, such as `.weave/architecture-considerations.md` and standard `wiki/knowledge/**` scaffold files. It never overwrites existing files, updates installed skills, changes branches, edits `status.yml`, mutates live artifacts, or runs migrations.
|
|
491
|
+
|
|
492
|
+
Examples:
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
weave doctor
|
|
496
|
+
weave doctor --json
|
|
497
|
+
weave doctor --fix
|
|
498
|
+
weave doctor --fix --json
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
Existing Weave projects can run `weave doctor --fix` after upgrading the package to receive newly-added safe scaffold files without restarting sessions or running `weave init` again.
|
|
502
|
+
|
|
472
503
|
## Notices
|
|
473
504
|
|
|
474
|
-
The
|
|
505
|
+
The Tier 1 commands surface a stable `notices` array in their `--json` output and, in interactive TTY mode, print a one-line stderr footer that tells the user there are notices and to run `weave status`:
|
|
475
506
|
|
|
476
507
|
```text
|
|
477
508
|
weave workspace
|
|
@@ -479,6 +510,7 @@ weave change current
|
|
|
479
510
|
weave change status
|
|
480
511
|
weave change new
|
|
481
512
|
weave status
|
|
513
|
+
weave doctor
|
|
482
514
|
```
|
|
483
515
|
|
|
484
516
|
Notice kinds:
|
|
@@ -748,6 +780,8 @@ wiki/knowledge/
|
|
|
748
780
|
shared/
|
|
749
781
|
README.md
|
|
750
782
|
<shared-behavior>/behavior.md
|
|
783
|
+
.weave/
|
|
784
|
+
architecture-considerations.md
|
|
751
785
|
```
|
|
752
786
|
|
|
753
787
|
V1 provides scaffold/docs guidance and skill contract tests for this structure. It does not add a CLI validation command for knowledge folders.
|
|
@@ -779,6 +813,7 @@ src/
|
|
|
779
813
|
add.ts
|
|
780
814
|
agent.ts
|
|
781
815
|
change.ts
|
|
816
|
+
doctor.ts
|
|
782
817
|
init.ts
|
|
783
818
|
skills.ts
|
|
784
819
|
workspace.ts
|
|
@@ -786,6 +821,7 @@ src/
|
|
|
786
821
|
add-folder.ts
|
|
787
822
|
agent-skills.ts
|
|
788
823
|
changes.ts
|
|
824
|
+
doctor.ts
|
|
789
825
|
files.ts
|
|
790
826
|
folders.ts
|
|
791
827
|
git.ts
|
|
@@ -801,11 +837,13 @@ templates/
|
|
|
801
837
|
skills/
|
|
802
838
|
tests/
|
|
803
839
|
agent-skills.test.ts
|
|
840
|
+
cli-doctor.test.ts
|
|
804
841
|
cli-skills.test.ts
|
|
805
842
|
changes.test.ts
|
|
806
843
|
init.test.ts
|
|
807
844
|
.weave/
|
|
808
845
|
agents.yml
|
|
846
|
+
architecture-considerations.md
|
|
809
847
|
sync.yml
|
|
810
848
|
wiki/
|
|
811
849
|
knowledge/
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
|
|
3
|
+
declare function readPackageVersion(moduleUrl?: string): string;
|
|
3
4
|
declare function createProgram(): Command;
|
|
4
5
|
declare function isDirectCliInvocation(scriptPath?: string, moduleUrl?: string): boolean;
|
|
5
6
|
|
|
6
|
-
export { createProgram, isDirectCliInvocation };
|
|
7
|
+
export { createProgram, isDirectCliInvocation, readPackageVersion };
|