@hachej/boring-agent 0.4.36 → 0.4.37
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 +1 -2
- package/dist/contracts.d.ts +1 -12
- package/dist/delivery.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/attachment.d.ts +0 -5
- package/dist/attachment.js +0 -4
package/README.md
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/native re-exports exact Pi handles, configuration, task/view types and native ToolRegistration/ToolExecutionApi/ToolExecutionResult/hooks. Use upstream defineTool, registry installation and runtime values directly. There is no parallel Boring HostOperation/RuntimeSchema/tool engine.
|
|
4
4
|
|
|
5
|
-
/contracts contains only
|
|
5
|
+
/contracts contains only original runtime-question/delivery references. Passive attachment takes the native Harness, not a second possibly unrelated writable Registry. Host subtypes retain their native handle. Domain services keep their own signatures; no file package is required to configure an agent.
|
|
6
6
|
|
|
7
|
-
`attachHarness({ harness })` preserves the exact host handle. It acquires no observers or resources, so detaching is passive and never closes the host. Use native observation APIs directly and release their subscriptions under their own owner.
|
|
8
7
|
|
|
9
8
|
## One file tool set: the guard
|
|
10
9
|
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/** Borrow only the native handle. A second independently supplied Registry
|
|
3
|
-
* cannot prove it belongs to this Harness. The host installs native features
|
|
4
|
-
* explicitly through its own registry; passive attachment needs no registry.
|
|
5
|
-
*/
|
|
6
|
-
export interface AttachmentInput<NativeHarness extends Harness = Harness> {
|
|
7
|
-
readonly harness: NativeHarness;
|
|
8
|
-
}
|
|
9
|
-
export interface BorrowedAttachment<NativeHarness extends Harness = Harness> {
|
|
10
|
-
readonly harness: NativeHarness;
|
|
11
|
-
readonly detach: () => Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import type { ConversationId, TaskId } from '@earendil-works/pi-durable';
|
|
13
2
|
/** Host services keep their own APIs. Native defineTool/ToolRegistration,
|
|
14
3
|
* ToolExecutionApi and ToolExecutionResult are the tool contract; no parallel
|
|
15
4
|
* Boring HostOperation, RuntimeSchema or reduced execution-result envelope.
|
package/dist/delivery.js
CHANGED
|
@@ -147,7 +147,7 @@ async function deliveryEvidence(input, request, result) {
|
|
|
147
147
|
|| change?.kind !== expected.kind || !targetMatches || !beforeMatches)
|
|
148
148
|
result = unknown('Receipt does not match the admitted delivery');
|
|
149
149
|
}
|
|
150
|
-
else if (result.kind === '
|
|
150
|
+
else if (result.kind === 'unknown' && result.operationId !== id) {
|
|
151
151
|
result = unknown('Provider returned incompatible delivery evidence');
|
|
152
152
|
}
|
|
153
153
|
return result;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-agent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -188,8 +188,8 @@
|
|
|
188
188
|
"@earendil-works/pi-durable": "~1.4.0",
|
|
189
189
|
"@earendil-works/pi-ai": "~1.4.0",
|
|
190
190
|
"@earendil-works/chord": "~1.4.0",
|
|
191
|
-
"@hachej/boring-files": "^0.4.
|
|
192
|
-
"@hachej/boring-ui-kit": "^0.4.
|
|
191
|
+
"@hachej/boring-files": "^0.4.37",
|
|
192
|
+
"@hachej/boring-ui-kit": "^0.4.37",
|
|
193
193
|
"typebox": "1.3.27",
|
|
194
194
|
"xlsx": "^0.20.3"
|
|
195
195
|
},
|
package/dist/attachment.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Harness } from '@earendil-works/pi-durable';
|
|
2
|
-
import type { AttachmentInput, BorrowedAttachment } from './contracts.js';
|
|
3
|
-
/** Passive borrowing acquires no observer, storage or execution lifetime. */
|
|
4
|
-
export declare function attachHarness<NativeHarness extends Harness>(input: AttachmentInput<NativeHarness>): BorrowedAttachment<NativeHarness>;
|
|
5
|
-
//# sourceMappingURL=attachment.d.ts.map
|
package/dist/attachment.js
DELETED