@howaboua/pi-durable-pulses 0.10.0 → 0.11.0

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
@@ -3,7 +3,7 @@
3
3
  Persistent, folder-owned scheduled work for Pi Durable. Each `pulses/<id>/PULSE.md` stays beside its local instructions, journals and artifacts. Removing a definition or this component never deletes that folder or native conversation history.
4
4
 
5
5
  ```sh
6
- npm install https://github.com/IgorWarzocha/pi-durable-components/releases/download/v0.10.0/howaboua-pi-durable-pulses-0.10.0.tgz
6
+ npm install https://github.com/IgorWarzocha/pi-durable-components/releases/download/v0.11.0/howaboua-pi-durable-pulses-0.11.0.tgz
7
7
  ```
8
8
 
9
9
  ```markdown
@@ -1134,10 +1134,17 @@ function createPulses(options) {
1134
1134
  unsubscribeCommits?.();
1135
1135
  unsubscribeCommits = undefined;
1136
1136
  });
1137
- unsubscribeCommits = value.subscribeCommits((publication) => {
1138
- if (publication.changes.some((change) => change.type === "task" && change.value.kind === "howaboua.pulses.run" && change.value.state.status === "terminal"))
1139
- releaseCapacity(context);
1137
+ const commits = value.observeCommits({
1138
+ advance(publication) {
1139
+ if (publication.changes.some((change) => change.type === "task" && change.value.kind === "howaboua.pulses.run" && change.value.state.status === "terminal"))
1140
+ releaseCapacity(context);
1141
+ },
1142
+ end(end) {
1143
+ if (end.kind === "failed" && accepting)
1144
+ options.onError(end.error);
1145
+ }
1140
1146
  });
1147
+ unsubscribeCommits = () => commits.detach();
1141
1148
  timer = setInterval(() => {
1142
1149
  scan(context).catch(options.onError);
1143
1150
  }, 300000);
package/dist/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export declare function createPulses(options: PulsesOptions): {
34
34
  run?: string;
35
35
  skill?: true;
36
36
  };
37
- structuredOutputSchema?: import("typebox").TSchema;
37
+ structuredOutputSchema?: object;
38
38
  callers?: readonly ("model" | "tools")[];
39
39
  deferred?: true;
40
40
  outputLimits?: {
@@ -64,7 +64,7 @@ export declare function createPulses(options: PulsesOptions): {
64
64
  run?: string;
65
65
  skill?: true;
66
66
  };
67
- structuredOutputSchema?: import("typebox").TSchema;
67
+ structuredOutputSchema?: object;
68
68
  callers?: readonly ("model" | "tools")[];
69
69
  deferred?: true;
70
70
  outputLimits?: {
package/dist/index.js CHANGED
@@ -1150,10 +1150,17 @@ function createPulses(options) {
1150
1150
  unsubscribeCommits?.();
1151
1151
  unsubscribeCommits = undefined;
1152
1152
  });
1153
- unsubscribeCommits = value.subscribeCommits((publication) => {
1154
- if (publication.changes.some((change) => change.type === "task" && change.value.kind === "howaboua.pulses.run" && change.value.state.status === "terminal"))
1155
- releaseCapacity(context);
1153
+ const commits = value.observeCommits({
1154
+ advance(publication) {
1155
+ if (publication.changes.some((change) => change.type === "task" && change.value.kind === "howaboua.pulses.run" && change.value.state.status === "terminal"))
1156
+ releaseCapacity(context);
1157
+ },
1158
+ end(end) {
1159
+ if (end.kind === "failed" && accepting)
1160
+ options.onError(end.error);
1161
+ }
1156
1162
  });
1163
+ unsubscribeCommits = () => commits.detach();
1157
1164
  timer = setInterval(() => {
1158
1165
  scan(context).catch(options.onError);
1159
1166
  }, 300000);
package/dist/tool.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare function createPulsesTool(options: PulsesOptions, operations: {
20
20
  run?: string;
21
21
  skill?: true;
22
22
  };
23
- structuredOutputSchema?: Type.TSchema;
23
+ structuredOutputSchema?: object;
24
24
  callers?: readonly ("model" | "tools")[];
25
25
  deferred?: true;
26
26
  outputLimits?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-durable-pulses",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Persistent native scheduled pulse conversations",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,12 +35,12 @@
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
37
  "typebox": "1.3.27",
38
- "@howaboua/pi-durable-components": "0.10.0"
38
+ "@howaboua/pi-durable-components": "0.11.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@earendil-works/chord": "1.4.0",
42
- "@earendil-works/pi-ai": "1.4.0",
43
- "@earendil-works/pi-durable": "1.4.0",
41
+ "@earendil-works/chord": "1.5.0",
42
+ "@earendil-works/pi-ai": "1.5.0",
43
+ "@earendil-works/pi-durable": "1.5.0",
44
44
  "@modelcontextprotocol/sdk": ">=1.25.2 <2"
45
45
  },
46
46
  "publishConfig": {