@aikdna/kdna-studio-cli 0.5.4 → 0.5.6
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 +12 -8
- package/bin/kdna-studio.js +2 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -4,20 +4,21 @@ Official Studio command-line entry for KDNA judgment asset creation — turns yo
|
|
|
4
4
|
|
|
5
5
|
**Official** means this package is part of the KDNA official toolchain. It does not imply content trust, asset endorsement, registry status, or quality rating.
|
|
6
6
|
|
|
7
|
-
Two authoring paths: interview-first (articulate
|
|
7
|
+
Two authoring paths: interview-first (articulate judgment directly) and distillation-first (provide content, find the patterns, review what belongs in scope).
|
|
8
8
|
|
|
9
9
|
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.
|
|
10
10
|
|
|
11
11
|
This package provides the `kdna-studio` command. It creates Studio projects,
|
|
12
|
-
imports evidence, manages judgment cards,
|
|
13
|
-
|
|
12
|
+
imports evidence, manages judgment cards, records optional review/provenance
|
|
13
|
+
signals, compiles reviewed project content, and exports canonical `.kdna`
|
|
14
|
+
assets with build reports.
|
|
14
15
|
|
|
15
16
|
It is intentionally separate from `@aikdna/kdna-cli`:
|
|
16
17
|
|
|
17
18
|
| Package | Command | Role |
|
|
18
19
|
| --- | --- | --- |
|
|
19
|
-
| `@aikdna/kdna-cli` | `kdna` | Runtime CLI:
|
|
20
|
-
| `@aikdna/kdna-studio-cli` | `kdna-studio` | Authoring CLI: create,
|
|
20
|
+
| `@aikdna/kdna-cli` | `kdna` | Runtime CLI: inspect, validate, plan-load, load, pack, and unpack `.kdna` assets |
|
|
21
|
+
| `@aikdna/kdna-studio-cli` | `kdna-studio` | Authoring CLI: create, review, compile, and export `.kdna` files |
|
|
21
22
|
| `@aikdna/kdna-studio-core` | none | Studio SDK/compiler kernel used by apps and this CLI |
|
|
22
23
|
|
|
23
24
|
## Install
|
|
@@ -51,12 +52,15 @@ kdna-studio card add my_domain axiom \
|
|
|
51
52
|
--field does_not_apply_when='["pure formatting"]' \
|
|
52
53
|
--field failure_risk="generic advice"
|
|
53
54
|
kdna-studio card approve my_domain --all --by expert --statement "I confirm this judgment."
|
|
54
|
-
kdna-studio lock my_domain
|
|
55
55
|
kdna-studio export my_domain --format v1 --out dist/my_domain.kdna
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
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.
|
|
59
59
|
|
|
60
|
+
The current Studio CLI export workflow uses approved cards as release evidence.
|
|
61
|
+
This is Studio project policy, not a KDNA Core v1 format-validity rule. Human
|
|
62
|
+
Lock, signatures, and quality claims are separate trust/provenance layers.
|
|
63
|
+
|
|
60
64
|
After export, use the runtime CLI:
|
|
61
65
|
|
|
62
66
|
```bash
|
|
@@ -65,7 +69,7 @@ kdna plan-load dist/my_domain.kdna --json
|
|
|
65
69
|
kdna load dist/my_domain.kdna --profile=compact --as=prompt
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
`kdna-studio` is the CLI entry for
|
|
72
|
+
`kdna-studio` is the CLI entry for Studio project authoring. `kdna` is the
|
|
69
73
|
runtime control plane for inspecting, validating, packing, unpacking, and
|
|
70
74
|
loading existing `.kdna` assets.
|
|
71
75
|
|
|
@@ -100,7 +104,7 @@ kdna-studio identity show
|
|
|
100
104
|
## Import from existing KDNA or legacy folders
|
|
101
105
|
|
|
102
106
|
```bash
|
|
103
|
-
# Fork an existing .kdna asset (cards imported as draft —
|
|
107
|
+
# Fork an existing .kdna asset (cards imported as draft — review before Studio export)
|
|
104
108
|
kdna-studio create forked --from-kdna ./parent.kdna --name @scope/forked
|
|
105
109
|
|
|
106
110
|
# Migrate a legacy JSON source folder
|
package/bin/kdna-studio.js
CHANGED
|
@@ -48,8 +48,8 @@ Create (three entry paths):
|
|
|
48
48
|
kdna-studio create <project-dir> --from-kdna <file.kdna> --name <@scope/name>
|
|
49
49
|
kdna-studio create <project-dir> --from-folder <source-dir> --name <@scope/name>
|
|
50
50
|
|
|
51
|
-
Migrate (dev source →
|
|
52
|
-
kdna-studio migrate <source-dir|project> --format v1 --out <file.kdna> --name <@scope/name> --by <id> --statement <text>
|
|
51
|
+
Migrate (dev source or Studio project → canonical .kdna in one command):
|
|
52
|
+
kdna-studio migrate <source-dir|project> --format v1 --out <file.kdna> --name <@scope/name> --by <id> --statement <text>
|
|
53
53
|
|
|
54
54
|
Authoring:
|
|
55
55
|
kdna-studio import <project> <source-file-or-dir> # import evidence (txt/md/json/yaml/csv/log/srt/vtt/html)
|
|
@@ -58,7 +58,6 @@ Authoring:
|
|
|
58
58
|
kdna-studio card list <project>
|
|
59
59
|
kdna-studio card add <project> <type> --field key=value [--field key=value]
|
|
60
60
|
kdna-studio card approve <project> <card-id> --by <id> --statement <text> [--sign] [--passphrase <pass>]
|
|
61
|
-
kdna-studio lock <project>
|
|
62
61
|
kdna-studio compile <project> --out <dir>
|
|
63
62
|
kdna-studio export <project> --format v1 --out <file.kdna>
|
|
64
63
|
kdna-studio export <project> --out <file.kdna> [--sign] # legacy v2
|
|
@@ -80,8 +79,6 @@ Distillation:
|
|
|
80
79
|
kdna-studio candidate override <project> <candidate-id> # override scope gate
|
|
81
80
|
kdna-studio candidate promote <project> # promote accepted+scope_fit → cards
|
|
82
81
|
kdna-studio report <project>
|
|
83
|
-
kdna-studio install <@scope/name|file.kdna> [--trusted]
|
|
84
|
-
kdna-studio update <@scope/name>
|
|
85
82
|
|
|
86
83
|
Project may be a directory containing studio.project.json or a project JSON file.`);
|
|
87
84
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikdna/kdna-studio-cli",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "Official KDNA Studio command-line authoring entry for creating,
|
|
3
|
+
"version": "0.5.6",
|
|
4
|
+
"description": "Official KDNA Studio command-line authoring entry for creating, reviewing, compiling, and exporting .kdna judgment assets through the KDNA toolchain.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kdna-studio": "bin/kdna-studio.js"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"kdna-studio",
|
|
23
23
|
"kdna-studio-cli",
|
|
24
24
|
"authoring",
|
|
25
|
-
"
|
|
25
|
+
"provenance",
|
|
26
26
|
"judgment-cards"
|
|
27
27
|
],
|
|
28
28
|
"license": "Apache-2.0",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"node": ">=18"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@aikdna/kdna-core": "^0.
|
|
42
|
-
"@aikdna/kdna-studio-core": "^1.5.
|
|
41
|
+
"@aikdna/kdna-core": "^0.12.1",
|
|
42
|
+
"@aikdna/kdna-studio-core": "^1.5.6",
|
|
43
43
|
"ajv": "^8.20.0",
|
|
44
44
|
"ajv-formats": "^3.0.1",
|
|
45
45
|
"cbor-x": "^1.6.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@aikdna/kdna-core": "^0.
|
|
48
|
+
"@aikdna/kdna-core": "^0.12.1"
|
|
49
49
|
}
|
|
50
50
|
}
|