@indigoai-us/hq-cloud 5.48.2 → 5.48.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rescue-runner.d.ts","sourceRoot":"","sources":["../../src/bin/rescue-runner.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* hq-rescue — machine-targeted entrypoint for the drift-preserving HQ-core
|
|
4
|
+
* re-sync ("rescue") shipped in `@indigoai-us/hq-cloud`.
|
|
5
|
+
*
|
|
6
|
+
* This is the rescue analogue of `hq-sync-runner`: the HQ Sync menubar app
|
|
7
|
+
* (Tauri + Rust) spawns it the same way it spawns the sync runner —
|
|
8
|
+
* `npx -y --package=@indigoai-us/hq-cloud@<pin> hq-rescue <flags>`
|
|
9
|
+
* — so the app invokes hq-cloud directly at runtime (pinned by the Rust
|
|
10
|
+
* `HQ_CLOUD_VERSION` constant) rather than bundling a private copy of the
|
|
11
|
+
* script. `hq rescue` in `@indigoai-us/hq-cli` is the human-facing sibling.
|
|
12
|
+
*
|
|
13
|
+
* All flags are forwarded verbatim to scripts/replace-rescue.sh — see that
|
|
14
|
+
* script (and src/cli/rescue.ts) for the supported flags:
|
|
15
|
+
* --hq-root --source --ref --floor-sha --paths --preserve
|
|
16
|
+
* --preserve-subpath --no-history-check --no-backup --backup-dir
|
|
17
|
+
* --cloud-update --dry-run --yes
|
|
18
|
+
*
|
|
19
|
+
* stdout/stderr from the script are inherited so the caller (the menubar's
|
|
20
|
+
* RescueRunResult tail capture) sees the scan log + trailing summary.
|
|
21
|
+
*/
|
|
22
|
+
import { rescue } from "../cli/rescue.js";
|
|
23
|
+
const { status } = rescue({ extraArgs: process.argv.slice(2) });
|
|
24
|
+
process.exit(status);
|
|
25
|
+
//# sourceMappingURL=rescue-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rescue-runner.js","sourceRoot":"","sources":["../../src/bin/rescue-runner.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAChE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigoai-us/hq-cloud",
|
|
3
|
-
"version": "5.48.
|
|
3
|
+
"version": "5.48.3",
|
|
4
4
|
"description": "HQ by Indigo cloud sync engine — bidirectional S3 sync for mobile access",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"hq-sync-runner": "dist/bin/sync-runner.js"
|
|
8
|
+
"hq-sync-runner": "dist/bin/sync-runner.js",
|
|
9
|
+
"hq-rescue": "dist/bin/rescue-runner.js"
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* hq-rescue — machine-targeted entrypoint for the drift-preserving HQ-core
|
|
4
|
+
* re-sync ("rescue") shipped in `@indigoai-us/hq-cloud`.
|
|
5
|
+
*
|
|
6
|
+
* This is the rescue analogue of `hq-sync-runner`: the HQ Sync menubar app
|
|
7
|
+
* (Tauri + Rust) spawns it the same way it spawns the sync runner —
|
|
8
|
+
* `npx -y --package=@indigoai-us/hq-cloud@<pin> hq-rescue <flags>`
|
|
9
|
+
* — so the app invokes hq-cloud directly at runtime (pinned by the Rust
|
|
10
|
+
* `HQ_CLOUD_VERSION` constant) rather than bundling a private copy of the
|
|
11
|
+
* script. `hq rescue` in `@indigoai-us/hq-cli` is the human-facing sibling.
|
|
12
|
+
*
|
|
13
|
+
* All flags are forwarded verbatim to scripts/replace-rescue.sh — see that
|
|
14
|
+
* script (and src/cli/rescue.ts) for the supported flags:
|
|
15
|
+
* --hq-root --source --ref --floor-sha --paths --preserve
|
|
16
|
+
* --preserve-subpath --no-history-check --no-backup --backup-dir
|
|
17
|
+
* --cloud-update --dry-run --yes
|
|
18
|
+
*
|
|
19
|
+
* stdout/stderr from the script are inherited so the caller (the menubar's
|
|
20
|
+
* RescueRunResult tail capture) sees the scan log + trailing summary.
|
|
21
|
+
*/
|
|
22
|
+
import { rescue } from "../cli/rescue.js";
|
|
23
|
+
|
|
24
|
+
const { status } = rescue({ extraArgs: process.argv.slice(2) });
|
|
25
|
+
process.exit(status);
|