@launch11/srgical 0.0.3 → 0.0.4

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
@@ -162,8 +162,12 @@ honestly instead of falling back to a fake Claude path.
162
162
  ## Current Augment Caveat
163
163
 
164
164
  Augment support is wired to the documented `auggie` automation flags: `--print`, `--quiet`, `--instruction-file`,
165
- `--workspace-root`, `--allow-indexing`, `--wait-for-indexing`, `--dont-save-session`, `--max-turns`, and `--ask` for
166
- planner-only runs.
165
+ `--workspace-root`, `--rules`, `--allow-indexing`, `--wait-for-indexing`, `--max-turns`, and `--ask` for planner-only
166
+ runs.
167
+
168
+ The defaults deliberately force workspace indexing and append srgical-specific Augment rules so the agent stays biased
169
+ toward incremental planning, validated execution, and clear next-step handoffs. Session history is also left on so
170
+ workspace iterations can accumulate inside Auggie instead of being treated as throwaway runs.
167
171
 
168
172
  That means successful Augment execution still depends on a real Augment CLI install, an authenticated session such as
169
173
  `auggie login` or `AUGMENT_SESSION_AUTH`, and whatever automation entitlements or local permission policies your
@@ -17,6 +17,14 @@ const local_pack_1 = require("./local-pack");
17
17
  const planning_epochs_1 = require("./planning-epochs");
18
18
  const prompts_1 = require("./prompts");
19
19
  const AUGMENT_INSTALL_HINT = "install Augment CLI to enable";
20
+ const AUGMENT_DEFAULT_RULES = `You are operating inside srgical, a local-first planning and iteration machine.
21
+
22
+ Default behavior:
23
+ - Ground decisions in the current repository state and the current .srgical files when they exist.
24
+ - Prefer small validated steps over broad speculative rewrites.
25
+ - Preserve a clear next-step handoff after each meaningful change.
26
+ - Treat planning as preparation for execution, not open-ended brainstorming.
27
+ - Keep outputs practical, explicit, and ready for the next iteration.`;
20
28
  let augmentCommandPromise;
21
29
  let forcedAugmentCommand = null;
22
30
  let spawnAndCaptureImpl = spawnAndCaptureBase;
@@ -99,6 +107,7 @@ function resetAugmentRuntimeForTesting() {
99
107
  async function runAugmentExec(options) {
100
108
  const tempDir = await (0, promises_1.mkdtemp)(node_path_1.default.join(node_os_1.default.tmpdir(), "srgical-augment-"));
101
109
  const promptFile = node_path_1.default.join(tempDir, "prompt.txt");
110
+ const rulesFile = node_path_1.default.join(tempDir, "rules.md");
102
111
  const command = await resolveAugmentCommand();
103
112
  const args = [
104
113
  "--print",
@@ -107,9 +116,10 @@ async function runAugmentExec(options) {
107
116
  options.cwd,
108
117
  "--instruction-file",
109
118
  promptFile,
119
+ "--rules",
120
+ rulesFile,
110
121
  "--allow-indexing",
111
- "--wait-for-indexing",
112
- "--dont-save-session"
122
+ "--wait-for-indexing"
113
123
  ];
114
124
  if (options.askMode) {
115
125
  args.push("--ask");
@@ -118,6 +128,7 @@ async function runAugmentExec(options) {
118
128
  args.push("--max-turns", String(options.maxTurns));
119
129
  }
120
130
  await (0, promises_1.writeFile)(promptFile, options.prompt, "utf8");
131
+ await (0, promises_1.writeFile)(rulesFile, AUGMENT_DEFAULT_RULES, "utf8");
121
132
  try {
122
133
  const result = await spawnAndCaptureImpl(command, args, options.cwd);
123
134
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launch11/srgical",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A polished local-first CLI for planning and executing long AI-driven delivery sequences.",
5
5
  "files": [
6
6
  "dist",