clawmini 0.0.4 → 0.0.5

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 (61) hide show
  1. package/dist/adapter-discord/index.mjs +1 -1
  2. package/dist/adapter-google-chat/index.mjs +1 -1
  3. package/dist/cli/index.mjs +2 -2
  4. package/dist/cli/lite.mjs +5 -3
  5. package/dist/cli/lite.mjs.map +1 -1
  6. package/dist/cli/propose-policy.mjs +2 -0
  7. package/dist/cli/propose-policy.mjs.map +1 -1
  8. package/dist/daemon/index.mjs +22 -6
  9. package/dist/daemon/index.mjs.map +1 -1
  10. package/dist/{lite-BbCFgEjn.mjs → lite-CBxOT1y5.mjs} +2 -2
  11. package/dist/{lite-BbCFgEjn.mjs.map → lite-CBxOT1y5.mjs.map} +1 -1
  12. package/{web/.svelte-kit/output/client/_app/immutable/chunks/ByezTNKv.js → dist/web/_app/immutable/chunks/C20lZMGz.js} +1 -1
  13. package/{web/.svelte-kit/output/client/_app/immutable/chunks/uD5YsQE1.js → dist/web/_app/immutable/chunks/C9lbZ-kT.js} +1 -1
  14. package/dist/web/_app/immutable/entry/{app.Dkba_ZYl.js → app.BgB5VkRU.js} +2 -2
  15. package/dist/web/_app/immutable/entry/start.DuxJo6av.js +1 -0
  16. package/dist/web/_app/immutable/nodes/{0.CFkkEWLe.js → 0.C9oFZP9h.js} +1 -1
  17. package/dist/web/_app/immutable/nodes/{1.BVylC0w0.js → 1.BON2Wk6k.js} +1 -1
  18. package/dist/web/_app/immutable/nodes/{3.DEhhZBsS.js → 3.CIs4tjjw.js} +1 -1
  19. package/dist/web/_app/immutable/nodes/{4.C_OhFIXf.js → 4.DLarELN4.js} +1 -1
  20. package/dist/web/_app/immutable/nodes/{5.Bj0bsDBW.js → 5.CE_QKy_3.js} +1 -1
  21. package/dist/web/_app/version.json +1 -1
  22. package/dist/web/index.html +6 -6
  23. package/dist/{workspace-CEdb2nPR.mjs → workspace-BJmJBfKi.mjs} +3 -1
  24. package/dist/workspace-BJmJBfKi.mjs.map +1 -0
  25. package/docs/23_custom_token_env/development_log.md +31 -0
  26. package/docs/23_custom_token_env/notes.md +16 -0
  27. package/docs/23_custom_token_env/prd.md +42 -0
  28. package/docs/23_custom_token_env/questions.md +8 -0
  29. package/docs/23_custom_token_env/tickets.md +54 -0
  30. package/napkin.md +1 -0
  31. package/package.json +1 -1
  32. package/src/adapter-google-chat/client.test.ts +1 -1
  33. package/src/cli/e2e/daemon.test.ts +103 -0
  34. package/src/cli/lite.ts +10 -3
  35. package/src/daemon/agent/agent-session.ts +20 -4
  36. package/src/shared/config.ts +2 -0
  37. package/templates/gemini/settings.json +23 -22
  38. package/templates/gemini-claw/settings.json +27 -26
  39. package/web/.svelte-kit/generated/server/internal.js +1 -1
  40. package/web/.svelte-kit/output/client/.vite/manifest.json +25 -25
  41. package/{dist/web/_app/immutable/chunks/ByezTNKv.js → web/.svelte-kit/output/client/_app/immutable/chunks/C20lZMGz.js} +1 -1
  42. package/{dist/web/_app/immutable/chunks/uD5YsQE1.js → web/.svelte-kit/output/client/_app/immutable/chunks/C9lbZ-kT.js} +1 -1
  43. package/web/.svelte-kit/output/client/_app/immutable/entry/{app.Dkba_ZYl.js → app.BgB5VkRU.js} +2 -2
  44. package/web/.svelte-kit/output/client/_app/immutable/entry/start.DuxJo6av.js +1 -0
  45. package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.CFkkEWLe.js → 0.C9oFZP9h.js} +1 -1
  46. package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.BVylC0w0.js → 1.BON2Wk6k.js} +1 -1
  47. package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.DEhhZBsS.js → 3.CIs4tjjw.js} +1 -1
  48. package/web/.svelte-kit/output/client/_app/immutable/nodes/{4.C_OhFIXf.js → 4.DLarELN4.js} +1 -1
  49. package/web/.svelte-kit/output/client/_app/immutable/nodes/{5.Bj0bsDBW.js → 5.CE_QKy_3.js} +1 -1
  50. package/web/.svelte-kit/output/client/_app/version.json +1 -1
  51. package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
  52. package/web/.svelte-kit/output/server/manifest-full.js +1 -1
  53. package/web/.svelte-kit/output/server/manifest.js +1 -1
  54. package/web/.svelte-kit/output/server/nodes/0.js +1 -1
  55. package/web/.svelte-kit/output/server/nodes/1.js +1 -1
  56. package/web/.svelte-kit/output/server/nodes/3.js +1 -1
  57. package/web/.svelte-kit/output/server/nodes/4.js +1 -1
  58. package/web/.svelte-kit/output/server/nodes/5.js +1 -1
  59. package/dist/web/_app/immutable/entry/start.B_seWfvF.js +0 -1
  60. package/dist/workspace-CEdb2nPR.mjs.map +0 -1
  61. package/web/.svelte-kit/output/client/_app/immutable/entry/start.B_seWfvF.js +0 -1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as getClawminiDir, d as getSocketPath, f as getWorkspaceRoot } from "../workspace-CEdb2nPR.mjs";
2
+ import { c as getClawminiDir, d as getSocketPath, f as getWorkspaceRoot } from "../workspace-BJmJBfKi.mjs";
3
3
  import { t as createUnixSocketFetch } from "../fetch-Cn1XNyiO.mjs";
4
4
  import { a as createUnixSocketEventSource, i as shouldDisplayMessage, n as handleAdapterCommand, r as formatMessage, t as handleRoutingCommand } from "../routing-D8rTxtaV.mjs";
5
5
  import fs from "node:fs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as getClawminiDir, d as getSocketPath, f as getWorkspaceRoot } from "../workspace-CEdb2nPR.mjs";
2
+ import { c as getClawminiDir, d as getSocketPath, f as getWorkspaceRoot } from "../workspace-BJmJBfKi.mjs";
3
3
  import { t as createUnixSocketFetch } from "../fetch-Cn1XNyiO.mjs";
4
4
  import { a as createUnixSocketEventSource, i as shouldDisplayMessage, n as handleAdapterCommand, r as formatMessage, t as handleRoutingCommand } from "../routing-D8rTxtaV.mjs";
5
5
  import fs from "node:fs";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { D as pathIsInsideDir, E as writeSettings, T as writeChatSettings, a as enableEnvironment, c as getClawminiDir, d as getSocketPath, g as readChatSettings, i as deleteAgent, m as listAgents, n as copyAgentSkill, p as isValidAgentId, r as copyAgentSkills, s as getAgent, t as applyTemplateToAgent, w as writeAgentSettings, x as resolveSkillsTemplatePath, y as readSettings } from "../workspace-CEdb2nPR.mjs";
3
- import { a as writeLiteScript, c as createChat, d as getChatsDir, f as getDefaultChatId, g as setDefaultChatId, h as listChats, i as resolveCompiledScript, l as deleteChat, m as isValidChatId, o as DEFAULT_CHAT_ID, p as getMessages, r as getLiteScriptContent, t as exportLiteToAllEnvironments } from "../lite-BbCFgEjn.mjs";
2
+ import { D as pathIsInsideDir, E as writeSettings, T as writeChatSettings, a as enableEnvironment, c as getClawminiDir, d as getSocketPath, g as readChatSettings, i as deleteAgent, m as listAgents, n as copyAgentSkill, p as isValidAgentId, r as copyAgentSkills, s as getAgent, t as applyTemplateToAgent, w as writeAgentSettings, x as resolveSkillsTemplatePath, y as readSettings } from "../workspace-BJmJBfKi.mjs";
3
+ import { a as writeLiteScript, c as createChat, d as getChatsDir, f as getDefaultChatId, g as setDefaultChatId, h as listChats, i as resolveCompiledScript, l as deleteChat, m as isValidChatId, o as DEFAULT_CHAT_ID, p as getMessages, r as getLiteScriptContent, t as exportLiteToAllEnvironments } from "../lite-CBxOT1y5.mjs";
4
4
  import { t as createUnixSocketFetch } from "../fetch-Cn1XNyiO.mjs";
5
5
  import { Command } from "commander";
6
6
  import fs from "node:fs";
package/dist/cli/lite.mjs CHANGED
@@ -4467,8 +4467,10 @@ function registerSubagentCommands(program, getClient) {
4467
4467
  /**
4468
4468
  * clawmini-lite - A standalone client
4469
4469
  */
4470
- const API_URL = process.env.CLAW_API_URL;
4471
- const API_TOKEN = process.env.CLAW_API_TOKEN;
4470
+ const urlVarName = process.env.CLAW_LITE_URL_VAR || "CLAW_API_URL";
4471
+ const API_URL = process.env.CLAW_LITE_URL_VAR ? process.env[process.env.CLAW_LITE_URL_VAR] : process.env.CLAW_API_URL;
4472
+ const tokenVarName = process.env.CLAW_LITE_API_VAR || "CLAW_API_TOKEN";
4473
+ const API_TOKEN = process.env.CLAW_LITE_API_VAR ? process.env[process.env.CLAW_LITE_API_VAR] : process.env.CLAW_API_TOKEN;
4472
4474
  function getClient() {
4473
4475
  return createTRPCClient({ links: [httpLink({
4474
4476
  url: API_URL,
@@ -4483,7 +4485,7 @@ function getClient() {
4483
4485
  const program = new Command();
4484
4486
  program.name("clawmini-lite").description("A standalone client for clawmini").hook("preAction", () => {
4485
4487
  if (!API_URL || !API_TOKEN) {
4486
- console.error("CLAW_API_URL and CLAW_API_TOKEN must be set in the environment.");
4488
+ console.error(`${urlVarName} and ${tokenVarName} must be set in the environment.`);
4487
4489
  process.exit(1);
4488
4490
  }
4489
4491
  });