@atolis-hq/wake 0.3.10 → 0.3.11

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.
@@ -118,8 +118,7 @@ export async function runProjectionPump(root, signal) {
118
118
  const intervalMs = 1000;
119
119
  while (!signal.aborted) {
120
120
  try {
121
- if (!(await root.isPaused()))
122
- await root.projectionRunner.runRegisteredOnce();
121
+ await root.projectionRunner.runRegisteredOnce();
123
122
  }
124
123
  catch (error) {
125
124
  process.stderr.write(`Wake projection pump failed: ${error instanceof Error ? error.message : String(error)}\n`);
@@ -108,4 +108,4 @@ export function resolveWakeVersion(options = {}) {
108
108
  return `g${headHash.slice(0, 7)}`;
109
109
  return '0.1.0-dev';
110
110
  }
111
- export const wakeVersion = "g7df87c0";
111
+ export const wakeVersion = "g997d170";
@@ -8,8 +8,10 @@ export function createIntakePipeline(stages) {
8
8
  const isPaused = async () => (await stages.isPaused?.()) ?? false;
9
9
  return {
10
10
  async run(signal) {
11
- if (await isPaused())
11
+ if (await isPaused()) {
12
+ await stages.catchUpProjections();
12
13
  return { processed: false };
14
+ }
13
15
  await stages.catchUpProjections();
14
16
  try {
15
17
  if (await isPaused())
@@ -21,8 +23,7 @@ export function createIntakePipeline(stages) {
21
23
  return { processed: polled > 0 || translated > 0 };
22
24
  }
23
25
  finally {
24
- if (!(await isPaused()))
25
- await stages.catchUpProjections();
26
+ await stages.catchUpProjections();
26
27
  }
27
28
  },
28
29
  };
@@ -7,8 +7,10 @@
7
7
  export function createRunnerPipeline(stages) {
8
8
  const isPaused = async () => (await stages.isPaused?.()) ?? false;
9
9
  const runOnce = async (options, signal) => {
10
- if (await isPaused())
10
+ if (await isPaused()) {
11
+ await stages.catchUpProjections();
11
12
  return { kind: 'paused' };
13
+ }
12
14
  await stages.catchUpProjections();
13
15
  try {
14
16
  if (await isPaused())
@@ -38,8 +40,7 @@ export function createRunnerPipeline(stages) {
38
40
  return result;
39
41
  }
40
42
  finally {
41
- if (!(await isPaused()))
42
- await stages.catchUpProjections();
43
+ await stages.catchUpProjections();
43
44
  }
44
45
  };
45
46
  // The API's manual Tick Now endpoint and the resident tick host share this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {