@rendotdev/rig 0.0.10 → 0.0.11

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.
@@ -238,7 +238,7 @@ class RigCommandRunnerRuntime {
238
238
  }
239
239
  async run(options) {
240
240
  const target = this.commandTarget(options);
241
- const { ToolRunner } = await import("./run-gga5pxhc.js");
241
+ const { ToolRunner } = await import("./run-y66hvyxg.js");
242
242
  const result = await new ToolRunner(this.options).run(target.tool, target.command, {
243
243
  ...this.options,
244
244
  args: options.args,
@@ -313,18 +313,17 @@ function createRigToolKit(options = {}) {
313
313
  // src/tools/loader.ts
314
314
  import { pathToFileURL } from "node:url";
315
315
  class ToolDefinitionValidator {
316
- namePattern = /^[a-z][a-z0-9-]*$/;
317
316
  validateToolName(name) {
318
- if (!this.namePattern.test(name)) {
317
+ if (!name || typeof name !== "string") {
319
318
  throw new RigError("TOOL_INVALID", `Invalid tool name: ${name}`, {
320
- expected: "lowercase letters, numbers, and hyphens, starting with a letter"
319
+ expected: "non-empty string"
321
320
  });
322
321
  }
323
322
  }
324
323
  validateCommandName(name) {
325
- if (!this.namePattern.test(name)) {
324
+ if (!name || typeof name !== "string") {
326
325
  throw new RigError("TOOL_INVALID", `Invalid command name: ${name}`, {
327
- expected: "lowercase letters, numbers, and hyphens, starting with a letter"
326
+ expected: "non-empty string"
328
327
  });
329
328
  }
330
329
  }
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CommandIds,
6
6
  ToolLoader
7
- } from "./cli-84rveftv.js";
7
+ } from "./cli-7zqnqrah.js";
8
8
  import {
9
9
  ToolDiscoveryService
10
10
  } from "./cli-vx11bmzr.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ToolLoader
3
- } from "./cli-84rveftv.js";
3
+ } from "./cli-7zqnqrah.js";
4
4
  import {
5
5
  RigToolEntryFiles,
6
6
  ToolDiscoveryService
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CommandIds,
6
6
  ToolLoader
7
- } from "./cli-84rveftv.js";
7
+ } from "./cli-7zqnqrah.js";
8
8
  import"./cli-vx11bmzr.js";
9
9
  import"./cli-xv4m20sx.js";
10
10
  import"./cli-aj56a1ja.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CommandIds,
6
6
  ToolLoader
7
- } from "./cli-84rveftv.js";
7
+ } from "./cli-7zqnqrah.js";
8
8
  import"./cli-vx11bmzr.js";
9
9
  import"./cli-xv4m20sx.js";
10
10
  import"./cli-aj56a1ja.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ToolListService
3
- } from "./cli-76dm4cgr.js";
3
+ } from "./cli-yr1hh9da.js";
4
4
  import"./cli-dshh1cp9.js";
5
- import"./cli-84rveftv.js";
5
+ import"./cli-7zqnqrah.js";
6
6
  import"./cli-vx11bmzr.js";
7
7
  import"./cli-xv4m20sx.js";
8
8
  import"./cli-aj56a1ja.js";
package/dist/rig.js CHANGED
@@ -94,7 +94,7 @@ class CliApplication {
94
94
  return;
95
95
  }
96
96
  this.requestGeneratedSync();
97
- const { ToolHelpService } = await import("./help-dz0f9jjb.js");
97
+ const { ToolHelpService } = await import("./help-6k8m07yv.js");
98
98
  console.log(await new ToolHelpService(this.pathOptions()).render(target));
99
99
  });
100
100
  }
@@ -150,7 +150,7 @@ class CliApplication {
150
150
  configureListCommand() {
151
151
  this.program.command("list").alias("ls").description("List discovered tools and commands.").option("--json", "Print full JSON metadata.").option("--plain", "Print a compact plain text command list.").option("--for-path <path>", "Only list tools from registries visible from a path.").action(async (commandOptions) => {
152
152
  this.requestGeneratedSync();
153
- const { ToolListService } = await import("./list-1tpcpkte.js");
153
+ const { ToolListService } = await import("./list-j2y68mve.js");
154
154
  const service = new ToolListService(this.pathOptions());
155
155
  const data = await service.list({ visibleFromPath: commandOptions.forPath });
156
156
  if (commandOptions.json)
@@ -162,7 +162,7 @@ class CliApplication {
162
162
  configureInspectCommand() {
163
163
  this.program.command("inspect").argument("<target>", "Tool name or command id (<tool>.<command>.)").description("Print tool or command metadata as JSON.").action(async (target) => {
164
164
  this.requestGeneratedSync();
165
- const { ToolInspector } = await import("./inspect-7z9xf6wz.js");
165
+ const { ToolInspector } = await import("./inspect-ks3x7s4n.js");
166
166
  this.printJson(await new ToolInspector(this.pathOptions()).inspect(target));
167
167
  });
168
168
  }
@@ -175,7 +175,7 @@ class CliApplication {
175
175
  configureEditCommand() {
176
176
  this.program.command("edit").argument("<tool>").description("Print the TypeScript file path for a tool.").action(async (name) => {
177
177
  this.requestGeneratedSync();
178
- const { ToolFileService } = await import("./create-dsweev61.js");
178
+ const { ToolFileService } = await import("./create-59myk91d.js");
179
179
  const result = await new ToolFileService(this.pathOptions()).path(name);
180
180
  console.log(result.toolPath);
181
181
  });
@@ -183,7 +183,7 @@ class CliApplication {
183
183
  configureRemoveCommand() {
184
184
  this.program.command("remove").argument("<tool>").description("Remove a local tool directory.").action(async (name) => {
185
185
  this.requestGeneratedSync();
186
- const { ToolRemover } = await import("./create-dsweev61.js");
186
+ const { ToolRemover } = await import("./create-59myk91d.js");
187
187
  const result = await new ToolRemover(this.pathOptions()).remove(name);
188
188
  console.log(`Removed tool ${result.name}`);
189
189
  console.log(`Tool directory: ${result.toolDir}`);
@@ -198,7 +198,7 @@ class CliApplication {
198
198
  configureTypecheckCommand() {
199
199
  this.program.command("typecheck").argument("[tool]").description("Type-check local tool files with the injected Rig tool runtime types.").action(async (tool) => {
200
200
  this.requestGeneratedSync();
201
- const { ToolTypecheckService } = await import("./typecheck-vk7rqkef.js");
201
+ const { ToolTypecheckService } = await import("./typecheck-c2k87ppw.js");
202
202
  const result = await new ToolTypecheckService(this.pathOptions()).typecheck(tool);
203
203
  this.printJson(result);
204
204
  process.exitCode = result.exitCode;
@@ -251,7 +251,7 @@ class CliApplication {
251
251
  });
252
252
  }
253
253
  async runToolCommand(commandId, args, commandOptions) {
254
- const { ToolRunner } = await import("./run-gga5pxhc.js");
254
+ const { ToolRunner } = await import("./run-y66hvyxg.js");
255
255
  const commandTarget = this.commandTarget(commandId);
256
256
  const result = await new ToolRunner(this.pathOptions()).run(commandTarget.tool, commandTarget.command, {
257
257
  ...this.pathOptions(),
@@ -288,7 +288,7 @@ Run "rig doctor" if you want to verify your setup.`);
288
288
  await this.printUpdateNotice();
289
289
  }
290
290
  async createTool(name) {
291
- const { ToolCreator } = await import("./create-dsweev61.js");
291
+ const { ToolCreator } = await import("./create-59myk91d.js");
292
292
  const result = await new ToolCreator(this.pathOptions()).create(name);
293
293
  console.log(`Created tool ${result.name}`);
294
294
  console.log(`
@@ -351,7 +351,7 @@ ${notice.message}`);
351
351
  if (process.env.RIG_AGENT_SYNC === "0")
352
352
  return;
353
353
  await this.ignoreSyncErrors(async () => {
354
- const { AgentInstructionSyncService } = await import("./sync-x4q44w25.js");
354
+ const { AgentInstructionSyncService } = await import("./sync-94y1k0yt.js");
355
355
  await new AgentInstructionSyncService(this.pathOptions()).sync();
356
356
  });
357
357
  }
@@ -5,7 +5,7 @@ import {
5
5
  CommandIds,
6
6
  ToolLoader,
7
7
  createRigToolKit
8
- } from "./cli-84rveftv.js";
8
+ } from "./cli-7zqnqrah.js";
9
9
  import"./cli-vx11bmzr.js";
10
10
  import"./cli-xv4m20sx.js";
11
11
  import"./cli-aj56a1ja.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ToolListService
3
- } from "./cli-76dm4cgr.js";
3
+ } from "./cli-yr1hh9da.js";
4
4
  import"./cli-dshh1cp9.js";
5
- import"./cli-84rveftv.js";
5
+ import"./cli-7zqnqrah.js";
6
6
  import"./cli-vx11bmzr.js";
7
7
  import"./cli-xv4m20sx.js";
8
8
  import"./cli-aj56a1ja.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ToolLoader
3
- } from "./cli-84rveftv.js";
3
+ } from "./cli-7zqnqrah.js";
4
4
  import {
5
5
  ToolDiscoveryService
6
6
  } from "./cli-vx11bmzr.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendotdev/rig",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Local typed command runtime for agents.",
5
5
  "homepage": "https://github.com/rendotdev/rig#readme",
6
6
  "bugs": {