@fungi.computer/mule 0.0.1 → 0.0.2

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/effect.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import * as Stream from "effect/Stream";
4
4
  import type { MuleCompletedTurn, MuleError, MuleEvent, MuleRetryObservation, MuleRunOutcome, MuleRunSettings, MuleToolExecutionPart, MuleToolRejection } from "./contract.js";
5
5
  export type { Api, AssistantMessage, AssistantMessageEvent, Context, ImageContent, JsonValue, Message, Model, RetryPolicy, SimpleStreamOptions, SystemMessage, TextContent, ThinkingContent, ToolCall, ToolResultMessage, Usage, UserMessage, } from "@earendil-works/pi-ai";
6
- export { Type } from "@earendil-works/pi-ai";
6
+ export { Type } from "typebox";
7
7
  export type { MuleRetryObservation } from "./contract.js";
8
8
  /**
9
9
  * Pi coding-agent's retry defaults (`settings-manager.js` `getRetrySettings()`,
package/dist/effect.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import { nanoid } from "@fungi.computer/cairn";
2
- import { isContextOverflow as piIsContextOverflow, normalizeContext, retryAssistantCall, } from "@earendil-works/pi-ai";
2
+ // Pi's root entry also evaluates its TypeBox validator compiler and model
3
+ // stores; Mule needs only these leaf helpers, so it imports them directly and
4
+ // keeps that work out of every host's startup.
5
+ import { isContextOverflow as piIsContextOverflow } from "@earendil-works/pi-ai/utils/overflow";
6
+ import { retryAssistantCall } from "@earendil-works/pi-ai/utils/retry";
7
+ import { normalizeContext } from "@earendil-works/pi-ai/utils/transcript";
3
8
  import * as Effect from "effect/Effect";
4
9
  import * as Schema from "effect/Schema";
5
10
  import * as Cause from "effect/Cause";
@@ -9,7 +14,7 @@ import * as Fiber from "effect/Fiber";
9
14
  import * as Option from "effect/Option";
10
15
  import * as Semaphore from "effect/Semaphore";
11
16
  import * as Stream from "effect/Stream";
12
- export { Type } from "@earendil-works/pi-ai";
17
+ export { Type } from "typebox";
13
18
  /**
14
19
  * Pi coding-agent's retry defaults (`settings-manager.js` `getRetrySettings()`,
15
20
  * `@earendil-works/pi-ai` 0.99.0, the version pinned in the lockfile). Pi-ai's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/mule",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "Effect-native Pi model and tool loop",
6
6
  "type": "module",
@@ -30,7 +30,8 @@
30
30
  "dependencies": {
31
31
  "@earendil-works/pi-ai": "0.99.2",
32
32
  "@fungi.computer/cairn": "0.0.1",
33
- "effect": "4.0.2"
33
+ "effect": "4.0.2",
34
+ "typebox": "1.3.27"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/node": "24.13.3",