@rendotdev/rig 0.0.13 → 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
|
|
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
|
-
|
|
90
|
-
|
|
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
|
|
package/dist/rig.js
CHANGED
|
@@ -141,7 +141,7 @@ class CliApplication {
|
|
|
141
141
|
configureListCommand() {
|
|
142
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) => {
|
|
143
143
|
this.requestGeneratedSync();
|
|
144
|
-
const { ToolListService } = await import("./list-
|
|
144
|
+
const { ToolListService } = await import("./list-f7r354tq.js");
|
|
145
145
|
const service = new ToolListService(this.pathOptions());
|
|
146
146
|
const data = await service.list({ visibleFromPath: commandOptions.forPath });
|
|
147
147
|
if (commandOptions.json)
|
|
@@ -342,7 +342,7 @@ ${notice.message}`);
|
|
|
342
342
|
if (process.env.RIG_AGENT_SYNC === "0")
|
|
343
343
|
return;
|
|
344
344
|
await this.ignoreSyncErrors(async () => {
|
|
345
|
-
const { AgentInstructionSyncService } = await import("./sync-
|
|
345
|
+
const { AgentInstructionSyncService } = await import("./sync-zsc35m3f.js");
|
|
346
346
|
await new AgentInstructionSyncService(this.pathOptions()).sync();
|
|
347
347
|
});
|
|
348
348
|
}
|