@jayjiang/byoao 2.0.10 → 2.0.11

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/index.js CHANGED
@@ -28273,7 +28273,7 @@ async function configureProvider(provider, gcpProjectId) {
28273
28273
 
28274
28274
  // dist/vault/manifest.js
28275
28275
  import path4 from "node:path";
28276
- var PKG_VERSION = "2.0.10";
28276
+ var PKG_VERSION = "2.0.11";
28277
28277
  var InfrastructureSchema = external_exports2.object({
28278
28278
  skills: external_exports2.array(external_exports2.string()).default([]),
28279
28279
  commands: external_exports2.array(external_exports2.string()).default([]),
@@ -1,7 +1,7 @@
1
1
  import { fs } from "../lib/cjs-modules.js";
2
2
  import path from "node:path";
3
3
  import { z } from "zod";
4
- const PKG_VERSION = "2.0.10";
4
+ const PKG_VERSION = "2.0.11";
5
5
  // ── Schema ──────────────────────────────────────────────────────
6
6
  const InfrastructureSchema = z.object({
7
7
  skills: z.array(z.string()).default([]),
@@ -1,6 +1,6 @@
1
1
  import { execSync } from "node:child_process";
2
2
  import { semver } from "../lib/cjs-modules.js";
3
- const PKG_VERSION = "2.0.10";
3
+ const PKG_VERSION = "2.0.11";
4
4
  // ── Constants ───────────────────────────────────────────────────
5
5
  const PACKAGE_NAME = "@jayjiang/byoao";
6
6
  const REGISTRY_TIMEOUT_MS = 5_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayjiang/byoao",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Build Your Own AI OS — Obsidian + AI Agent",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1,134 +0,0 @@
1
- ---
2
- name: diagnose
3
- description: >
4
- Vault health check at the structural level. Checks frontmatter coverage, orphan notes,
5
- broken links, AGENTS.md and SCHEMA.md drift, v2 agent directories, and overall vault
6
- configuration. Broader than /health (which focuses on agent pages) — /diagnose checks
7
- the entire vault including user notes. Use when the user says "check my vault", "is
8
- everything set up correctly", "vault health", "diagnose issues", or wants a full
9
- structural audit beyond just agent pages.
10
- ---
11
-
12
- # /diagnose — Vault Diagnosis
13
-
14
- You are a vault doctor. Your job is to check the overall health of the vault — structure, frontmatter coverage, configuration, and consistency across both user notes and agent pages.
15
-
16
- ## Prerequisites Check
17
-
18
- ```bash
19
- obsidian --version
20
- ```
21
-
22
- If this fails, STOP and display the Obsidian CLI availability message (see /prep).
23
-
24
- ## Parameters
25
-
26
- - **focus** (optional): Specific area to check — `frontmatter`, `links`, `structure`, `config`, or `all`. Default: `all`.
27
-
28
- ## Process
29
-
30
- ### Step 1: Frontmatter Coverage
31
-
32
- ```bash
33
- obsidian properties sort=count counts
34
- ```
35
-
36
- Report:
37
- - Total notes with frontmatter vs. without
38
- - Most common missing fields
39
- - Notes with invalid frontmatter (bad dates, unknown types, etc.)
40
- - Tag usage: how many unique tags, how many notes per tag
41
-
42
- ### Step 2: Broken Wikilinks
43
-
44
- Scan for wikilinks that point to non-existent files:
45
-
46
- ```bash
47
- obsidian search "\[\[.*\]\]"
48
- ```
49
-
50
- For each wikilink found, check if the target file exists. Report broken links with:
51
- - Source file where the broken link appears
52
- - Target link that doesn't resolve
53
- - Suggested fix (create the missing file or remove the link)
54
-
55
- ### Step 3: Orphan Detection
56
-
57
- Find notes with no inbound wikilinks:
58
-
59
- ```bash
60
- obsidian backlinks "note-name"
61
- ```
62
-
63
- For both user notes and agent pages, identify orphans. Note that newly created notes are expected to be orphans temporarily.
64
-
65
- ### Step 4: AGENTS.md, SCHEMA.md, and v2 layout
66
-
67
- Check if `AGENTS.md` accurately reflects the current vault state:
68
- - Does it reference directories that no longer exist?
69
- - Does it miss directories that were added?
70
- - Are the skill references still valid?
71
- - Is the navigation advice still accurate?
72
-
73
- Check `SCHEMA.md`:
74
- - Tag taxonomy and domain sections match how tags are actually used
75
- - Agent directory table matches `entities/`, `concepts/`, `comparisons/`, `queries/`
76
- - Frontmatter expectations align with v2 `type: entity | concept | comparison | query`
77
-
78
- Verify the v2 agent directories exist and are usable: `entities/`, `concepts/`, `comparisons/`, `queries/` (note if any are missing or empty when the vault should have compiled knowledge).
79
-
80
- ### Step 5: Configuration Check
81
-
82
- Verify vault configuration:
83
- - `.obsidian/` directory exists and is valid
84
- - `.opencode/` directory has current skill definitions
85
- - `SCHEMA.md` exists and has a defined tag taxonomy
86
- - `log.md` exists and has recent entries
87
- - `INDEX.base` exists as the Bases wiki index (run `/wiki` to verify or improve it)
88
-
89
- ### Step 6: Present Diagnosis
90
-
91
- ```markdown
92
- # Vault Diagnosis
93
-
94
- Scanned {N} notes, {M} agent pages, {K} user notes.
95
-
96
- ---
97
-
98
- ## Frontmatter Coverage
99
- - Notes with frontmatter: X/Y (Z%)
100
- - Most common missing: {list fields}
101
- - Unique tags: {N} (top 5: {list})
102
-
103
- ## Broken Wikilinks
104
- - {N} broken links found:
105
- - [[target]] in [[source]] → file not found
106
-
107
- ## Orphan Notes
108
- - {N} notes with no inbound links:
109
- - [[note-name]] — consider linking from [[suggested-source]]
110
-
111
- ## AGENTS.md / SCHEMA.md / layout
112
- - AGENTS.md: {Up to date / Needs update} — {details if outdated}
113
- - SCHEMA.md: {Up to date / Needs update / Missing} — {taxonomy vs usage}
114
- - Agent dirs (`entities/`, `concepts/`, `comparisons/`, `queries/`): {OK / Missing / Issues}
115
-
116
- ## Configuration
117
- - .obsidian/: {OK / Missing / Issues}
118
- - .opencode/: {OK / Missing / Issues}
119
- - log.md: {OK / Missing / {N} entries, last: {date}}
120
- - INDEX.base: {OK / Missing / Needs update}
121
-
122
- ## Overall Health
123
- **Score**: {Good / Fair / Needs attention}
124
-
125
- {2-3 sentence summary of the vault's overall health and the top 2-3 issues to address}
126
- ```
127
-
128
- ## Key Principles
129
-
130
- - **Comprehensive but prioritized.** Check everything, but surface the most important issues first.
131
- - **Actionable findings.** Every issue should come with a suggested fix.
132
- - **Non-destructive by default.** Report issues, don't fix them automatically.
133
- - **Whole vault, not just agent pages.** Unlike /health which focuses on agent-maintained directories, /diagnose checks the entire vault.
134
- - **Obsidian is first workbench.** All note operations go through Obsidian CLI.