@life-os/cli 0.1.4 → 0.1.5
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 +29 -13
- package/dist/lifeos.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,8 @@ the onboarding target is a different directory.
|
|
|
44
44
|
```bash
|
|
45
45
|
# Read / query
|
|
46
46
|
lifeos config # effective settings + where they came from
|
|
47
|
+
lifeos today [date=YYYY-MM-DD] # source-backed AI Today view
|
|
48
|
+
lifeos board [workflow|para] # source-backed AI board view
|
|
47
49
|
lifeos tasks [todo|done|all] # list tasks (filters: tag=, keyword=, due=today|week|overdue, limit=)
|
|
48
50
|
lifeos search query=<text> # find notes (type=file default | tag | content); add `case` for content
|
|
49
51
|
lifeos read file=<name>|path=<p> # print a note
|
|
@@ -51,6 +53,7 @@ lifeos read file=<name>|path=<p> # print a note
|
|
|
51
53
|
# Onboarding any local Markdown folder (.obsidian is optional)
|
|
52
54
|
lifeos onboard inspect --json
|
|
53
55
|
lifeos onboard templates locale=en
|
|
56
|
+
lifeos onboard plan profile=memos density=full locale=en
|
|
54
57
|
lifeos onboard plan profile=para density=minimal locale=en
|
|
55
58
|
lifeos onboard apply profile=para density=minimal locale=en
|
|
56
59
|
lifeos onboard classify-input profile=para locale=en limit=30 --json
|
|
@@ -72,17 +75,23 @@ lifeos help
|
|
|
72
75
|
|
|
73
76
|
Every command accepts `--json` for machine-readable output.
|
|
74
77
|
|
|
75
|
-
Onboarding
|
|
78
|
+
Onboarding lists Memos, IPO, GTD, and PARA from easiest to hardest and supports
|
|
79
|
+
all four directly; use the separate `opc` skill
|
|
76
80
|
for OPC. Inventory recognizes `.md`, `.markdown`, and common image, video,
|
|
77
81
|
audio, PDF, document, and presentation attachments without extracting binary
|
|
78
82
|
contents. Template and classification writes are previewed first. Confirmed
|
|
79
83
|
classification batches reject paths outside the workspace, target collisions,
|
|
80
|
-
and moves that could break links.
|
|
84
|
+
and moves that could break links. For an existing conflicting file, JSON
|
|
85
|
+
onboarding plans include a `conflictEntries` item with the target content so an
|
|
86
|
+
agent can propose a field-level merge; `onboard apply` still does not overwrite
|
|
87
|
+
the file.
|
|
81
88
|
|
|
82
89
|
### Examples
|
|
83
90
|
|
|
84
91
|
```bash
|
|
85
92
|
lifeos config vault="~/Documents/My Vault"
|
|
93
|
+
lifeos today --json
|
|
94
|
+
lifeos board mode=workflow --json
|
|
86
95
|
lifeos tasks todo due=week limit=20
|
|
87
96
|
lifeos tasks done tag=个人品牌 --json
|
|
88
97
|
lifeos search query=项目 type=file
|
|
@@ -100,17 +109,24 @@ Writes take an explicit `path=` / `ref=` (no name guessing), so the agent should
|
|
|
100
109
|
Options use `key=value` (or `--key=value`); flags are bare `--flag`. This mirrors
|
|
101
110
|
the Obsidian CLI convention so agent prompting transfers.
|
|
102
111
|
|
|
103
|
-
## Agent
|
|
112
|
+
## Agent skills
|
|
104
113
|
|
|
105
|
-
The LifeOS
|
|
106
|
-
Install or update it
|
|
114
|
+
The complete LifeOS Skill bundle is embedded in the CLI from
|
|
115
|
+
`@lifeos/skill-assets`. Install or update it in the current vault after
|
|
116
|
+
upgrading `@life-os/cli`:
|
|
107
117
|
|
|
108
118
|
```bash
|
|
109
|
-
npx -y @life-os/cli skill
|
|
119
|
+
npx -y @life-os/cli@latest skill status
|
|
120
|
+
npx -y @life-os/cli@latest skill install
|
|
110
121
|
```
|
|
111
122
|
|
|
112
|
-
This
|
|
113
|
-
`.agents/skills
|
|
123
|
+
This atomically installs five independently discoverable Skills under
|
|
124
|
+
`.agents/skills/`: `lifeos`, `lifeos-today`, `lifeos-board`,
|
|
125
|
+
`lifeos-onboarding`, and `lifeos-content`. The manifest in
|
|
126
|
+
`.agents/skills/lifeos/` binds their files and fingerprints to the exact CLI
|
|
127
|
+
package version. Legacy or locally modified managed files are backed up before
|
|
128
|
+
replacement, obsolete files from the former single-Skill layout are removed,
|
|
129
|
+
and the installer refuses to downgrade a newer vault copy.
|
|
114
130
|
|
|
115
131
|
## Build & test
|
|
116
132
|
|
|
@@ -121,11 +137,11 @@ pnpm -C apps/lifeos-cli test
|
|
|
121
137
|
|
|
122
138
|
## Scope
|
|
123
139
|
|
|
124
|
-
This CLI is the **knowledge-base data layer** of LifeOS:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
This CLI is the **knowledge-base data layer** of LifeOS: headless AI Today and
|
|
141
|
+
workflow/PARA board views, onboarding, migration, read/query/write of note
|
|
142
|
+
content, tasks, PARA and tags. It deliberately does not wrap background network
|
|
143
|
+
sync (Google Calendar / CalDAV / two-way task sync); those stay in the plugin
|
|
144
|
+
and Aino.
|
|
129
145
|
|
|
130
146
|
### Periodic-note resolution
|
|
131
147
|
|