@zhafron/opencode-memory-md 1.0.0 → 1.0.2
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
|
@@ -51,6 +51,8 @@ memory --action list
|
|
|
51
51
|
|
|
52
52
|
## First Run Flow
|
|
53
53
|
|
|
54
|
+
**Important:** First setup must be done in OpenCode **build mode** (not plan mode). AI cannot write files in plan mode.
|
|
55
|
+
|
|
54
56
|
1. Plugin detects no MEMORY.md exists
|
|
55
57
|
2. Creates BOOTSTRAP.md with setup instructions
|
|
56
58
|
3. AI reads BOOTSTRAP.md and asks user questions interactively
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapManager.d.ts","sourceRoot":"","sources":["../src/BootstrapManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BootstrapManager.d.ts","sourceRoot":"","sources":["../src/BootstrapManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAkFnD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,UAAU,IAAI,IAAI;IAOlB,OAAO,CAAC,aAAa;IAoBrB,iBAAiB,IAAI,OAAO;CAG7B"}
|
package/dist/BootstrapManager.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
const BOOTSTRAP_TEMPLATE = `# BOOTSTRAP.md - First Time Setup
|
|
1
|
+
const BOOTSTRAP_TEMPLATE = (bootstrapPath) => `# BOOTSTRAP.md - First Time Setup
|
|
2
|
+
|
|
3
|
+
**IMPORTANT:** First setup must be done in OpenCode **build mode** (not plan mode). AI cannot write files in plan mode.
|
|
4
|
+
|
|
5
|
+
**Bootstrap file location:** \`${bootstrapPath}\`
|
|
2
6
|
|
|
3
7
|
This is your first run! Let's set up your memory system.
|
|
4
8
|
|
|
@@ -32,7 +36,7 @@ Ask the user:
|
|
|
32
36
|
|
|
33
37
|
Once you've collected all the information:
|
|
34
38
|
1. Write to IDENTITY.md, USER.md, and MEMORY.md using the memory tool
|
|
35
|
-
2. Delete this BOOTSTRAP.md file
|
|
39
|
+
2. Delete this BOOTSTRAP.md file: \`rm ${bootstrapPath}\`
|
|
36
40
|
3. Confirm setup is complete to the user
|
|
37
41
|
|
|
38
42
|
Be conversational and natural. Don't overwhelm with all questions at once.
|
|
@@ -80,7 +84,8 @@ export class BootstrapManager {
|
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
copyTemplates() {
|
|
83
|
-
this.memoryManager.
|
|
87
|
+
const bootstrapPath = this.memoryManager.getBootstrapPath();
|
|
88
|
+
this.memoryManager.writeFile(bootstrapPath, BOOTSTRAP_TEMPLATE(bootstrapPath));
|
|
84
89
|
this.memoryManager.writeFile(this.memoryManager.getMemoryPath(), MEMORY_TEMPLATE);
|
|
85
90
|
this.memoryManager.writeFile(this.memoryManager.getIdentityPath(), IDENTITY_TEMPLATE);
|
|
86
91
|
this.memoryManager.writeFile(this.memoryManager.getUserPath(), USER_TEMPLATE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapManager.js","sourceRoot":"","sources":["../src/BootstrapManager.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG
|
|
1
|
+
{"version":3,"file":"BootstrapManager.js","sourceRoot":"","sources":["../src/BootstrapManager.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,CACzB,aAAqB,EACrB,EAAE,CAAC;;;;iCAI4B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAkCL,aAAa;;;;CAIrD,CAAC;AAEF,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;CAevB,CAAC;AAEF,MAAM,iBAAiB,GAAG;;;;;;CAMzB,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;C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