@aikdna/kdna-studio-cli 0.2.0 → 0.3.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 CHANGED
@@ -1,6 +1,10 @@
1
1
  # @aikdna/kdna-studio-cli
2
2
 
3
- Official Studio command-line authoring entry for KDNA.
3
+ Official Studio command-line entry for KDNA judgment asset creation — turns your notes, documents, works, and feedback into loadable .kdna domains.
4
+
5
+ Two authoring paths: interview-first (articulate your judgment directly) and distillation-first (provide content, find the patterns, confirm what's really you).
6
+
7
+ Distillation-first authoring is domain-first: declare the target domain, owner scope, granularity, task scope, include areas, exclude areas, and load condition before extracting candidates. A single `.kdna` should stay scoped; complex work should compose multiple domain assets through a KDNA Cluster.
4
8
 
5
9
  This package provides the `kdna-studio` command. It creates Studio projects,
6
10
  imports evidence, manages judgment cards, checks Human Lock, compiles locked
@@ -25,6 +29,18 @@ npm install -g @aikdna/kdna-studio-cli
25
29
  ```bash
26
30
  kdna-studio create my_domain --name @yourscope/my_domain
27
31
  kdna-studio import my_domain ./notes.md
32
+ kdna-studio target declare my_domain \
33
+ --category expression_writing \
34
+ --scope personal \
35
+ --granularity core_principles \
36
+ --task "longform article review" \
37
+ --include "argument structure,tone,revision" \
38
+ --exclude "life habits,food preference"
39
+ kdna-studio source classify my_domain
40
+ kdna-studio distill my_domain --candidates candidates.json
41
+ kdna-studio candidate list my_domain
42
+ kdna-studio candidate accept my_domain <candidate-id>
43
+ kdna-studio candidate promote my_domain
28
44
  kdna-studio card add my_domain axiom \
29
45
  --field one_sentence="Prefer specific evidence over broad claims" \
30
46
  --field applies_when='["reviewing content"]' \
@@ -35,6 +51,8 @@ kdna-studio lock my_domain
35
51
  kdna-studio export my_domain --out dist/my_domain.kdna --sign
36
52
  ```
37
53
 
54
+ Candidate promotion is scope-gated: only candidates with `status == accepted` and `scope_fit == true` are promoted to cards by default. Use `kdna-studio candidate override <project> <candidate-id>` only when a human intentionally overrides the scope gate.
55
+
38
56
  After export, use the runtime CLI:
39
57
 
40
58
  ```bash
@@ -44,3 +62,27 @@ kdna publish dist/my_domain.kdna
44
62
 
45
63
  `kdna-studio` is the CLI entry for trusted KDNA creation. `kdna` is the runtime
46
64
  control plane for existing `.kdna` assets.
65
+
66
+ ## Identity
67
+
68
+ ```bash
69
+ kdna-studio identity init --name "Your Name"
70
+ kdna-studio identity show
71
+ ```
72
+
73
+ ## Import from existing KDNA or legacy folders
74
+
75
+ ```bash
76
+ # Fork an existing .kdna asset (cards imported as draft — re-lock required)
77
+ kdna-studio create forked --from-kdna ./parent.kdna --name @scope/forked
78
+
79
+ # Migrate a legacy JSON source folder
80
+ kdna-studio create migrated --from-folder ./old-domain-json --name @scope/migrated
81
+ ```
82
+
83
+ ## Related
84
+
85
+ - [KDNA Protocol](https://github.com/aikdna/kdna) — specification and schemas
86
+ - [kdna-cli](https://github.com/aikdna/kdna-cli) — runtime CLI for verify, install, load, publish
87
+ - [kdna-studio-core](https://github.com/aikdna/kdna-studio-core) — authoring SDK used by this CLI
88
+ - [kdna-studio-swift](https://github.com/aikdna/kdna-studio-swift) — native Swift counterpart