@fingerskier/augment 0.5.0 → 0.5.1

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.
@@ -90,29 +90,29 @@ async function gatherProjectContext(deps, query, cwd, projectNameOverride) {
90
90
  return sections.join("\n\n");
91
91
  }
92
92
  function augmentSystemPrompt(projectName) {
93
- return `
94
- ## Augment Memory Autopilot
95
-
96
- Augment is available through Pi tools named \`augment_*\`. Current project name: \`${projectName}\`.
97
-
98
- For non-trivial coding, bug fixing, refactoring, migration, architecture/spec, or test work:
99
- 1. At task start, use injected Augment memory if present. If context was not injected or looks stale, call \`augment_project_context\` with the user's task and project_name=\`${projectName}\`.
100
- 2. Before changing tracked behavior or files, call \`augment_search\` with the file path, component, command, error, or behavior to find related specs, issues, architecture decisions, and prior work.
101
- 3. Before the final response, persist meaningful completed work with \`augment_upsert\`; call \`augment_init_project\` first if you need the current project_id.
102
- 4. Link related memories with \`augment_link\` when a clear relationship exists.
103
- 5. Do not store secrets, credentials, tokens, private keys, huge logs, dependency dumps, generated files, or full source files.
104
- 6. Numeric memory IDs are local handles. Relative memory paths are the durable identity across rebuilds and machines.
93
+ return `
94
+ ## Augment Memory Autopilot
95
+
96
+ Augment is available through Pi tools named \`augment_*\`. Current project name: \`${projectName}\`.
97
+
98
+ For non-trivial coding, bug fixing, refactoring, migration, architecture/spec, or test work:
99
+ 1. At task start, use injected Augment memory if present. If context was not injected or looks stale, call \`augment_project_context\` with the user's task and project_name=\`${projectName}\`.
100
+ 2. Before changing tracked behavior or files, call \`augment_search\` with the file path, component, command, error, or behavior to find related specs, issues, architecture decisions, and prior work.
101
+ 3. Before the final response, persist meaningful completed work with \`augment_upsert\`; call \`augment_init_project\` first if you need the current project_id.
102
+ 4. Link related memories with \`augment_link\` when a clear relationship exists.
103
+ 5. Do not store secrets, credentials, tokens, private keys, huge logs, dependency dumps, generated files, or full source files.
104
+ 6. Numeric memory IDs are local handles. Relative memory paths are the durable identity across rebuilds and machines.
105
105
  `;
106
106
  }
107
107
  function persistencePrompt(projectName, summary) {
108
- return `[augment] Persist meaningful completed work for project_name="${projectName}".
109
-
110
- 1. Call augment_init_project with project_name="${projectName}" and keep the returned project_id.
111
- 2. Identify distinct durable outcomes from this Pi session: requirements/specs, architecture decisions, bugs/risks, deferred TODOs, completed implementation WORK, and verification/test lessons.
112
- 3. Call augment_search first to avoid duplicates; update an existing memory when appropriate.
113
- 4. Call augment_upsert for each focused memory and augment_link for clear relationships.
114
- 5. Summarize what was persisted and what remains open.
115
-
108
+ return `[augment] Persist meaningful completed work for project_name="${projectName}".
109
+
110
+ 1. Call augment_init_project with project_name="${projectName}" and keep the returned project_id.
111
+ 2. Identify distinct durable outcomes from this Pi session: requirements/specs, architecture decisions, bugs/risks, deferred TODOs, completed implementation WORK, and verification/test lessons.
112
+ 3. Call augment_search first to avoid duplicates; update an existing memory when appropriate.
113
+ 4. Call augment_upsert for each focused memory and augment_link for clear relationships.
114
+ 5. Summarize what was persisted and what remains open.
115
+
116
116
  ${summary ? `User-provided summary:\n${summary}` : "Use the conversation and tool history as the source of truth."}`;
117
117
  }
118
118
  function looksNonTrivial(event) {