@rendotdev/rig 0.0.9 → 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 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 add [path]` (defaults to current directory).
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("<target>", "Tool name or command id (<tool>.<command>.)").description("Print tool docs.").action(async (target) => {
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("add").argument("[path]").description("Add a custom registry. Defaults to the current directory.").action(async (pathValue) => {
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()));
@@ -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-7fq61sj7.js");
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 add [path]\` (defaults to current directory).
30
+ - To add a registry, run \`rig registry create [path]\` (defaults to current directory).
31
31
  `;
32
32
 
33
33
  // src/agents/sync.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendotdev/rig",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Local typed command runtime for agents.",
5
5
  "homepage": "https://github.com/rendotdev/rig#readme",
6
6
  "bugs": {