@rendotdev/rig 0.0.7 → 0.0.9
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 +5 -1
- package/dist/rig.js +4 -4
- package/dist/{sync-75s2nmed.js → sync-7fq61sj7.js} +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,8 +68,12 @@ The `rig` CLI is installed on this machine. It allows you to write, run, and own
|
|
|
68
68
|
- To create a new tool, run `rig create <tool>`.
|
|
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
|
+
- To list tool registries, run `rig registry list`.
|
|
72
|
+
- To add a registry, run `rig registry add [path]` (defaults to current directory).
|
|
71
73
|
|
|
72
|
-
|
|
74
|
+
> > source: ./src/agents/instructions.ts
|
|
75
|
+
|
|
76
|
+
When rig runs, it keeps detected `AGENTS.md` and `CLAUDE.md` files updated with these instructions and the current `rig list` output.
|
|
73
77
|
|
|
74
78
|
## Feedback?
|
|
75
79
|
|
package/dist/rig.js
CHANGED
|
@@ -131,10 +131,10 @@ class CliApplication {
|
|
|
131
131
|
const { RegistryConfigService } = await import("./registry-gng9br0x.js");
|
|
132
132
|
this.printJson(await new RegistryConfigService(this.pathOptions()).list());
|
|
133
133
|
});
|
|
134
|
-
registryCommand.command("add").argument("
|
|
134
|
+
registryCommand.command("add").argument("[path]").description("Add a custom registry. Defaults to the current directory.").action(async (pathValue) => {
|
|
135
135
|
this.requestGeneratedSync();
|
|
136
136
|
const { RegistryConfigService } = await import("./registry-gng9br0x.js");
|
|
137
|
-
this.printJson(await new RegistryConfigService(this.pathOptions()).add(pathValue));
|
|
137
|
+
this.printJson(await new RegistryConfigService(this.pathOptions()).add(pathValue ?? process.cwd()));
|
|
138
138
|
});
|
|
139
139
|
registryCommand.command("remove").argument("<path>").description("Remove a custom registry.").action(async (pathValue) => {
|
|
140
140
|
this.requestGeneratedSync();
|
|
@@ -205,7 +205,7 @@ class CliApplication {
|
|
|
205
205
|
console.log(`Current version: ${currentVersion}`);
|
|
206
206
|
console.log("Checking for updates...");
|
|
207
207
|
const result = spawnSync("npm", ["install", "-g", "@rendotdev/rig@latest", "--force"], {
|
|
208
|
-
stdio: "
|
|
208
|
+
stdio: "pipe"
|
|
209
209
|
});
|
|
210
210
|
if (result.status !== 0) {
|
|
211
211
|
console.error("Update failed.");
|
|
@@ -346,7 +346,7 @@ ${notice.message}`);
|
|
|
346
346
|
if (process.env.RIG_AGENT_SYNC === "0")
|
|
347
347
|
return;
|
|
348
348
|
await this.ignoreSyncErrors(async () => {
|
|
349
|
-
const { AgentInstructionSyncService } = await import("./sync-
|
|
349
|
+
const { AgentInstructionSyncService } = await import("./sync-7fq61sj7.js");
|
|
350
350
|
await new AgentInstructionSyncService(this.pathOptions()).sync();
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -26,6 +26,8 @@ var RigAgentInstructions = `The \`rig\` CLI is installed on this machine. It all
|
|
|
26
26
|
- To create a new tool, run \`rig create <tool>\`.
|
|
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
|
+
- To list tool registries, run \`rig registry list\`.
|
|
30
|
+
- To add a registry, run \`rig registry add [path]\` (defaults to current directory).
|
|
29
31
|
`;
|
|
30
32
|
|
|
31
33
|
// src/agents/sync.ts
|