@indigoai-us/hq-cli 5.342.12 → 5.342.14

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 (47) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/assets/scaffold/core/scripts/hq-delegate-grant.sh +9 -0
  3. package/assets/scaffold/core/scripts/hq-delegate-send.sh +9 -0
  4. package/assets/scaffold/core/scripts/hq-job-probe.sh +9 -0
  5. package/assets/scaffold/core/scripts/jobs-validate.sh +9 -0
  6. package/dist/commands/agent-kit.d.ts +2 -0
  7. package/dist/commands/agent-kit.js +23 -17
  8. package/dist/commands/agent-mcp.d.ts +2 -0
  9. package/dist/commands/agent-mcp.js +21 -15
  10. package/dist/commands/core-delegate-w1b.js +19 -10
  11. package/dist/commands/core-delegate.d.ts +2 -0
  12. package/dist/commands/core-delegate.js +16 -4
  13. package/dist/commands/core-job-probe-native.d.ts +4 -1
  14. package/dist/commands/core-job-probe-native.js +62 -14
  15. package/dist/commands/core-job-run-native.js +14 -2
  16. package/dist/commands/core-jobs-native.js +2 -1
  17. package/dist/commands/core-ontology-native.js +18 -2
  18. package/dist/commands/core-worker-share-native.js +2 -1
  19. package/dist/commands/lanes-message.d.ts +20 -2
  20. package/dist/commands/lanes-message.js +99 -38
  21. package/dist/commands/lanes-shared.d.ts +1 -0
  22. package/dist/commands/lanes.d.ts +4 -0
  23. package/dist/commands/lanes.js +24 -30
  24. package/dist/commands/mesh.js +2 -1
  25. package/dist/commands/monitor.d.ts +14 -1
  26. package/dist/commands/monitor.js +43 -14
  27. package/dist/lib/core-utils/shell-display-path.d.ts +3 -0
  28. package/dist/lib/core-utils/shell-display-path.js +12 -0
  29. package/dist/lib/doctor/checks/anywhere.js +11 -6
  30. package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
  31. package/dist/lib/flag-registry-worker-source.generated.js +1 -1
  32. package/dist/lib/lanes/keep-alive-audit.d.ts +3 -0
  33. package/dist/lib/lanes/keep-alive-audit.js +59 -11
  34. package/dist/lib/lanes/reconcile.js +46 -3
  35. package/dist/lib/lanes/types.d.ts +2 -1
  36. package/dist/utils/resident-package-preload.d.ts +8 -1
  37. package/dist/utils/resident-package-preload.js +68 -0
  38. package/dist/utils/run-bundled-script.d.ts +2 -0
  39. package/dist/utils/run-bundled-script.js +1 -0
  40. package/dist/utils/windows-spawn.d.ts +2 -0
  41. package/dist/utils/windows-spawn.js +6 -0
  42. package/docs/anywhere-runtime.md +3 -1
  43. package/package.json +4 -4
  44. package/dist/lib/db/remote-engine.d.ts +0 -58
  45. package/dist/lib/db/remote-engine.js +0 -87
  46. package/dist/lib/db/remote-sql.d.ts +0 -22
  47. package/dist/lib/db/remote-sql.js +0 -36
@@ -1,36 +0,0 @@
1
- /**
2
- * Remote SQL helper with injected credentials and executor (US-010).
3
- *
4
- * Connection string never appears in argv, logs, or stdout.
5
- * The CLI command does not currently wire this helper to a remote executor.
6
- */
7
- function assertNoLeak(label, value) {
8
- const s = typeof value === "string" ? value : JSON.stringify(value);
9
- if (/postgres:\/\//i.test(s) || /postgresql:\/\//i.test(s)) {
10
- throw new Error(`${label}: connection string leak blocked`);
11
- }
12
- }
13
- /**
14
- * Run SQL on remote tier using vault-bound credentials.
15
- */
16
- export async function runRemoteSql(opts) {
17
- if (!opts.sql?.trim()) {
18
- throw new Error("SQL statement is required");
19
- }
20
- let config;
21
- try {
22
- config = await opts.getConnectionConfig();
23
- }
24
- catch (e) {
25
- const msg = e instanceof Error ? e.message : "no remote binding";
26
- throw new Error(`remote SQL unavailable: ${msg}`);
27
- }
28
- assertNoLeak("connection config", config);
29
- if (!opts.execute) {
30
- throw new Error("remote SQL executor not configured in this build (adapter pending live DSQL wire-up)");
31
- }
32
- const rows = await opts.execute(config, opts.sql);
33
- assertNoLeak("remote sql rows", rows);
34
- return { rows };
35
- }
36
- //# sourceMappingURL=remote-sql.js.map