@foundocs/foundocs-setup 0.3.22 → 0.3.23

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
@@ -211,6 +211,9 @@ including completed features/fixes, merged PRs and published releases, without
211
211
  waiting for a reminder. It also judges important confirmed decisions, discoveries
212
212
  and concrete blockers. Before finishing, it checks current context for missed
213
213
  outcomes, distinguishing implementation, merge, release and production verification.
214
+ Episodes read as short stories or retrospectives, using a TL;DR, Markdown headings
215
+ and bullets to explain context, changes and meaning. Test counts and commit hashes
216
+ belong in structured evidence by default, not in the narrative.
214
217
  Hooks are reminders and retry aids: an enabled project can use remote capture
215
218
  without a checkpoint, with stable goal/event identities and bounded identical retries.
216
219
  That direct path has no persistent local outbox; see the episode capture contract. Routine
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@foundocs/foundocs-setup",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Repeatable project setup and agent skills for the Foundocs remote MCP server",
5
5
  "foundocsRelease": {
6
- "summary": "Capture meaningful verified achievements in the same turn, including PR merges and releases, even without a hook checkpoint; preserve precise phase completion and duplicate-safe retries."
6
+ "summary": "Write episodes as coherent stories or retrospectives with Markdown headings and bullets, keeping test counts and commit hashes in structured evidence rather than narrative prose."
7
7
  },
8
8
  "type": "module",
9
9
  "bin": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: foundocs-capture-episode
3
- description: Automatically record meaningful verified achievements during ordinary work, including completed features or fixes, merged PRs and published releases, plus confirmed decisions, discoveries and concrete blockers. Capture in the same turn without a reminder, even without a hook checkpoint. Skip routine steps, duplicate reports and bookkeeping.
3
+ description: Automatically record meaningful verified achievements as concise stories or retrospectives during ordinary work, including completed features or fixes, merged PRs and published releases, plus confirmed decisions, discoveries and concrete blockers. Capture in the same turn without a reminder, even without a hook checkpoint. Skip routine steps, duplicate reports and bookkeeping.
4
4
  ---
5
5
 
6
6
  # Selective episode capture
@@ -15,7 +15,7 @@ A confirmed decision, verified discovery or concrete blocker can also be worth k
15
15
 
16
16
  Describe the completed scope precisely. A PR opened with review or required CI outstanding is `in_progress`, with `remainingWork`. A verified merge can complete the development-and-merge phase when deployment is outside that phase; say explicitly that release or production verification has not been performed. If deployment is part of the current phase and remains, keep it `in_progress`. Do not invent later requirements to prevent an otherwise finished phase from completing. `completed` requires confirmed success and `remainingWork:null`; unknown results are deferred, never reported as success.
17
17
 
18
- Write 2–4 concise Markdown blocks in the user's language: a short plain-language TL;DR first, followed by the useful outcome, evidence and scope. Use headings only when they help. No transcripts, private reasoning, raw logs, secrets or speculative conclusions. Knowledge capture is separate: link useful knowledge instead of repeating it, and save lasting rules or reusable lessons through the knowledge skill.
18
+ Write one coherent story, diary entry or short retrospective in the user's language, not an execution report. Connect the situation or friction, the choice and changes, and what is different now; use only known context and never invent feelings, motives or impact. Start with a short TL;DR, then use meaningful Markdown headings and bullets where they make the story easier to read, especially for concrete changes. Keep test counts, commit hashes and command output out of the prose by default; put verification and artifact references in the structured evidence fields. Read [the writing guidance and example](references/capture.md#write-one-coherent-story). Knowledge capture is separate: link useful knowledge instead of repeating it, and save lasting rules or reusable lessons through the knowledge skill.
19
19
 
20
20
  ## Choose the available capture path
21
21
 
@@ -2,6 +2,36 @@
2
2
 
3
3
  Read current live tool schemas. Every remote call uses the exact configured project_id. Tools are `capture_episode`, `search_episodes`, `get_episode`, `get_episode_candidates`, `get_episode_candidate`, `get_episode_revisions`. If capture or required recall is unavailable, skip (acknowledge locally only when a trusted checkpoint exists); do not write another content kind. Authentication/access/configuration failures stop Foundocs calls.
4
4
 
5
+ ## Write one coherent story
6
+
7
+ An episode should read like one story, diary entry or short retrospective. Its value is the context and change a future reader can understand, not proof that the agent ran commands. Let the reader follow what was awkward or needed attention, what was chosen and changed, and what that means now. Use only facts and reasons supported by the task; do not fabricate emotions, dialogue, user reactions, metrics or a dramatic lesson. A small result may deserve a small story.
8
+
9
+ - Give the episode a title about the change or insight, rather than a ticket, commit or test result.
10
+ - Put a short plain-language TL;DR in `summary[0]`, so the list preview conveys the story. The entire summary remains 2–4 Markdown blocks, each within the live tool's character limit.
11
+ - Use `##` or `###` headings for meaningful parts of the story and blank lines between paragraphs. Use bullet lists for parallel changes or observations. A block can contain a heading, prose and a list; blocks are not restricted to single sentences. Do not force every episode into the same headings or a chronological activity log.
12
+ - Explain concrete changes through the experience they affect. Keep relevant uncertainty or unfinished scope in plain language, and use the structured status/remainingWork fields accurately.
13
+ - Omit test-pass counts, commit hashes, command names, build logs and checklist receipts from narrative prose by default. Keep required artifact and verification references in `event.evidence` (and relevant content links in `event.links`). Include a technical detail in prose only when it is the subject of the story or essential to understanding the change.
14
+
15
+ For a sidebar UX change, a narrative could look like this when supported by the task:
16
+
17
+ ```markdown
18
+ The sidebar now separates choosing a workspace from finding a project. What began as a request for a clearer project list also helped simplify the menu hierarchy.
19
+
20
+ ## Giving each choice its own place
21
+
22
+ The old switcher mixed workspaces and projects, so the design gave them separate places:
23
+
24
+ - A workspace-only switcher at the top.
25
+ - A project list directly underneath, with pages for longer lists.
26
+ - A persistent workspace settings button at the bottom.
27
+
28
+ ## Removing a label that no longer helped
29
+
30
+ Once the projects were visible, another “Project” heading above Overview and Episodes felt redundant. Removing it let those two entries read as the project's starting points while the other groups kept their meaning. The development and merge are complete; this account does not claim a production rollout.
31
+ ```
32
+
33
+ This illustrates narrative flow and Markdown, not mandatory wording or sections. Do not copy its facts to another task. The PR, checks and exact revision belong in the evidence fields rather than being appended as an audit block.
34
+
5
35
  ## Select and ground
6
36
 
7
37
  The host supplies semantic judgments from current task context; the server validates structure, evidence references, state, novelty, versions and authority. It does not independently verify a conversation. No keyword or message-length heuristic decides importance.