@foundocs/foundocs-setup 0.3.18 → 0.3.20
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 +76 -0
- package/dist/bridge.mjs +319 -61
- package/package.json +5 -4
- package/skills/foundocs/SKILL.md +4 -0
- package/skills/foundocs/scripts/episode-checkpoint.mjs +207 -0
- package/skills/foundocs-capture-episode/SKILL.md +22 -0
- package/skills/foundocs-capture-episode/references/capture.md +60 -0
- package/src/bridge.mjs +49 -4
- package/src/cli.mjs +4 -4
- package/src/setup.mjs +84 -24
- package/src/skill-assets.mjs +3 -1
- package/templates/knowledge-policy.md +1 -0
package/src/skill-assets.mjs
CHANGED
|
@@ -11,14 +11,16 @@ export function skillDirectory(client) {
|
|
|
11
11
|
export function knowledgePolicy(client) {
|
|
12
12
|
return readFileSync(new URL('../templates/knowledge-policy.md', import.meta.url), 'utf8')
|
|
13
13
|
.replaceAll('{{SKILL_PATH}}', `${skillDirectory(client)}/SKILL.md`)
|
|
14
|
+
.replaceAll('{{EPISODE_SKILL_PATH}}', `${skillDirectory(client).slice(0, -SKILL_NAME.length)}foundocs-capture-episode/SKILL.md`)
|
|
14
15
|
.replaceAll('{{FOUNDOCS_SKILL_PATH}}', `${skillDirectory(client).slice(0, -SKILL_NAME.length)}foundocs/SKILL.md`).trim();
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export function skillAssets(client) {
|
|
18
19
|
const prefix = skillDirectory(client).slice(0, -SKILL_NAME.length);
|
|
19
20
|
return [
|
|
21
|
+
...['SKILL.md', 'references/capture.md'].map(name => ({ name: `foundocs-capture-episode/${name}` })),
|
|
20
22
|
...SKILL_FILES.map(name => ({ name: `${SKILL_NAME}/${name}` })),
|
|
21
|
-
...['SKILL.md', 'references/configuration.md', 'references/documents.md', 'references/dreaming.md', 'references/updates.md', 'references/effect-measurement.md', 'scripts/check-update.mjs', 'scripts/session-start.mjs'].map(name => ({ name: `foundocs/${name}` })),
|
|
23
|
+
...['SKILL.md', 'references/configuration.md', 'references/documents.md', 'references/dreaming.md', 'references/updates.md', 'references/effect-measurement.md', 'scripts/check-update.mjs', 'scripts/session-start.mjs', 'scripts/episode-checkpoint.mjs'].map(name => ({ name: `foundocs/${name}` })),
|
|
22
24
|
].map(({ name }) => ({
|
|
23
25
|
name: `${prefix}${name}`,
|
|
24
26
|
content: readFileSync(new URL(`../skills/${name}`, import.meta.url), 'utf8'),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- Before project context lookup, document management, or any Foundocs MCP call, read and follow [foundocs]({{FOUNDOCS_SKILL_PATH}}).
|
|
2
2
|
- Write Foundocs documents only when requested or approved by the user. Otherwise propose the purpose/content and wait; do not reconfirm the same approved scope.
|
|
3
3
|
- When the user provides durable project context, or lasting rules, confirmed decisions or verified reusable learnings arise (including after correcting your own mistakes), follow [foundocs-capture-knowledge]({{SKILL_PATH}}) in the same turn, even without a request to save. Skip when there is nothing new to keep.
|
|
4
|
+
- Keep only important confirmed episodes with [foundocs-capture-episode]({{EPISODE_SKILL_PATH}}); skip routine turns locally.
|
|
4
5
|
- Run Dreaming only on an explicit user request (including “꿈꾸자” or “꿈구자”); follow the foundocs skill. Quoted triggers and ordinary capture do not start Dreaming.
|
|
5
6
|
- Project configuration: `foundocs.json` beside this governing AGENTS.md; resolve it from that directory, including when working in nested directories.
|