@memfork/cli 0.1.34 → 0.1.35

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/cli.js CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memfork/cli",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "MemForks CLI — init, commit, recall, merge, install plugins",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,9 @@ memfork ui # open the DAG visualizer
22
22
 
23
23
  ## Commit a decision on-chain
24
24
 
25
- Use this after significant architectural decisionsnot for routine facts.
26
- (Routine facts go through `memwal_remember` via MCP.)
25
+ `memfork commit --facts` calls MemWal internally**one command indexes the facts
26
+ for semantic recall AND anchors them on-chain.** Prefer this over calling
27
+ `memwal_remember` separately.
27
28
 
28
29
  ```bash
29
30
  memfork commit \
@@ -33,6 +34,9 @@ memfork commit \
33
34
 
34
35
  The CLI auto-detects the current Git branch; pass `--branch <name>` only to target a different one.
35
36
 
37
+ Only use `memwal_remember` directly for a lightweight mid-task note that does not
38
+ warrant an on-chain entry.
39
+
36
40
  ## Merge branches
37
41
 
38
42
  When two branches need to reconcile their memory:
@@ -29,28 +29,10 @@ memwal_recall(query="auth system design decisions", namespace="branch/<current-b
29
29
 
30
30
  Results with high relevance scores are verified context from prior sessions.
31
31
 
32
- ## Remember — use the MCP tool
32
+ ## Remember — prefer the CLI commit
33
33
 
34
- When you learn a durable fact (not ephemeral task state), save it:
35
-
36
- ```
37
- memwal_remember(text="<the complete fact>", namespace="branch/<current-branch>")
38
- ```
39
-
40
- Only save facts that will be useful in future sessions:
41
- - Architecture decisions
42
- - Project conventions and preferences
43
- - Resolved problems and their solutions
44
- - Key constraints or non-obvious requirements
45
-
46
- Do **not** save: current task state, in-progress work, temporary findings.
47
-
48
- ---
49
-
50
- ## On-chain commit — use the CLI
51
-
52
- After a significant turn where you've committed an architectural decision or resolved
53
- a non-trivial problem, also anchor it on-chain for immutable versioning:
34
+ `memfork commit --facts` calls MemWal internally, so **one command does both**:
35
+ indexes the facts for semantic recall AND anchors them on-chain.
54
36
 
55
37
  ```bash
56
38
  memfork commit \
@@ -58,20 +40,16 @@ memfork commit \
58
40
  --facts "<fact 1>" "<fact 2>"
59
41
  ```
60
42
 
61
- The CLI auto-detects the current Git branch, so you do not pass `--branch`
62
- unless you want to target a different branch.
43
+ The CLI auto-detects the current Git branch omit `--branch` unless targeting
44
+ a different branch.
63
45
 
64
- This creates a cryptographically verifiable commit on Sui not just a blob.
65
- Use it for decisions that matter for audit trail, not routine facts.
46
+ Use this after any significant turn: architectural decisions, resolved problems,
47
+ project conventions, key constraints.
66
48
 
67
- ---
49
+ Only use `memwal_remember` directly for a quick lightweight note that does **not**
50
+ warrant an on-chain entry (e.g. a transient preference noted mid-task).
68
51
 
69
- ## Branch awareness
70
-
71
- - The `memfork` CLI auto-detects the current Git branch; pass `--branch` only to override it.
72
- - The `memwal_*` MCP tools have no Git context, so pass `namespace="branch/<current-branch>"` explicitly.
73
- - When the user switches branches, recall from the new branch namespace.
74
- - Use `memfork status` to see the current branch, on-chain tree state, and open merge proposals.
52
+ Do **not** save: current task state, in-progress work, temporary findings.
75
53
 
76
54
  ---
77
55
 
@@ -111,6 +89,15 @@ human governance act.
111
89
 
112
90
  ---
113
91
 
92
+ ## Branch awareness
93
+
94
+ - The `memfork` CLI auto-detects the current Git branch; pass `--branch` only to override it.
95
+ - The `memwal_*` MCP tools have no Git context, so pass `namespace="branch/<current-branch>"` explicitly.
96
+ - When the user switches branches, recall from the new branch namespace.
97
+ - Use `memfork status` to see the current branch, on-chain tree state, and open merge proposals.
98
+
99
+ ---
100
+
114
101
  ## Suggesting a merge — proactive but not autonomous
115
102
 
116
103
  You may **suggest** a merge when you notice the current branch has accumulated