@rendotdev/rig 0.0.16 → 0.0.18

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.
Files changed (28) hide show
  1. package/README.md +4 -0
  2. package/dist/cli-0p4wnh3p.js +226 -0
  3. package/dist/{cli-mswdavqx.js → cli-96n231pn.js} +3 -3
  4. package/dist/{cli-7zqnqrah.js → cli-c6y9p8v9.js} +106 -42
  5. package/dist/{cli-dshh1cp9.js → cli-f4k31gtc.js} +1 -1
  6. package/dist/{cli-vx11bmzr.js → cli-ggk7t6dg.js} +2 -2
  7. package/dist/{cli-xv4m20sx.js → cli-jbscjyqq.js} +93 -65
  8. package/dist/{cli-ne7ed594.js → cli-vkw9rcke.js} +8 -2
  9. package/dist/{run-y66hvyxg.js → cli-yahk2r84.js} +158 -16
  10. package/dist/{config-24gwe08t.js → config-8mr59m0q.js} +2 -3
  11. package/dist/{create-59myk91d.js → create-9frp1c7g.js} +7 -8
  12. package/dist/cron-e6whgdf7.js +18 -0
  13. package/dist/{dev-link-jpte1gq9.js → dev-link-x3hjyy3j.js} +7 -4
  14. package/dist/{discover-fd9e6j9j.js → discover-9n7b9ra2.js} +3 -4
  15. package/dist/{help-6k8m07yv.js → help-17a9ywd9.js} +5 -6
  16. package/dist/{inspect-ks3x7s4n.js → inspect-k2g3dt1g.js} +5 -6
  17. package/dist/list-pahq60sp.js +13 -0
  18. package/dist/{paths-hq1vy0wh.js → paths-cxq6fvhp.js} +1 -1
  19. package/dist/{registry-gng9br0x.js → registry-e68a7b4v.js} +2 -3
  20. package/dist/rig.js +80 -35
  21. package/dist/run-apb4mx5d.js +13 -0
  22. package/dist/{runtime-comment-gvmkkcyh.js → runtime-comment-3yq1pmaf.js} +15 -9
  23. package/dist/{sync-zsc35m3f.js → sync-3362wne1.js} +33 -16
  24. package/dist/{typecheck-c2k87ppw.js → typecheck-5325aspe.js} +5 -7
  25. package/dist/{update-check-87p71vrc.js → update-check-a02ydxdb.js} +8 -5
  26. package/package.json +2 -2
  27. package/dist/cli-aj56a1ja.js +0 -48
  28. package/dist/list-f7r354tq.js +0 -14
@@ -1,48 +0,0 @@
1
- // src/runtime/package-root.ts
2
- import { existsSync, realpathSync } from "node:fs";
3
- import { basename, dirname, join, resolve } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
-
6
- class RigPackageRoot {
7
- static find(metaUrl) {
8
- if (process.env.RIG_PACKAGE_ROOT)
9
- return resolve(process.env.RIG_PACKAGE_ROOT);
10
- const argvRoot = this.fromEntrypoint(process.argv[1]);
11
- if (argvRoot)
12
- return argvRoot;
13
- const execRoot = this.fromEntrypoint(process.execPath);
14
- if (execRoot)
15
- return execRoot;
16
- if (this.isBunBinary(metaUrl))
17
- return dirname(process.execPath);
18
- return join(dirname(fileURLToPath(metaUrl)), "..", "..");
19
- }
20
- static packageFile(metaUrl, ...parts) {
21
- return join(this.find(metaUrl), ...parts);
22
- }
23
- static isBunBinary(metaUrl) {
24
- return metaUrl.includes("$bunfs") || metaUrl.includes("~BUN") || metaUrl.includes("%7EBUN");
25
- }
26
- static fromEntrypoint(entrypoint) {
27
- if (!entrypoint)
28
- return;
29
- const resolved = this.safeRealpath(entrypoint);
30
- if (!resolved)
31
- return;
32
- const parent = dirname(resolved);
33
- const parentName = basename(parent);
34
- if (parentName === "src" || parentName === "dist")
35
- return dirname(parent);
36
- return;
37
- }
38
- static safeRealpath(pathValue) {
39
- try {
40
- return realpathSync(pathValue);
41
- } catch {
42
- const absolute = resolve(pathValue);
43
- return existsSync(absolute) ? absolute : undefined;
44
- }
45
- }
46
- }
47
-
48
- export { RigPackageRoot };
@@ -1,14 +0,0 @@
1
- import {
2
- ToolListService
3
- } from "./cli-mswdavqx.js";
4
- import"./cli-dshh1cp9.js";
5
- import"./cli-7zqnqrah.js";
6
- import"./cli-vx11bmzr.js";
7
- import"./cli-xv4m20sx.js";
8
- import"./cli-aj56a1ja.js";
9
- import"./cli-1c7te5cg.js";
10
- import"./cli-ne7ed594.js";
11
- import"./cli-b7jgjgy7.js";
12
- export {
13
- ToolListService
14
- };