@indigoai-us/hq-cli 5.34.2 → 5.35.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,15 @@
1
+ /**
2
+ * hq reindex — surface namespaced skills, mirror the personal overlay into
3
+ * core/, and regenerate the workers registry.
4
+ *
5
+ * Thin wrapper over @indigoai-us/hq-cloud's reindex(), which execs the bundled
6
+ * scripts/reindex.sh against the HQ root. This command is what the hq-core
7
+ * reindex hook shim calls on Stop / PostToolUse, and what sync()/rescue() call
8
+ * after they change on-disk sources.
9
+ *
10
+ * Keeps a hidden `master-sync` alias for one release so an updated CLI still
11
+ * answers a not-yet-updated hook shim (and vice-versa) during rollout.
12
+ */
13
+ import { Command } from 'commander';
14
+ export declare function registerReindexCommand(program: Command): void;
15
+ //# sourceMappingURL=reindex.d.ts.map
@@ -1,15 +1,16 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c5486cda-a7fa-5274-ab0a-a61e1958aac7")}catch(e){}}();
3
- import { masterSync } from '@indigoai-us/hq-cloud';
4
- export function registerMasterSyncCommand(program) {
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9d81df7d-0153-5f51-9cfb-60f1409c6b94")}catch(e){}}();
3
+ import { reindex } from '@indigoai-us/hq-cloud';
4
+ export function registerReindexCommand(program) {
5
5
  program
6
- .command('master-sync')
6
+ .command('reindex')
7
+ .alias('master-sync')
7
8
  .description('Surface namespaced skills, mirror the personal overlay into core/, and regenerate the workers registry')
8
9
  .option('--repo-root <path>', 'HQ root to operate on (defaults to the current directory)')
9
10
  .action((opts) => {
10
- const { status } = masterSync({ repoRoot: opts.repoRoot });
11
+ const { status } = reindex({ repoRoot: opts.repoRoot });
11
12
  process.exit(status);
12
13
  });
13
14
  }
14
- //# sourceMappingURL=master-sync.js.map
15
- //# debugId=c5486cda-a7fa-5274-ab0a-a61e1958aac7
15
+ //# sourceMappingURL=reindex.js.map
16
+ //# debugId=9d81df7d-0153-5f51-9cfb-60f1409c6b94
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * HQ CLI - Module management, package management, and cloud sync for HQ
4
4
  */
5
5
 
6
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="004dc716-c660-5745-94db-988ac49d102e")}catch(e){}}();
6
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="202089d2-b89b-5779-aa66-f88531a9b893")}catch(e){}}();
7
7
  import { Command } from "commander";
8
8
  import { initSentry, Sentry } from "./sentry.js";
9
9
  import { registerAddCommand } from "./commands/add.js";
@@ -39,7 +39,7 @@ import { registerFeedbackCommand } from "./commands/feedback.js";
39
39
  import { registerMeetingsCommand } from "./commands/meetings.js";
40
40
  import { registerSourcesCommand } from "./commands/sources.js";
41
41
  import { registerSignalsCommand } from "./commands/signals.js";
42
- import { registerMasterSyncCommand } from "./commands/master-sync.js";
42
+ import { registerReindexCommand } from "./commands/reindex.js";
43
43
  import { registerRescueCommand } from "./commands/rescue.js";
44
44
  import { sanitizeArgv } from "./utils/feedback-diagnostics.js";
45
45
  import { maybeWarnNewVersion, refreshVersionCache, } from "./utils/version-check.js";
@@ -139,10 +139,11 @@ registerMeetingsCommand(program);
139
139
  registerSourcesCommand(program);
140
140
  // Signals read surface (subcommand group — hq signals list|get|types|entities)
141
141
  registerSignalsCommand(program);
142
- // Skill/personal-overlay mirroring + workers-registry regen. Internal command
143
- // invoked by the hq-core master-sync hook shim (formerly the master-sync.sh
144
- // hook body). Implementation lives in @indigoai-us/hq-cloud.
145
- registerMasterSyncCommand(program);
142
+ // Skill/personal-overlay mirroring + workers-registry regen. Invoked by the
143
+ // hq-core reindex hook shim (Stop / PostToolUse) and by sync()/rescue() after
144
+ // they change on-disk sources. Keeps a `master-sync` alias for one release.
145
+ // Implementation lives in @indigoai-us/hq-cloud.
146
+ registerReindexCommand(program);
146
147
  // Drift-preserving HQ-core re-sync (top-level — `hq rescue`). CLI sibling of
147
148
  // the HQ Sync app's "Update / Restore" pill; drives the same replace-rescue.sh
148
149
  // shipped from @indigoai-us/hq-cloud.
@@ -173,4 +174,4 @@ registerRescueCommand(program);
173
174
  }
174
175
  })();
175
176
  //# sourceMappingURL=index.js.map
176
- //# debugId=004dc716-c660-5745-94db-988ac49d102e
177
+ //# debugId=202089d2-b89b-5779-aa66-f88531a9b893
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.34.2",
4
- "description": "HQ by Indigo management CLI \u2014 modules and cloud sync",
3
+ "version": "5.35.0",
4
+ "description": "HQ by Indigo management CLI modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "hq": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "clean": "rm -rf dist"
16
16
  },
17
17
  "dependencies": {
18
- "@indigoai-us/hq-cloud": "~5.48.4",
18
+ "@indigoai-us/hq-cloud": "^6.0.0",
19
19
  "@indigoai-us/hq-onboarding": "^0.1.0",
20
20
  "@sentry/node": "^10.49.0",
21
21
  "chalk": "^5.3.0",
@@ -0,0 +1,28 @@
1
+ /**
2
+ * hq reindex — surface namespaced skills, mirror the personal overlay into
3
+ * core/, and regenerate the workers registry.
4
+ *
5
+ * Thin wrapper over @indigoai-us/hq-cloud's reindex(), which execs the bundled
6
+ * scripts/reindex.sh against the HQ root. This command is what the hq-core
7
+ * reindex hook shim calls on Stop / PostToolUse, and what sync()/rescue() call
8
+ * after they change on-disk sources.
9
+ *
10
+ * Keeps a hidden `master-sync` alias for one release so an updated CLI still
11
+ * answers a not-yet-updated hook shim (and vice-versa) during rollout.
12
+ */
13
+ import { Command } from 'commander';
14
+ import { reindex } from '@indigoai-us/hq-cloud';
15
+
16
+ export function registerReindexCommand(program: Command): void {
17
+ program
18
+ .command('reindex')
19
+ .alias('master-sync')
20
+ .description(
21
+ 'Surface namespaced skills, mirror the personal overlay into core/, and regenerate the workers registry'
22
+ )
23
+ .option('--repo-root <path>', 'HQ root to operate on (defaults to the current directory)')
24
+ .action((opts: { repoRoot?: string }) => {
25
+ const { status } = reindex({ repoRoot: opts.repoRoot });
26
+ process.exit(status);
27
+ });
28
+ }
package/src/index.ts CHANGED
@@ -39,7 +39,7 @@ import { registerFeedbackCommand } from "./commands/feedback.js";
39
39
  import { registerMeetingsCommand } from "./commands/meetings.js";
40
40
  import { registerSourcesCommand } from "./commands/sources.js";
41
41
  import { registerSignalsCommand } from "./commands/signals.js";
42
- import { registerMasterSyncCommand } from "./commands/master-sync.js";
42
+ import { registerReindexCommand } from "./commands/reindex.js";
43
43
  import { registerRescueCommand } from "./commands/rescue.js";
44
44
  import { sanitizeArgv } from "./utils/feedback-diagnostics.js";
45
45
  import {
@@ -176,10 +176,11 @@ registerSourcesCommand(program);
176
176
  // Signals read surface (subcommand group — hq signals list|get|types|entities)
177
177
  registerSignalsCommand(program);
178
178
 
179
- // Skill/personal-overlay mirroring + workers-registry regen. Internal command
180
- // invoked by the hq-core master-sync hook shim (formerly the master-sync.sh
181
- // hook body). Implementation lives in @indigoai-us/hq-cloud.
182
- registerMasterSyncCommand(program);
179
+ // Skill/personal-overlay mirroring + workers-registry regen. Invoked by the
180
+ // hq-core reindex hook shim (Stop / PostToolUse) and by sync()/rescue() after
181
+ // they change on-disk sources. Keeps a `master-sync` alias for one release.
182
+ // Implementation lives in @indigoai-us/hq-cloud.
183
+ registerReindexCommand(program);
183
184
 
184
185
  // Drift-preserving HQ-core re-sync (top-level — `hq rescue`). CLI sibling of
185
186
  // the HQ Sync app's "Update / Restore" pill; drives the same replace-rescue.sh
@@ -1,11 +0,0 @@
1
- /**
2
- * hq master-sync — surface namespaced skills, mirror the personal overlay into
3
- * core/, and regenerate the workers registry.
4
- *
5
- * Thin wrapper over @indigoai-us/hq-cloud's masterSync(), which execs the
6
- * bundled scripts/master-sync.sh against the HQ root. This command is what the
7
- * hq-core master-sync hook shim calls on Stop / PostToolUse.
8
- */
9
- import { Command } from 'commander';
10
- export declare function registerMasterSyncCommand(program: Command): void;
11
- //# sourceMappingURL=master-sync.d.ts.map
@@ -1,23 +0,0 @@
1
- /**
2
- * hq master-sync — surface namespaced skills, mirror the personal overlay into
3
- * core/, and regenerate the workers registry.
4
- *
5
- * Thin wrapper over @indigoai-us/hq-cloud's masterSync(), which execs the
6
- * bundled scripts/master-sync.sh against the HQ root. This command is what the
7
- * hq-core master-sync hook shim calls on Stop / PostToolUse.
8
- */
9
- import { Command } from 'commander';
10
- import { masterSync } from '@indigoai-us/hq-cloud';
11
-
12
- export function registerMasterSyncCommand(program: Command): void {
13
- program
14
- .command('master-sync')
15
- .description(
16
- 'Surface namespaced skills, mirror the personal overlay into core/, and regenerate the workers registry'
17
- )
18
- .option('--repo-root <path>', 'HQ root to operate on (defaults to the current directory)')
19
- .action((opts: { repoRoot?: string }) => {
20
- const { status } = masterSync({ repoRoot: opts.repoRoot });
21
- process.exit(status);
22
- });
23
- }