@indigoai-us/hq-cli 5.291.0 → 5.293.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.
- package/CHANGELOG.md +53 -8
- package/assets/scaffold/core/scripts/handoff-finalize.sh +18 -0
- package/assets/scaffold/core/scripts/handoff-post.sh +71 -6
- package/assets/scaffold/core/scripts/hq-delegate-bundle.sh +307 -0
- package/assets/scaffold/core/scripts/hq-delegate-grant.sh +226 -0
- package/assets/scaffold/core/scripts/hq-delegate-publish.sh +91 -0
- package/assets/scaffold/core/scripts/hq-delegate-send.sh +259 -0
- package/assets/scaffold/core/scripts/hq-delegate-verify.sh +213 -0
- package/assets/scaffold/core/scripts/hq-job-notify.sh +389 -0
- package/assets/scaffold/core/scripts/hq-job-probe.sh +835 -0
- package/assets/scaffold/core/scripts/hq-job-remediate.sh +359 -0
- package/assets/scaffold/core/scripts/hq-job-run.sh +1025 -0
- package/assets/scaffold/core/scripts/outpost-jobs-reconcile.sh +830 -0
- package/dist/command-catalog.generated.d.ts +109 -1
- package/dist/command-catalog.generated.js +136 -1
- package/dist/commands/core-delegate-w1b.d.ts +8 -0
- package/dist/commands/core-delegate-w1b.js +1049 -0
- package/dist/commands/core-delegate.d.ts +28 -0
- package/dist/commands/core-delegate.js +15 -13
- package/dist/commands/core-handoff.js +152 -23
- package/dist/commands/core-jobs-native.d.ts +15 -0
- package/dist/commands/core-jobs-native.js +709 -2
- package/dist/commands/core-ontology.d.ts +22 -4
- package/dist/commands/core-ontology.js +90 -8
- package/dist/commands/core.js +10 -0
- package/dist/commands/lanes-move.js +54 -1
- package/dist/commands/lanes-questions.js +4 -0
- package/dist/commands/lanes.d.ts +2 -0
- package/dist/commands/lanes.js +119 -5
- package/dist/lib/checkpoint-ontology/drop-aliases.d.ts +41 -0
- package/dist/lib/checkpoint-ontology/drop-aliases.js +76 -0
- package/dist/lib/checkpoint-ontology/entity-file.d.ts +6 -3
- package/dist/lib/checkpoint-ontology/entity-file.js +12 -6
- package/dist/lib/checkpoint-ontology/merge-copies.d.ts +27 -8
- package/dist/lib/checkpoint-ontology/merge-copies.js +64 -97
- package/dist/lib/core-utils/sentry-report.js +2 -2
- package/dist/lib/daemon/flag.d.ts +2 -0
- package/dist/lib/daemon/flag.js +2 -0
- package/dist/lib/daemon/run.d.ts +11 -0
- package/dist/lib/daemon/run.js +17 -1
- package/dist/lib/lanes/autopilot.d.ts +13 -1
- package/dist/lib/lanes/autopilot.js +271 -28
- package/dist/lib/lanes/grants.d.ts +1 -1
- package/dist/lib/lanes/grants.js +7 -5
- package/dist/lib/lanes/index.d.ts +1 -1
- package/dist/lib/lanes/keep-alive.d.ts +5 -0
- package/dist/lib/lanes/keep-alive.js +9 -4
- package/dist/lib/lanes/questions.d.ts +2 -1
- package/dist/lib/lanes/questions.js +2 -0
- package/dist/lib/lanes/reconcile.js +186 -9
- package/dist/lib/lanes/spawn.js +4 -0
- package/dist/lib/lanes/store.js +21 -1
- package/dist/lib/lanes/types.d.ts +13 -1
- package/dist/lib/lanes/types.js +2 -2
- package/dist/lib/lanes/watcher.js +3 -1
- package/dist/utils/scaffold-sibling-references.js +4 -4
- package/dist/utils/self-update.d.ts +13 -0
- package/dist/utils/self-update.js +33 -7
- package/dist/utils/staged-install.d.ts +34 -0
- package/dist/utils/staged-install.js +296 -0
- package/dist/utils/version-gate.d.ts +15 -0
- package/dist/utils/version-gate.js +46 -2
- package/package.json +1 -1
- package/scripts/mesh-daemon-if-stale.mjs +4 -0
|
@@ -5202,6 +5202,9 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
5202
5202
|
}, {
|
|
5203
5203
|
readonly flags: "--variants";
|
|
5204
5204
|
readonly description: "merge two-file duplicate groups whose names differ only in case, spacing or punctuation (checkpoint.ontology.merge-variants)";
|
|
5205
|
+
}, {
|
|
5206
|
+
readonly flags: "--listed";
|
|
5207
|
+
readonly description: "merge exactly the pairs in the --only file, whatever their names (checkpoint.ontology.merge-listed-pairs)";
|
|
5205
5208
|
}, {
|
|
5206
5209
|
readonly flags: "--limit <n>";
|
|
5207
5210
|
readonly description: "handle at most this many copies";
|
|
@@ -5210,7 +5213,31 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
5210
5213
|
readonly description: "handle only the copy -> original pairs listed in this JSON file";
|
|
5211
5214
|
}, {
|
|
5212
5215
|
readonly flags: "--rewrite-refs";
|
|
5213
|
-
readonly description: "also re-point
|
|
5216
|
+
readonly description: "also re-point invoice and knowledge links to the survivor and carry external ids and web domains; pairs named by signals or sources stay held (checkpoint.ontology.merge-rewrite-refs)";
|
|
5217
|
+
}, {
|
|
5218
|
+
readonly flags: "--json";
|
|
5219
|
+
readonly description: "print JSON";
|
|
5220
|
+
}, {
|
|
5221
|
+
readonly flags: "--hq-root <path>";
|
|
5222
|
+
readonly description: "HQ installation to operate on";
|
|
5223
|
+
}];
|
|
5224
|
+
readonly subcommands: readonly [];
|
|
5225
|
+
}, {
|
|
5226
|
+
readonly name: "drop-aliases";
|
|
5227
|
+
readonly description: "Remove reviewed wrong aliases from entity files (dry run by default)";
|
|
5228
|
+
readonly aliases: readonly [];
|
|
5229
|
+
readonly hidden: false;
|
|
5230
|
+
readonly usage: "[options]";
|
|
5231
|
+
readonly arguments: readonly [];
|
|
5232
|
+
readonly options: readonly [{
|
|
5233
|
+
readonly flags: "--company <slug>";
|
|
5234
|
+
readonly description: "company to change";
|
|
5235
|
+
}, {
|
|
5236
|
+
readonly flags: "--only <file>";
|
|
5237
|
+
readonly description: "JSON array of { entity, alias } to remove; entity is a company-relative path";
|
|
5238
|
+
}, {
|
|
5239
|
+
readonly flags: "--apply";
|
|
5240
|
+
readonly description: "write the entity files";
|
|
5214
5241
|
}, {
|
|
5215
5242
|
readonly flags: "--json";
|
|
5216
5243
|
readonly description: "print JSON";
|
|
@@ -5404,6 +5431,71 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
5404
5431
|
}];
|
|
5405
5432
|
readonly options: readonly [];
|
|
5406
5433
|
readonly subcommands: readonly [];
|
|
5434
|
+
}, {
|
|
5435
|
+
readonly name: "bundle";
|
|
5436
|
+
readonly description: "Build a portable delegation bundle";
|
|
5437
|
+
readonly aliases: readonly [];
|
|
5438
|
+
readonly hidden: false;
|
|
5439
|
+
readonly usage: "[args...]";
|
|
5440
|
+
readonly arguments: readonly [{
|
|
5441
|
+
readonly name: "args";
|
|
5442
|
+
readonly required: false;
|
|
5443
|
+
readonly variadic: true;
|
|
5444
|
+
}];
|
|
5445
|
+
readonly options: readonly [];
|
|
5446
|
+
readonly subcommands: readonly [];
|
|
5447
|
+
}, {
|
|
5448
|
+
readonly name: "grant";
|
|
5449
|
+
readonly description: "Grant and verify delegation vault access";
|
|
5450
|
+
readonly aliases: readonly [];
|
|
5451
|
+
readonly hidden: false;
|
|
5452
|
+
readonly usage: "[args...]";
|
|
5453
|
+
readonly arguments: readonly [{
|
|
5454
|
+
readonly name: "args";
|
|
5455
|
+
readonly required: false;
|
|
5456
|
+
readonly variadic: true;
|
|
5457
|
+
}];
|
|
5458
|
+
readonly options: readonly [];
|
|
5459
|
+
readonly subcommands: readonly [];
|
|
5460
|
+
}, {
|
|
5461
|
+
readonly name: "publish";
|
|
5462
|
+
readonly description: "Publish canonical delegation files";
|
|
5463
|
+
readonly aliases: readonly [];
|
|
5464
|
+
readonly hidden: false;
|
|
5465
|
+
readonly usage: "[args...]";
|
|
5466
|
+
readonly arguments: readonly [{
|
|
5467
|
+
readonly name: "args";
|
|
5468
|
+
readonly required: false;
|
|
5469
|
+
readonly variadic: true;
|
|
5470
|
+
}];
|
|
5471
|
+
readonly options: readonly [];
|
|
5472
|
+
readonly subcommands: readonly [];
|
|
5473
|
+
}, {
|
|
5474
|
+
readonly name: "send";
|
|
5475
|
+
readonly description: "Generate or send the delegation pickup prompt";
|
|
5476
|
+
readonly aliases: readonly [];
|
|
5477
|
+
readonly hidden: false;
|
|
5478
|
+
readonly usage: "[args...]";
|
|
5479
|
+
readonly arguments: readonly [{
|
|
5480
|
+
readonly name: "args";
|
|
5481
|
+
readonly required: false;
|
|
5482
|
+
readonly variadic: true;
|
|
5483
|
+
}];
|
|
5484
|
+
readonly options: readonly [];
|
|
5485
|
+
readonly subcommands: readonly [];
|
|
5486
|
+
}, {
|
|
5487
|
+
readonly name: "verify";
|
|
5488
|
+
readonly description: "Probe delegation access and publish the handoff";
|
|
5489
|
+
readonly aliases: readonly [];
|
|
5490
|
+
readonly hidden: false;
|
|
5491
|
+
readonly usage: "[args...]";
|
|
5492
|
+
readonly arguments: readonly [{
|
|
5493
|
+
readonly name: "args";
|
|
5494
|
+
readonly required: false;
|
|
5495
|
+
readonly variadic: true;
|
|
5496
|
+
}];
|
|
5497
|
+
readonly options: readonly [];
|
|
5498
|
+
readonly subcommands: readonly [];
|
|
5407
5499
|
}];
|
|
5408
5500
|
}, {
|
|
5409
5501
|
readonly name: "handoff";
|
|
@@ -5548,6 +5640,19 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
5548
5640
|
}];
|
|
5549
5641
|
readonly options: readonly [];
|
|
5550
5642
|
readonly subcommands: readonly [];
|
|
5643
|
+
}, {
|
|
5644
|
+
readonly name: "reconcile";
|
|
5645
|
+
readonly description: "Materialize scheduled jobs on this outpost";
|
|
5646
|
+
readonly aliases: readonly [];
|
|
5647
|
+
readonly hidden: false;
|
|
5648
|
+
readonly usage: "[args...]";
|
|
5649
|
+
readonly arguments: readonly [{
|
|
5650
|
+
readonly name: "args";
|
|
5651
|
+
readonly required: false;
|
|
5652
|
+
readonly variadic: true;
|
|
5653
|
+
}];
|
|
5654
|
+
readonly options: readonly [];
|
|
5655
|
+
readonly subcommands: readonly [];
|
|
5551
5656
|
}];
|
|
5552
5657
|
}, {
|
|
5553
5658
|
readonly name: "worktree-gc";
|
|
@@ -8550,6 +8655,9 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
8550
8655
|
}, {
|
|
8551
8656
|
readonly flags: "--recommended <text>";
|
|
8552
8657
|
readonly description: "Recommended option";
|
|
8658
|
+
}, {
|
|
8659
|
+
readonly flags: "--priority <P0|P1|P2>";
|
|
8660
|
+
readonly description: "Urgency: P0 blocks now, P1 needed today, P2 can wait";
|
|
8553
8661
|
}, {
|
|
8554
8662
|
readonly flags: "--json";
|
|
8555
8663
|
readonly description: "JSON on stdout (always)";
|
|
@@ -6726,6 +6726,10 @@ export const COMMAND_CATALOG = [
|
|
|
6726
6726
|
"flags": "--variants",
|
|
6727
6727
|
"description": "merge two-file duplicate groups whose names differ only in case, spacing or punctuation (checkpoint.ontology.merge-variants)"
|
|
6728
6728
|
},
|
|
6729
|
+
{
|
|
6730
|
+
"flags": "--listed",
|
|
6731
|
+
"description": "merge exactly the pairs in the --only file, whatever their names (checkpoint.ontology.merge-listed-pairs)"
|
|
6732
|
+
},
|
|
6729
6733
|
{
|
|
6730
6734
|
"flags": "--limit <n>",
|
|
6731
6735
|
"description": "handle at most this many copies"
|
|
@@ -6736,7 +6740,38 @@ export const COMMAND_CATALOG = [
|
|
|
6736
6740
|
},
|
|
6737
6741
|
{
|
|
6738
6742
|
"flags": "--rewrite-refs",
|
|
6739
|
-
"description": "also re-point
|
|
6743
|
+
"description": "also re-point invoice and knowledge links to the survivor and carry external ids and web domains; pairs named by signals or sources stay held (checkpoint.ontology.merge-rewrite-refs)"
|
|
6744
|
+
},
|
|
6745
|
+
{
|
|
6746
|
+
"flags": "--json",
|
|
6747
|
+
"description": "print JSON"
|
|
6748
|
+
},
|
|
6749
|
+
{
|
|
6750
|
+
"flags": "--hq-root <path>",
|
|
6751
|
+
"description": "HQ installation to operate on"
|
|
6752
|
+
}
|
|
6753
|
+
],
|
|
6754
|
+
"subcommands": []
|
|
6755
|
+
},
|
|
6756
|
+
{
|
|
6757
|
+
"name": "drop-aliases",
|
|
6758
|
+
"description": "Remove reviewed wrong aliases from entity files (dry run by default)",
|
|
6759
|
+
"aliases": [],
|
|
6760
|
+
"hidden": false,
|
|
6761
|
+
"usage": "[options]",
|
|
6762
|
+
"arguments": [],
|
|
6763
|
+
"options": [
|
|
6764
|
+
{
|
|
6765
|
+
"flags": "--company <slug>",
|
|
6766
|
+
"description": "company to change"
|
|
6767
|
+
},
|
|
6768
|
+
{
|
|
6769
|
+
"flags": "--only <file>",
|
|
6770
|
+
"description": "JSON array of { entity, alias } to remove; entity is a company-relative path"
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
"flags": "--apply",
|
|
6774
|
+
"description": "write the entity files"
|
|
6740
6775
|
},
|
|
6741
6776
|
{
|
|
6742
6777
|
"flags": "--json",
|
|
@@ -6977,6 +7012,86 @@ export const COMMAND_CATALOG = [
|
|
|
6977
7012
|
],
|
|
6978
7013
|
"options": [],
|
|
6979
7014
|
"subcommands": []
|
|
7015
|
+
},
|
|
7016
|
+
{
|
|
7017
|
+
"name": "bundle",
|
|
7018
|
+
"description": "Build a portable delegation bundle",
|
|
7019
|
+
"aliases": [],
|
|
7020
|
+
"hidden": false,
|
|
7021
|
+
"usage": "[args...]",
|
|
7022
|
+
"arguments": [
|
|
7023
|
+
{
|
|
7024
|
+
"name": "args",
|
|
7025
|
+
"required": false,
|
|
7026
|
+
"variadic": true
|
|
7027
|
+
}
|
|
7028
|
+
],
|
|
7029
|
+
"options": [],
|
|
7030
|
+
"subcommands": []
|
|
7031
|
+
},
|
|
7032
|
+
{
|
|
7033
|
+
"name": "grant",
|
|
7034
|
+
"description": "Grant and verify delegation vault access",
|
|
7035
|
+
"aliases": [],
|
|
7036
|
+
"hidden": false,
|
|
7037
|
+
"usage": "[args...]",
|
|
7038
|
+
"arguments": [
|
|
7039
|
+
{
|
|
7040
|
+
"name": "args",
|
|
7041
|
+
"required": false,
|
|
7042
|
+
"variadic": true
|
|
7043
|
+
}
|
|
7044
|
+
],
|
|
7045
|
+
"options": [],
|
|
7046
|
+
"subcommands": []
|
|
7047
|
+
},
|
|
7048
|
+
{
|
|
7049
|
+
"name": "publish",
|
|
7050
|
+
"description": "Publish canonical delegation files",
|
|
7051
|
+
"aliases": [],
|
|
7052
|
+
"hidden": false,
|
|
7053
|
+
"usage": "[args...]",
|
|
7054
|
+
"arguments": [
|
|
7055
|
+
{
|
|
7056
|
+
"name": "args",
|
|
7057
|
+
"required": false,
|
|
7058
|
+
"variadic": true
|
|
7059
|
+
}
|
|
7060
|
+
],
|
|
7061
|
+
"options": [],
|
|
7062
|
+
"subcommands": []
|
|
7063
|
+
},
|
|
7064
|
+
{
|
|
7065
|
+
"name": "send",
|
|
7066
|
+
"description": "Generate or send the delegation pickup prompt",
|
|
7067
|
+
"aliases": [],
|
|
7068
|
+
"hidden": false,
|
|
7069
|
+
"usage": "[args...]",
|
|
7070
|
+
"arguments": [
|
|
7071
|
+
{
|
|
7072
|
+
"name": "args",
|
|
7073
|
+
"required": false,
|
|
7074
|
+
"variadic": true
|
|
7075
|
+
}
|
|
7076
|
+
],
|
|
7077
|
+
"options": [],
|
|
7078
|
+
"subcommands": []
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
"name": "verify",
|
|
7082
|
+
"description": "Probe delegation access and publish the handoff",
|
|
7083
|
+
"aliases": [],
|
|
7084
|
+
"hidden": false,
|
|
7085
|
+
"usage": "[args...]",
|
|
7086
|
+
"arguments": [
|
|
7087
|
+
{
|
|
7088
|
+
"name": "args",
|
|
7089
|
+
"required": false,
|
|
7090
|
+
"variadic": true
|
|
7091
|
+
}
|
|
7092
|
+
],
|
|
7093
|
+
"options": [],
|
|
7094
|
+
"subcommands": []
|
|
6980
7095
|
}
|
|
6981
7096
|
]
|
|
6982
7097
|
},
|
|
@@ -7154,6 +7269,22 @@ export const COMMAND_CATALOG = [
|
|
|
7154
7269
|
],
|
|
7155
7270
|
"options": [],
|
|
7156
7271
|
"subcommands": []
|
|
7272
|
+
},
|
|
7273
|
+
{
|
|
7274
|
+
"name": "reconcile",
|
|
7275
|
+
"description": "Materialize scheduled jobs on this outpost",
|
|
7276
|
+
"aliases": [],
|
|
7277
|
+
"hidden": false,
|
|
7278
|
+
"usage": "[args...]",
|
|
7279
|
+
"arguments": [
|
|
7280
|
+
{
|
|
7281
|
+
"name": "args",
|
|
7282
|
+
"required": false,
|
|
7283
|
+
"variadic": true
|
|
7284
|
+
}
|
|
7285
|
+
],
|
|
7286
|
+
"options": [],
|
|
7287
|
+
"subcommands": []
|
|
7157
7288
|
}
|
|
7158
7289
|
]
|
|
7159
7290
|
},
|
|
@@ -11040,6 +11171,10 @@ export const COMMAND_CATALOG = [
|
|
|
11040
11171
|
"flags": "--recommended <text>",
|
|
11041
11172
|
"description": "Recommended option"
|
|
11042
11173
|
},
|
|
11174
|
+
{
|
|
11175
|
+
"flags": "--priority <P0|P1|P2>",
|
|
11176
|
+
"description": "Urgency: P0 blocks now, P1 needed today, P2 can wait"
|
|
11177
|
+
},
|
|
11043
11178
|
{
|
|
11044
11179
|
"flags": "--json",
|
|
11045
11180
|
"description": "JSON on stdout (always)"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Native implementations of the second Wave 1 delegate command family. */
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { type DelegateContext } from "./core-delegate.js";
|
|
4
|
+
type W1bName = "bundle" | "grant" | "publish" | "send" | "verify";
|
|
5
|
+
export declare function runNativeDelegateW1b(name: W1bName, args: string[], context: DelegateContext): number;
|
|
6
|
+
export declare function registerCoreDelegateW1b(delegate: Command, core: Command): void;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=core-delegate-w1b.d.ts.map
|