@smartreviq/cli 0.3.1 → 0.3.2

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/LICENSE.md ADDED
@@ -0,0 +1,16 @@
1
+ # License
2
+
3
+ Copyright (c) 2026 SmartRevIQ. All rights reserved.
4
+
5
+ This software is a component of the SmartRevIQ service. It is published so
6
+ that SmartRevIQ customers can manage the configuration of their own
7
+ SmartRevIQ environments from their own repositories and pipelines.
8
+
9
+ Use is permitted only by parties holding a current subscription to the
10
+ SmartRevIQ service, and is governed by the terms of the agreement under
11
+ which that subscription is held.
12
+
13
+ No other rights are granted. This software may not be redistributed,
14
+ sublicensed, sold, or incorporated into another product or service, and may
15
+ not be reverse engineered except to the extent that such a restriction is
16
+ unenforceable under applicable law.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # sriq
2
2
 
3
- Edit, test and ship SmartRevIQ process-engine scripts from VS Code or WebStorm.
3
+ Edit, test and ship SmartRevIQ process-engine scripts from your editor and CI.
4
4
 
5
5
  No IDE plugin. The CLI writes ordinary project files — `jsconfig.json`, type
6
6
  declarations, launch configurations — and both editors read them through the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smartreviq/cli",
3
- "version": "0.3.1",
4
- "description": "Edit, test and ship SmartRevIQ process-engine scripts from VS Code or WebStorm.",
3
+ "version": "0.3.2",
4
+ "description": "Edit, test and ship SmartRevIQ process-engine scripts from your editor and CI.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "sriq": "bin/sriq.mjs"
@@ -21,12 +21,7 @@
21
21
  "acorn": "^8.19.0",
22
22
  "typescript": "^5.9.3"
23
23
  },
24
- "license": "UNLICENSED",
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/SmartRevIQ/smartreviq-backend.git",
28
- "directory": "tools/sriq"
29
- },
24
+ "license": "SEE LICENSE IN LICENSE.md",
30
25
  "publishConfig": {
31
26
  "access": "public"
32
27
  },
package/src/cli.mjs CHANGED
@@ -824,7 +824,7 @@ async function cmdRun(argv) {
824
824
 
825
825
  if (!safeMode) log(yellow('! running with writes ENABLED (--unsafe)'));
826
826
 
827
- if (flags.local) return runLocally({ abs, api, config, flags, safeMode });
827
+ if (flags.local) return runLocally({ abs, api, root, target, flags, safeMode });
828
828
 
829
829
  let result;
830
830
  if (flags.doc) {
@@ -844,7 +844,18 @@ async function cmdRun(argv) {
844
844
  * every api call forwarded to the environment. See runner.mjs for the fidelity
845
845
  * caveat this prints.
846
846
  */
847
- async function runLocally({ abs, api, config, flags, safeMode }) {
847
+ /**
848
+ * `--local` was dead on arrival. Three names this function uses were never
849
+ * passed to it — `config`, which it does not actually need, plus `root` and
850
+ * `target`, which it does — so every invocation threw `config is not defined`
851
+ * before reaching the runner, and the next two were waiting behind it.
852
+ *
853
+ * The runner's own tests pass and always did: they exercise runner.mjs
854
+ * directly, never the handful of lines of CLI wiring between the flag and it.
855
+ * A test that spawns the command is the only thing that would have caught
856
+ * this, which is why one now exists.
857
+ */
858
+ async function runLocally({ abs, api, root, target, flags, safeMode }) {
848
859
  const { createRemoteApi, installGlobals, runScriptFile } = await import('./runner.mjs');
849
860
 
850
861
  let doc = null;
package/src/client.mjs CHANGED
@@ -25,8 +25,8 @@
25
25
  * reads as rejected credentials rather than as a misrouted request.
26
26
  *
27
27
  * Both Lambdas rewrite `/api/v1/` to `/api/` before their own routers see the
28
- * path (src-auth/index.mts, src-handler/index.mts), so the prefixed form is
29
- * correct for every endpoint listed above, on every environment.
28
+ * path, so the prefixed form is correct for every endpoint listed above, on
29
+ * every environment.
30
30
  *
31
31
  * Overridable per project through `.sriq.json` "apiPrefix", so an environment
32
32
  * that routes differently can be worked around without waiting for a release.