Compare commits
2 Commits
main
...
fix/remove
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
885fc2bb30 | ||
|
|
970d0430aa |
@ -8,6 +8,7 @@ Docs: https://docs.clawd.bot
|
|||||||
- CLI: restart the gateway by default after `clawdbot update`; add `--no-restart` to skip it.
|
- CLI: restart the gateway by default after `clawdbot update`; add `--no-restart` to skip it.
|
||||||
- CLI: add live auth probes to `clawdbot models status` for per-profile verification.
|
- CLI: add live auth probes to `clawdbot models status` for per-profile verification.
|
||||||
- Markdown: add per-channel table conversion (bullets for Signal/WhatsApp, code blocks elsewhere). (#1495) Thanks @odysseus0.
|
- Markdown: add per-channel table conversion (bullets for Signal/WhatsApp, code blocks elsewhere). (#1495) Thanks @odysseus0.
|
||||||
|
- Docs: remove the misplaced Google Docs Editor entry from the showcase. (#1547) Thanks @aj47.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Voice wake: auto-save wake words on blur/submit across iOS/Android and align limits with macOS.
|
- Voice wake: auto-save wake words on blur/submit across iOS/Android and align limits with macOS.
|
||||||
|
|||||||
@ -327,14 +327,8 @@ Full setup walkthrough (28m) by VelvetShark.
|
|||||||
|
|
||||||
<Card title="OpenRouter Transcription" icon="microphone" href="https://clawdhub.com/obviyus/openrouter-transcribe">
|
<Card title="OpenRouter Transcription" icon="microphone" href="https://clawdhub.com/obviyus/openrouter-transcribe">
|
||||||
**@obviyus** • `transcription` `multilingual` `skill`
|
**@obviyus** • `transcription` `multilingual` `skill`
|
||||||
|
|
||||||
Multi-lingual audio transcription via OpenRouter (Gemini, etc). Available on ClawdHub.
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
<Card title="Google Docs Editor" icon="file-word">
|
Multi-lingual audio transcription via OpenRouter (Gemini, etc). Available on ClawdHub.
|
||||||
**Community** • `docs` `editing` `skill`
|
|
||||||
|
|
||||||
Rich-text Google Docs editing skill. Built rapidly with Claude Code.
|
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
</CardGroup>
|
</CardGroup>
|
||||||
|
|||||||
@ -65,7 +65,6 @@ describe("tailscale helpers", () => {
|
|||||||
it("enableTailscaleServe attempts normal first, then sudo", async () => {
|
it("enableTailscaleServe attempts normal first, then sudo", async () => {
|
||||||
// 1. First attempt fails
|
// 1. First attempt fails
|
||||||
// 2. Second attempt (sudo) succeeds
|
// 2. Second attempt (sudo) succeeds
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const exec = vi
|
const exec = vi
|
||||||
.fn()
|
.fn()
|
||||||
.mockRejectedValueOnce(new Error("permission denied"))
|
.mockRejectedValueOnce(new Error("permission denied"))
|
||||||
@ -75,7 +74,7 @@ describe("tailscale helpers", () => {
|
|||||||
|
|
||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
1,
|
1,
|
||||||
"tailscale",
|
expect.stringMatching(/tailscale$/),
|
||||||
expect.arrayContaining(["serve", "--bg", "--yes", "3000"]),
|
expect.arrayContaining(["serve", "--bg", "--yes", "3000"]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
@ -83,27 +82,32 @@ describe("tailscale helpers", () => {
|
|||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
2,
|
2,
|
||||||
"sudo",
|
"sudo",
|
||||||
expect.arrayContaining(["-n", "tailscale", "serve", "--bg", "--yes", "3000"]),
|
expect.arrayContaining([
|
||||||
|
"-n",
|
||||||
|
expect.stringMatching(/tailscale$/),
|
||||||
|
"serve",
|
||||||
|
"--bg",
|
||||||
|
"--yes",
|
||||||
|
"3000",
|
||||||
|
]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("enableTailscaleServe does NOT use sudo if first attempt succeeds", async () => {
|
it("enableTailscaleServe does NOT use sudo if first attempt succeeds", async () => {
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const exec = vi.fn().mockResolvedValue({ stdout: "" });
|
const exec = vi.fn().mockResolvedValue({ stdout: "" });
|
||||||
|
|
||||||
await enableTailscaleServe(3000, exec as never);
|
await enableTailscaleServe(3000, exec as never);
|
||||||
|
|
||||||
expect(exec).toHaveBeenCalledTimes(1);
|
expect(exec).toHaveBeenCalledTimes(1);
|
||||||
expect(exec).toHaveBeenCalledWith(
|
expect(exec).toHaveBeenCalledWith(
|
||||||
"tailscale",
|
expect.stringMatching(/tailscale$/),
|
||||||
expect.arrayContaining(["serve", "--bg", "--yes", "3000"]),
|
expect.arrayContaining(["serve", "--bg", "--yes", "3000"]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("disableTailscaleServe uses fallback", async () => {
|
it("disableTailscaleServe uses fallback", async () => {
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const exec = vi
|
const exec = vi
|
||||||
.fn()
|
.fn()
|
||||||
.mockRejectedValueOnce(new Error("permission denied"))
|
.mockRejectedValueOnce(new Error("permission denied"))
|
||||||
@ -115,7 +119,7 @@ describe("tailscale helpers", () => {
|
|||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
2,
|
2,
|
||||||
"sudo",
|
"sudo",
|
||||||
expect.arrayContaining(["-n", "tailscale", "serve", "reset"]),
|
expect.arrayContaining(["-n", expect.stringMatching(/tailscale$/), "serve", "reset"]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -125,7 +129,6 @@ describe("tailscale helpers", () => {
|
|||||||
// 1. status (success)
|
// 1. status (success)
|
||||||
// 2. enable (fails)
|
// 2. enable (fails)
|
||||||
// 3. enable sudo (success)
|
// 3. enable sudo (success)
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const exec = vi
|
const exec = vi
|
||||||
.fn()
|
.fn()
|
||||||
.mockResolvedValueOnce({ stdout: JSON.stringify({ BackendState: "Running" }) }) // status
|
.mockResolvedValueOnce({ stdout: JSON.stringify({ BackendState: "Running" }) }) // status
|
||||||
@ -144,14 +147,14 @@ describe("tailscale helpers", () => {
|
|||||||
// 1. status
|
// 1. status
|
||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
1,
|
1,
|
||||||
"tailscale",
|
expect.stringMatching(/tailscale$/),
|
||||||
expect.arrayContaining(["funnel", "status", "--json"]),
|
expect.arrayContaining(["funnel", "status", "--json"]),
|
||||||
);
|
);
|
||||||
|
|
||||||
// 2. enable normal
|
// 2. enable normal
|
||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
2,
|
2,
|
||||||
"tailscale",
|
expect.stringMatching(/tailscale$/),
|
||||||
expect.arrayContaining(["funnel", "--yes", "--bg", "8080"]),
|
expect.arrayContaining(["funnel", "--yes", "--bg", "8080"]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
@ -160,13 +163,19 @@ describe("tailscale helpers", () => {
|
|||||||
expect(exec).toHaveBeenNthCalledWith(
|
expect(exec).toHaveBeenNthCalledWith(
|
||||||
3,
|
3,
|
||||||
"sudo",
|
"sudo",
|
||||||
expect.arrayContaining(["-n", "tailscale", "funnel", "--yes", "--bg", "8080"]),
|
expect.arrayContaining([
|
||||||
|
"-n",
|
||||||
|
expect.stringMatching(/tailscale$/),
|
||||||
|
"funnel",
|
||||||
|
"--yes",
|
||||||
|
"--bg",
|
||||||
|
"8080",
|
||||||
|
]),
|
||||||
expect.any(Object),
|
expect.any(Object),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("enableTailscaleServe skips sudo on non-permission errors", async () => {
|
it("enableTailscaleServe skips sudo on non-permission errors", async () => {
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const exec = vi.fn().mockRejectedValueOnce(new Error("boom"));
|
const exec = vi.fn().mockRejectedValueOnce(new Error("boom"));
|
||||||
|
|
||||||
await expect(enableTailscaleServe(3000, exec as never)).rejects.toThrow("boom");
|
await expect(enableTailscaleServe(3000, exec as never)).rejects.toThrow("boom");
|
||||||
@ -175,7 +184,6 @@ describe("tailscale helpers", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("enableTailscaleServe rethrows original error if sudo fails", async () => {
|
it("enableTailscaleServe rethrows original error if sudo fails", async () => {
|
||||||
vi.spyOn(tailscale, "getTailscaleBinary").mockResolvedValue("tailscale");
|
|
||||||
const originalError = Object.assign(new Error("permission denied"), {
|
const originalError = Object.assign(new Error("permission denied"), {
|
||||||
stderr: "permission denied",
|
stderr: "permission denied",
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user