@howaboua/pi-durable-pulses 0.11.0 → 0.13.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/NOTICE +4 -0
- package/README.md +1 -1
- package/dist/activation.js +2 -2
- package/dist/admission.d.ts +2 -2
- package/dist/contract.d.ts +1 -1
- package/dist/execution.d.ts +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.js +2 -2
- package/dist/tool.d.ts +6 -2
- package/package.json +7 -7
package/NOTICE
CHANGED
|
@@ -18,3 +18,7 @@ https://github.com/IgorWarzocha/howaboua-pi-stuff at revision
|
|
|
18
18
|
Copyright (c) 2026 Igor Warzocha. MIT licensed.
|
|
19
19
|
Ordinary Durable registration and native task receipts replace Pi tool transport.
|
|
20
20
|
Authoring guidance uses the existing Durable folder layout and admission rules.
|
|
21
|
+
|
|
22
|
+
Selected changes adapted from IgorWarzocha/howaboua-agent-stuff,
|
|
23
|
+
packages/pi-pulses at e1730759db35bf454d0c86c34a80e63129dd929f.
|
|
24
|
+
See docs/parity.md for the scope of this source sync.
|
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
|
|
6
|
+
npm install @howaboua/pi-durable-pulses@0.13.0
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
```markdown
|
package/dist/activation.js
CHANGED
|
@@ -263,7 +263,7 @@ var completed = {
|
|
|
263
263
|
outcome: { status: "completed", result: null }
|
|
264
264
|
};
|
|
265
265
|
var aborted = { status: "terminal", outcome: { status: "aborted" } };
|
|
266
|
-
var resultGuidance = "
|
|
266
|
+
var resultGuidance = "Deliver substantive results and logs through appropriate available tools or destinations. In your final message to the main agent, report the outcome and point to results without repeating them. Report procedural failures, ambiguities or suggestions separately and only in that final message. You MUST NOT edit the pulse definition unless it explicitly authorises the edit";
|
|
267
267
|
var Anchor = defineTask({
|
|
268
268
|
name: "howaboua.pulses.anchor",
|
|
269
269
|
version: 1,
|
|
@@ -945,7 +945,7 @@ function createPulsesTool(options, operations) {
|
|
|
945
945
|
} else {
|
|
946
946
|
const items = await operations.catalog(context, route.bindingKey);
|
|
947
947
|
text = [
|
|
948
|
-
'Run: {run:"
|
|
948
|
+
'Run: {run:"<pulse folder name>"}; authoring: {skill:true}',
|
|
949
949
|
...items.filter((item) => item.status === "valid").map((item) => item.path),
|
|
950
950
|
...items.filter((item) => item.status === "invalid").map((item) => `${item.path} (invalid: ${item.error})`)
|
|
951
951
|
].join(`
|
package/dist/admission.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Context } from "@earendil-works/chord";
|
|
1
|
+
import type { Context } from "@earendil-works/chord/context";
|
|
2
2
|
import { type Harness, type TaskId, type Tx } from "@earendil-works/pi-durable";
|
|
3
3
|
import type { PulsesOptions, PulseTrigger } from "./contract.ts";
|
|
4
4
|
import type { PulseDefinition } from "./definitions.ts";
|
|
5
5
|
import { type createRunTask } from "./tasks.ts";
|
|
6
6
|
/** Native task inputs are the request authority, not a second receipt ledger. */
|
|
7
|
-
export declare function admitted(tx: Tx, bindingKey: string, pulseId: string, requestId: string): Promise<TaskId<import("@earendil-works/chord").JsonValue> | undefined>;
|
|
7
|
+
export declare function admitted(tx: Tx, bindingKey: string, pulseId: string, requestId: string): Promise<TaskId<import("@earendil-works/chord/json").JsonValue> | undefined>;
|
|
8
8
|
export declare function validateConcurrency(limit: number): number;
|
|
9
9
|
export declare function createAdmission(host: () => Harness, options: PulsesOptions, Run: ReturnType<typeof createRunTask>, accepting: () => boolean): (definition: PulseDefinition, trigger: PulseTrigger, requestId: string, context: Context) => Promise<TaskId | undefined>;
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context } from "@earendil-works/chord";
|
|
1
|
+
import type { Context } from "@earendil-works/chord/context";
|
|
2
2
|
import type { ConversationId, SettledSubmissionRecord, TaskId, ToolExecutionApi, Tx } from "@earendil-works/pi-durable";
|
|
3
3
|
import type { ScheduledAdmissionDecision, ScheduledInput, ScheduledOccurrence, ScheduledResult, ScheduledSource, ScheduledTrigger, SchedulingBinding } from "@howaboua/pi-durable-components";
|
|
4
4
|
import type { PulseDefinition } from "./definitions.ts";
|
package/dist/execution.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonValue } from "@earendil-works/chord";
|
|
1
|
+
import type { JsonValue } from "@earendil-works/chord/json";
|
|
2
2
|
import type { ConversationId, SubmissionRecord, TaskRecord, Tx } from "@earendil-works/pi-durable";
|
|
3
3
|
export type PulseExecutionRequest = {
|
|
4
4
|
bindingKey: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context } from "@earendil-works/chord";
|
|
1
|
+
import type { Context } from "@earendil-works/chord/context";
|
|
2
2
|
import { type Harness, type TaskId, type ToolExecutionApi } from "@earendil-works/pi-durable";
|
|
3
3
|
import type { PulseRunRequest, PulsesOptions } from "./contract.ts";
|
|
4
4
|
import { type PulseCatalogItem } from "./definitions.ts";
|
|
@@ -45,7 +45,11 @@ export declare function createPulses(options: PulsesOptions): {
|
|
|
45
45
|
execute(args: {
|
|
46
46
|
run?: string;
|
|
47
47
|
skill?: true;
|
|
48
|
-
}, api: ToolExecutionApi<import("@earendil-works/chord").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord").JsonValue>>;
|
|
48
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord/json").JsonValue> | import("@earendil-works/pi-durable").ToolPark<import("@earendil-works/chord/json").JsonValue>>;
|
|
49
|
+
cancel?(args: {
|
|
50
|
+
run?: string;
|
|
51
|
+
skill?: true;
|
|
52
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<void>;
|
|
49
53
|
executionHints: {
|
|
50
54
|
discovery: "help";
|
|
51
55
|
};
|
|
@@ -75,7 +79,11 @@ export declare function createPulses(options: PulsesOptions): {
|
|
|
75
79
|
execute(args: {
|
|
76
80
|
run?: string;
|
|
77
81
|
skill?: true;
|
|
78
|
-
}, api: ToolExecutionApi<import("@earendil-works/chord").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord").JsonValue>>;
|
|
82
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord/json").JsonValue> | import("@earendil-works/pi-durable").ToolPark<import("@earendil-works/chord/json").JsonValue>>;
|
|
83
|
+
cancel?(args: {
|
|
84
|
+
run?: string;
|
|
85
|
+
skill?: true;
|
|
86
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<void>;
|
|
79
87
|
executionHints: {
|
|
80
88
|
discovery: "help";
|
|
81
89
|
};
|
|
@@ -92,7 +100,7 @@ export declare function createPulses(options: PulsesOptions): {
|
|
|
92
100
|
run(request: PulseRunRequest, context: Context): Promise<TaskId | undefined>;
|
|
93
101
|
/** Native task and input receipt for the latest run of this exact job/target. No receipt means not yet submitted. */
|
|
94
102
|
execution(request: PulseExecutionRequest, context: Context): Promise<{
|
|
95
|
-
task: import("@earendil-works/pi-durable").TaskRecord<import("@earendil-works/chord").JsonValue, import("@earendil-works/chord").JsonValue, import("@earendil-works/chord").JsonValue>;
|
|
103
|
+
task: import("@earendil-works/pi-durable").TaskRecord<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>;
|
|
96
104
|
submission: Extract<import("@earendil-works/pi-durable").SubmissionRecord, {
|
|
97
105
|
type: "input";
|
|
98
106
|
}> | undefined;
|
|
@@ -118,7 +126,7 @@ export declare function createPulses(options: PulsesOptions): {
|
|
|
118
126
|
history: import("./state.ts").PulseReference[];
|
|
119
127
|
activeTask?: TaskId;
|
|
120
128
|
key: string;
|
|
121
|
-
task: import("@earendil-works/pi-durable").TaskRecord<import("@earendil-works/chord").JsonValue, import("@earendil-works/chord").JsonValue, unknown> | undefined;
|
|
129
|
+
task: import("@earendil-works/pi-durable").TaskRecord<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue, unknown> | undefined;
|
|
122
130
|
}[]>;
|
|
123
131
|
stop(request: {
|
|
124
132
|
bindingKey: string;
|
package/dist/index.js
CHANGED
|
@@ -271,7 +271,7 @@ var completed = {
|
|
|
271
271
|
outcome: { status: "completed", result: null }
|
|
272
272
|
};
|
|
273
273
|
var aborted = { status: "terminal", outcome: { status: "aborted" } };
|
|
274
|
-
var resultGuidance = "
|
|
274
|
+
var resultGuidance = "Deliver substantive results and logs through appropriate available tools or destinations. In your final message to the main agent, report the outcome and point to results without repeating them. Report procedural failures, ambiguities or suggestions separately and only in that final message. You MUST NOT edit the pulse definition unless it explicitly authorises the edit";
|
|
275
275
|
var Anchor = defineTask({
|
|
276
276
|
name: "howaboua.pulses.anchor",
|
|
277
277
|
version: 1,
|
|
@@ -953,7 +953,7 @@ function createPulsesTool(options, operations) {
|
|
|
953
953
|
} else {
|
|
954
954
|
const items = await operations.catalog(context, route.bindingKey);
|
|
955
955
|
text = [
|
|
956
|
-
'Run: {run:"
|
|
956
|
+
'Run: {run:"<pulse folder name>"}; authoring: {skill:true}',
|
|
957
957
|
...items.filter((item) => item.status === "valid").map((item) => item.path),
|
|
958
958
|
...items.filter((item) => item.status === "invalid").map((item) => `${item.path} (invalid: ${item.error})`)
|
|
959
959
|
].join(`
|
package/dist/tool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context } from "@earendil-works/chord";
|
|
1
|
+
import type { Context } from "@earendil-works/chord/context";
|
|
2
2
|
import { type TaskId, type ToolExecutionApi } from "@earendil-works/pi-durable";
|
|
3
3
|
import { Type } from "typebox";
|
|
4
4
|
import type { PulseRunRequest, PulsesOptions } from "./contract.ts";
|
|
@@ -31,7 +31,11 @@ export declare function createPulsesTool(options: PulsesOptions, operations: {
|
|
|
31
31
|
execute(args: {
|
|
32
32
|
run?: string;
|
|
33
33
|
skill?: true;
|
|
34
|
-
}, api: ToolExecutionApi<import("@earendil-works/chord").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord").JsonValue>>;
|
|
34
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<import("@earendil-works/chord/json").JsonValue> | import("@earendil-works/pi-durable").ToolPark<import("@earendil-works/chord/json").JsonValue>>;
|
|
35
|
+
cancel?(args: {
|
|
36
|
+
run?: string;
|
|
37
|
+
skill?: true;
|
|
38
|
+
}, api: ToolExecutionApi<import("@earendil-works/chord/json").JsonValue, import("@earendil-works/chord/json").JsonValue>, context: Context): Promise<void>;
|
|
35
39
|
executionHints: {
|
|
36
40
|
discovery: "help";
|
|
37
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-durable-pulses",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Persistent native scheduled pulse conversations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"typebox": "1.
|
|
38
|
-
"@howaboua/pi-durable-components": "0.
|
|
37
|
+
"typebox": "1.4.7",
|
|
38
|
+
"@howaboua/pi-durable-components": "0.13.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@earendil-works/chord": "1.
|
|
42
|
-
"@earendil-works/pi-ai": "1.
|
|
43
|
-
"@earendil-works/pi-durable": "1.
|
|
44
|
-
"@modelcontextprotocol/sdk": ">=1.
|
|
41
|
+
"@earendil-works/chord": "1.8.0",
|
|
42
|
+
"@earendil-works/pi-ai": "1.8.0",
|
|
43
|
+
"@earendil-works/pi-durable": "1.8.0",
|
|
44
|
+
"@modelcontextprotocol/sdk": ">=1.32.2 <2"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|