@chibitek/chibi 0.1.185 → 0.1.188

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 (98) hide show
  1. package/dist/assets/{abnfDiagram-O67JEVCF-CVenv9f1.js → abnfDiagram-O67JEVCF-CKDXgnYw.js} +1 -1
  2. package/dist/assets/{arc-CIRWjkSZ.js → arc--VPK-xet.js} +1 -1
  3. package/dist/assets/{architectureDiagram-NJMV4G6O-DmIpOaYd.js → architectureDiagram-NJMV4G6O-DSVjpq7n.js} +1 -1
  4. package/dist/assets/{blockDiagram-BEXU5L5S-BYhb8Ycm.js → blockDiagram-BEXU5L5S-BiQ1JgSl.js} +1 -1
  5. package/dist/assets/{c4Diagram-YGBWAQC7-B9rBcCno.js → c4Diagram-YGBWAQC7-kWWEc-NZ.js} +1 -1
  6. package/dist/assets/channel-CQdxuHwI.js +1 -0
  7. package/dist/assets/{chunk-2Q5K7J3B-CV6TX9gt.js → chunk-2Q5K7J3B-QJYqMtWJ.js} +1 -1
  8. package/dist/assets/{chunk-3FUC2YCW-DiOotfQU.js → chunk-3FUC2YCW-C7oGYTZS.js} +2 -2
  9. package/dist/assets/{chunk-5VM5RSS4-Br5QWC-1.js → chunk-5VM5RSS4-MahQWTzh.js} +1 -1
  10. package/dist/assets/{chunk-GTNCS2PH-BmvI8RMK.js → chunk-GTNCS2PH-CQfOvr7l.js} +1 -1
  11. package/dist/assets/{chunk-GWA4HPMP-Do93bTCh.js → chunk-GWA4HPMP-b0lt02Pi.js} +1 -1
  12. package/dist/assets/{chunk-JWPE2WC7-qIjG-mTw.js → chunk-JWPE2WC7-J1_ylbx8.js} +1 -1
  13. package/dist/assets/{chunk-NETBCI7D-DZFFFHT2.js → chunk-NETBCI7D-AWcL9tld.js} +1 -1
  14. package/dist/assets/{chunk-WEXAMYUT-qqsVaC1g.js → chunk-WEXAMYUT-DpTrAXJV.js} +1 -1
  15. package/dist/assets/{chunk-XXDRQBXY-EI-aQ-Wn.js → chunk-XXDRQBXY-2_DCjtc9.js} +1 -1
  16. package/dist/assets/{classDiagram-v2-NBCMYWYE-D9D8dkAx.js → classDiagram-v2-NBCMYWYE-BBQMtHHs.js} +1 -1
  17. package/dist/assets/{cose-bilkent-JH36ORCC-m575JDuA.js → cose-bilkent-JH36ORCC-CmxRmDe8.js} +1 -1
  18. package/dist/assets/{cynefin-OW5HDTMX-BMm2bhgv.js → cynefin-OW5HDTMX-DjlothXK.js} +1 -1
  19. package/dist/assets/{cynefinDiagram-VND7K2PF-Dl2MlsqG.js → cynefinDiagram-VND7K2PF-D6HfzP26.js} +1 -1
  20. package/dist/assets/{dagre-6A5THRUB-Cw8yJ-SY.js → dagre-6A5THRUB-BtzaxY50.js} +1 -1
  21. package/dist/assets/{diagram-22UHCM2B-DyY0F1qK.js → diagram-22UHCM2B-DsyCiGJD.js} +1 -1
  22. package/dist/assets/{diagram-3UASUU5V-sMOszbgV.js → diagram-3UASUU5V-CjjvxIr3.js} +1 -1
  23. package/dist/assets/{diagram-ATOU4E4O-DPo3fHpo.js → diagram-ATOU4E4O-DDu2iVRb.js} +1 -1
  24. package/dist/assets/{diagram-CDSNMT55-BAHqm-cq.js → diagram-CDSNMT55-BBTViw3h.js} +1 -1
  25. package/dist/assets/{diagram-MLGK6HIB-BdI4Tf9M.js → diagram-MLGK6HIB-D83j4C6w.js} +1 -1
  26. package/dist/assets/{diagram-MPIPVDR6-BxqEl_S5.js → diagram-MPIPVDR6-DTpmpL8Q.js} +1 -1
  27. package/dist/assets/{ebnfDiagram-ZINNZB2B-DLJ3VRtx.js → ebnfDiagram-ZINNZB2B-D3B4hz_Y.js} +1 -1
  28. package/dist/assets/{elk-276RUBZZ-Yhxabhx6.js → elk-276RUBZZ-CbNicGf_.js} +1 -1
  29. package/dist/assets/{erDiagram-OPXOYQCR-DZ4Es64N.js → erDiagram-OPXOYQCR-DeSwxwFC.js} +1 -1
  30. package/dist/assets/{flowDiagram-KWPJA3E3-E36WtrEY.js → flowDiagram-KWPJA3E3-3n_Hk-ZR.js} +1 -1
  31. package/dist/assets/{ganttDiagram-FUAMR5RP-OpUEVvtU.js → ganttDiagram-FUAMR5RP-BsadEPTf.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-X574FWY7-DTZFNsL8.js → gitGraphDiagram-X574FWY7-DOvqN3Jh.js} +1 -1
  33. package/dist/assets/{index-Bgf1dXAl.js → index-B9LCl5y3.js} +133 -133
  34. package/dist/assets/{index-Bzph058J.js → index-BmYLMFD8.js} +1 -1
  35. package/dist/assets/{infoDiagram-VRGFBTTK-mCP2UtfM.js → infoDiagram-VRGFBTTK-CI3tfMt9.js} +1 -1
  36. package/dist/assets/{ishikawaDiagram-OU5B5YK6-M71dvinX.js → ishikawaDiagram-OU5B5YK6-BE7AjZYf.js} +1 -1
  37. package/dist/assets/{journeyDiagram-ZHPQQLJL-B2VdVbYS.js → journeyDiagram-ZHPQQLJL-DplNZPox.js} +1 -1
  38. package/dist/assets/{kanban-definition-PNTS6WVX-l4HpN_KC.js → kanban-definition-PNTS6WVX-Cos64we-.js} +1 -1
  39. package/dist/assets/{linear-CN0tWTVj.js → linear-DDfQb-jo.js} +1 -1
  40. package/dist/assets/{mermaid.core-DpBToEGQ.js → mermaid.core-BekbnuLb.js} +5 -5
  41. package/dist/assets/{mindmap-definition-NLK3R4M7--DJgZ72R.js → mindmap-definition-NLK3R4M7-DJ0MbzMW.js} +1 -1
  42. package/dist/assets/{pegDiagram-GJSIUBJH-DmTBsA2I.js → pegDiagram-GJSIUBJH-DZNZCZ4O.js} +1 -1
  43. package/dist/assets/{pieDiagram-5QR66LMP-Cy6JwGMR.js → pieDiagram-5QR66LMP-COD5v2yC.js} +1 -1
  44. package/dist/assets/{quadrantDiagram-O4NWA36T-DjTftbBA.js → quadrantDiagram-O4NWA36T-D4dlLWfv.js} +1 -1
  45. package/dist/assets/{railroadDiagram-XR7U4H2S-DeKIQoik.js → railroadDiagram-XR7U4H2S-CEpVYFKl.js} +1 -1
  46. package/dist/assets/{requirementDiagram-PLB6GJNP-B02KsDuy.js → requirementDiagram-PLB6GJNP-DYD5GX0G.js} +1 -1
  47. package/dist/assets/{sankeyDiagram-IPEJSGJF-4RLO5vMI.js → sankeyDiagram-IPEJSGJF-C9bPeTfK.js} +1 -1
  48. package/dist/assets/{sequenceDiagram-PO4LG4MO-CcBW737M.js → sequenceDiagram-PO4LG4MO-eXpmPg9C.js} +1 -1
  49. package/dist/assets/{sizeCapture-INFHLROL-CaLSjl7R.js → sizeCapture-INFHLROL-DfqKWBhp.js} +1 -1
  50. package/dist/assets/{stateDiagram-v2-GCMORJYK-blyzRgvD.js → stateDiagram-v2-GCMORJYK-DkIf90iA.js} +1 -1
  51. package/dist/assets/{swimlanes-2SLR337P-BIi-tuCD.js → swimlanes-2SLR337P-Ds64cQxN.js} +1 -1
  52. package/dist/assets/swimlanesDiagram-TC7HE7FX-bO3Klz6Z.js +8 -0
  53. package/dist/assets/{timeline-definition-EJHVYXUP-oNE7PiRv.js → timeline-definition-EJHVYXUP-Ci3-31qT.js} +1 -1
  54. package/dist/assets/{usecaseDiagram-POWQR4AR-DzmCYS5I.js → usecaseDiagram-POWQR4AR-DQUGgfBf.js} +1 -1
  55. package/dist/assets/{vennDiagram-UO4OBE2U-T51P02io.js → vennDiagram-UO4OBE2U-DV5_nmWl.js} +1 -1
  56. package/dist/assets/{wardleyDiagram-VNRHLVJA-1GfD8Fys.js → wardleyDiagram-VNRHLVJA-DatPTthc.js} +1 -1
  57. package/dist/assets/{xychartDiagram-PMCCYNJV-BhNMe0uk.js → xychartDiagram-PMCCYNJV-ADaxt1QH.js} +1 -1
  58. package/dist/index.html +1 -1
  59. package/dist-server/drivers/agents-proxy.js +41 -1
  60. package/dist-server/index.js +1249 -1008
  61. package/dist-server/openmausbot.js +54 -34
  62. package/dist-server/pair-cli.js +54 -34
  63. package/dist-server/server/about-me-sync.js +16 -5
  64. package/dist-server/server/box.js +18 -14
  65. package/dist-server/server/browser-engine.js +4 -26
  66. package/dist-server/server/calendar-calls.js +2 -1
  67. package/dist-server/server/capped-body.js +26 -0
  68. package/dist-server/server/container-computer.js +23 -26
  69. package/dist-server/server/drivers/agents-call.js +3 -3
  70. package/dist-server/server/drivers/agents-catalog.js +2 -2
  71. package/dist-server/server/drivers/agents-credential.js +6 -0
  72. package/dist-server/server/drivers/agents-vault.js +35 -0
  73. package/dist-server/server/engine-failover.js +6 -3
  74. package/dist-server/server/engine-tiers.js +4 -4
  75. package/dist-server/server/index.js +22 -19
  76. package/dist-server/server/local-vm-run.js +10 -0
  77. package/dist-server/server/local-vm-start.js +22 -0
  78. package/dist-server/server/model-levels/aliases.js +7 -2
  79. package/dist-server/server/model-levels/index.js +7 -0
  80. package/dist-server/server/request-auth.js +15 -18
  81. package/dist-server/server/routes/message-file.js +1 -1
  82. package/dist-server/server/routines.js +6 -6
  83. package/dist-server/server/store.js +1 -1
  84. package/dist-server/server/stream-tail.js +25 -0
  85. package/dist-server/server/team-rooms/backend.js +9 -4
  86. package/dist-server/server/team-rooms/service.js +1 -1
  87. package/dist-server/server/team-rooms/testing/fake-rooms-backend.js +10 -4
  88. package/dist-server/server/vault/request.js +174 -0
  89. package/dist-server/server/vault/runtime.js +13 -3
  90. package/dist-server/server/vault/store.js +22 -4
  91. package/dist-server/server/vps-computer.js +13 -31
  92. package/dist-server/server/watch-along/budget.js +11 -3
  93. package/dist-server/server/watch-along/live.js +4 -2
  94. package/dist-server/shared/vault.js +7 -0
  95. package/dist-server/vps-container-mcp.js +3 -1
  96. package/package.json +1 -1
  97. package/dist/assets/channel-NYf_L8uU.js +0 -1
  98. package/dist/assets/swimlanesDiagram-TC7HE7FX-DWtkSjpb.js +0 -8
@@ -4,6 +4,7 @@ import { VaultStore } from "./store.js";
4
4
  import { join } from "node:path";
5
5
  import { ROUTES } from "../routes/table.js";
6
6
  import { createVaultRoutes } from "./routes.js";
7
+ import { createVaultBotRoutes } from "./request.js";
7
8
  const keyMessage = z.object({ type: z.literal("atomic:native-vault-key"), ownerId: z.string().uuid(), key: z.string().regex(/^[0-9a-f]{64}$/) }).strict();
8
9
  /** Constructed by the server, bootstrapped only on Electron's private port.
9
10
  * No HTTP endpoint can unlock the vault or replace its owner. */
@@ -29,6 +30,8 @@ export class NativeVaultRuntime {
29
30
  return true;
30
31
  }
31
32
  store() { return this.#store; }
33
+ /** The owner whose items bots may be granted: set with the key, never from a request. */
34
+ ownerId() { return this.#ownerId; }
32
35
  /** Until paired owner identity is established, remote clients fail closed.
33
36
  * GET needs the desktop capability too; loopback alone is not authority. */
34
37
  owner(req, auth, desktopToken) {
@@ -40,9 +43,16 @@ export class NativeVaultRuntime {
40
43
  return this.#ownerId ?? "pending";
41
44
  }
42
45
  }
43
- /** Keep bootstrapping and route registration together, outside index.ts. */
44
- export function installNativeVault(dataDir, port, desktopToken, fromBot) {
46
+ /** Keep bootstrapping and route registration together, outside index.ts.
47
+ * Owner routes refuse every bot. The bot routes answer only the agents tools
48
+ * of a bot's own turn on this computer, never an external runtime. */
49
+ export function installNativeVault(dataDir, port, desktopToken, caller) {
45
50
  const runtime = new NativeVaultRuntime(join(dataDir, "providers", "native-vault"));
46
51
  port?.on("message", (event) => { runtime.receive(event?.data); });
47
- ROUTES.push(createVaultRoutes({ store: () => runtime.store(), owner: (req, auth) => fromBot(req) ? null : runtime.owner(req, auth, desktopToken()) }));
52
+ ROUTES.push(createVaultRoutes({ store: () => runtime.store(), owner: (req, auth) => caller(req) ? null : runtime.owner(req, auth, desktopToken()) }));
53
+ ROUTES.push(createVaultBotRoutes({ store: () => runtime.store(), ownerId: () => runtime.ownerId(),
54
+ bot: (req) => vaultBot(caller(req)), downloadDir: (botId) => join(dataDir, "vault-downloads", botId) }));
55
+ }
56
+ export function vaultBot(caller) {
57
+ return caller && caller.kind === "agents" && !caller.externalRuntime ? caller.botId : null;
48
58
  }
@@ -1,11 +1,13 @@
1
- // Native Vault persistence. No API/OAuth credentials are stored here.
2
- // The caller supplies a key from the trusted runtime; this module never
3
- // creates a plaintext key file or returns stored secrets to a model.
1
+ // Native Vault persistence. Atomic's own provider and OAuth credentials are
2
+ // not stored here. The caller supplies a key from the trusted runtime; this
3
+ // module never creates a plaintext key file or returns stored secrets to a
4
+ // model. `apiKeyFor` hands a saved API key to the trusted request executor
5
+ // only, after the grant, expiry and destination checks.
4
6
  import { createCipheriv, createDecipheriv, randomBytes, randomUUID } from "node:crypto";
5
7
  import { lstatSync, mkdirSync, readFileSync, rmdirSync } from "node:fs";
6
8
  import { join } from "node:path";
7
9
  import { z } from "zod";
8
- import { vaultInputSchema, vaultMetadata } from "../../shared/vault.js";
10
+ import { vaultInputSchema, vaultMetadata, vaultUseAllowed } from "../../shared/vault.js";
9
11
  import { writeFileAtomic } from "../atomic.js";
10
12
  const MAX_BYTES = 16 * 1024 * 1024;
11
13
  const MAX_ITEMS = 3000;
@@ -129,6 +131,22 @@ export class VaultStore {
129
131
  owner(ownerId);
130
132
  return this.read().filter((item) => item.ownerId === ownerId).map(vaultMetadata);
131
133
  }
134
+ /** The API keys this bot may use now: granted to it and not expired. */
135
+ apiKeysFor(ownerId, botId, now) {
136
+ owner(ownerId);
137
+ return this.read().filter((item) => item.kind === "apiKey" && item.ownerId === ownerId && item.botIds.includes(botId)
138
+ && (item.expiresAt === null || now < item.expiresAt)).map(vaultMetadata);
139
+ }
140
+ /** The header to send for one use, or null when this bot may not use this
141
+ * item at this destination now. For the request executor only: the value
142
+ * must never reach a response, a log or a model. */
143
+ apiKeyFor(actor, id, now) {
144
+ owner(actor.ownerId);
145
+ const item = this.read().find((candidate) => candidate.id === id);
146
+ if (!item || item.kind !== "apiKey" || !vaultUseAllowed(item, actor, now))
147
+ return null;
148
+ return { header: item.header, value: item.prefix + item.secret, secret: item.secret };
149
+ }
132
150
  create(ownerId, input) {
133
151
  owner(ownerId);
134
152
  const parsed = vaultInputSchema.safeParse(input);
@@ -9,6 +9,7 @@ import { DATA_DIR, isValidSshAlias, vpsSshAlias } from "./config.js";
9
9
  import { augmentedPath, resolveCliSpawn } from "./env-path.js";
10
10
  import { planOptions } from "./spawn-command.js";
11
11
  import { prepareVpsSsh } from "./vps-ssh.js";
12
+ import { tailCollector } from "./stream-tail.js";
12
13
  import { loadEnvironmentId } from "./environment.js";
13
14
  import { SPAWNED_PROXIES } from "./proxy-paths.js";
14
15
  export const VPS_IMAGE = CUA_IMAGE;
@@ -190,42 +191,18 @@ export function closeAllVpsDesktopTunnels() {
190
191
  for (const botId of desktopTunnels.keys())
191
192
  stopDesktopTunnel(botId);
192
193
  }
193
- const STREAM_CAP_CHARS = 16 * 1024 * 1024;
194
- /** Keeps the LAST 16MB of a stream without rebuilding one giant string per
195
- * chunk (a 10-minute `docker build` stream made that rebuild quadratic).
196
- * Chunks fall off the front as soon as the tail alone covers the cap; the
197
- * final slice preserves the exact cap semantics of the old accumulator. */
198
- function tailCollector() {
199
- const chunks = [];
200
- let total = 0;
201
- return {
202
- push(chunk) {
203
- chunks.push(chunk);
204
- total += chunk.length;
205
- for (;;) {
206
- const first = chunks[0];
207
- if (chunks.length < 2 || first === undefined || total - first.length < STREAM_CAP_CHARS)
208
- break;
209
- chunks.shift();
210
- total -= first.length;
211
- }
212
- },
213
- text() {
214
- return chunks.join("").slice(-STREAM_CAP_CHARS);
215
- },
216
- };
217
- }
218
194
  export function defaultRunner(args, options = {}) {
219
195
  return new Promise((resolve, reject) => {
220
196
  const command = resolveCliSpawn("docker", args);
221
197
  // docker's SSH transport runs the first `ssh` on PATH: the app's shim,
222
198
  // which shares one connection across every command of this VPS.
223
199
  const ssh = prepareVpsSsh(DATA_DIR, augmentedPath());
200
+ const env = { ...process.env, PATH: ssh.path, ...options.env };
224
201
  const child = spawn(command.command, command.args, {
225
202
  shell: false,
226
- env: { ...process.env, PATH: ssh.path },
203
+ env,
227
204
  stdio: ["pipe", "pipe", "pipe"],
228
- ...planOptions(command, { ...process.env, PATH: ssh.path }),
205
+ ...planOptions(command, env),
229
206
  });
230
207
  const stdout = tailCollector();
231
208
  const stderr = tailCollector();
@@ -684,7 +661,7 @@ export function vpsContainerRunArgs(containerName, imageRef = VPS_IMAGE, viewerS
684
661
  }
685
662
  if (!/^[A-Za-z0-9_-]{8,128}$/.test(viewerSecret))
686
663
  throw new Error("invalid managed VPS viewer secret");
687
- return [
664
+ const args = [
688
665
  "run",
689
666
  "-d",
690
667
  "--name",
@@ -732,13 +709,17 @@ export function vpsContainerRunArgs(containerName, imageRef = VPS_IMAGE, viewerS
732
709
  // someone opens the panel. unless-stopped survives reboots while still
733
710
  // honoring an explicit Stop. The shared hardening check accepts exactly
734
711
  // this policy for the VPS caller (and only "no"/unset for the Local VM,
735
- // whose desktop cannot safely resume).
712
+ // which Atomic starts on demand and never at boot).
736
713
  "--restart",
737
714
  "unless-stopped",
715
+ // Bare -e: the docker CLI resolves the value from ITS OWN process
716
+ // environment (client side, so -H ssh:// still delivers it), keeping the
717
+ // secret out of local argv, which any user can read through `ps`.
738
718
  "-e",
739
- `VNC_PW=${viewerSecret}`,
719
+ "VNC_PW",
740
720
  imageRef,
741
721
  ];
722
+ return { args, env: { VNC_PW: viewerSecret } };
742
723
  }
743
724
  function assertUsableContainer(status) {
744
725
  if (!status.image ||
@@ -919,7 +900,8 @@ export async function vpsComputerAction(action, cfg, botId, runner = defaultRunn
919
900
  }
920
901
  if (!imageRef)
921
902
  throw Object.assign(new Error("The prepared VPS image could not be identified"), { status: 409 });
922
- await run(vpsContainerRunArgs(before.container_name, imageRef));
903
+ const containerRun = vpsContainerRunArgs(before.container_name, imageRef);
904
+ await runner(vpsDockerArgs(alias, containerRun.args), { timeoutMs: 2 * 60_000, env: containerRun.env });
923
905
  }
924
906
  else {
925
907
  assertUsableContainer(before);
@@ -62,13 +62,21 @@ export class SessionBudget {
62
62
  return verdict;
63
63
  }
64
64
  /** Give back a call that was booked but never sent (the engine refused it
65
- * before it started). */
66
- refund(kind) {
65
+ * before it started). `spentAtMs` is the time it was booked at, so its own
66
+ * per-minute slot is freed and not a newer call's. */
67
+ refund(kind, spentAtMs) {
67
68
  const field = FIELD[kind];
68
69
  if (this.used[field] > 0)
69
70
  this.used[field] -= 1;
70
- if (kind === "live")
71
+ if (kind !== "live")
72
+ return;
73
+ if (spentAtMs === undefined) {
71
74
  this.liveTimes.pop();
75
+ return;
76
+ }
77
+ const slot = this.liveTimes.indexOf(spentAtMs);
78
+ if (slot >= 0)
79
+ this.liveTimes.splice(slot, 1);
72
80
  }
73
81
  snapshot() {
74
82
  const share = (field) => this.limits[field] ? this.used[field] / this.limits[field] : 1;
@@ -155,9 +155,11 @@ export class WatchLiveSession {
155
155
  });
156
156
  this.deps.runComment(prompt, meta)
157
157
  .then((messages) => this.settle(messages, meta, window.text))
158
- .catch(() => this.budget.refund("live"))
158
+ .catch(() => this.budget.refund("live", now))
159
159
  .finally(() => {
160
- this.inFlightSince = null;
160
+ // A call let go at the timeout may settle while a newer one runs.
161
+ if (this.inFlightSince === now)
162
+ this.inFlightSince = null;
161
163
  this.pump();
162
164
  });
163
165
  }
@@ -38,6 +38,12 @@ export const vaultInputSchema = z.discriminatedUnion("kind", [
38
38
  z.object({ ...base, kind: z.literal("contact"), origins: z.array(origin).min(1).max(50),
39
39
  address, email: z.union([z.literal(""), z.string().email().max(320)]), phone: text(80),
40
40
  }).strict(),
41
+ // An API key a granted bot may send, in one named header, to the listed
42
+ // origins. The value is visible ASCII only, so it can never split a header.
43
+ z.object({ ...base, kind: z.literal("apiKey"), origins: z.array(origin).min(1).max(50),
44
+ header: z.string().regex(/^[A-Za-z0-9-]{1,64}$/), prefix: z.string().regex(/^[\x20-\x7E]{0,32}$/),
45
+ secret: z.string().regex(/^[\x21-\x7E]{1,8192}$/),
46
+ }).strict(),
41
47
  ]);
42
48
  /** Explicit allowlist. Never spread a stored item into a response. */
43
49
  export function vaultMetadata(item) {
@@ -48,6 +54,7 @@ export function vaultMetadata(item) {
48
54
  ...(item.kind === "login" ? { username: item.username } : {}),
49
55
  ...(item.kind === "card" ? { lastFour: item.number.slice(-4), expiryMonth: item.expiryMonth, expiryYear: item.expiryYear, billing: { ...item.billing } } : {}),
50
56
  ...(item.kind === "contact" ? { address: { ...item.address }, email: item.email, phone: item.phone } : {}),
57
+ ...(item.kind === "apiKey" ? { header: item.header, prefix: item.prefix } : {}),
51
58
  createdAt: item.createdAt, updatedAt: item.updatedAt,
52
59
  };
53
60
  }
@@ -17219,6 +17219,9 @@ function cuaExecArgs(args2, options = {}) {
17219
17219
  }
17220
17220
  var containerMcpPath = SPAWNED_PROXIES.containerMcp;
17221
17221
 
17222
+ // server/stream-tail.ts
17223
+ var STREAM_CAP_CHARS = 16 * 1024 * 1024;
17224
+
17222
17225
  // server/vps-computer.ts
17223
17226
  var CONTAINER_NAME = /^[a-zA-Z0-9][a-zA-Z0-9_.-]+$/;
17224
17227
  var CONTAINER_ID = /^[a-f0-9]{12,64}$/i;
@@ -17228,7 +17231,6 @@ function vpsDockerArgs(alias2, args2) {
17228
17231
  }
17229
17232
  return ["-H", `ssh://${alias2}`, ...args2];
17230
17233
  }
17231
- var STREAM_CAP_CHARS = 16 * 1024 * 1024;
17232
17234
  function vpsContainerMcpArgs(alias2, containerName2) {
17233
17235
  if (!isValidSshAlias(alias2) || !CONTAINER_NAME.test(containerName2) && !CONTAINER_ID.test(containerName2)) {
17234
17236
  throw new Error("invalid VPS MCP connection");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chibitek/chibi",
3
- "version": "0.1.185",
3
+ "version": "0.1.188",
4
4
  "description": "Atomic by Chibitek: run your AI team's server anywhere and pair your devices to it",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-DpBToEGQ.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1,8 +0,0 @@
1
- import{c as r,s as e}from"./flowDiagram-KWPJA3E3-E36WtrEY.js";import{_ as a}from"./mermaid.core-DpBToEGQ.js";import"./chunk-5VM5RSS4-Br5QWC-1.js";import"./chunk-XXDRQBXY-EI-aQ-Wn.js";import"./chunk-WEXAMYUT-qqsVaC1g.js";import"./chunk-GWA4HPMP-Do93bTCh.js";import"./channel-NYf_L8uU.js";import"./index-Bgf1dXAl.js";var o=a(t=>`${e(t)}
2
- .swimlane.cluster:not([data-color-id]) rect {
3
- stroke: ${t.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,"getStyles"),s=o,u=r({styles:s});export{u as diagram};