@polpo-ai/core 0.5.2 → 0.5.3
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/adapter.d.ts +6 -0
- package/dist/adapter.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/adapter.d.ts
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* coupling @polpo-ai/core to specific runtime implementations.
|
|
7
7
|
*/
|
|
8
8
|
import type { AgentActivity, TaskResult, TaskOutcome, ReasoningLevel } from "./types.js";
|
|
9
|
+
import type { FileSystem } from "./filesystem.js";
|
|
10
|
+
import type { Shell } from "./shell.js";
|
|
9
11
|
/**
|
|
10
12
|
* Handle returned by the engine after spawning an agent.
|
|
11
13
|
* The orchestrator uses this to monitor and control the agent.
|
|
@@ -57,5 +59,9 @@ export interface SpawnContext {
|
|
|
57
59
|
whatsappStore?: unknown;
|
|
58
60
|
/** WhatsApp send function — runtime-specific, provided by the shell layer. */
|
|
59
61
|
whatsappSendMessage?: (jid: string, text: string) => Promise<string | undefined>;
|
|
62
|
+
/** FileSystem implementation — created by the orchestrator, passed down to tools. */
|
|
63
|
+
fs?: FileSystem;
|
|
64
|
+
/** Shell implementation — created by the orchestrator, passed down to tools. */
|
|
65
|
+
shell?: Shell;
|
|
60
66
|
}
|
|
61
67
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EA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