@rendotdev/rig 0.0.1 → 0.0.3
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/dist/rig.js +14 -2
- package/package.json +2 -2
package/dist/rig.js
CHANGED
|
@@ -48,7 +48,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
48
48
|
|
|
49
49
|
// node_modules/typescript/lib/typescript.js
|
|
50
50
|
var require_typescript = __commonJS((exports, module) => {
|
|
51
|
-
var __dirname = "/
|
|
51
|
+
var __dirname = "/home/runner/work/rig/rig/node_modules/typescript/lib", __filename = "/home/runner/work/rig/rig/node_modules/typescript/lib/typescript.js";
|
|
52
52
|
/*! *****************************************************************************
|
|
53
53
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54
54
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -169494,6 +169494,9 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
169494
169494
|
} });
|
|
169495
169495
|
});
|
|
169496
169496
|
|
|
169497
|
+
// src/cli.ts
|
|
169498
|
+
import { readFileSync } from "node:fs";
|
|
169499
|
+
|
|
169497
169500
|
// node_modules/commander/lib/error.js
|
|
169498
169501
|
class CommanderError extends Error {
|
|
169499
169502
|
constructor(exitCode, code, message) {
|
|
@@ -187775,7 +187778,7 @@ class CliApplication {
|
|
|
187775
187778
|
}
|
|
187776
187779
|
}
|
|
187777
187780
|
configureProgram() {
|
|
187778
|
-
this.program.name("rig").description("Local typed command runtime for agents.").version(
|
|
187781
|
+
this.program.name("rig").description("Local typed command runtime for agents.").version(this.version()).addHelpCommand(false);
|
|
187779
187782
|
this.configureInitCommands();
|
|
187780
187783
|
this.configureConfigCommands();
|
|
187781
187784
|
this.configureRegistryCommands();
|
|
@@ -187992,6 +187995,15 @@ Use this workflow:
|
|
|
187992
187995
|
A command id looks like \`<tool>.<command>\`, for example \`github.list-prs\`. It is an identifier for discovery and inspection; execute it with \`rig run github list-prs owner=octocat repo=hello-world\`.
|
|
187993
187996
|
`;
|
|
187994
187997
|
}
|
|
187998
|
+
version() {
|
|
187999
|
+
try {
|
|
188000
|
+
const packageJsonPath = RigPackageRoot.packageFile(import.meta.url, "package.json");
|
|
188001
|
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
188002
|
+
return typeof packageJson.version === "string" ? packageJson.version : "0.0.0";
|
|
188003
|
+
} catch {
|
|
188004
|
+
return "0.0.0";
|
|
188005
|
+
}
|
|
188006
|
+
}
|
|
187995
188007
|
pathOptions() {
|
|
187996
188008
|
return process.env.RIG_HOME ? { homeDir: process.env.RIG_HOME } : {};
|
|
187997
188009
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rendotdev/rig",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Local typed command runtime for agents.",
|
|
5
5
|
"homepage": "https://github.com/rendotdev/rig#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+
|
|
12
|
+
"url": "git+https://github.com/rendotdev/rig.git"
|
|
13
13
|
},
|
|
14
14
|
"bin": {
|
|
15
15
|
"rig": "dist/rig.js"
|