pikiloom 0.4.26 → 0.4.28

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.
Files changed (156) hide show
  1. package/dashboard/dist/assets/{AgentTab-BNJ73P0m.js → AgentTab-DtjuI8NU.js} +1 -1
  2. package/dashboard/dist/assets/ConnectionModal-BIx6a5o1.js +1 -0
  3. package/dashboard/dist/assets/{DirBrowser-D-GT-G-w.js → DirBrowser-BINh_7NB.js} +1 -1
  4. package/dashboard/dist/assets/{ExtensionsTab-BrJMulJR.js → ExtensionsTab-CHpd147b.js} +1 -1
  5. package/dashboard/dist/assets/{IMAccessTab-auPnx468.js → IMAccessTab-C4DbGxbG.js} +1 -1
  6. package/dashboard/dist/assets/{Modal-lYfO9m-I.js → Modal-D_PUi-5O.js} +1 -1
  7. package/dashboard/dist/assets/{Modals-PRdWOIY9.js → Modals-BahDEMqf.js} +1 -1
  8. package/dashboard/dist/assets/{Select-BhbU-rll.js → Select-Cp5VXb_2.js} +1 -1
  9. package/dashboard/dist/assets/SessionPanel-DZVNXptx.js +1 -0
  10. package/dashboard/dist/assets/SystemTab-CLznS31f.js +1 -0
  11. package/dashboard/dist/assets/index-CLGovkkw.js +3 -0
  12. package/dashboard/dist/assets/index-CXIN3nTr.css +1 -0
  13. package/dashboard/dist/assets/index-DcYOI6rL.js +23 -0
  14. package/dashboard/dist/assets/{shared-C5uXvhZJ.js → shared-C8DCTJ44.js} +1 -1
  15. package/dashboard/dist/index.html +2 -2
  16. package/dist/agent/acp-client.js +0 -59
  17. package/dist/agent/artifacts.js +1 -38
  18. package/dist/agent/auto-update.js +2 -78
  19. package/dist/agent/await-resume.js +0 -20
  20. package/dist/agent/cli/auth.js +3 -51
  21. package/dist/agent/cli/catalog.js +0 -3
  22. package/dist/agent/cli/detector.js +1 -19
  23. package/dist/agent/cli/index.js +0 -3
  24. package/dist/agent/cli/registry.js +0 -25
  25. package/dist/agent/driver.js +0 -14
  26. package/dist/agent/drivers/claude-tui.js +2 -769
  27. package/dist/agent/drivers/claude.js +12 -631
  28. package/dist/agent/drivers/codex.js +11 -162
  29. package/dist/agent/drivers/gemini.js +6 -114
  30. package/dist/agent/drivers/hermes.js +0 -128
  31. package/dist/agent/goal.js +0 -45
  32. package/dist/agent/handover.js +1 -46
  33. package/dist/agent/images.js +7 -133
  34. package/dist/agent/index.js +1 -29
  35. package/dist/agent/mcp/bridge.js +1 -197
  36. package/dist/agent/mcp/extensions.js +5 -84
  37. package/dist/agent/mcp/oauth.js +2 -69
  38. package/dist/agent/mcp/registry.js +2 -33
  39. package/dist/agent/mcp/session-server.js +2 -45
  40. package/dist/agent/mcp/tools/ask-user.js +0 -6
  41. package/dist/agent/mcp/tools/await-resume.js +0 -15
  42. package/dist/agent/mcp/tools/goal.js +0 -25
  43. package/dist/agent/mcp/tools/types.js +0 -5
  44. package/dist/agent/mcp/tools/workspace.js +0 -23
  45. package/dist/agent/npm.js +0 -14
  46. package/dist/agent/session.js +86 -196
  47. package/dist/agent/skill-installer.js +3 -70
  48. package/dist/agent/skills.js +0 -43
  49. package/dist/agent/stream.js +5 -148
  50. package/dist/agent/types.js +0 -12
  51. package/dist/agent/utils.js +2 -120
  52. package/dist/bot/bot.js +3 -468
  53. package/dist/bot/command-ui.js +0 -45
  54. package/dist/bot/commands.js +0 -51
  55. package/dist/bot/headless-bot.js +0 -21
  56. package/dist/bot/host.js +1 -5
  57. package/dist/bot/human-loop.js +0 -8
  58. package/dist/bot/menu.js +0 -3
  59. package/dist/bot/orchestration.js +0 -3
  60. package/dist/bot/render-shared.js +0 -63
  61. package/dist/bot/session-hub.js +14 -92
  62. package/dist/bot/session-status.js +1 -5
  63. package/dist/bot/streaming.js +0 -53
  64. package/dist/browser-profile.js +0 -51
  65. package/dist/browser-supervisor.js +0 -75
  66. package/dist/catalog/cli-tools.js +0 -53
  67. package/dist/catalog/index.js +0 -18
  68. package/dist/catalog/local-models.js +0 -18
  69. package/dist/catalog/mcp-servers.js +0 -35
  70. package/dist/catalog/skill-repos.js +0 -32
  71. package/dist/channels/base.js +0 -19
  72. package/dist/channels/dingtalk/bot.js +0 -3
  73. package/dist/channels/dingtalk/channel.js +0 -33
  74. package/dist/channels/discord/bot.js +0 -7
  75. package/dist/channels/discord/channel.js +0 -22
  76. package/dist/channels/feishu/bot.js +0 -71
  77. package/dist/channels/feishu/channel.js +0 -78
  78. package/dist/channels/feishu/markdown.js +0 -5
  79. package/dist/channels/feishu/render.js +0 -45
  80. package/dist/channels/health.js +0 -46
  81. package/dist/channels/slack/bot.js +0 -7
  82. package/dist/channels/slack/channel.js +1 -27
  83. package/dist/channels/states.js +0 -3
  84. package/dist/channels/telegram/bot.js +0 -60
  85. package/dist/channels/telegram/channel.js +2 -99
  86. package/dist/channels/telegram/directory.js +0 -3
  87. package/dist/channels/telegram/live-preview.js +0 -8
  88. package/dist/channels/telegram/render.js +0 -30
  89. package/dist/channels/wecom/bot.js +0 -3
  90. package/dist/channels/wecom/channel.js +0 -58
  91. package/dist/channels/weixin/api.js +0 -9
  92. package/dist/channels/weixin/bot.js +0 -88
  93. package/dist/channels/weixin/channel.js +0 -6
  94. package/dist/cli/autostart.js +1 -44
  95. package/dist/cli/channel-supervisor.js +1 -59
  96. package/dist/cli/channels.js +0 -6
  97. package/dist/cli/main.js +1 -145
  98. package/dist/cli/onboarding.js +0 -6
  99. package/dist/cli/run.js +0 -11
  100. package/dist/cli/setup-wizard.js +0 -3
  101. package/dist/core/config/runtime-config.js +0 -38
  102. package/dist/core/config/user-config.js +0 -63
  103. package/dist/core/config/validation.js +0 -9
  104. package/dist/core/constants.js +0 -268
  105. package/dist/core/git.js +0 -31
  106. package/dist/core/legacy-compat.js +1 -28
  107. package/dist/core/logging.js +0 -3
  108. package/dist/core/platform.js +0 -28
  109. package/dist/core/process-control.js +0 -8
  110. package/dist/core/secrets/index.js +0 -17
  111. package/dist/core/secrets/inline-seal.js +0 -7
  112. package/dist/core/secrets/ref.js +0 -19
  113. package/dist/core/secrets/resolver.js +0 -8
  114. package/dist/core/secrets/store.js +1 -12
  115. package/dist/core/utils.js +1 -37
  116. package/dist/core/version.js +0 -3
  117. package/dist/dashboard/platform.js +1 -35
  118. package/dist/dashboard/routes/agents.js +2 -71
  119. package/dist/dashboard/routes/cli.js +0 -27
  120. package/dist/dashboard/routes/config.js +0 -54
  121. package/dist/dashboard/routes/extensions.js +0 -132
  122. package/dist/dashboard/routes/local-models.js +0 -68
  123. package/dist/dashboard/routes/models.js +0 -46
  124. package/dist/dashboard/routes/sessions.js +0 -100
  125. package/dist/dashboard/runtime.js +1 -58
  126. package/dist/dashboard/server.js +0 -49
  127. package/dist/dashboard/session-control.js +2 -69
  128. package/dist/model/catalog.js +1 -17
  129. package/dist/model/index.js +0 -15
  130. package/dist/model/injector.js +1 -181
  131. package/dist/model/provider-models.js +1 -48
  132. package/dist/model/responses-bridge.js +3 -45
  133. package/dist/model/store.js +0 -17
  134. package/dist/model/types.js +0 -12
  135. package/dist/model/validation.js +1 -18
  136. package/dist/pikichannel/adapter-pikiloom.js +0 -31
  137. package/dist/pikichannel/code.js +0 -12
  138. package/dist/pikichannel/codec.js +0 -14
  139. package/dist/pikichannel/host.js +4 -33
  140. package/dist/pikichannel/protocol.js +0 -52
  141. package/dist/pikichannel/rendezvous-broker.js +5 -26
  142. package/dist/pikichannel/rendezvous-host.js +3 -16
  143. package/dist/pikichannel/server.js +6 -55
  144. package/dist/pikichannel/transport.js +0 -25
  145. package/dist/pikichannel/transports/webrtc-host.js +0 -18
  146. package/dist/pikichannel/transports/webrtc-shared.js +4 -34
  147. package/dist/pikichannel/transports/websocket-host.js +1 -14
  148. package/dist/pikichannel/turn.js +2 -69
  149. package/dist/pikichannel/web/sdk.js +14 -71
  150. package/package.json +1 -1
  151. package/dashboard/dist/assets/ConnectionModal-Dt05H2f9.js +0 -1
  152. package/dashboard/dist/assets/SessionPanel-_0dLWvEb.js +0 -1
  153. package/dashboard/dist/assets/SystemTab-CN_QrRKt.js +0 -1
  154. package/dashboard/dist/assets/index-CP3LYJR2.js +0 -23
  155. package/dashboard/dist/assets/index-C_neLnaO.js +0 -3
  156. package/dashboard/dist/assets/index-CyCspgtc.css +0 -1
@@ -1,18 +1,9 @@
1
- /**
2
- * CLI detector — checks whether a CLI binary is on PATH, what version it is,
3
- * and whether the user is already signed in.
4
- *
5
- * Results are cached with a short TTL so catalog rendering stays snappy.
6
- */
7
1
  import { execFile } from 'node:child_process';
8
2
  import path from 'node:path';
9
3
  import os from 'node:os';
10
4
  import fs from 'node:fs';
11
5
  const DETECT_TTL_MS = 30_000;
12
6
  const cache = new Map();
13
- // ---------------------------------------------------------------------------
14
- // Helpers
15
- // ---------------------------------------------------------------------------
16
7
  function runArgv(argv, timeoutMs) {
17
8
  return new Promise((resolve) => {
18
9
  const [cmd, ...rest] = argv;
@@ -48,7 +39,7 @@ function which(binary) {
48
39
  if (stat.isFile())
49
40
  return candidate;
50
41
  }
51
- catch { /* next */ }
42
+ catch { }
52
43
  }
53
44
  }
54
45
  return null;
@@ -58,7 +49,6 @@ function extractVersion(stdout, stderr) {
58
49
  if (!text)
59
50
  return undefined;
60
51
  const firstLine = text.split(/\r?\n/, 1)[0].trim();
61
- // Common patterns: "gh version 2.56.0 (...)" / "1.2.3" / "aws-cli/2.x ..."
62
52
  const m = firstLine.match(/\b(\d+\.\d+(?:\.\d+)?(?:[-.+][0-9A-Za-z.]+)?)\b/);
63
53
  return m ? m[1] : firstLine.slice(0, 80);
64
54
  }
@@ -69,9 +59,6 @@ function trimDetail(s) {
69
59
  const first = text.split(/\r?\n/, 1)[0].trim();
70
60
  return first.slice(0, 200);
71
61
  }
72
- // ---------------------------------------------------------------------------
73
- // Public
74
- // ---------------------------------------------------------------------------
75
62
  export function getCachedCliStatus(id) {
76
63
  const cached = cache.get(id);
77
64
  if (!cached)
@@ -95,7 +82,6 @@ export async function detectCli(cli) {
95
82
  cache.set(cli.id, status);
96
83
  return status;
97
84
  }
98
- // Installed — read version, best-effort.
99
85
  let version;
100
86
  if (cli.versionArgv && cli.versionArgv.length) {
101
87
  const v = await runArgv(cli.versionArgv, 5_000);
@@ -109,8 +95,6 @@ export async function detectCli(cli) {
109
95
  return status;
110
96
  }
111
97
  const result = await runArgv(cli.auth.statusArgv, 6_000);
112
- // Some CLIs (gcloud) report success via exit 0 but emit empty output when no
113
- // account is configured — fall back to a content check when declared.
114
98
  const patternOk = !cli.auth.statusReadyPattern
115
99
  || new RegExp(cli.auth.statusReadyPattern).test(result.stdout);
116
100
  const state = (result.ok && patternOk) ? 'ready' : 'installed_not_auth';
@@ -122,7 +106,6 @@ export async function detectCli(cli) {
122
106
  cache.set(cli.id, status);
123
107
  return status;
124
108
  }
125
- /** Best-effort platform key for picking install commands. */
126
109
  export function currentPlatform() {
127
110
  if (process.platform === 'darwin')
128
111
  return 'darwin';
@@ -130,7 +113,6 @@ export function currentPlatform() {
130
113
  return 'win';
131
114
  return 'linux';
132
115
  }
133
- /** Where AWS credentials go for the `token` auth flow. */
134
116
  export function awsCredentialsPath() {
135
117
  return path.join(os.homedir(), '.aws', 'credentials');
136
118
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * Barrel entry for the CLI extension module.
3
- */
4
1
  export { getRecommendedClis, getRecommendedCli, } from './registry.js';
5
2
  export { detectCli, getCachedCliStatus, invalidateCliStatus, currentPlatform, } from './detector.js';
6
3
  export { getCliCatalog, refreshCliStatus, } from './catalog.js';
@@ -1,30 +1,5 @@
1
- /**
2
- * CLI tool registry — curated command-line tools agents commonly need.
3
- *
4
- * Each entry declares how to install the binary on each OS, how to detect the
5
- * install / auth state, and (optionally) how to drive the sign-in flow.
6
- *
7
- * Two auth types are supported today:
8
- * - oauth-web: the CLI has a first-party `<cli> auth login --web` flavor that
9
- * prints a device code and opens the browser. We spawn it, stream output,
10
- * and poll the status command to know when the user finished in the browser.
11
- * - token: the user pastes an API key; we set it via the CLI's config command
12
- * (or via env var for CLIs that only read from env).
13
- *
14
- * Keep this list opinionated and small — better to nail the common case than to
15
- * ship a wall of half-working entries.
16
- */
17
- // ---------------------------------------------------------------------------
18
- // Recommended CLI tools — data lives in src/catalog/
19
- //
20
- // This module owns the *types* and helper functions. Edit
21
- // `src/catalog/cli-tools.ts` to add or hide a CLI tool entry.
22
- // ---------------------------------------------------------------------------
23
1
  import { CLI_TOOLS } from '../../catalog/index.js';
24
2
  const RECOMMENDED_CLIS = CLI_TOOLS;
25
- // ---------------------------------------------------------------------------
26
- // Public API
27
- // ---------------------------------------------------------------------------
28
3
  export function getRecommendedClis() {
29
4
  return RECOMMENDED_CLIS;
30
5
  }
@@ -1,12 +1,3 @@
1
- /**
2
- * agent-driver.ts — Agent driver interface and registry.
3
- *
4
- * Each CLI agent (claude, codex, gemini, ...) implements AgentDriver.
5
- * Register with `registerDriver()`, look up with `getDriver()`.
6
- */
7
- // ---------------------------------------------------------------------------
8
- // Registry
9
- // ---------------------------------------------------------------------------
10
1
  const drivers = new Map();
11
2
  export function registerDriver(d) { drivers.set(d.id, d); }
12
3
  export function getDriver(id) {
@@ -29,11 +20,6 @@ export function getDriverCapabilities(id) {
29
20
  return DEFAULT_CAPABILITIES;
30
21
  return { ...DEFAULT_CAPABILITIES, ...d.capabilities };
31
22
  }
32
- /**
33
- * Provider kinds this driver can route through. Empty array means the driver
34
- * declared no compatibility (so no Profiles will be listed for it). Callers
35
- * should treat this as the filter for cross-provider model offerings.
36
- */
37
23
  export function getAcceptedProviderKinds(id) {
38
24
  return drivers.get(id)?.acceptedProviderKinds ?? [];
39
25
  }