@geminixiang/mikan 1.0.0-beta.24 → 1.0.0-beta.26
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/CHANGELOG.md +25 -0
- package/README.md +8 -12
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +9 -8
- package/dist/agent.js.map +1 -1
- package/dist/cli/boot.d.ts +1 -1
- package/dist/cli/boot.d.ts.map +1 -1
- package/dist/cli/boot.js +15 -7
- package/dist/cli/boot.js.map +1 -1
- package/dist/commands/sandbox.d.ts.map +1 -1
- package/dist/commands/sandbox.js +5 -2
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +39 -12
- package/dist/config.js.map +1 -1
- package/dist/execution-resolver.d.ts +2 -1
- package/dist/execution-resolver.d.ts.map +1 -1
- package/dist/execution-resolver.js +7 -4
- package/dist/execution-resolver.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +87 -19
- package/dist/main.js.map +1 -1
- package/dist/sandbox/firecracker.d.ts +18 -0
- package/dist/sandbox/firecracker.d.ts.map +1 -0
- package/dist/sandbox/firecracker.js +222 -0
- package/dist/sandbox/firecracker.js.map +1 -0
- package/dist/sandbox/gondolin-bootstrap.d.ts +26 -0
- package/dist/sandbox/gondolin-bootstrap.d.ts.map +1 -0
- package/dist/sandbox/gondolin-bootstrap.js +27 -0
- package/dist/sandbox/gondolin-bootstrap.js.map +1 -0
- package/dist/sandbox/gondolin-contract.d.ts +125 -0
- package/dist/sandbox/gondolin-contract.d.ts.map +1 -0
- package/dist/sandbox/gondolin-contract.js +155 -0
- package/dist/sandbox/gondolin-contract.js.map +1 -0
- package/dist/sandbox/gondolin-fleet.d.ts +104 -0
- package/dist/sandbox/gondolin-fleet.d.ts.map +1 -0
- package/dist/sandbox/gondolin-fleet.js +330 -0
- package/dist/sandbox/gondolin-fleet.js.map +1 -0
- package/dist/sandbox/gondolin-gateway.d.ts +86 -0
- package/dist/sandbox/gondolin-gateway.d.ts.map +1 -0
- package/dist/sandbox/gondolin-gateway.js +407 -0
- package/dist/sandbox/gondolin-gateway.js.map +1 -0
- package/dist/sandbox/gondolin-inventory.d.ts +75 -0
- package/dist/sandbox/gondolin-inventory.d.ts.map +1 -0
- package/dist/sandbox/gondolin-inventory.js +257 -0
- package/dist/sandbox/gondolin-inventory.js.map +1 -0
- package/dist/sandbox/gondolin-join.d.ts +62 -0
- package/dist/sandbox/gondolin-join.d.ts.map +1 -0
- package/dist/sandbox/gondolin-join.js +261 -0
- package/dist/sandbox/gondolin-join.js.map +1 -0
- package/dist/sandbox/gondolin-nfs-advisory.d.ts +15 -0
- package/dist/sandbox/gondolin-nfs-advisory.d.ts.map +1 -0
- package/dist/sandbox/gondolin-nfs-advisory.js +60 -0
- package/dist/sandbox/gondolin-nfs-advisory.js.map +1 -0
- package/dist/sandbox/gondolin-placement.d.ts +30 -0
- package/dist/sandbox/gondolin-placement.d.ts.map +1 -0
- package/dist/sandbox/gondolin-placement.js +77 -0
- package/dist/sandbox/gondolin-placement.js.map +1 -0
- package/dist/sandbox/gondolin-recovery.d.ts +33 -0
- package/dist/sandbox/gondolin-recovery.d.ts.map +1 -0
- package/dist/sandbox/gondolin-recovery.js +39 -0
- package/dist/sandbox/gondolin-recovery.js.map +1 -0
- package/dist/sandbox/gondolin-remote.d.ts +70 -0
- package/dist/sandbox/gondolin-remote.d.ts.map +1 -0
- package/dist/sandbox/gondolin-remote.js +325 -0
- package/dist/sandbox/gondolin-remote.js.map +1 -0
- package/dist/sandbox/gondolin-worker-client.d.ts +135 -0
- package/dist/sandbox/gondolin-worker-client.d.ts.map +1 -0
- package/dist/sandbox/gondolin-worker-client.js +323 -0
- package/dist/sandbox/gondolin-worker-client.js.map +1 -0
- package/dist/sandbox/gondolin-worker-main.d.ts +2 -0
- package/dist/sandbox/gondolin-worker-main.d.ts.map +1 -0
- package/dist/sandbox/gondolin-worker-main.js +22 -0
- package/dist/sandbox/gondolin-worker-main.js.map +1 -0
- package/dist/sandbox/gondolin-worker.d.ts +17 -0
- package/dist/sandbox/gondolin-worker.d.ts.map +1 -0
- package/dist/sandbox/gondolin-worker.js +201 -0
- package/dist/sandbox/gondolin-worker.js.map +1 -0
- package/dist/sandbox/gondolin.d.ts +53 -0
- package/dist/sandbox/gondolin.d.ts.map +1 -0
- package/dist/sandbox/gondolin.js +430 -0
- package/dist/sandbox/gondolin.js.map +1 -0
- package/dist/sandbox/index.d.ts +7 -6
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +9 -7
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/types.d.ts +16 -12
- package/dist/sandbox/types.d.ts.map +1 -1
- package/dist/sandbox/types.js.map +1 -1
- package/dist/tools/sandbox.d.ts.map +1 -1
- package/dist/tools/sandbox.js +3 -2
- package/dist/tools/sandbox.js.map +1 -1
- package/dist/tools/subagent.d.ts +10 -44
- package/dist/tools/subagent.d.ts.map +1 -1
- package/dist/tools/subagent.js +26 -25
- package/dist/tools/subagent.js.map +1 -1
- package/dist/types.d.ts +63 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/vault/policy.d.ts +3 -3
- package/dist/vault/policy.d.ts.map +1 -1
- package/dist/vault/policy.js +4 -6
- package/dist/vault/policy.js.map +1 -1
- package/package.json +3 -6
- package/dist/sandbox/agent-sandbox.d.ts +0 -18
- package/dist/sandbox/agent-sandbox.d.ts.map +0 -1
- package/dist/sandbox/agent-sandbox.js +0 -234
- package/dist/sandbox/agent-sandbox.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/commands/command-executor.d.ts +0 -13
- package/node_modules/agentic-sandbox-client/dist/commands/command-executor.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/commands/command-executor.js +0 -88
- package/node_modules/agentic-sandbox-client/dist/commands/command-executor.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/commands/index.d.ts +0 -2
- package/node_modules/agentic-sandbox-client/dist/commands/index.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/commands/index.js +0 -15
- package/node_modules/agentic-sandbox-client/dist/commands/index.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/constants.d.ts +0 -28
- package/node_modules/agentic-sandbox-client/dist/constants.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/constants.js +0 -65
- package/node_modules/agentic-sandbox-client/dist/constants.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/exceptions.d.ts +0 -67
- package/node_modules/agentic-sandbox-client/dist/exceptions.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/exceptions.js +0 -91
- package/node_modules/agentic-sandbox-client/dist/exceptions.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/extensions/computer-use.d.ts +0 -18
- package/node_modules/agentic-sandbox-client/dist/extensions/computer-use.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/extensions/computer-use.js +0 -61
- package/node_modules/agentic-sandbox-client/dist/extensions/computer-use.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/extensions/index.d.ts +0 -2
- package/node_modules/agentic-sandbox-client/dist/extensions/index.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/extensions/index.js +0 -15
- package/node_modules/agentic-sandbox-client/dist/extensions/index.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/files/filesystem.d.ts +0 -14
- package/node_modules/agentic-sandbox-client/dist/files/filesystem.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/files/filesystem.js +0 -229
- package/node_modules/agentic-sandbox-client/dist/files/filesystem.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/files/index.d.ts +0 -2
- package/node_modules/agentic-sandbox-client/dist/files/index.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/files/index.js +0 -15
- package/node_modules/agentic-sandbox-client/dist/files/index.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/index.d.ts +0 -8
- package/node_modules/agentic-sandbox-client/dist/index.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/index.js +0 -20
- package/node_modules/agentic-sandbox-client/dist/index.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/response-utils.d.ts +0 -34
- package/node_modules/agentic-sandbox-client/dist/response-utils.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/response-utils.js +0 -173
- package/node_modules/agentic-sandbox-client/dist/response-utils.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/sandbox-client.d.ts +0 -100
- package/node_modules/agentic-sandbox-client/dist/sandbox-client.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/sandbox-client.js +0 -951
- package/node_modules/agentic-sandbox-client/dist/sandbox-client.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/sandbox.d.ts +0 -144
- package/node_modules/agentic-sandbox-client/dist/sandbox.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/sandbox.js +0 -892
- package/node_modules/agentic-sandbox-client/dist/sandbox.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/trace-manager.d.ts +0 -44
- package/node_modules/agentic-sandbox-client/dist/trace-manager.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/trace-manager.js +0 -185
- package/node_modules/agentic-sandbox-client/dist/trace-manager.js.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/types.d.ts +0 -62
- package/node_modules/agentic-sandbox-client/dist/types.d.ts.map +0 -1
- package/node_modules/agentic-sandbox-client/dist/types.js +0 -15
- package/node_modules/agentic-sandbox-client/dist/types.js.map +0 -1
- package/node_modules/agentic-sandbox-client/package.json +0 -73
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,31 @@ any release.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [1.0.0-beta.26]
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Make the subagent tool schema compatible with OpenAI by exposing an object at the function parameter root.
|
|
17
|
+
|
|
18
|
+
### Tests
|
|
19
|
+
|
|
20
|
+
- Add regression coverage for OpenAI-compatible subagent function schemas.
|
|
21
|
+
|
|
22
|
+
## [1.0.0-beta.25]
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Temporarily remove the Agent Sandbox runtime, SDK, Kubernetes client, Helm deployment, runtime images, and related release workflow from the npm release.
|
|
27
|
+
- Restore the Gondolin, Gondolin remote-worker, and Firecracker sandbox implementations while Agent Sandbox packaging is redesigned separately.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Restore global npm installation and CLI startup after the broken Agent Sandbox dependencies in `1.0.0-beta.23` and `1.0.0-beta.24`.
|
|
32
|
+
|
|
33
|
+
### Tests
|
|
34
|
+
|
|
35
|
+
- Add a real `npm install -g --prefix` smoke test for the packed tarball, enforce a 2 MiB size ceiling, and gate CI and npm publishing on the result.
|
|
36
|
+
|
|
12
37
|
## [1.0.0-beta.24]
|
|
13
38
|
|
|
14
39
|
### Fixed
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ mikan keeps the chat record, agent session, and execution runtime separate:
|
|
|
21
21
|
- **Chat / conversation data** is the platform-facing record: `log.jsonl`, attachments, and conversation files.
|
|
22
22
|
- **Session orchestration** turns platform events into agent runs, handles top-level/thread scopes, and persists structured context under `sessions/*.jsonl`.
|
|
23
23
|
- **mikan agent harness** (`src/harness/`, built on pi-agent-core and pi-ai) runs the model loop, session persistence, compaction, and calls mikan tools.
|
|
24
|
-
- **Sandbox runtime** is where tool commands execute: host, Docker container/image,
|
|
24
|
+
- **Sandbox runtime** is where tool commands execute: host, Docker container/image, Firecracker, or Cloudflare bridge.
|
|
25
25
|
- **Vault** provides runtime credentials as env vars and mounted secret files.
|
|
26
26
|
|
|
27
27
|
## Features
|
|
@@ -91,10 +91,6 @@ DISCORD_BOT_TOKEN=MTI...
|
|
|
91
91
|
|
|
92
92
|
Tail logs with `pm2 logs mikan`; upgrade with `npm i -g @geminixiang/mikan && pm2 reload mikan`. See [the deployment guide](src/content/docs/deployment.mdx) for sandbox images, graceful shutdown, and the health endpoint.
|
|
93
93
|
|
|
94
|
-
### Kubernetes with Helm
|
|
95
|
-
|
|
96
|
-
The supported Kubernetes deployment interface is the [mikan Helm chart](deploy/helm/mikan/README.md). Follow the complete quickstart for [GKE Standard](deploy/helm/mikan/docs/quickstart-gke.md), [Linux amd64 k3s](deploy/helm/mikan/docs/quickstart-k3s.md), or [Colima](deploy/helm/mikan/docs/quickstart-colima.md). GKE is the fully validated Agent Sandbox + Kata + Filestore path; k3s requires user-installed Kata and RWX storage, while Colima defaults to host execution rather than claiming unverified Kata isolation.
|
|
97
|
-
|
|
98
94
|
For a one-off foreground run, the same CLI works directly:
|
|
99
95
|
|
|
100
96
|
```bash
|
|
@@ -113,13 +109,13 @@ Slack threads, Discord replies/threads, and Telegram reply chains are mapped to
|
|
|
113
109
|
|
|
114
110
|
## Sandbox
|
|
115
111
|
|
|
116
|
-
| Mode
|
|
117
|
-
|
|
|
118
|
-
| `host` (default)
|
|
119
|
-
| `container:<name>`
|
|
120
|
-
| `image:<image>`
|
|
121
|
-
| `
|
|
122
|
-
| `cloudflare:<sandbox-id>`
|
|
112
|
+
| Mode | Description |
|
|
113
|
+
| ---------------------------- | ---------------------------------------------------------------------- |
|
|
114
|
+
| `host` (default) | Run on host; no vault env injection |
|
|
115
|
+
| `container:<name>` | Run in an existing shared container; uses vault key `container-<name>` |
|
|
116
|
+
| `image:<image>` | Auto-provision one Docker container per resolved vault/user |
|
|
117
|
+
| `firecracker:<vm-id>:<path>` | Firecracker microVM (alpha; not recommended) |
|
|
118
|
+
| `cloudflare:<sandbox-id>` | Cloudflare Worker bridge (experimental; no auto workspace sync) |
|
|
123
119
|
|
|
124
120
|
For routing, mounts, vault behavior, managed container details, and Firecracker/Cloudflare notes, see [src/content/docs/sandbox.md](src/content/docs/sandbox.md).
|
|
125
121
|
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAY,KAAK,YAAY,EAAc,MAAM,uBAAuB,CAAC;AAChF,OAAO,EASL,WAAW,EAKZ,MAAM,oBAAoB,CAAC;AAM5B,OAAO,KAAK,EAEV,mBAAmB,EAIpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAEV,gBAAgB,EAChB,eAAe,EAEf,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAKrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAO5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,qBAAqB,CAAC;AAa7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAKhE,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,kBAAkB,GAC9B,MAAM,CAER;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,kBAAkB,GAC9B,MAAM,CAKR;AAsDD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,mBAAmB,EAC5B,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,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yBAAyB,CAAC;IAC/C,WAAW,CAAC,EAAE;QACZ,UAAU,EAAE,yBAAyB,CAAC;QACtC,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,yBAAyB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC/D,8EAA8E;IAC9E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,CA4SxF"}
|
package/dist/agent.js
CHANGED
|
@@ -172,12 +172,12 @@ function buildEnvDescription(sandboxType, workspaceRoot) {
|
|
|
172
172
|
- Bash commands start in: ${workspaceRoot}
|
|
173
173
|
- Install tools with the container's package manager
|
|
174
174
|
- Your changes persist across sessions`;
|
|
175
|
-
case "
|
|
176
|
-
return `You are running inside a
|
|
175
|
+
case "firecracker":
|
|
176
|
+
return `You are running inside a Firecracker microVM.
|
|
177
177
|
- Runtime workspace root: ${workspaceRoot}
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
- Your
|
|
178
|
+
- Use cd or absolute paths; project files are under ${workspaceRoot}
|
|
179
|
+
- Install tools with: apt-get install <package> (Debian-based)
|
|
180
|
+
- Your changes persist across sessions`;
|
|
181
181
|
case "cloudflare":
|
|
182
182
|
return `You are running through a Cloudflare Sandbox bridge.
|
|
183
183
|
- Runtime workspace root: ${workspaceRoot}
|
|
@@ -205,7 +205,8 @@ export function resolveTriggerAttribution(message) {
|
|
|
205
205
|
function buildSystemPrompt(workspacePath, conversationId, conversationKind, currentUserId, memory, sandboxConfig, platform, skills) {
|
|
206
206
|
const { workspaceRoot, conversationPath, scratchPath } = buildRuntimePaths(workspacePath, conversationId);
|
|
207
207
|
const sandboxType = sandboxConfig.type;
|
|
208
|
-
const isContainerLike = sandboxType === "container" || sandboxType === "image"
|
|
208
|
+
const isContainerLike = sandboxType === "container" || sandboxType === "image";
|
|
209
|
+
const isFirecracker = sandboxType === "firecracker";
|
|
209
210
|
// Format channel mappings
|
|
210
211
|
const channelMappings = platform.channels.length > 0
|
|
211
212
|
? platform.channels.map((c) => `${c.id}\t#${c.name}`).join("\n")
|
|
@@ -324,7 +325,7 @@ Update this file whenever you modify the environment. On fresh container, read i
|
|
|
324
325
|
Format: \`{"date":"...","ts":"...","user":"...","userName":"...","text":"...","isMessagingBot":false}\`
|
|
325
326
|
The log contains user messages and your final responses (not tool calls/results).
|
|
326
327
|
Use \`log.jsonl\` for quick grep-style history. Use \`${conversationPath}/sessions/\` when you need structured turns, tool outputs, or thread/session lineage.
|
|
327
|
-
${isContainerLike ? "Install jq
|
|
328
|
+
${isContainerLike || isFirecracker ? "Install jq: apt-get install jq" : ""}
|
|
328
329
|
\`\`\`bash
|
|
329
330
|
# Recent messages
|
|
330
331
|
tail -30 log.jsonl | jq -c '{date: .date[0:19], user: (.userName // .user), text}'
|
|
@@ -694,7 +695,7 @@ function buildThreadSessionName(message) {
|
|
|
694
695
|
}
|
|
695
696
|
function createRunnerExecutionContext(sandboxConfig, vaultManager, provisioner, workspaceDir, hostWorkspacePath) {
|
|
696
697
|
const executionResolver = vaultManager && sandboxConfig.type !== "host"
|
|
697
|
-
? new ActorExecutionResolver(sandboxConfig, vaultManager, provisioner, workspaceDir)
|
|
698
|
+
? new ActorExecutionResolver(sandboxConfig, vaultManager, provisioner, workspaceDir, hostWorkspacePath)
|
|
698
699
|
: undefined;
|
|
699
700
|
// activeExecutor is replaced at the start of each run() call when executionResolver
|
|
700
701
|
// is present, so the stable `executor` wrapper always delegates to the latest resolved value.
|