shopq 0.3.9 → 0.4.0

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.
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Adds .pi/npm/node_modules/.bin to the bash tool's PATH so that
3
+ * `shopq` (and any other pi-installed CLI) resolves without a global install.
4
+ */
5
+
6
+ import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
7
+ import { createBashTool } from "@mariozechner/pi-coding-agent";
8
+
9
+ export default function (pi: ExtensionAPI) {
10
+ const cwd = process.cwd();
11
+
12
+ const bashTool = createBashTool(cwd, {
13
+ spawnHook: ({ command, cwd: spawnCwd, env }) => ({
14
+ command,
15
+ cwd: spawnCwd,
16
+ env: {
17
+ ...env,
18
+ PATH: `${cwd}/.pi/npm/node_modules/.bin:${env.PATH ?? ""}`,
19
+ },
20
+ }),
21
+ });
22
+
23
+ pi.registerTool({
24
+ ...bashTool,
25
+ execute: async (id, params, signal, onUpdate) => {
26
+ return bashTool.execute(id, params, signal, onUpdate);
27
+ },
28
+ });
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopq",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "A zero-dependency Shopify Admin CLI built on Bun",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
+ "extensions",
12
13
  "skills"
13
14
  ],
14
15
  "scripts": {
@@ -35,6 +36,9 @@
35
36
  "pi-package"
36
37
  ],
37
38
  "pi": {
39
+ "extensions": [
40
+ "./extensions"
41
+ ],
38
42
  "skills": [
39
43
  "./skills"
40
44
  ]
@@ -47,6 +51,12 @@
47
51
  "@types/bun": "latest"
48
52
  },
49
53
  "peerDependencies": {
54
+ "@mariozechner/pi-coding-agent": "*",
50
55
  "typescript": "^5.9.3"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "@mariozechner/pi-coding-agent": {
59
+ "optional": true
60
+ }
51
61
  }
52
62
  }
@@ -9,11 +9,7 @@ A zero-dependency Shopify Admin CLI. Structured JSON output, predictable exit co
9
9
 
10
10
  ## Setup
11
11
 
12
- Install globally:
13
-
14
- ```bash
15
- bun install -g shopq
16
- ```
12
+ If `shopq` is not found on PATH, it may not be installed globally. Let the user know they can install it with their package manager (e.g. `npm install -g shopq`, `bun install -g shopq`, etc.).
17
13
 
18
14
  Configure credentials (one of):
19
15