ferix-code 0.0.2-beta.4 → 0.0.2-beta.6

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/dist/index.d.ts CHANGED
@@ -2264,7 +2264,7 @@ declare const FerixParser: {
2264
2264
  * );
2265
2265
  * ```
2266
2266
  */
2267
- declare const ProductionLayers: Layer.Layer<LLM | SignalParser | PlanStore | SessionStore | ProgressStore | GuardrailsStore, never, never>;
2267
+ declare const ProductionLayers: Layer.Layer<GuardrailsStore | LLM | PlanStore | ProgressStore | SessionStore | SignalParser, never, never>;
2268
2268
  /**
2269
2269
  * Test layer bundle.
2270
2270
  *
@@ -2287,7 +2287,7 @@ declare const ProductionLayers: Layer.Layer<LLM | SignalParser | PlanStore | Ses
2287
2287
  * expect(result).toContainEqual({ _tag: "LoopCompleted", ... });
2288
2288
  * ```
2289
2289
  */
2290
- declare const TestLayers: Layer.Layer<LLM | SignalParser | PlanStore | SessionStore | ProgressStore | GuardrailsStore, never, never>;
2290
+ declare const TestLayers: Layer.Layer<GuardrailsStore | LLM | PlanStore | ProgressStore | SessionStore | SignalParser, never, never>;
2291
2291
  /**
2292
2292
  * Creates a test layer bundle with custom mock LLM events.
2293
2293
  *
@@ -2304,7 +2304,7 @@ declare const TestLayers: Layer.Layer<LLM | SignalParser | PlanStore | SessionSt
2304
2304
  * Effect.runPromise(program.pipe(Effect.provide(customTestLayers)));
2305
2305
  * ```
2306
2306
  */
2307
- declare function createTestLayers(events: Parameters<typeof Mock.layer>[0]["events"]): Layer.Layer<LLM | SignalParser | PlanStore | SessionStore | ProgressStore | GuardrailsStore, never, never>;
2307
+ declare function createTestLayers(events: Parameters<typeof Mock.layer>[0]["events"]): Layer.Layer<GuardrailsStore | LLM | PlanStore | ProgressStore | SessionStore | SignalParser, never, never>;
2308
2308
 
2309
2309
  /**
2310
2310
  * Required services for the orchestrator.
package/dist/index.js CHANGED
@@ -71,10 +71,11 @@ import { Command } from "commander";
71
71
  // package.json
72
72
  var package_default = {
73
73
  name: "ferix-code",
74
- version: "0.0.2-beta.4",
74
+ version: "0.0.2-beta.6",
75
75
  description: "Composable RALPH loops for AI coding agents - v2 with Effect",
76
76
  type: "module",
77
77
  bin: {
78
+ ferix: "dist/index.js",
78
79
  "ferix-code": "dist/index.js"
79
80
  },
80
81
  files: [
@@ -85,7 +86,8 @@ var package_default = {
85
86
  dev: "tsup --watch",
86
87
  "check-types": "tsc --noEmit",
87
88
  test: "bun test",
88
- "test:watch": "bun test --watch"
89
+ "test:watch": "bun test --watch",
90
+ bump: "npm version prerelease --preid=beta --workspaces=false && bun run build && bun publish --tag beta"
89
91
  },
90
92
  dependencies: {
91
93
  commander: "^14.0.0",
@@ -5393,9 +5395,12 @@ Use these XML-like tags to communicate structured information:
5393
5395
  <files-created>new-file.ts</files-created>
5394
5396
  </ferix:task-complete>
5395
5397
 
5396
- ### Loop Completion
5398
+ ### Loop Completion (use ONLY when ALL tasks are done)
5397
5399
  <ferix:complete>
5398
5400
 
5401
+ \u26A0\uFE0F IMPORTANT: Only emit <ferix:complete> after ALL tasks in the plan are complete.
5402
+ After completing a single task, emit <ferix:task-complete> and continue to the next task.
5403
+
5399
5404
  IMPORTANT: Always emit signals on their own lines, never inside markdown code blocks.`;
5400
5405
  var DISCOVERY_SYSTEM_PROMPT = `You are in the DISCOVERY phase of a ralph loop - an iterative AI coding workflow.
5401
5406
 
@@ -5436,14 +5441,17 @@ Review the code for quality:
5436
5441
  - When done, emit <ferix:review-complete/>`;
5437
5442
  var DEFAULT_COMPLETION_PROMPT = `## Completion
5438
5443
 
5439
- When the task is complete, emit:
5444
+ When you finish the CURRENT task, emit:
5440
5445
  <ferix:task-complete id="N">
5441
5446
  <summary>What was accomplished</summary>
5442
5447
  <files-modified>list of modified files</files-modified>
5443
5448
  <files-created>list of new files</files-created>
5444
5449
  </ferix:task-complete>
5445
5450
 
5446
- When ALL tasks are complete, emit <ferix:complete>`;
5451
+ After emitting task-complete, CONTINUE working on the next pending task.
5452
+
5453
+ \u26A0\uFE0F ONLY emit <ferix:complete> when ALL tasks in the plan are done.
5454
+ Do NOT emit <ferix:complete> after completing just one task - continue to the next task instead.`;
5447
5455
  function getPhasePrompt(phase, prompts, defaultPrompt) {
5448
5456
  return prompts?.phases?.[phase] ?? defaultPrompt;
5449
5457
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "ferix-code",
3
- "version": "0.0.2-beta.4",
3
+ "version": "0.0.2-beta.6",
4
4
  "description": "Composable RALPH loops for AI coding agents - v2 with Effect",
5
5
  "type": "module",
6
6
  "bin": {
7
+ "ferix": "dist/index.js",
7
8
  "ferix-code": "dist/index.js"
8
9
  },
9
10
  "files": [
@@ -14,7 +15,8 @@
14
15
  "dev": "tsup --watch",
15
16
  "check-types": "tsc --noEmit",
16
17
  "test": "bun test",
17
- "test:watch": "bun test --watch"
18
+ "test:watch": "bun test --watch",
19
+ "bump": "npm version prerelease --preid=beta --workspaces=false && bun run build && bun publish --tag beta"
18
20
  },
19
21
  "dependencies": {
20
22
  "commander": "^14.0.0",