@indigoai-us/hq-cli 5.345.165 → 5.345.166
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/CHANGELOG.md +9 -0
- package/assets/scaffold/core/scripts/rebuild-all-indexes.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-orchestrator-index.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-public-knowledge-index.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-reports-index.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-social-drafts-index.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-threads-index.sh +11 -0
- package/assets/scaffold/core/scripts/rebuild-workers-index.sh +11 -0
- package/dist/commands/integrations-api.d.ts +15 -0
- package/dist/commands/integrations-api.js +27 -0
- package/dist/commands/integrations-manage.js +4 -2
- package/dist/commands/integrations.js +9 -5
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +210 -197
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/doctor/checks/sync-runtime.d.ts +7 -2
- package/dist/lib/doctor/checks/sync-runtime.js +1 -3
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/index-render/index.d.ts +5 -0
- package/dist/lib/index-render/index.js +22 -1
- package/package.json +8 -8
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { RenderContext, RenderResult } from "./shared.js";
|
|
2
2
|
export type IndexTarget = "all" | "companies" | "company-knowledge" | "orchestrator" | "projects" | "public-knowledge" | "reports" | "social-drafts" | "threads" | "workers";
|
|
3
|
+
/**
|
|
4
|
+
* One-line summaries for targets without their own option grammar. The CLI,
|
|
5
|
+
* the renderer and the bundled shell fallbacks all print the same help text.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GENERIC_INDEX_HELP_SUMMARIES: Readonly<Record<Exclude<IndexTarget, "companies" | "company-knowledge" | "projects">, string>>;
|
|
3
8
|
export declare function renderIndexTarget(target: IndexTarget, context: RenderContext, args?: string[]): RenderResult;
|
|
4
9
|
export { atomicWrite, comparePath, immediateEntries, type RenderContext, type RenderResult } from "./shared.js";
|
|
5
10
|
export { CompanyIndexUserError } from "./companies.js";
|
|
@@ -43,15 +43,36 @@ function companyScope(target, context, args) {
|
|
|
43
43
|
}
|
|
44
44
|
return company;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* One-line summaries for targets without their own option grammar. The CLI,
|
|
48
|
+
* the renderer and the bundled shell fallbacks all print the same help text.
|
|
49
|
+
*/
|
|
50
|
+
export const GENERIC_INDEX_HELP_SUMMARIES = {
|
|
51
|
+
all: "Regenerate every INDEX.md across the HQ tree",
|
|
52
|
+
orchestrator: "Regenerate the orchestrator workspace INDEX.md",
|
|
53
|
+
"public-knowledge": "Regenerate core/knowledge/public/INDEX.md",
|
|
54
|
+
reports: "Regenerate the reports INDEX.md",
|
|
55
|
+
"social-drafts": "Regenerate workspace/social-drafts/INDEX.md",
|
|
56
|
+
threads: "Regenerate the session-threads INDEX.md",
|
|
57
|
+
workers: "Regenerate the workers INDEX.md",
|
|
58
|
+
};
|
|
59
|
+
function isHelp(args) {
|
|
60
|
+
return args.some((arg) => arg === "--help" || arg === "-h");
|
|
61
|
+
}
|
|
46
62
|
export function renderIndexTarget(target, context, args = []) {
|
|
47
63
|
if (target === "company-knowledge" || target === "projects") {
|
|
48
|
-
if (args
|
|
64
|
+
if (isHelp(args)) {
|
|
49
65
|
(context.output ?? ((message) => process.stdout.write(message)))(`Usage: hq core rebuild-index ${target} [<company> | --company <company>] [--accept]\n\nWith a company, rebuild only that company's index. Without a company, retain the all-company rebuild. Help performs no writes.\n`);
|
|
50
66
|
return { written: [] };
|
|
51
67
|
}
|
|
52
68
|
const company = companyScope(target, context, args);
|
|
53
69
|
return target === "projects" ? renderProjects(context, company) : renderCompanyKnowledge(context, company);
|
|
54
70
|
}
|
|
71
|
+
if (target !== "companies" && isHelp(args)) {
|
|
72
|
+
// Help must never write, matching the CLI and the bundled shell fallback.
|
|
73
|
+
(context.output ?? ((message) => process.stdout.write(message)))(`Usage: hq core rebuild-index ${target} [--accept]\n\n${GENERIC_INDEX_HELP_SUMMARIES[target]}. Help performs no writes.\n`);
|
|
74
|
+
return { written: [] };
|
|
75
|
+
}
|
|
55
76
|
switch (target) {
|
|
56
77
|
case "companies": return renderCompanies(context, args);
|
|
57
78
|
case "orchestrator": return renderOrchestrator(context);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigoai-us/hq-cli",
|
|
3
|
-
"version": "5.345.
|
|
3
|
+
"version": "5.345.166",
|
|
4
4
|
"description": "HQ by Indigo management CLI — modules and cloud sync",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@aws-sdk/client-iot-data-plane": "^3.1096.0",
|
|
53
53
|
"@aws-sdk/client-s3": "^3.1049.0",
|
|
54
54
|
"@aws-sdk/dsql-signer": "^3.1146.0",
|
|
55
|
-
"@indigoai-us/hq-cloud": "6.18.
|
|
55
|
+
"@indigoai-us/hq-cloud": "6.18.101",
|
|
56
56
|
"@indigoai-us/hq-flags-client": "^0.1.2",
|
|
57
57
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
58
58
|
"@sentry/node": "^10.49.0",
|
|
@@ -114,11 +114,11 @@
|
|
|
114
114
|
"*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}": "eslint --cache --no-error-on-unmatched-pattern"
|
|
115
115
|
},
|
|
116
116
|
"optionalDependencies": {
|
|
117
|
-
"@indigoai-us/hq-hook-win32-x64": "5.345.
|
|
118
|
-
"@indigoai-us/hq-hook-win32-arm64": "5.345.
|
|
119
|
-
"@indigoai-us/hq-hook-darwin-x64": "5.345.
|
|
120
|
-
"@indigoai-us/hq-hook-darwin-arm64": "5.345.
|
|
121
|
-
"@indigoai-us/hq-hook-linux-x64": "5.345.
|
|
122
|
-
"@indigoai-us/hq-hook-linux-arm64": "5.345.
|
|
117
|
+
"@indigoai-us/hq-hook-win32-x64": "5.345.166",
|
|
118
|
+
"@indigoai-us/hq-hook-win32-arm64": "5.345.166",
|
|
119
|
+
"@indigoai-us/hq-hook-darwin-x64": "5.345.166",
|
|
120
|
+
"@indigoai-us/hq-hook-darwin-arm64": "5.345.166",
|
|
121
|
+
"@indigoai-us/hq-hook-linux-x64": "5.345.166",
|
|
122
|
+
"@indigoai-us/hq-hook-linux-arm64": "5.345.166"
|
|
123
123
|
}
|
|
124
124
|
}
|