@takara-ai/miru-code 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takara-ai/miru-code",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Miru (見る) — hybrid code search for agents. Bun, TypeScript, Takara embeddings.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,6 +34,8 @@ interface Integration {
34
34
  id: IntegrationId;
35
35
  label: string;
36
36
  description: string;
37
+ experimental?: boolean;
38
+ defaultChecked?: boolean;
37
39
  planPath: (agent: AgentTarget) => string | null;
38
40
  apply: (agent: AgentTarget, mode: InstallMode) => Promise<WriteResult | null>;
39
41
  }
@@ -152,35 +154,37 @@ const INTEGRATIONS: Integration[] = [
152
154
  {
153
155
  id: "mcp",
154
156
  label: "MCP server",
155
- description: "lets the agent call miru directly as a tool",
157
+ description: "Miru search tools via MCP",
156
158
  planPath: (agent) => agent.mcp?.path ?? null,
157
159
  apply: applyMcp,
158
160
  },
159
161
  {
160
162
  id: "instructions",
161
163
  label: "Instructions",
162
- description: "adds CLI usage guidance to CLAUDE.md / AGENTS.md",
164
+ description: "search policy in agent docs",
163
165
  planPath: (agent) => agent.instructionsPath,
164
166
  apply: applyInstructions,
165
167
  },
166
168
  {
167
169
  id: "subagent",
168
170
  label: "Sub-agent",
169
- description: "installs a dedicated miru-code sub-agent",
171
+ description: "miru-code sub-agent file",
170
172
  planPath: (agent) => agent.subagentPath,
171
173
  apply: applySubagent,
172
174
  },
173
175
  {
174
176
  id: "rules",
175
177
  label: "Cursor rules",
176
- description: "always-on .cursor/rules policy for code search",
178
+ description: "search policy in .cursor/rules",
177
179
  planPath: (agent) => agent.cursorRulesPath,
178
180
  apply: applyCursorRules,
179
181
  },
180
182
  {
181
183
  id: "hooks",
182
184
  label: "Search hooks",
183
- description: "blocks Grep/Glob and redirects agents to Miru MCP",
185
+ description: "blocks built-in search; routes to Miru MCP",
186
+ experimental: true,
187
+ defaultChecked: false,
184
188
  planPath: (agent) => agent.hooksPath,
185
189
  apply: applyHooks,
186
190
  },
@@ -269,9 +273,9 @@ export async function runInstaller(mode: InstallMode): Promise<void> {
269
273
  }
270
274
 
271
275
  const integrationItems = INTEGRATIONS.map((integration) => ({
272
- label: `${integration.label} — ${integration.description}`,
276
+ label: `${integration.label}${integration.experimental ? dim(" (experimental)") : ""} — ${integration.description}`,
273
277
  value: integration,
274
- checked: true,
278
+ checked: install ? (integration.defaultChecked ?? true) : true,
275
279
  }));
276
280
 
277
281
  const chosenIntegrations = await promptMultiSelect(
@@ -294,12 +298,7 @@ export async function runInstaller(mode: InstallMode): Promise<void> {
294
298
 
295
299
  await apply(mode, chosenAgents, chosenIntegrations);
296
300
 
297
- success(
298
- install ? "Done! Restart your agents to pick up changes." : "Done! Configuration removed.",
299
- );
300
- if (install) {
301
- hint("Restart agents after install. Hooks block built-in search in favor of Miru MCP.");
302
- }
301
+ success(install ? "Done. Restart agents to apply changes." : "Done. Configuration removed.");
303
302
  writeStdout("");
304
303
  }
305
304