@unbrained/pm-cli 2026.9.4 → 2026.9.5
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/.agents/skills/HARNESS_COMPATIBILITY.md +1 -1
- package/.agents/skills/README.md +2 -2
- package/.agents/skills/pm-developer/SKILL.md +4 -1
- package/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +10 -0
- package/.agents/skills/pm-developer/references/GRAPH_AND_RELATIONSHIPS.md +3 -1
- package/.agents/skills/pm-extensions/SKILL.md +2 -2
- package/.agents/skills/pm-extensions/references/LIFECYCLE.md +3 -3
- package/.agents/skills/pm-extensions/references/TROUBLESHOOTING.md +3 -3
- package/.agents/skills/pm-user/SKILL.md +2 -0
- package/.agents/skills/pm-user/references/BACKLOG_SHAPING.md +5 -0
- package/.agents/skills/pm-user/references/WORKFLOWS.md +20 -5
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +26 -1
- package/dist/cli/commander-usage.d.ts +2 -0
- package/dist/cli/commander-usage.js +15 -12
- package/dist/cli/help-json-payload.js +12 -7
- package/dist/cli/main.js +15 -6
- package/dist/cli/register-list-query.js +4 -2
- package/dist/cli/register-mutation.js +4 -2
- package/dist/cli/register-operations.js +6 -2
- package/dist/cli-bundle/bundle-manifest.json +153 -153
- package/dist/cli-bundle/chunks/{chunk-RI4XNOYS.js → chunk-3HBDTJRK.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-66VPKFP2.js +5 -0
- package/dist/cli-bundle/chunks/{chunk-I2AS367G.js → chunk-HUAQITVW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HI6BHPCU.js → chunk-IBYREGSP.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-LUI4E32I.js +231 -0
- package/dist/cli-bundle/chunks/{chunk-YW4QK2G7.js → chunk-QPZHQY2O.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-X6CMGV6L.js → chunk-SF6SM6U5.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-SVK5Y64D.js +40 -0
- package/dist/cli-bundle/chunks/chunk-V5GBD5KV.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-V72UV7QS.js → chunk-WWAEGW4V.js} +57 -57
- package/dist/cli-bundle/chunks/{chunk-A24WAVE6.js → chunk-ZRAQS3UA.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-Z5YYSJJG.js → register-list-query-AYKGODWT.js} +3 -3
- package/dist/cli-bundle/chunks/{register-mutation-ELSP6I4I.js → register-mutation-YZYG53SQ.js} +4 -4
- package/dist/cli-bundle/chunks/register-operations-KFSCC7QV.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-E2AE72QG.js → register-setup-UJCRVGBG.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-24IG6ONG.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-53IHPICX.js → chunk-3ASU6WGI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3ITLIBKS.js +56 -0
- package/dist/cli-bundle/focused-chunks/chunk-3NQD5YDG.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-7N2TV7WZ.js → chunk-4OSHLNUE.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-65N6JHAN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-AJR3OP2E.js → chunk-B2TTQGFG.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-GUBM3RGY.js +20 -0
- package/dist/cli-bundle/focused-chunks/{chunk-25UJBH4M.js → chunk-H5FOGAVD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-JX3RCVCX.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-6PWPQKDN.js → chunk-KWWCBWFO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-MV752SUC.js +12 -0
- package/dist/cli-bundle/focused-chunks/chunk-PKIPMCFS.js +6 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3646BZ4W.js → chunk-QL66QNWG.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-RJMR2JIF.js +9 -0
- package/dist/cli-bundle/focused-chunks/chunk-WIUPWIZR.js +177 -0
- package/dist/cli-bundle/focused-chunks/{chunk-NBMJD6MK.js → chunk-WOCIPMW7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MHKUIPJW.js → chunk-YEF5PQQ2.js} +2 -2
- package/dist/cli-bundle/main.js +22 -15
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +29 -29
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +42 -39
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +8 -8
- package/dist/core/extensions/extension-types.d.ts +2 -0
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/history/drift-scan.d.ts +5 -0
- package/dist/core/history/drift-scan.js +16 -6
- package/dist/core/history/event-classification.d.ts +1 -1
- package/dist/core/history/event-classification.js +3 -2
- package/dist/core/history/history.js +37 -5
- package/dist/core/history/identity.d.ts +15 -0
- package/dist/core/history/identity.js +31 -0
- package/dist/core/history/projection.js +50 -17
- package/dist/core/history/read.js +6 -3
- package/dist/core/history/replay.d.ts +1 -2
- package/dist/core/history/replay.js +4 -4
- package/dist/core/history/version-address.d.ts +13 -0
- package/dist/core/history/version-address.js +33 -0
- package/dist/core/item/actionability.d.ts +21 -1
- package/dist/core/item/actionability.js +45 -10
- package/dist/core/item/id.js +8 -4
- package/dist/core/item/item-type-definition.d.ts +2 -0
- package/dist/core/item/item-type-definition.js +9 -2
- package/dist/core/item/type-registry.d.ts +5 -1
- package/dist/core/item/type-registry.js +9 -4
- package/dist/core/shared/errors.d.ts +8 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/store/item-store.d.ts +14 -0
- package/dist/core/store/item-store.js +48 -10
- package/dist/core/store/settings-validator.js +3 -2
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/actionability.js +3 -3
- package/dist/sdk/cli-contracts/command-aliases.js +11 -2
- package/dist/sdk/cli-contracts/completeness.js +4 -3
- package/dist/sdk/cli-contracts/flag-contracts.js +29 -5
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +19 -12
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +14 -2
- package/dist/sdk/cli-contracts/tool-schema.d.ts +2 -2
- package/dist/sdk/cli-contracts/tool-schema.js +19 -6
- package/dist/sdk/context-intent-contracts.js +3 -3
- package/dist/sdk/context-usage.js +9 -11
- package/dist/sdk/define.d.ts +1 -1
- package/dist/sdk/define.js +2 -2
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +98 -50
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +50 -2
- package/dist/sdk/governance/validate-history-drift.js +16 -5
- package/dist/sdk/guide-topics.js +116 -2
- package/dist/sdk/history/salvage.d.ts +35 -0
- package/dist/sdk/history/salvage.js +248 -0
- package/dist/sdk/history-compact.js +32 -37
- package/dist/sdk/history-read.d.ts +3 -2
- package/dist/sdk/history-read.js +6 -3
- package/dist/sdk/history-repair.d.ts +5 -0
- package/dist/sdk/history-repair.js +14 -2
- package/dist/sdk/lifecycle/claim.d.ts +4 -0
- package/dist/sdk/lifecycle/claim.js +9 -3
- package/dist/sdk/lifecycle/restore.d.ts +1 -0
- package/dist/sdk/lifecycle/restore.js +19 -7
- package/dist/sdk/output-projection.d.ts +3 -1
- package/dist/sdk/output-projection.js +11 -3
- package/dist/sdk/public-surface.json +1 -0
- package/dist/sdk/query/context.d.ts +9 -0
- package/dist/sdk/query/context.js +33 -21
- package/dist/sdk/query/get.d.ts +2 -2
- package/dist/sdk/query/get.js +4 -3
- package/dist/sdk/query/history.d.ts +11 -0
- package/dist/sdk/query/history.js +34 -10
- package/dist/sdk/query/next.d.ts +15 -1
- package/dist/sdk/query/next.js +43 -20
- package/dist/sdk/query.d.ts +1 -0
- package/dist/sdk/query.js +3 -2
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +3 -3
- package/dist/types.d.ts +2 -0
- package/dist/types.js +2 -2
- package/docs/AGENT_GUIDE.md +36 -0
- package/docs/HISTORY_RECOVERY.md +146 -0
- package/docs/README.md +1 -0
- package/docs/RELEASING.md +25 -11
- package/docs/SDK_CONTEXT_TRUTH_CONTRACTS.md +24 -1
- package/docs/SDK_EXECUTION_CONTRACTS.md +105 -0
- package/docs/TESTING.md +5 -0
- package/docs/agent-task-token-baseline.json +17 -17
- package/docs/agent-task-transcripts.json +2 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +10 -10
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +11 -3
- package/marketplace.json +2 -2
- package/package.json +4 -5
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/skills/pm-audit/SKILL.md +2 -2
- package/plugins/pm-claude/skills/pm-developer/SKILL.md +2 -2
- package/plugins/pm-claude/skills/pm-planner/SKILL.md +2 -2
- package/plugins/pm-claude/skills/pm-release/SKILL.md +2 -2
- package/plugins/pm-claude/skills/pm-workflow/SKILL.md +3 -3
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/skills/pm-auditor/SKILL.md +2 -2
- package/plugins/pm-codex/skills/pm-native/SKILL.md +3 -4
- package/plugins/pm-codex/skills/pm-release/SKILL.md +2 -2
- package/scripts/finalize-build.mjs +13 -1
- package/dist/cli-bundle/chunks/chunk-6XSKPNCF.js +0 -230
- package/dist/cli-bundle/chunks/chunk-OGBVU67G.js +0 -5
- package/dist/cli-bundle/chunks/chunk-TXW6VL33.js +0 -38
- package/dist/cli-bundle/chunks/chunk-VGLHECAP.js +0 -9
- package/dist/cli-bundle/chunks/register-operations-OH7R3ZT4.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-4YRAVI43.js +0 -12
- package/dist/cli-bundle/focused-chunks/chunk-5P4HVOWG.js +0 -176
- package/dist/cli-bundle/focused-chunks/chunk-636VVQ7F.js +0 -54
- package/dist/cli-bundle/focused-chunks/chunk-B3A6MJYE.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-BFDDJ2T2.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-BHUIRZWQ.js +0 -9
- package/dist/cli-bundle/focused-chunks/chunk-JADHHPY6.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-NSKBLHVI.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-P2GOAOQN.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-YARWJM2B.js +0 -2
- package/sdk/public-surface.json +0 -33034
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* flag surface stays single-sourced across the CLI, SDK, and MCP boundaries.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!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]="
|
|
10
|
+
!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]="c6dc8dad-a285-57b8-b2f4-68004903bb8d")}catch(e){}}();
|
|
11
11
|
import { normalizeUniqueStringList } from "./string-lists.js";
|
|
12
12
|
import { RESERVED_EXTENSION_HOST_FLAGS } from "../../core/extensions/reserved-host-flags.js";
|
|
13
13
|
import { PM_POSITIONAL_ACTION_CONTRACTS, } from "./grammar-contracts.js";
|
|
@@ -73,7 +73,9 @@ export const SUBCOMMAND_GLOBAL_FLAG_CONTRACTS = RESERVED_EXTENSION_HOST_FLAGS.ma
|
|
|
73
73
|
/** Public contract for global flag contracts, shared by SDK and presentation-layer consumers. */
|
|
74
74
|
export const GLOBAL_FLAG_CONTRACTS = [
|
|
75
75
|
...SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,
|
|
76
|
-
{ flag: "--version" },
|
|
76
|
+
{ flag: "--version", value_type: "boolean" },
|
|
77
|
+
{ flag: "--all", value_type: "boolean", description: "Expand root help to every command." },
|
|
78
|
+
{ flag: "--explain", value_type: "boolean", description: "Expand root help with command guidance." },
|
|
77
79
|
];
|
|
78
80
|
/** Governance-missing (GH-236) + content-field presence/absence (GH-242) selection-filter flags shared verbatim by the `list` and `search` flag tables. Module-private on purpose — spread into both tables at the same position so the published contract order is unchanged. */
|
|
79
81
|
const GOVERNANCE_AND_CONTENT_FILTER_FLAG_CONTRACTS = [
|
|
@@ -259,6 +261,10 @@ export const NOTES_FLAG_CONTRACTS = [
|
|
|
259
261
|
export const LEARNINGS_FLAG_CONTRACTS = [
|
|
260
262
|
{ flag: "--id", value_name: "item-id" },
|
|
261
263
|
{ flag: "--add", aliases: ["--learning", "--text"] },
|
|
264
|
+
{ flag: "--stdin" },
|
|
265
|
+
{ flag: "--file" },
|
|
266
|
+
{ flag: "--edit" },
|
|
267
|
+
{ flag: "--delete" },
|
|
262
268
|
{ flag: "--limit" },
|
|
263
269
|
{ flag: "--full-history" },
|
|
264
270
|
{ flag: "--if-absent", value_type: "boolean" },
|
|
@@ -327,6 +333,9 @@ export const HISTORY_FLAG_CONTRACTS = [
|
|
|
327
333
|
/** Public contract for merge flag contracts, shared by SDK and presentation-layer consumers. */
|
|
328
334
|
export const MERGE_FLAG_CONTRACTS = [
|
|
329
335
|
{ flag: "--dry-run" },
|
|
336
|
+
{ flag: "--message" },
|
|
337
|
+
{ flag: "--force" },
|
|
338
|
+
{ flag: "--include-reconciled" },
|
|
330
339
|
{ flag: "--output" },
|
|
331
340
|
{ flag: "--item-path" },
|
|
332
341
|
{ flag: "--prefer" },
|
|
@@ -348,6 +357,7 @@ export const HISTORY_REPAIR_FLAG_CONTRACTS = [
|
|
|
348
357
|
{ flag: "--all" },
|
|
349
358
|
{ flag: "--dry-run" },
|
|
350
359
|
{ flag: "--normalize-provenance" },
|
|
360
|
+
{ flag: "--salvage-tail", value_type: "boolean" },
|
|
351
361
|
{ flag: "--author" },
|
|
352
362
|
{ flag: "--message" },
|
|
353
363
|
{ flag: "--force" },
|
|
@@ -545,6 +555,7 @@ export const INIT_FLAG_CONTRACTS = [
|
|
|
545
555
|
];
|
|
546
556
|
/** Public contract for config flag contracts, shared by SDK and presentation-layer consumers. */
|
|
547
557
|
export const CONFIG_FLAG_CONTRACTS = [
|
|
558
|
+
{ flag: "--value", value_name: "value" },
|
|
548
559
|
{ flag: "--criterion" },
|
|
549
560
|
{ flag: "--clear-criteria" },
|
|
550
561
|
{ flag: "--format" },
|
|
@@ -781,6 +792,7 @@ export const CLOSE_MANY_FLAG_CONTRACTS = [
|
|
|
781
792
|
export const APPEND_FLAG_CONTRACTS = [
|
|
782
793
|
{ flag: "--id", value_name: "item-id" },
|
|
783
794
|
{ flag: "--body", short: "-b" },
|
|
795
|
+
{ flag: "--text" },
|
|
784
796
|
{ flag: "--author" },
|
|
785
797
|
{ flag: "--message" },
|
|
786
798
|
{ flag: "--force" },
|
|
@@ -802,6 +814,8 @@ export const CLAIM_FLAG_CONTRACTS = [
|
|
|
802
814
|
{ flag: "--release" },
|
|
803
815
|
{ flag: "--max-attempts" },
|
|
804
816
|
{ flag: "--include-decisions" },
|
|
817
|
+
{ flag: "--include-gates" },
|
|
818
|
+
{ flag: "--include-containers" },
|
|
805
819
|
{ flag: "--token-budget", aliases: ["--token_budget"] },
|
|
806
820
|
{ flag: "--explain-ranking", aliases: ["--explain_ranking"] },
|
|
807
821
|
];
|
|
@@ -880,6 +894,7 @@ export const REMIND_FLAG_CONTRACTS = [
|
|
|
880
894
|
];
|
|
881
895
|
/** Public contract for test flag contracts, shared by SDK and presentation-layer consumers. */
|
|
882
896
|
export const TEST_FLAG_CONTRACTS = [
|
|
897
|
+
{ flag: "--list" },
|
|
883
898
|
{ flag: "--id", value_name: "item-id" },
|
|
884
899
|
{ flag: "--add" },
|
|
885
900
|
{ flag: "--add-json" },
|
|
@@ -1282,6 +1297,12 @@ export const UPDATE_FLAG_CONTRACTS = [
|
|
|
1282
1297
|
];
|
|
1283
1298
|
/** Public contract for update many flag contracts, shared by SDK and presentation-layer consumers. */
|
|
1284
1299
|
export const UPDATE_MANY_FLAG_CONTRACTS = [
|
|
1300
|
+
{ flag: "--status", short: "-s" },
|
|
1301
|
+
{ flag: "--assignee" },
|
|
1302
|
+
{ flag: "--parent" },
|
|
1303
|
+
{ flag: "--blocked-by", aliases: ["--blocked_by"] },
|
|
1304
|
+
{ flag: "--blocked-reason", aliases: ["--blocked_reason"] },
|
|
1305
|
+
{ flag: "--unblock-note", aliases: ["--unblock_note"] },
|
|
1285
1306
|
{ flag: "--filter-status", list: true },
|
|
1286
1307
|
{ flag: "--filter-type", list: true },
|
|
1287
1308
|
{ flag: "--filter-tag", list: true },
|
|
@@ -1559,6 +1580,9 @@ export const WORKSPACE_FLAG_CONTRACTS = [
|
|
|
1559
1580
|
export const WORKSPACE_POSITION_FLAG_CONTRACTS = [];
|
|
1560
1581
|
/** Public contract for next flag contracts, shared by SDK and presentation-layer consumers. */
|
|
1561
1582
|
export const NEXT_FLAG_CONTRACTS = [
|
|
1583
|
+
{ flag: "--include-decisions" },
|
|
1584
|
+
{ flag: "--include-gates" },
|
|
1585
|
+
{ flag: "--include-containers" },
|
|
1562
1586
|
{ flag: "--for", value_name: "intent" },
|
|
1563
1587
|
{ flag: "--type" },
|
|
1564
1588
|
{ flag: "--tag" },
|
|
@@ -1694,7 +1718,6 @@ const FIXED_STATUS_LIST_COMMAND_ALIASES = [
|
|
|
1694
1718
|
"list-canceled",
|
|
1695
1719
|
];
|
|
1696
1720
|
const FIXED_STATUS_LIST_FLAG_CONTRACTS = LIST_FILTER_FLAG_CONTRACTS.filter((contract) => contract.flag !== "--status" && contract.flag !== "--all");
|
|
1697
|
-
const ALL_STATUS_LIST_FLAG_CONTRACTS = LIST_FILTER_FLAG_CONTRACTS.filter((contract) => contract.flag !== "--status");
|
|
1698
1721
|
function indexCliFlagContracts(contracts) {
|
|
1699
1722
|
const index = new Map();
|
|
1700
1723
|
for (const contract of contracts) {
|
|
@@ -1741,7 +1764,7 @@ export const PM_POSITIONAL_ACTION_FLAG_CONTRACTS = resolvePmPositionalActionFlag
|
|
|
1741
1764
|
// member such as `constructor` or `toString`.
|
|
1742
1765
|
const SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND = new Map([
|
|
1743
1766
|
["list", LIST_FILTER_FLAG_CONTRACTS],
|
|
1744
|
-
["list-all",
|
|
1767
|
+
["list-all", LIST_FILTER_FLAG_CONTRACTS],
|
|
1745
1768
|
...FIXED_STATUS_LIST_COMMAND_ALIASES.map((command) => [
|
|
1746
1769
|
command,
|
|
1747
1770
|
FIXED_STATUS_LIST_FLAG_CONTRACTS,
|
|
@@ -1759,6 +1782,7 @@ const SUBCOMMAND_FLAG_CONTRACTS_BY_COMMAND = new Map([
|
|
|
1759
1782
|
["install", INSTALL_FLAG_CONTRACTS],
|
|
1760
1783
|
["upgrade", UPGRADE_FLAG_CONTRACTS],
|
|
1761
1784
|
["create", CREATE_FLAG_CONTRACTS],
|
|
1785
|
+
["item", []],
|
|
1762
1786
|
["item mutate", ITEM_MUTATE_FLAG_CONTRACTS],
|
|
1763
1787
|
["item complete", ITEM_COMPLETE_FLAG_CONTRACTS],
|
|
1764
1788
|
["item reopen", ITEM_REOPEN_FLAG_CONTRACTS],
|
|
@@ -1919,4 +1943,4 @@ export function toCompletionFlagString(flagContracts, includeGlobal = true) {
|
|
|
1919
1943
|
return normalizeUniqueStringList(all).join(" ");
|
|
1920
1944
|
}
|
|
1921
1945
|
//# sourceMappingURL=flag-contracts.js.map
|
|
1922
|
-
//# debugId=
|
|
1946
|
+
//# debugId=c6dc8dad-a285-57b8-b2f4-68004903bb8d
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* per-command growth budgets.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
!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]="
|
|
8
|
+
!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]="14b6d270-bdc4-54cf-9c66-da4cb2b0843b")}catch(e){}}();
|
|
9
9
|
import { hasSubcommandFlagContractsForCommand, resolveSubcommandFlagContractsForCommand, } from "./flag-contracts.js";
|
|
10
10
|
import { PM_COMMAND_CAPABILITY_CONTRACTS, } from "../agent-capability-contracts.js";
|
|
11
11
|
import { enrichCliFlagInvocationContracts } from "../flag-invocation-contracts.js";
|
|
@@ -101,9 +101,12 @@ export function listPmFlagSpellingInventory() {
|
|
|
101
101
|
accepted_spellings: Object.freeze([...new Set([entry.flag, ...entry.aliases])].sort()),
|
|
102
102
|
})));
|
|
103
103
|
}
|
|
104
|
+
// pm-2bqgs7: reconcile already executable options omitted by the previous
|
|
105
|
+
// declared-only census. pm-08mt4k adds two explicit scheduling opt-ins to next
|
|
106
|
+
// and claim; aliases remain free and every future increase still fails closed.
|
|
104
107
|
const PM_COMMAND_FLAG_BUDGET_MAXIMUMS = Object.freeze({
|
|
105
108
|
init: 30,
|
|
106
|
-
config:
|
|
109
|
+
config: 36,
|
|
107
110
|
extension: 53,
|
|
108
111
|
package: 54,
|
|
109
112
|
packages: 54,
|
|
@@ -113,7 +116,7 @@ const PM_COMMAND_FLAG_BUDGET_MAXIMUMS = Object.freeze({
|
|
|
113
116
|
copy: 24,
|
|
114
117
|
focus: 22,
|
|
115
118
|
list: 86,
|
|
116
|
-
"list-all":
|
|
119
|
+
"list-all": 86,
|
|
117
120
|
"list-draft": 84,
|
|
118
121
|
"list-open": 84,
|
|
119
122
|
"list-in-progress": 84,
|
|
@@ -128,32 +131,36 @@ const PM_COMMAND_FLAG_BUDGET_MAXIMUMS = Object.freeze({
|
|
|
128
131
|
search: 78,
|
|
129
132
|
duplicates: 24,
|
|
130
133
|
eval: 25,
|
|
131
|
-
next:
|
|
134
|
+
next: 38,
|
|
132
135
|
history: 35,
|
|
133
136
|
events: 33,
|
|
134
137
|
"history-redact": 27,
|
|
135
|
-
|
|
138
|
+
// One explicit destructive-recovery mode; never overload ordinary reanchoring.
|
|
139
|
+
"history-repair": 27,
|
|
136
140
|
"history-compact": 30,
|
|
137
141
|
"history-author-acknowledge": 28,
|
|
138
|
-
|
|
142
|
+
// 24 -> 27 on 2026-09-04: --message, --force, and --include-reconciled were
|
|
143
|
+
// already registered at runtime for reconcile and report; declaring them
|
|
144
|
+
// makes the contract truthful rather than growing the surface.
|
|
145
|
+
merge: 27,
|
|
139
146
|
schema: 40,
|
|
140
147
|
profile: 22,
|
|
141
148
|
activity: 35,
|
|
142
149
|
restore: 23,
|
|
143
150
|
update: 105,
|
|
144
|
-
"update-many":
|
|
151
|
+
"update-many": 146,
|
|
145
152
|
close: 31,
|
|
146
153
|
"close-many": 72,
|
|
147
154
|
delete: 24,
|
|
148
|
-
append:
|
|
155
|
+
append: 25,
|
|
149
156
|
comments: 31,
|
|
150
157
|
notes: 35,
|
|
151
|
-
learnings:
|
|
158
|
+
learnings: 31,
|
|
152
159
|
files: 39,
|
|
153
160
|
docs: 30,
|
|
154
161
|
deps: 32,
|
|
155
162
|
plan: 109,
|
|
156
|
-
test:
|
|
163
|
+
test: 53,
|
|
157
164
|
"test-all": 40,
|
|
158
165
|
telemetry: 21,
|
|
159
166
|
stats: 29,
|
|
@@ -163,7 +170,7 @@ const PM_COMMAND_FLAG_BUDGET_MAXIMUMS = Object.freeze({
|
|
|
163
170
|
gc: 22,
|
|
164
171
|
workspace: 23,
|
|
165
172
|
contracts: 29,
|
|
166
|
-
claim:
|
|
173
|
+
claim: 38,
|
|
167
174
|
release: 23,
|
|
168
175
|
"start-task": 23,
|
|
169
176
|
"pause-task": 23,
|
|
@@ -337,4 +344,4 @@ export function renderPmFlagLexiconMarkdown() {
|
|
|
337
344
|
].join("\n");
|
|
338
345
|
}
|
|
339
346
|
//# sourceMappingURL=flag-lexicon-contracts.js.map
|
|
340
|
-
//# debugId=
|
|
347
|
+
//# debugId=14b6d270-bdc4-54cf-9c66-da4cb2b0843b
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines SDK command-contract metadata for Tool Parameter Tables.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!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]="
|
|
7
|
+
!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]="4bc19ba8-8c92-5cde-ae59-fe7d73ef9208")}catch(e){}}();
|
|
8
8
|
import { PLAN_HARNESS_VALUES, PLAN_MODE_VALUES, PLAN_STEP_LINK_KIND_VALUES, PLAN_STEP_STATUS_VALUES, } from "../../types/index.js";
|
|
9
9
|
import { PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS } from "../read-output-session.js";
|
|
10
10
|
import { ASSURANCE_DEFINITION_SCHEMA } from "./schemas/assurance-definition.js";
|
|
@@ -489,6 +489,7 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
489
489
|
delete: { type: "integer", minimum: 1 },
|
|
490
490
|
dryRun: { type: "boolean" },
|
|
491
491
|
normalizeProvenance: { type: "boolean" },
|
|
492
|
+
salvageTail: { type: "boolean" },
|
|
492
493
|
all: { type: "boolean" },
|
|
493
494
|
clear: { type: "boolean" },
|
|
494
495
|
cliOnly: { type: "boolean" },
|
|
@@ -508,6 +509,8 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
508
509
|
],
|
|
509
510
|
},
|
|
510
511
|
includeDecisions: { type: "boolean" },
|
|
512
|
+
includeGates: { type: "boolean" },
|
|
513
|
+
includeContainers: { type: "boolean" },
|
|
511
514
|
explainRanking: { type: "boolean" },
|
|
512
515
|
noTags: { type: "boolean" },
|
|
513
516
|
noExtensionHealth: { type: "boolean" },
|
|
@@ -867,6 +870,12 @@ export const PLAN_ACTION_PARAMETER_METADATA = {
|
|
|
867
870
|
};
|
|
868
871
|
/** Public contract for pm tool parameter metadata, shared by SDK and presentation-layer consumers. */
|
|
869
872
|
export const PM_TOOL_PARAMETER_METADATA = {
|
|
873
|
+
includeGates: {
|
|
874
|
+
description: "Opt next or claim-next into outcome gates. Blocker and ownership restrictions still apply.",
|
|
875
|
+
},
|
|
876
|
+
includeContainers: {
|
|
877
|
+
description: "Opt next or claim-next into containers with unfinished descendants. Blocker and ownership restrictions still apply.",
|
|
878
|
+
},
|
|
870
879
|
action: {
|
|
871
880
|
description: "Tool action to execute.",
|
|
872
881
|
},
|
|
@@ -1472,6 +1481,9 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
1472
1481
|
normalizeProvenance: {
|
|
1473
1482
|
description: "For history-repair: remove invalid legacy provenance observations and emit only aggregate privacy-safe repair evidence.",
|
|
1474
1483
|
},
|
|
1484
|
+
salvageTail: {
|
|
1485
|
+
description: "For history-repair with one explicit id: remove an invalid trailing suffix after a verified prefix; refuses interior corruption.",
|
|
1486
|
+
},
|
|
1475
1487
|
all: {
|
|
1476
1488
|
description: "For history-repair action: scan every stream for drift and repair each drifted stream in one audited pass (mutually exclusive with id).",
|
|
1477
1489
|
},
|
|
@@ -2141,4 +2153,4 @@ export const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA = {
|
|
|
2141
2153
|
},
|
|
2142
2154
|
};
|
|
2143
2155
|
//# sourceMappingURL=tool-parameter-tables.js.map
|
|
2144
|
-
//# debugId=
|
|
2156
|
+
//# debugId=4bc19ba8-8c92-5cde-ae59-fe7d73ef9208
|
|
@@ -91,14 +91,14 @@ export interface PmActionToolInputSchemaOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
export declare function buildPmActionToolInputSchema(action: PmToolAction, options?: PmActionToolInputSchemaOptions): Record<string, unknown>;
|
|
93
93
|
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and contract tests bind to one version constant. Bump the patch/minor for additive, backward-compatible schema changes; bump the MAJOR for breaking changes — the major also drives the `$id` `tool-parameters-v{major}` slug, so the two never drift. */
|
|
94
|
-
export declare const PM_TOOL_PARAMETERS_SCHEMA_VERSION: "4.
|
|
94
|
+
export declare const PM_TOOL_PARAMETERS_SCHEMA_VERSION: "4.12.0";
|
|
95
95
|
/**
|
|
96
96
|
* Major component of {@link PM_TOOL_PARAMETERS_SCHEMA_VERSION}, used to build the
|
|
97
97
|
* schema `$id` slug so a breaking version bump renames the document in lockstep.
|
|
98
98
|
*/
|
|
99
99
|
export declare const PM_TOOL_PARAMETERS_SCHEMA_MAJOR: string;
|
|
100
100
|
/** Version of the provider-compatible flat tool-parameters schema (`PM_PROVIDER_TOOL_PARAMETERS_SCHEMA`). Tracked separately from the strict schema because the flat projection evolves independently. */
|
|
101
|
-
export declare const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION: "1.
|
|
101
|
+
export declare const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION: "1.6.0";
|
|
102
102
|
/** Public contract for pm tool parameters schema, shared by SDK and presentation-layer consumers. */
|
|
103
103
|
export declare const PM_TOOL_PARAMETERS_SCHEMA: Record<string, unknown>;
|
|
104
104
|
declare function toProviderCompatibleParameterDefinition(key: string, definition: unknown): Record<string, unknown>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* consumers from a single source of truth.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!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]="
|
|
10
|
+
!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]="e60db75b-b2b0-5455-93a8-b0cb71a21979")}catch(e){}}();
|
|
11
11
|
import { normalizeUniqueStringList } from "./string-lists.js";
|
|
12
12
|
import { PM_TOOL_ACTIONS } from "./enum-contracts.js";
|
|
13
13
|
import { TOOL_CREATE_OPTION_CONTRACTS, TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS, TOOL_CONTEXT_OPTION_CONTRACTS, TOOL_ACTIVITY_OPTION_CONTRACTS, TOOL_LIST_FILTER_OPTION_CONTRACTS, TOOL_AGGREGATE_OPTION_CONTRACTS, TOOL_SEARCH_FILTER_OPTION_CONTRACTS, TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS, } from "./tool-option-contracts.js";
|
|
@@ -216,7 +216,6 @@ const LIST_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
|
216
216
|
"full",
|
|
217
217
|
]);
|
|
218
218
|
const FIXED_STATUS_LIST_CONTRACT_PARAMETER_KEYS = LIST_CONTRACT_PARAMETER_KEYS.filter((parameter) => parameter !== "all" && parameter !== "status");
|
|
219
|
-
const ALL_STATUS_LIST_CONTRACT_PARAMETER_KEYS = LIST_CONTRACT_PARAMETER_KEYS.filter((parameter) => parameter !== "status");
|
|
220
219
|
const LIST_WINDOW_MUTUALLY_EXCLUSIVE_GROUPS = [
|
|
221
220
|
[
|
|
222
221
|
{ property: "today", schema: { const: true } },
|
|
@@ -291,6 +290,8 @@ const NEXT_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
|
291
290
|
"readyOnly",
|
|
292
291
|
"format",
|
|
293
292
|
"includeDecisions",
|
|
293
|
+
"includeGates",
|
|
294
|
+
"includeContainers",
|
|
294
295
|
"tokenBudget",
|
|
295
296
|
"explainRanking",
|
|
296
297
|
]);
|
|
@@ -482,7 +483,7 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
482
483
|
mutuallyExclusiveWhen: LIST_WINDOW_MUTUALLY_EXCLUSIVE_GROUPS,
|
|
483
484
|
},
|
|
484
485
|
"list-all": {
|
|
485
|
-
optional:
|
|
486
|
+
optional: LIST_CONTRACT_PARAMETER_KEYS,
|
|
486
487
|
mutuallyExclusiveWhen: LIST_WINDOW_MUTUALLY_EXCLUSIVE_GROUPS,
|
|
487
488
|
},
|
|
488
489
|
"list-draft": {
|
|
@@ -643,9 +644,20 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
643
644
|
"all",
|
|
644
645
|
"dryRun",
|
|
645
646
|
"normalizeProvenance",
|
|
647
|
+
"salvageTail",
|
|
646
648
|
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
647
649
|
],
|
|
648
650
|
oneOfRequired: [["id"], ["all"]],
|
|
651
|
+
mutuallyExclusiveWhen: [
|
|
652
|
+
[
|
|
653
|
+
{ property: "salvageTail", schema: { const: true } },
|
|
654
|
+
{ property: "all", schema: { const: true } },
|
|
655
|
+
],
|
|
656
|
+
[
|
|
657
|
+
{ property: "salvageTail", schema: { const: true } },
|
|
658
|
+
{ property: "normalizeProvenance", schema: { const: true } },
|
|
659
|
+
],
|
|
660
|
+
],
|
|
649
661
|
},
|
|
650
662
|
"history-author-acknowledge": {
|
|
651
663
|
optional: [
|
|
@@ -1001,6 +1013,7 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
1001
1013
|
test: {
|
|
1002
1014
|
required: ["id"],
|
|
1003
1015
|
optional: [
|
|
1016
|
+
"list",
|
|
1004
1017
|
"add",
|
|
1005
1018
|
"addJson",
|
|
1006
1019
|
"remove",
|
|
@@ -1555,14 +1568,14 @@ function createLazyContractSchema(build) {
|
|
|
1555
1568
|
});
|
|
1556
1569
|
}
|
|
1557
1570
|
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and contract tests bind to one version constant. Bump the patch/minor for additive, backward-compatible schema changes; bump the MAJOR for breaking changes — the major also drives the `$id` `tool-parameters-v{major}` slug, so the two never drift. */
|
|
1558
|
-
export const PM_TOOL_PARAMETERS_SCHEMA_VERSION = "4.
|
|
1571
|
+
export const PM_TOOL_PARAMETERS_SCHEMA_VERSION = "4.12.0";
|
|
1559
1572
|
/**
|
|
1560
1573
|
* Major component of {@link PM_TOOL_PARAMETERS_SCHEMA_VERSION}, used to build the
|
|
1561
1574
|
* schema `$id` slug so a breaking version bump renames the document in lockstep.
|
|
1562
1575
|
*/
|
|
1563
1576
|
export const PM_TOOL_PARAMETERS_SCHEMA_MAJOR = PM_TOOL_PARAMETERS_SCHEMA_VERSION.split(".")[0];
|
|
1564
1577
|
/** Version of the provider-compatible flat tool-parameters schema (`PM_PROVIDER_TOOL_PARAMETERS_SCHEMA`). Tracked separately from the strict schema because the flat projection evolves independently. */
|
|
1565
|
-
export const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION = "1.
|
|
1578
|
+
export const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION = "1.6.0";
|
|
1566
1579
|
/** Public contract for pm tool parameters schema, shared by SDK and presentation-layer consumers. */
|
|
1567
1580
|
export const PM_TOOL_PARAMETERS_SCHEMA = createLazyContractSchema(() => ({
|
|
1568
1581
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -1637,4 +1650,4 @@ export const _testOnlyCliContracts = {
|
|
|
1637
1650
|
withFlagAliasMetadata,
|
|
1638
1651
|
};
|
|
1639
1652
|
//# sourceMappingURL=tool-schema.js.map
|
|
1640
|
-
//# debugId=
|
|
1653
|
+
//# debugId=e60db75b-b2b0-5455-93a8-b0cb71a21979
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* workspace configuration, and packages.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
!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]="
|
|
8
|
+
!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]="d6fc4c70-c955-5fb5-ab4b-5dfa1200d58d")}catch(e){}}();
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
10
10
|
import { renderPmCommand } from "./command-line.js";
|
|
11
11
|
import { attachOutputOmissionReceipt } from "./output-projection.js";
|
|
@@ -410,7 +410,7 @@ const CONTEXT_INTENT_ROW_KEYS = {
|
|
|
410
410
|
],
|
|
411
411
|
get: ["children"],
|
|
412
412
|
list: ["items"],
|
|
413
|
-
next: ["ready", "decision_needed", "blocked", "held_by_others"],
|
|
413
|
+
next: ["ready", "decision_needed", "gate_needed", "containers", "blocked", "held_by_others"],
|
|
414
414
|
search: ["items"],
|
|
415
415
|
};
|
|
416
416
|
/** Decode the cursor fields required to preserve a row-compacted continuation. */
|
|
@@ -707,4 +707,4 @@ export function attachReadOutputContracts(command, options, result) {
|
|
|
707
707
|
return suppressed;
|
|
708
708
|
}
|
|
709
709
|
//# sourceMappingURL=context-intent-contracts.js.map
|
|
710
|
-
//# debugId=
|
|
710
|
+
//# debugId=d6fc4c70-c955-5fb5-ab4b-5dfa1200d58d
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* intents; it never enters item history and is safe to delete or rebuild.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
!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]="
|
|
9
|
+
!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]="0c0d2e38-0964-5055-b2f5-6ba7602b2f92")}catch(e){}}();
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import { appendFile, mkdir, readFile, rename, stat, writeFile, } from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
@@ -69,15 +69,13 @@ function addContextUsageIdList(ids, value) {
|
|
|
69
69
|
addContextUsageId(ids, itemId);
|
|
70
70
|
}
|
|
71
71
|
function collectNextResultItemIds(record, ids) {
|
|
72
|
-
const rows =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
...(Array.isArray(record.held_by_others) ? record.held_by_others : []),
|
|
80
|
-
];
|
|
72
|
+
const rows = asObjectRecord(record.recommended) === null
|
|
73
|
+
? []
|
|
74
|
+
: [record.recommended];
|
|
75
|
+
for (const key of ["ready", "decision_needed", "gate_needed", "containers", "blocked", "held_by_others"]) {
|
|
76
|
+
if (Array.isArray(record[key]))
|
|
77
|
+
rows.push(...record[key]);
|
|
78
|
+
}
|
|
81
79
|
for (const value of rows) {
|
|
82
80
|
const row = asObjectRecord(value);
|
|
83
81
|
addContextUsageId(ids, row?.id);
|
|
@@ -442,4 +440,4 @@ export async function readContextUsageAffinity(options) {
|
|
|
442
440
|
};
|
|
443
441
|
}
|
|
444
442
|
//# sourceMappingURL=context-usage.js.map
|
|
445
|
-
//# debugId=
|
|
443
|
+
//# debugId=0c0d2e38-0964-5055-b2f5-6ba7602b2f92
|
package/dist/sdk/define.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import type { ProjectProfileDefinition } from "../core/profile/profile-presets.j
|
|
|
37
37
|
type ExactDefinition<TDefinition, TContract> = TDefinition & Record<Exclude<keyof TDefinition, keyof TContract>, never>;
|
|
38
38
|
type FlagAuthoringDefinition = Pick<FlagDefinition, "long" | "short" | "value_name" | "description" | "required" | "enabled" | "visible" | "value_type" | "type" | "list" | "default">;
|
|
39
39
|
type ItemFieldAuthoringDefinition = Pick<SchemaFieldDefinition, "name" | "type" | "optional" | "default" | "values">;
|
|
40
|
-
type ItemTypeAuthoringDefinition = Pick<SchemaItemTypeDefinition, "name" | "folder" | "aliases" | "required_create_fields" | "required_create_repeatables" | "command_option_policies" | "options" | "description" | "default_status">;
|
|
40
|
+
type ItemTypeAuthoringDefinition = Pick<SchemaItemTypeDefinition, "name" | "folder" | "aliases" | "required_create_fields" | "required_create_repeatables" | "command_option_policies" | "options" | "description" | "default_status" | "execution_role">;
|
|
41
41
|
type MigrationAuthoringDefinition = Pick<SchemaMigrationDefinition, "id" | "description" | "status" | "mandatory" | "run">;
|
|
42
42
|
type SearchProviderAuthoringDefinition = Pick<SearchProviderDefinition, "name" | "query" | "queryExpansion" | "query_expansion" | "rerank" | "embedBatch" | "embed_batch" | "embed">;
|
|
43
43
|
type VectorStoreAdapterAuthoringDefinition = Pick<VectorStoreAdapterDefinition, "name" | "query" | "upsert" | "delete">;
|
package/dist/sdk/define.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* to keep `capabilities` matched to the surfaces the extension actually registers.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
!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]="
|
|
12
|
+
!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]="e37a2da9-966f-5044-bc5e-d27ddb07e65b")}catch(e){}}();
|
|
13
13
|
export function defineExtensionManifest(manifest) {
|
|
14
14
|
return manifest;
|
|
15
15
|
}
|
|
@@ -218,4 +218,4 @@ export function defineOnIndexHook(hook) {
|
|
|
218
218
|
return hook;
|
|
219
219
|
}
|
|
220
220
|
//# sourceMappingURL=define.js.map
|
|
221
|
-
//# debugId=
|
|
221
|
+
//# debugId=e37a2da9-966f-5044-bc5e-d27ddb07e65b
|