pikiloom 0.4.26 → 0.4.27
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/dashboard/dist/assets/{AgentTab-BNJ73P0m.js → AgentTab-DIP-y4dl.js} +1 -1
- package/dashboard/dist/assets/ConnectionModal-BCfvhkiI.js +1 -0
- package/dashboard/dist/assets/{DirBrowser-D-GT-G-w.js → DirBrowser-Dot7ua9-.js} +1 -1
- package/dashboard/dist/assets/{ExtensionsTab-BrJMulJR.js → ExtensionsTab-GioMx4S6.js} +1 -1
- package/dashboard/dist/assets/{IMAccessTab-auPnx468.js → IMAccessTab-C9_r8jJP.js} +1 -1
- package/dashboard/dist/assets/{Modal-lYfO9m-I.js → Modal-M1AP1sgR.js} +1 -1
- package/dashboard/dist/assets/{Modals-PRdWOIY9.js → Modals-CCm3UUfJ.js} +1 -1
- package/dashboard/dist/assets/{Select-BhbU-rll.js → Select-YubDM16P.js} +1 -1
- package/dashboard/dist/assets/{SessionPanel-_0dLWvEb.js → SessionPanel-Cnv9o96n.js} +1 -1
- package/dashboard/dist/assets/SystemTab-VgNivIe3.js +1 -0
- package/dashboard/dist/assets/index-BY7l20bi.js +23 -0
- package/dashboard/dist/assets/index-BlqvzDUL.js +3 -0
- package/dashboard/dist/assets/index-CXIN3nTr.css +1 -0
- package/dashboard/dist/assets/{shared-C5uXvhZJ.js → shared-C0SAInnT.js} +1 -1
- package/dashboard/dist/index.html +2 -2
- package/dist/agent/acp-client.js +0 -59
- package/dist/agent/artifacts.js +1 -38
- package/dist/agent/auto-update.js +2 -78
- package/dist/agent/await-resume.js +0 -20
- package/dist/agent/cli/auth.js +3 -51
- package/dist/agent/cli/catalog.js +0 -3
- package/dist/agent/cli/detector.js +1 -19
- package/dist/agent/cli/index.js +0 -3
- package/dist/agent/cli/registry.js +0 -25
- package/dist/agent/driver.js +0 -14
- package/dist/agent/drivers/claude-tui.js +2 -769
- package/dist/agent/drivers/claude.js +12 -631
- package/dist/agent/drivers/codex.js +11 -162
- package/dist/agent/drivers/gemini.js +6 -114
- package/dist/agent/drivers/hermes.js +0 -128
- package/dist/agent/goal.js +0 -45
- package/dist/agent/handover.js +1 -46
- package/dist/agent/images.js +7 -133
- package/dist/agent/index.js +1 -29
- package/dist/agent/mcp/bridge.js +1 -197
- package/dist/agent/mcp/extensions.js +5 -84
- package/dist/agent/mcp/oauth.js +2 -69
- package/dist/agent/mcp/registry.js +2 -33
- package/dist/agent/mcp/session-server.js +2 -45
- package/dist/agent/mcp/tools/ask-user.js +0 -6
- package/dist/agent/mcp/tools/await-resume.js +0 -15
- package/dist/agent/mcp/tools/goal.js +0 -25
- package/dist/agent/mcp/tools/types.js +0 -5
- package/dist/agent/mcp/tools/workspace.js +0 -23
- package/dist/agent/npm.js +0 -14
- package/dist/agent/session.js +86 -196
- package/dist/agent/skill-installer.js +3 -70
- package/dist/agent/skills.js +0 -43
- package/dist/agent/stream.js +5 -148
- package/dist/agent/types.js +0 -12
- package/dist/agent/utils.js +2 -120
- package/dist/bot/bot.js +3 -468
- package/dist/bot/command-ui.js +0 -45
- package/dist/bot/commands.js +0 -51
- package/dist/bot/headless-bot.js +0 -21
- package/dist/bot/host.js +1 -5
- package/dist/bot/human-loop.js +0 -8
- package/dist/bot/menu.js +0 -3
- package/dist/bot/orchestration.js +0 -3
- package/dist/bot/render-shared.js +0 -63
- package/dist/bot/session-hub.js +14 -92
- package/dist/bot/session-status.js +1 -5
- package/dist/bot/streaming.js +0 -53
- package/dist/browser-profile.js +0 -51
- package/dist/browser-supervisor.js +0 -75
- package/dist/catalog/cli-tools.js +0 -53
- package/dist/catalog/index.js +0 -18
- package/dist/catalog/local-models.js +0 -18
- package/dist/catalog/mcp-servers.js +0 -35
- package/dist/catalog/skill-repos.js +0 -32
- package/dist/channels/base.js +0 -19
- package/dist/channels/dingtalk/bot.js +0 -3
- package/dist/channels/dingtalk/channel.js +0 -33
- package/dist/channels/discord/bot.js +0 -7
- package/dist/channels/discord/channel.js +0 -22
- package/dist/channels/feishu/bot.js +0 -71
- package/dist/channels/feishu/channel.js +0 -78
- package/dist/channels/feishu/markdown.js +0 -5
- package/dist/channels/feishu/render.js +0 -45
- package/dist/channels/health.js +0 -46
- package/dist/channels/slack/bot.js +0 -7
- package/dist/channels/slack/channel.js +1 -27
- package/dist/channels/states.js +0 -3
- package/dist/channels/telegram/bot.js +0 -60
- package/dist/channels/telegram/channel.js +2 -99
- package/dist/channels/telegram/directory.js +0 -3
- package/dist/channels/telegram/live-preview.js +0 -8
- package/dist/channels/telegram/render.js +0 -30
- package/dist/channels/wecom/bot.js +0 -3
- package/dist/channels/wecom/channel.js +0 -58
- package/dist/channels/weixin/api.js +0 -9
- package/dist/channels/weixin/bot.js +0 -88
- package/dist/channels/weixin/channel.js +0 -6
- package/dist/cli/autostart.js +1 -44
- package/dist/cli/channel-supervisor.js +1 -59
- package/dist/cli/channels.js +0 -6
- package/dist/cli/main.js +1 -145
- package/dist/cli/onboarding.js +0 -6
- package/dist/cli/run.js +0 -11
- package/dist/cli/setup-wizard.js +0 -3
- package/dist/core/config/runtime-config.js +0 -38
- package/dist/core/config/user-config.js +0 -63
- package/dist/core/config/validation.js +0 -9
- package/dist/core/constants.js +0 -268
- package/dist/core/git.js +0 -31
- package/dist/core/legacy-compat.js +1 -28
- package/dist/core/logging.js +0 -3
- package/dist/core/platform.js +0 -28
- package/dist/core/process-control.js +0 -8
- package/dist/core/secrets/index.js +0 -17
- package/dist/core/secrets/inline-seal.js +0 -7
- package/dist/core/secrets/ref.js +0 -19
- package/dist/core/secrets/resolver.js +0 -8
- package/dist/core/secrets/store.js +1 -12
- package/dist/core/utils.js +1 -37
- package/dist/core/version.js +0 -3
- package/dist/dashboard/platform.js +1 -35
- package/dist/dashboard/routes/agents.js +2 -71
- package/dist/dashboard/routes/cli.js +0 -27
- package/dist/dashboard/routes/config.js +0 -54
- package/dist/dashboard/routes/extensions.js +0 -132
- package/dist/dashboard/routes/local-models.js +0 -68
- package/dist/dashboard/routes/models.js +0 -46
- package/dist/dashboard/routes/sessions.js +0 -100
- package/dist/dashboard/runtime.js +1 -58
- package/dist/dashboard/server.js +0 -49
- package/dist/dashboard/session-control.js +2 -69
- package/dist/model/catalog.js +1 -17
- package/dist/model/index.js +0 -15
- package/dist/model/injector.js +1 -181
- package/dist/model/provider-models.js +1 -48
- package/dist/model/responses-bridge.js +3 -45
- package/dist/model/store.js +0 -17
- package/dist/model/types.js +0 -12
- package/dist/model/validation.js +1 -18
- package/dist/pikichannel/adapter-pikiloom.js +0 -31
- package/dist/pikichannel/code.js +0 -12
- package/dist/pikichannel/codec.js +0 -14
- package/dist/pikichannel/host.js +4 -33
- package/dist/pikichannel/protocol.js +0 -52
- package/dist/pikichannel/rendezvous-broker.js +5 -26
- package/dist/pikichannel/rendezvous-host.js +3 -16
- package/dist/pikichannel/server.js +6 -55
- package/dist/pikichannel/transport.js +0 -25
- package/dist/pikichannel/transports/webrtc-host.js +0 -18
- package/dist/pikichannel/transports/webrtc-shared.js +4 -34
- package/dist/pikichannel/transports/websocket-host.js +1 -14
- package/dist/pikichannel/turn.js +2 -69
- package/dist/pikichannel/web/sdk.js +14 -71
- package/package.json +1 -1
- package/dashboard/dist/assets/ConnectionModal-Dt05H2f9.js +0 -1
- package/dashboard/dist/assets/SystemTab-CN_QrRKt.js +0 -1
- package/dashboard/dist/assets/index-CP3LYJR2.js +0 -23
- package/dashboard/dist/assets/index-C_neLnaO.js +0 -3
- package/dashboard/dist/assets/index-CyCspgtc.css +0 -1
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* tools/workspace.ts — Workspace file tools.
|
|
3
|
-
*
|
|
4
|
-
* im_list_files — returns workspace path, staged files, and directory listing
|
|
5
|
-
* im_send_file — delivers a file to the user via the active terminal
|
|
6
|
-
* (IM chat push and/or the dashboard attachment endpoint)
|
|
7
|
-
*/
|
|
8
1
|
import fs from 'node:fs';
|
|
9
2
|
import path from 'node:path';
|
|
10
3
|
import http from 'node:http';
|
|
11
4
|
import os from 'node:os';
|
|
12
5
|
import { toolResult, toolLog } from './types.js';
|
|
13
|
-
// ---------------------------------------------------------------------------
|
|
14
|
-
// Tool definitions
|
|
15
|
-
// ---------------------------------------------------------------------------
|
|
16
6
|
const tools = [
|
|
17
7
|
{
|
|
18
8
|
name: 'im_list_files',
|
|
@@ -51,9 +41,6 @@ const tools = [
|
|
|
51
41
|
},
|
|
52
42
|
},
|
|
53
43
|
];
|
|
54
|
-
// ---------------------------------------------------------------------------
|
|
55
|
-
// Handlers
|
|
56
|
-
// ---------------------------------------------------------------------------
|
|
57
44
|
function summarizeSendFileArgs(filePath, caption, kind) {
|
|
58
45
|
const text = [
|
|
59
46
|
`path=${JSON.stringify(filePath || '')}`,
|
|
@@ -66,7 +53,6 @@ function handleListFiles(args, ctx) {
|
|
|
66
53
|
const subdir = typeof args?.subdirectory === 'string' ? args.subdirectory : '';
|
|
67
54
|
const dir = subdir ? path.resolve(ctx.workspace, subdir) : ctx.workspace;
|
|
68
55
|
toolLog('im_list_files', `dir=${dir} subdir=${subdir || '(root)'}`);
|
|
69
|
-
// Security: ensure we stay within workspace
|
|
70
56
|
const realWorkspace = safeRealpath(ctx.workspace);
|
|
71
57
|
const realDir = safeRealpath(dir);
|
|
72
58
|
if (!realWorkspace || !realDir || !realDir.startsWith(realWorkspace)) {
|
|
@@ -157,9 +143,6 @@ async function handleSendFile(args, ctx) {
|
|
|
157
143
|
return toolResult(`Error sending file: ${e.message} (${argSummary})`, true);
|
|
158
144
|
}
|
|
159
145
|
}
|
|
160
|
-
// ---------------------------------------------------------------------------
|
|
161
|
-
// HTTP callback
|
|
162
|
-
// ---------------------------------------------------------------------------
|
|
163
146
|
function callbackSendFile(callbackUrl, filePath, opts) {
|
|
164
147
|
const body = JSON.stringify({ path: filePath, ...opts });
|
|
165
148
|
const url = new URL('/send-file', callbackUrl);
|
|
@@ -184,9 +167,6 @@ function callbackSendFile(callbackUrl, filePath, opts) {
|
|
|
184
167
|
req.end();
|
|
185
168
|
});
|
|
186
169
|
}
|
|
187
|
-
// ---------------------------------------------------------------------------
|
|
188
|
-
// Helpers
|
|
189
|
-
// ---------------------------------------------------------------------------
|
|
190
170
|
function safeRealpath(p) {
|
|
191
171
|
try {
|
|
192
172
|
return fs.realpathSync(p);
|
|
@@ -198,9 +178,6 @@ function safeRealpath(p) {
|
|
|
198
178
|
function toPosix(p) {
|
|
199
179
|
return p.split(path.sep).join(path.posix.sep);
|
|
200
180
|
}
|
|
201
|
-
// ---------------------------------------------------------------------------
|
|
202
|
-
// Module export
|
|
203
|
-
// ---------------------------------------------------------------------------
|
|
204
181
|
export const workspaceTools = {
|
|
205
182
|
tools,
|
|
206
183
|
handle(name, args, ctx) {
|
package/dist/agent/npm.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NPM helper for agent package management.
|
|
3
|
-
*/
|
|
4
1
|
const AGENT_PACKAGES = {
|
|
5
2
|
claude: '@anthropic-ai/claude-code',
|
|
6
3
|
codex: '@openai/codex',
|
|
7
4
|
gemini: '@google/gemini-cli',
|
|
8
5
|
};
|
|
9
|
-
/** Known Homebrew cask tokens for agents that publish brew casks. */
|
|
10
6
|
const AGENT_BREW_CASKS = {
|
|
11
7
|
claude: 'claude-code',
|
|
12
8
|
codex: 'codex',
|
|
@@ -20,15 +16,6 @@ const NPM_INSTALL_SPECS = Object.fromEntries(Object.entries(AGENT_PACKAGES).map(
|
|
|
20
16
|
agent,
|
|
21
17
|
{ method: 'npm', command: `npm install -g ${pkg}` },
|
|
22
18
|
]));
|
|
23
|
-
/**
|
|
24
|
-
* Per-agent install descriptors. npm agents are derived from AGENT_PACKAGES so
|
|
25
|
-
* the two never drift; non-npm agents (Hermes) are declared explicitly.
|
|
26
|
-
*
|
|
27
|
-
* Note: Hermes is intentionally absent from AGENT_PACKAGES — it is not on npm,
|
|
28
|
-
* and the auto-updater keys off `getAgentPackage` to (correctly) skip it, since
|
|
29
|
-
* Hermes self-updates via `hermes update`. The manual spec lives here only so
|
|
30
|
-
* the dashboard can guide a first-time install.
|
|
31
|
-
*/
|
|
32
19
|
const AGENT_INSTALLS = {
|
|
33
20
|
...NPM_INSTALL_SPECS,
|
|
34
21
|
hermes: {
|
|
@@ -47,7 +34,6 @@ export function getAgentBrewCask(agent) {
|
|
|
47
34
|
export function getAgentLabel(agent) {
|
|
48
35
|
return AGENT_LABELS[agent] || agent;
|
|
49
36
|
}
|
|
50
|
-
/** Structured install descriptor, or null for an unknown agent id. */
|
|
51
37
|
export function getAgentInstall(agent) {
|
|
52
38
|
return AGENT_INSTALLS[agent] || null;
|
|
53
39
|
}
|