@rendotdev/rig 0.0.8 → 0.0.10
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/README.md +1 -1
- package/dist/rig.js +9 -4
- package/dist/{sync-7fq61sj7.js → sync-x4q44w25.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ The `rig` CLI is installed on this machine. It allows you to write, run, and own
|
|
|
69
69
|
- To edit an existing tool, run `rig edit <tool>` and open the printed file path.
|
|
70
70
|
- To remove an existing tool, run `rig remove <tool>`.
|
|
71
71
|
- To list tool registries, run `rig registry list`.
|
|
72
|
-
- To add a registry, run `rig registry
|
|
72
|
+
- To add a registry, run `rig registry create [path]` (defaults to current directory).
|
|
73
73
|
|
|
74
74
|
> > source: ./src/agents/instructions.ts
|
|
75
75
|
|
package/dist/rig.js
CHANGED
|
@@ -87,7 +87,12 @@ class CliApplication {
|
|
|
87
87
|
this.configureTypecheckCommand();
|
|
88
88
|
this.configureDevCommands();
|
|
89
89
|
this.configureUpdateCommand();
|
|
90
|
-
this.program.command("help").argument("
|
|
90
|
+
this.program.command("help").argument("[target]", "Tool name or command id (<tool>.<command>).").description("Print general help or tool docs.").action(async (target) => {
|
|
91
|
+
if (!target) {
|
|
92
|
+
const readmePath = join(fileURLToPath(import.meta.url), "..", "..", "README.md");
|
|
93
|
+
console.log(existsSync(readmePath) ? readFileSync(readmePath, "utf8") : this.program.helpInformation());
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
91
96
|
this.requestGeneratedSync();
|
|
92
97
|
const { ToolHelpService } = await import("./help-dz0f9jjb.js");
|
|
93
98
|
console.log(await new ToolHelpService(this.pathOptions()).render(target));
|
|
@@ -131,7 +136,7 @@ class CliApplication {
|
|
|
131
136
|
const { RegistryConfigService } = await import("./registry-gng9br0x.js");
|
|
132
137
|
this.printJson(await new RegistryConfigService(this.pathOptions()).list());
|
|
133
138
|
});
|
|
134
|
-
registryCommand.command("
|
|
139
|
+
registryCommand.command("create").argument("[path]").description("Add a custom registry. Defaults to the current directory.").action(async (pathValue) => {
|
|
135
140
|
this.requestGeneratedSync();
|
|
136
141
|
const { RegistryConfigService } = await import("./registry-gng9br0x.js");
|
|
137
142
|
this.printJson(await new RegistryConfigService(this.pathOptions()).add(pathValue ?? process.cwd()));
|
|
@@ -205,7 +210,7 @@ class CliApplication {
|
|
|
205
210
|
console.log(`Current version: ${currentVersion}`);
|
|
206
211
|
console.log("Checking for updates...");
|
|
207
212
|
const result = spawnSync("npm", ["install", "-g", "@rendotdev/rig@latest", "--force"], {
|
|
208
|
-
stdio: "
|
|
213
|
+
stdio: "pipe"
|
|
209
214
|
});
|
|
210
215
|
if (result.status !== 0) {
|
|
211
216
|
console.error("Update failed.");
|
|
@@ -346,7 +351,7 @@ ${notice.message}`);
|
|
|
346
351
|
if (process.env.RIG_AGENT_SYNC === "0")
|
|
347
352
|
return;
|
|
348
353
|
await this.ignoreSyncErrors(async () => {
|
|
349
|
-
const { AgentInstructionSyncService } = await import("./sync-
|
|
354
|
+
const { AgentInstructionSyncService } = await import("./sync-x4q44w25.js");
|
|
350
355
|
await new AgentInstructionSyncService(this.pathOptions()).sync();
|
|
351
356
|
});
|
|
352
357
|
}
|
|
@@ -27,7 +27,7 @@ var RigAgentInstructions = `The \`rig\` CLI is installed on this machine. It all
|
|
|
27
27
|
- To edit an existing tool, run \`rig edit <tool>\` and open the printed file path.
|
|
28
28
|
- To remove an existing tool, run \`rig remove <tool>\`.
|
|
29
29
|
- To list tool registries, run \`rig registry list\`.
|
|
30
|
-
- To add a registry, run \`rig registry
|
|
30
|
+
- To add a registry, run \`rig registry create [path]\` (defaults to current directory).
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
33
|
// src/agents/sync.ts
|