@rendotdev/rig 0.0.10 → 0.0.12
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/{cli-84rveftv.js → cli-7zqnqrah.js} +5 -6
- package/dist/{cli-76dm4cgr.js → cli-yr1hh9da.js} +1 -1
- package/dist/{create-dsweev61.js → create-59myk91d.js} +1 -1
- package/dist/{help-dz0f9jjb.js → help-6k8m07yv.js} +1 -1
- package/dist/{inspect-7z9xf6wz.js → inspect-ks3x7s4n.js} +1 -1
- package/dist/{list-1tpcpkte.js → list-j2y68mve.js} +2 -2
- package/dist/rig.js +9 -9
- package/dist/{run-gga5pxhc.js → run-y66hvyxg.js} +1 -1
- package/dist/{sync-x4q44w25.js → sync-ear6x498.js} +3 -2
- package/dist/{typecheck-vk7rqkef.js → typecheck-c2k87ppw.js} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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 (!
|
|
317
|
+
if (!name || typeof name !== "string") {
|
|
319
318
|
throw new RigError("TOOL_INVALID", `Invalid tool name: ${name}`, {
|
|
320
|
-
expected: "
|
|
319
|
+
expected: "non-empty string"
|
|
321
320
|
});
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
323
|
validateCommandName(name) {
|
|
325
|
-
if (!
|
|
324
|
+
if (!name || typeof name !== "string") {
|
|
326
325
|
throw new RigError("TOOL_INVALID", `Invalid command name: ${name}`, {
|
|
327
|
-
expected: "
|
|
326
|
+
expected: "non-empty string"
|
|
328
327
|
});
|
|
329
328
|
}
|
|
330
329
|
}
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
354
|
+
const { AgentInstructionSyncService } = await import("./sync-ear6x498.js");
|
|
355
355
|
await new AgentInstructionSyncService(this.pathOptions()).sync();
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolListService
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-yr1hh9da.js";
|
|
4
4
|
import"./cli-dshh1cp9.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-7zqnqrah.js";
|
|
6
6
|
import"./cli-vx11bmzr.js";
|
|
7
7
|
import"./cli-xv4m20sx.js";
|
|
8
8
|
import"./cli-aj56a1ja.js";
|
|
@@ -20,6 +20,7 @@ import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
|
20
20
|
// src/agents/instructions.ts
|
|
21
21
|
var RigAgentInstructions = `The \`rig\` CLI is installed on this machine. It allows you to write, run and own local tools and scripts in a typed runtime.
|
|
22
22
|
|
|
23
|
+
- To sync all tools to AGENTS.md and CLAUDE.md, run \`rig init\`.
|
|
23
24
|
- To discover available tools, run \`rig list\`.
|
|
24
25
|
- To learn about a tool's usage, run \`rig help <tool>\`.
|
|
25
26
|
- To run a tool, use \`rig run <tool>.<command> [args]\`.
|