clawmini 0.0.4 → 0.0.6
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/dist/adapter-discord/index.mjs +1 -1
- package/dist/adapter-google-chat/index.mjs +1 -1
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/lite.mjs +5 -3
- package/dist/cli/lite.mjs.map +1 -1
- package/dist/cli/propose-policy.mjs +2 -0
- package/dist/cli/propose-policy.mjs.map +1 -1
- package/dist/daemon/index.mjs +23 -8
- package/dist/daemon/index.mjs.map +1 -1
- package/dist/{lite-BbCFgEjn.mjs → lite-CBxOT1y5.mjs} +2 -2
- package/dist/{lite-BbCFgEjn.mjs.map → lite-CBxOT1y5.mjs.map} +1 -1
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/uD5YsQE1.js → dist/web/_app/immutable/chunks/9nfWZDAH.js} +1 -1
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/ByezTNKv.js → dist/web/_app/immutable/chunks/zsjBVtme.js} +1 -1
- package/dist/web/_app/immutable/entry/{app.Dkba_ZYl.js → app.CDP4hzOl.js} +2 -2
- package/dist/web/_app/immutable/entry/start.k4GcE1y3.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.CFkkEWLe.js → 0.BK2mQuoD.js} +1 -1
- package/dist/web/_app/immutable/nodes/{1.BVylC0w0.js → 1.DsQuFekn.js} +1 -1
- package/dist/web/_app/immutable/nodes/{3.DEhhZBsS.js → 3.BZVFNxO-.js} +1 -1
- package/dist/web/_app/immutable/nodes/{4.C_OhFIXf.js → 4.L2HPGZB4.js} +1 -1
- package/dist/web/_app/immutable/nodes/{5.Bj0bsDBW.js → 5.B4lC9vS4.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +6 -6
- package/dist/{workspace-CEdb2nPR.mjs → workspace-BJmJBfKi.mjs} +3 -1
- package/dist/workspace-BJmJBfKi.mjs.map +1 -0
- package/docs/23_custom_token_env/development_log.md +31 -0
- package/docs/23_custom_token_env/notes.md +16 -0
- package/docs/23_custom_token_env/prd.md +42 -0
- package/docs/23_custom_token_env/questions.md +8 -0
- package/docs/23_custom_token_env/tickets.md +54 -0
- package/napkin.md +1 -0
- package/package.json +1 -1
- package/src/adapter-google-chat/client.test.ts +1 -1
- package/src/cli/e2e/daemon.test.ts +103 -0
- package/src/cli/e2e/messages.test.ts +5 -2
- package/src/cli/lite.ts +10 -3
- package/src/daemon/agent/agent-session.ts +20 -4
- package/src/daemon/utils/spawn.ts +2 -1
- package/src/shared/config.ts +2 -0
- package/templates/environments/macos/sandbox.sb +8 -0
- package/templates/environments/macos-proxy/allowlist.txt +4 -0
- package/templates/environments/macos-proxy/proxy.mjs +25 -20
- package/templates/environments/macos-proxy/sandbox.sb +8 -0
- package/templates/gemini/.gemini/settings.json +6 -1
- package/templates/gemini/settings.json +22 -21
- package/templates/gemini-claw/.gemini/settings.json +6 -1
- package/templates/gemini-claw/GEMINI.md +1 -1
- package/templates/gemini-claw/settings.json +26 -25
- package/web/.svelte-kit/generated/server/internal.js +1 -1
- package/web/.svelte-kit/output/client/.vite/manifest.json +26 -26
- package/{dist/web/_app/immutable/chunks/uD5YsQE1.js → web/.svelte-kit/output/client/_app/immutable/chunks/9nfWZDAH.js} +1 -1
- package/{dist/web/_app/immutable/chunks/ByezTNKv.js → web/.svelte-kit/output/client/_app/immutable/chunks/zsjBVtme.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/entry/{app.Dkba_ZYl.js → app.CDP4hzOl.js} +2 -2
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.k4GcE1y3.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.CFkkEWLe.js → 0.BK2mQuoD.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.BVylC0w0.js → 1.DsQuFekn.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.DEhhZBsS.js → 3.BZVFNxO-.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{4.C_OhFIXf.js → 4.L2HPGZB4.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{5.Bj0bsDBW.js → 5.B4lC9vS4.js} +1 -1
- package/web/.svelte-kit/output/client/_app/version.json +1 -1
- package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/web/.svelte-kit/output/server/manifest-full.js +1 -1
- package/web/.svelte-kit/output/server/manifest.js +1 -1
- package/web/.svelte-kit/output/server/nodes/0.js +1 -1
- package/web/.svelte-kit/output/server/nodes/1.js +1 -1
- package/web/.svelte-kit/output/server/nodes/3.js +1 -1
- package/web/.svelte-kit/output/server/nodes/4.js +1 -1
- package/web/.svelte-kit/output/server/nodes/5.js +1 -1
- package/dist/web/_app/immutable/entry/start.B_seWfvF.js +0 -1
- package/dist/workspace-CEdb2nPR.mjs.map +0 -1
- 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-
|
|
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-
|
|
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";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
|
4471
|
-
const
|
|
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(
|
|
4488
|
+
console.error(`${urlVarName} and ${tokenVarName} must be set in the environment.`);
|
|
4487
4489
|
process.exit(1);
|
|
4488
4490
|
}
|
|
4489
4491
|
});
|