@rendotdev/rig 0.0.12 → 0.0.15

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
@@ -58,10 +58,13 @@ Do not implement anything yet. Ask the user which workflow they want to implemen
58
58
 
59
59
  ## Agent?
60
60
 
61
+ <!-- Keep in sync with src/agents/instructions.ts -->
62
+
61
63
  > Are you an AI agent looking for how to use rig? Assume the following:
62
64
 
63
- The `rig` CLI is installed on this machine. It allows you to write, run, and own local tools and scripts in a typed runtime.
65
+ The `rig` CLI is installed on this machine. It allows you to write, run and own local tools and scripts in a typed runtime.
64
66
 
67
+ - To sync all tools to AGENTS.md and CLAUDE.md, run `rig` (or `rig init`).
65
68
  - To discover available tools, run `rig list`.
66
69
  - To learn about a tool's usage, run `rig help <tool>`.
67
70
  - To run a tool, use `rig run <tool>.<command> [args]`.
@@ -71,8 +74,6 @@ The `rig` CLI is installed on this machine. It allows you to write, run, and own
71
74
  - To list tool registries, run `rig registry list`.
72
75
  - To add a registry, run `rig registry create [path]` (defaults to current directory).
73
76
 
74
- > > source: ./src/agents/instructions.ts
75
-
76
77
  When rig runs, it keeps detected `AGENTS.md` and `CLAUDE.md` files updated with these instructions and the current `rig list` output.
77
78
 
78
79
  ## Feedback?
@@ -82,17 +82,11 @@ class ToolListPlainRenderer {
82
82
  `);
83
83
  }
84
84
  renderToolHeader(tool) {
85
- return `${tool.name}
86
- ${tool.description}`;
85
+ return `${tool.name} # ${tool.description}`;
87
86
  }
88
87
  renderCommand(command) {
89
- return [
90
- ` ${command.id}`,
91
- ` run: ${command.runExample}`,
92
- ` help: ${command.helpExample}`,
93
- ` ${command.description}`
94
- ].join(`
95
- `);
88
+ const args = command.runExample.replace(`rig run ${command.id}`, "").trim();
89
+ return ` ${command.id}${args ? ` ${args}` : ""} # ${command.description}`;
96
90
  }
97
91
  }
98
92
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ToolListService
3
- } from "./cli-yr1hh9da.js";
3
+ } from "./cli-mswdavqx.js";
4
4
  import"./cli-dshh1cp9.js";
5
5
  import"./cli-7zqnqrah.js";
6
6
  import"./cli-vx11bmzr.js";
package/dist/rig.js CHANGED
@@ -99,18 +99,9 @@ class CliApplication {
99
99
  });
100
100
  }
101
101
  configureInitCommands() {
102
- this.program.command("init").description("Create Rig config and base registry if missing.").action(async () => {
102
+ this.program.command("init").description("Initialize config and sync tools to AGENTS.md/CLAUDE.md.").action(async () => {
103
103
  this.requestGeneratedSync();
104
- const [{ RigConfigStore }, { RigPaths }] = await Promise.all([
105
- import("./config-24gwe08t.js"),
106
- import("./paths-hq1vy0wh.js")
107
- ]);
108
- const configStore = new RigConfigStore(this.pathOptions());
109
- const paths = new RigPaths(this.pathOptions());
110
- const config = await configStore.ensure();
111
- console.log("Rig initialized.");
112
- console.log(`Config: ${paths.configPath}`);
113
- console.log(`Base registry: ${configStore.registryEntries(config)[0]?.path}`);
104
+ await this.showDefaultStatus();
114
105
  });
115
106
  this.program.command("doctor").description("Check local Rig setup.").action(async () => {
116
107
  this.requestGeneratedSync();
@@ -150,7 +141,7 @@ class CliApplication {
150
141
  configureListCommand() {
151
142
  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
143
  this.requestGeneratedSync();
153
- const { ToolListService } = await import("./list-j2y68mve.js");
144
+ const { ToolListService } = await import("./list-f7r354tq.js");
154
145
  const service = new ToolListService(this.pathOptions());
155
146
  const data = await service.list({ visibleFromPath: commandOptions.forPath });
156
147
  if (commandOptions.json)
@@ -351,7 +342,7 @@ ${notice.message}`);
351
342
  if (process.env.RIG_AGENT_SYNC === "0")
352
343
  return;
353
344
  await this.ignoreSyncErrors(async () => {
354
- const { AgentInstructionSyncService } = await import("./sync-ear6x498.js");
345
+ const { AgentInstructionSyncService } = await import("./sync-zsc35m3f.js");
355
346
  await new AgentInstructionSyncService(this.pathOptions()).sync();
356
347
  });
357
348
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ToolListService
3
- } from "./cli-yr1hh9da.js";
3
+ } from "./cli-mswdavqx.js";
4
4
  import"./cli-dshh1cp9.js";
5
5
  import"./cli-7zqnqrah.js";
6
6
  import"./cli-vx11bmzr.js";
@@ -20,7 +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
+ - To sync all tools to AGENTS.md and CLAUDE.md, run \`rig\` (or \`rig init\`).
24
24
  - To discover available tools, run \`rig list\`.
25
25
  - To learn about a tool's usage, run \`rig help <tool>\`.
26
26
  - To run a tool, use \`rig run <tool>.<command> [args]\`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendotdev/rig",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "description": "Local typed command runtime for agents.",
5
5
  "homepage": "https://github.com/rendotdev/rig#readme",
6
6
  "bugs": {