freddie 0.0.103 → 0.0.104
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/package.json +16 -3
- package/src/browser/index.js +23 -0
package/package.json
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freddie",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.104",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Open JS agent harness built on pi-mono, floosie, xstate, and anentrypoint-design",
|
|
6
6
|
"bin": {
|
|
7
7
|
"freddie": "./bin/freddie.js"
|
|
8
8
|
},
|
|
9
9
|
"main": "./src/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./src/index.js",
|
|
12
|
+
"./browser": {
|
|
13
|
+
"browser": "./dist/browser/freddie.js",
|
|
14
|
+
"default": "./src/browser/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
"scripts": {
|
|
11
18
|
"start": "node bin/freddie.js",
|
|
12
|
-
"test": "node test.js"
|
|
19
|
+
"test": "node test.js",
|
|
20
|
+
"build:browser": "vite build --config vite.browser.config.js"
|
|
13
21
|
},
|
|
14
22
|
"dependencies": {
|
|
23
|
+
"@anentrypoint/libsql-plugkit-client": "github:AnEntrypoint/libsql-plugkit-client",
|
|
15
24
|
"@libsql/client": "^0.5.0",
|
|
16
25
|
"@mariozechner/pi-agent-core": "^0.70.6",
|
|
17
26
|
"@mariozechner/pi-ai": "^0.70.6",
|
|
@@ -25,6 +34,7 @@
|
|
|
25
34
|
"floosie": "^0.6.14",
|
|
26
35
|
"gm-cc": "^2.0.1081",
|
|
27
36
|
"js-yaml": "^4.1.0",
|
|
37
|
+
"libsql-plugkit-client": "^0.0.10",
|
|
28
38
|
"plugsdk": "^1.0.20",
|
|
29
39
|
"xstate": "^5.31.0",
|
|
30
40
|
"zod": "^4.0.0"
|
|
@@ -71,5 +81,8 @@
|
|
|
71
81
|
"freddie",
|
|
72
82
|
"pi-mono",
|
|
73
83
|
"xstate"
|
|
74
|
-
]
|
|
84
|
+
],
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"vite": "^8.0.13"
|
|
87
|
+
}
|
|
75
88
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Browser entry for freddie. Polymorphic with the Node CLI.
|
|
2
|
+
// node:* imports are expected to be satisfied by the host environment shims
|
|
3
|
+
// (thebird provides them via docs/vendor/esm/node/ + docs/shell-node-*.js).
|
|
4
|
+
//
|
|
5
|
+
// This entry deliberately re-exports only the browser-safe surface needed
|
|
6
|
+
// to embed freddie as an agent in a web OS: the xstate-driven agent machine,
|
|
7
|
+
// the host bootstrapper, and configuration defaults. It avoids re-exporting
|
|
8
|
+
// CLI/TUI/dashboard/MCP/ACP server code which pulls in commander, express,
|
|
9
|
+
// child_process, and other Node-only subsystems.
|
|
10
|
+
|
|
11
|
+
export { bootHost, host, resetHostForTests } from '../host/index.js'
|
|
12
|
+
export { createAgentMachine, runTurn } from '../agent/machine.js'
|
|
13
|
+
export { createActor, createMachine, assign, fromPromise, waitFor } from 'xstate'
|
|
14
|
+
|
|
15
|
+
// Re-export config defaults under the documented browser name.
|
|
16
|
+
import { DEFAULT_CONFIG } from '../config.js'
|
|
17
|
+
export const FREDDIE_DEFAULT_CONFIG = DEFAULT_CONFIG
|
|
18
|
+
export { DEFAULT_CONFIG }
|
|
19
|
+
|
|
20
|
+
// Optional extras that are browser-friendly when their node:* imports are shimmed.
|
|
21
|
+
export { buildContext, blocksToSystemMessage, ContextPlugins } from '../context/engine.js'
|
|
22
|
+
export { listSkills, findSkill, skillAsUserMessage } from '../skills/index.js'
|
|
23
|
+
export { log, logger } from '../observability/log.js'
|