@taco-ai/sidecar-win32-x64 0.2.0 → 0.2.1

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/manifest.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "sidecarVersion": "0.2.0",
2
+ "sidecarVersion": "0.2.1",
3
3
  "nodeVersion": "22.21.1",
4
4
  "nodePinned": "22.21.1",
5
5
  "target": "x86_64-pc-windows-msvc",
6
- "bundleSha256": "783fa0cc42904c0da1cb84081e0e2e589992ea57579dd8fee45020b877bbc68f",
6
+ "bundleSha256": "9cbfdba787e32c57e2b6b6fd7c587e250e2ceeebf6627bf9dd8a1fb7ee0bb5d0",
7
7
  "runtimeSha256": "471961cb355311c9a9dd8ba417eca8269ead32a2231653084112554cda52e8b3",
8
8
  "daemonMode": true,
9
- "builtAt": "2026-09-10T04:58:30.749Z"
9
+ "builtAt": "2026-09-11T05:46:56.993Z"
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taco-ai/sidecar-win32-x64",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Taco sidecar Node runtime for win32 x64",
5
5
  "type": "module",
6
6
  "os": [
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: taco-configure
3
+ description: Use when modifying taco configuration — creating or installing skills or agents, editing $TACO_HOME/taco.json (default model, providers, channels, MCP servers, instructions, command permissions), or downloading remote skills. For skill authoring alone, prefer the `create-skill` skill.
4
+ ---
5
+
6
+ # Configuring taco
7
+
8
+ `create-skill` covers skill authoring in depth. This skill is the umbrella for everything else: skill install from a URL, agent authoring, and patches to the global config (`taco.json`). Reach for it when the user's ask crosses more than one of those surfaces, or when the change touches global state rather than a single SKILL.md.
9
+
10
+ ## Read first
11
+
12
+ Before writing anything, find out what's already there. State lives in three places:
13
+
14
+ - **Skills and agents** — read the directories directly. `$TACO_HOME/skills/`, `~/.claude/skills/`, `~/.pi/skills/`, `<cwd>/.taco/skills/`, and `<sidecar>/skills/builtin/` (read-only — never write here). Same set under `agents/` instead of `skills/`.
15
+ - **Global config** — `~/.taco/taco.json` (or `$TACO_HOME/taco.json` when `TACO_HOME` is set). Read with the `read` tool before any patch.
16
+ - **Desktop settings panes** — channel bindings and MCP servers live partly in `taco.json` and partly in the desktop app's binding state. The file is what the sidecar loads; the UI may have secrets in memory not yet written back.
17
+
18
+ ## Skills: directory choice
19
+
20
+ Four user-writable directories in priority order (first match by name wins):
21
+
22
+ 1. `<cwd>/.taco/skills/` — project-local
23
+ 2. `$TACO_HOME/skills/` (default `~/.taco/skills/`) — global
24
+ 3. `~/.claude/skills/`
25
+ 4. `~/.pi/skills/`
26
+
27
+ Default to **global** (option 2) when the user hasn't specified. Use `askUser` with `scope` as the header when ambiguous — Global first, Project-local second. Never write to `<sidecar>/skills/builtin/` — it ships with taco and is overwritten by upgrades.
28
+
29
+ New skills only show up in `<available_skills>` after a new session (the system prompt is frozen at boot); the directory itself hot-reloads in ~300ms. For body composition, frontmatter keys, scripts-vs-body tradeoffs, and `runAs` / `inlineOnly` choices, defer to the `create-skill` skill.
30
+
31
+ ## Agents: directory choice and layout
32
+
33
+ Agents live in `*.md` files in one of four user-writable directories (last-wins overwrites by name — opposite of skills):
34
+
35
+ 1. `~/.claude/agents/`
36
+ 2. `~/.pi/agents/`
37
+ 3. `$TACO_HOME/agents/` (default `~/.taco/agents/`)
38
+ 4. `<cwd>/.taco/agents/` — highest priority; project-local wins
39
+
40
+ Default to **global** (option 3) for personal agents. Use project-local only when the agent is bound to this repo's conventions. File name should match the `name` frontmatter so it's greppable.
41
+
42
+ Frontmatter (all keys taco reads; pi loads with these but ignores unknowns):
43
+
44
+ ```yaml
45
+ ---
46
+ name: explorer
47
+ description: Read-only codebase search specialist.
48
+ whenToUse: "Use when the task is to find, search, locate, or trace code."
49
+ tools: [read, grep, glob, shell]
50
+ maxTurns: 30
51
+ context: independent # or "fork" — gives the subagent this conversation's transcript
52
+ ---
53
+ ```
54
+
55
+ `fewShots` is also supported: a YAML list of `{ user, assistant }` pairs injected ahead of the body to demonstrate the contract. Required: `name`, `description`. `whenToUse` is preferred over `description` — `agent` tool's hint block surfaces `whenToUse` when the model is choosing a subagent.
56
+
57
+ ## Remote skill install
58
+
59
+ The user points at a URL. Three common shapes:
60
+
61
+ - **A public GitHub repo with a top-level SKILL.md** — `git clone --depth 1 <url> <target>/<repoName>` then move `SKILL.md` into `<target>/<repoName>/`. Inspect the cloned tree first; the skill may live at the root or under `skills/<name>/`.
62
+ - **A path inside a repo** — `https://github.com/<owner>/<repo>/tree/<ref>/<path>` — fetch the tarball (`curl -L | tar -xz -C <staging>`) and copy only the named directory.
63
+ - **A bare tarball or git URL** — same flow, treat the unpacked root as the candidate.
64
+
65
+ Staging pattern that keeps the workspace clean: clone or fetch into `mktemp -d`, then copy just the skill directory into the target. Validate `name` + `description` in frontmatter before writing. If a higher-priority directory already has a skill with the same `name`, warn — first-wins means the new copy will be shadowed.
66
+
67
+ Ask the user for the target directory with the same `scope` question used for local creation. Once installed, mention the new-session caveat.
68
+
69
+ ## Patching `$TACO_HOME/taco.json`
70
+
71
+ The file is JSON. Read it, build a partial object with only the changed fields, write back atomically (use `write` only after a full read — partial writes drop untouched fields). Permissions stay `0600`.
72
+
73
+ Schema: `TacoGlobalConfigShape` in `packages/protocol/src/config.ts`. The masked IPC view (`TacoGlobalConfigView`) strips `anthropicApiKey`, `openaiApiKey`, `apiKeys.*`, `mcpServers[i].{env,headers,command,args,url,cwd}`, and `channels[i].config` — disk keeps plaintext, only IPC frames mask.
74
+
75
+ Common patches:
76
+
77
+ - `defaultModel` / `defaultProvider` — single strings, no restart needed if hot-reload picks up (workspaces built before the change keep their construction-time fallback).
78
+ - `systemPrompt` — free text. Quote carefully if it contains newlines or colons.
79
+ - `thinkingLevel` — `"off" | "minimal" | "low" | "medium" | "high" | "xhigh"`.
80
+ - `compaction` — `{ enabled: boolean, threshold: number (0–1) }`.
81
+ - `customProviders` — array of `{ id, name, api, baseUrl, models: [{ id }] }`. `api` is `"chatcomplete"` for OpenAI-compatible endpoints.
82
+ - `mcpServers` — array of `{ id, transport, enabled, command?, args?, url?, env?, alwaysLoaded? }`. `transport` is `"stdio" | "http"`. `alwaysLoaded` is an array of tool names that should always be in the toolset (skip lazy discovery).
83
+ - `channels` — array of `{ channelId, manifest: { name, version }, config: Record<string, unknown> }`. `channelId` must match `/^[a-z0-9][a-z0-9-]*$/`. Channel credentials live separately at `$TACO_HOME/channels/<channelId>.json` under the SDK's own key — don't write secrets into `taco.json`.
84
+ - `commandPermissions` — `{ mode: "ask" | "allowlist", rules: string[] }`. Rules are glob-shaped patterns the sidecar evaluates against shell commands.
85
+ - `instructions` — `{ enabled: boolean, files: { claudeMd?: boolean, agentsMd?: boolean, designMd?: boolean }, inheritToSubagents: boolean }`.
86
+ - `extensions` / `disabledExtensions` — arrays of extension package names.
87
+
88
+ For any change involving an API key or channel secret: do not paste it into the chat. Either edit `taco.json` via the `read`/`write` tools in a single session (the file is `0600`), or instruct the user to use the Settings pane in the desktop app — that flow writes secrets through the masked path and never echoes them back.
89
+
90
+ ## The loop
91
+
92
+ 1. Read what's there — `~/.taco/taco.json`, the candidate skill/agent directories, any same-named entry that would be shadowed.
93
+ 2. Confirm scope and target with `askUser` when ambiguous — no narration.
94
+ 3. Make the change. Skills/agents: write the file. `taco.json`: read, patch in memory, write atomically. Remote install: stage, validate, copy.
95
+ 4. Verify on a new session. Tell the user to start one before reporting a regression.
96
+ 5. If something doesn't load, read the sidecar log or ask what the SkillsPane diagnostics show — a missing or empty `description` is the most common reason a skill silently fails to load.