@unbrained/pm-cli 2026.8.27 → 2026.8.28
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/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +25 -1
- package/dist/cli/error-guidance.js +61 -7
- package/dist/cli/register-annotations.js +58 -41
- package/dist/cli-bundle/bundle-manifest.json +121 -121
- package/dist/cli-bundle/chunks/{chunk-SH6P7FXI.js → chunk-BY2FQ2NI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TNX6HC54.js → chunk-E73FDIWT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SHMDY36D.js → chunk-FEVBFFCQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CVBBGWW5.js → chunk-M7OXRQE3.js} +10 -6
- package/dist/cli-bundle/chunks/{chunk-R4ETAOJC.js → chunk-NBCBFVZI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SKXLJIEK.js → chunk-NTXZHRKA.js} +45 -45
- package/dist/cli-bundle/chunks/{chunk-52EKTW6V.js → chunk-QE6WQXFO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MFNTKMTI.js → chunk-TIQ6AMH2.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-X2RROGZE.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OS27HHBN.js → chunk-XRVVYRRO.js} +28 -28
- package/dist/cli-bundle/chunks/{chunk-3OO3W6FW.js → chunk-XWEQGHHG.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-EUWM6VII.js → register-list-query-J35ZPQQ5.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-FD4HSAVU.js → register-mutation-J6XJJOGU.js} +4 -4
- package/dist/cli-bundle/chunks/{register-operations-HRMNFEC3.js → register-operations-AE3JEMFT.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-33GNICLX.js → register-setup-OQERLLWE.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4BR5UU52.js → chunk-4ZDRZYYJ.js} +41 -41
- package/dist/cli-bundle/focused-chunks/{chunk-MXTYGECH.js → chunk-AHAM2HAU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SUBSWYW3.js → chunk-JZYPPMXF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-LLNTHF5X.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-LYFWQMVC.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EKX37ZHA.js → chunk-THEPQMLX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-YJLDHJOD.js +2 -0
- package/dist/cli-bundle/main.js +14 -14
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +26 -26
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +20 -20
- 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 +10 -10
- package/dist/mcp/tool-definitions.js +5 -5
- package/dist/sdk/agent/command-recovery.js +3 -3
- package/dist/sdk/agent/task-transcript-contracts.d.ts +52 -0
- package/dist/sdk/agent/task-transcript-contracts.js +198 -0
- package/dist/sdk/annotations.d.ts +5 -2
- package/dist/sdk/annotations.js +66 -36
- package/dist/sdk/cli-bootstrap.d.ts +2 -8
- package/dist/sdk/cli-bootstrap.js +7 -67
- package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +23 -0
- package/dist/sdk/cli-contracts/bootstrap-command-scanner.js +80 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +5 -5
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +15 -2
- package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +16 -3
- package/dist/sdk/comments.d.ts +4 -0
- package/dist/sdk/comments.js +2 -2
- package/dist/sdk/completion.js +9 -5
- package/dist/sdk/contracts.d.ts +1 -0
- package/dist/sdk/contracts.js +3 -2
- package/dist/sdk/extension/install-sources.d.ts +13 -0
- package/dist/sdk/extension/install-sources.js +62 -30
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +26 -2
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +26 -14
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +3 -2
- package/dist/sdk/learnings.d.ts +4 -0
- package/dist/sdk/learnings.js +7 -4
- package/dist/sdk/lifecycle/close.js +4 -3
- package/dist/sdk/notes.d.ts +4 -0
- package/dist/sdk/notes.js +2 -2
- package/dist/sdk/runtime-input.js +5 -2
- package/dist/sdk/runtime.d.ts +6 -6
- package/dist/sdk/runtime.js +8 -8
- package/docs/COMMANDS.md +4 -3
- package/docs/OUTPUT_TOKEN_ACCOUNTING.md +20 -7
- package/docs/RELEASING.md +9 -1
- package/docs/SDK.md +12 -0
- package/docs/SDK_CONTEXT_INTEGRITY.md +12 -1
- package/docs/SDK_RUNTIME_BOUNDARIES.md +10 -0
- package/docs/TESTING.md +6 -2
- package/docs/agent-task-token-baseline.json +97 -11
- package/docs/agent-task-transcripts.json +211 -0
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +3 -3
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +6 -3
- package/docs/performance/cli-transport-overhead.md +10 -2
- package/marketplace.json +2 -2
- package/package.json +2 -2
- 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-codex/.codex-plugin/plugin.json +1 -1
- package/sdk/public-surface.json +197 -25
- package/dist/cli-bundle/chunks/chunk-QTO7USTH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2AGZ5BRT.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-AQ5IYEZZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-YHWHX6YY.js +0 -2
package/sdk/public-surface.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"aggregate_completeness": {
|
|
3
|
-
"covered_symbols":
|
|
3
|
+
"covered_symbols": 1811,
|
|
4
4
|
"excluded": [
|
|
5
5
|
{
|
|
6
6
|
"name": "_testOnlyCliContracts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"missing": [],
|
|
11
|
-
"required_symbols":
|
|
11
|
+
"required_symbols": 1812
|
|
12
12
|
},
|
|
13
13
|
"breaking_acknowledgements": [
|
|
14
14
|
{
|
|
@@ -1316,6 +1316,67 @@
|
|
|
1316
1316
|
],
|
|
1317
1317
|
"package_version": "2026.8.26",
|
|
1318
1318
|
"reason": "Add a domain-specific package upgrade mode-conflict refusal code so SDK consumers can distinguish lifecycle validation from query projection validation."
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"changes": [
|
|
1322
|
+
"signature ./sdk:AnnotationCommandOptions",
|
|
1323
|
+
"signature ./sdk:AnnotationCommandResult",
|
|
1324
|
+
"signature ./sdk:AnnotationMutationReceipt",
|
|
1325
|
+
"signature ./sdk:CommentsCommandOptions",
|
|
1326
|
+
"signature ./sdk:CommentsResult",
|
|
1327
|
+
"signature ./sdk/core:CommentsCommandOptions",
|
|
1328
|
+
"signature ./sdk/core:CommentsResult",
|
|
1329
|
+
"signature ./sdk/runtime:CommentsCommandOptions",
|
|
1330
|
+
"signature ./sdk/runtime:CommentsResult"
|
|
1331
|
+
],
|
|
1332
|
+
"package_version": "2026.8.27",
|
|
1333
|
+
"reason": "Add the opt-in comment ifAbsent mutation and changed receipt contract for retry-safe agents; default append behavior remains compatible and the next date-based release documents the new surface."
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"changes": [
|
|
1337
|
+
"signature ./sdk:LearningsCommandOptions",
|
|
1338
|
+
"signature ./sdk:LearningsResult",
|
|
1339
|
+
"signature ./sdk:NotesCommandOptions",
|
|
1340
|
+
"signature ./sdk:NotesResult",
|
|
1341
|
+
"signature ./sdk/core:LearningsCommandOptions",
|
|
1342
|
+
"signature ./sdk/core:LearningsResult",
|
|
1343
|
+
"signature ./sdk/core:NotesCommandOptions",
|
|
1344
|
+
"signature ./sdk/core:NotesResult",
|
|
1345
|
+
"signature ./sdk/runtime:LearningsCommandOptions",
|
|
1346
|
+
"signature ./sdk/runtime:LearningsResult",
|
|
1347
|
+
"signature ./sdk/runtime:NotesCommandOptions",
|
|
1348
|
+
"signature ./sdk/runtime:NotesResult"
|
|
1349
|
+
],
|
|
1350
|
+
"package_version": "2026.8.27",
|
|
1351
|
+
"reason": "Additive optional ifAbsent and changed fields extend every public annotation mutation contract; policy classifies exported signature growth as breaking and the next date release carries it."
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"changes": [
|
|
1355
|
+
"signature ./sdk:PM_TOOL_PARAMETERS_SCHEMA_VERSION",
|
|
1356
|
+
"signature ./sdk/contracts:PM_TOOL_PARAMETERS_SCHEMA_VERSION"
|
|
1357
|
+
],
|
|
1358
|
+
"package_version": "2026.8.27",
|
|
1359
|
+
"reason": "Advance the strict tool-parameter schema version for the additive annotation ifAbsent contract"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"changes": [
|
|
1363
|
+
"signature ./sdk:PM_AGENT_TASK_TRANSCRIPT_VERSION",
|
|
1364
|
+
"signature ./sdk:PM_TOOL_PARAMETERS_SCHEMA_VERSION",
|
|
1365
|
+
"signature ./sdk:PmAgentTaskTranscriptStep",
|
|
1366
|
+
"signature ./sdk/contracts:PM_AGENT_TASK_TRANSCRIPT_VERSION",
|
|
1367
|
+
"signature ./sdk/contracts:PM_TOOL_PARAMETERS_SCHEMA_VERSION",
|
|
1368
|
+
"signature ./sdk/contracts:PmAgentTaskTranscriptStep"
|
|
1369
|
+
],
|
|
1370
|
+
"package_version": "2026.8.27",
|
|
1371
|
+
"reason": "Finalize unreleased transcript v2 accounting-mode contract and strict annotation schema correction"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"changes": [
|
|
1375
|
+
"signature ./sdk:PmAgentTaskTranscriptStep",
|
|
1376
|
+
"signature ./sdk/contracts:PmAgentTaskTranscriptStep"
|
|
1377
|
+
],
|
|
1378
|
+
"package_version": "2026.8.27",
|
|
1379
|
+
"reason": "Add optional transcript terminal-value assertions while preserving version-two parser compatibility"
|
|
1319
1380
|
}
|
|
1320
1381
|
],
|
|
1321
1382
|
"entrypoints": {
|
|
@@ -1836,13 +1897,13 @@
|
|
|
1836
1897
|
"classification": "advanced_export",
|
|
1837
1898
|
"kind": "interface",
|
|
1838
1899
|
"name": "AnnotationCommandOptions",
|
|
1839
|
-
"signature": "export interface AnnotationCommandOptions { limit?: string; author?: string; message?: string; force?: boolean; includeMeta?: boolean; fullHistory?: boolean; }"
|
|
1900
|
+
"signature": "export interface AnnotationCommandOptions { limit?: string; author?: string; message?: string; force?: boolean; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; }"
|
|
1840
1901
|
},
|
|
1841
1902
|
{
|
|
1842
1903
|
"classification": "advanced_export",
|
|
1843
1904
|
"kind": "type",
|
|
1844
1905
|
"name": "AnnotationCommandResult",
|
|
1845
|
-
"signature": "export type AnnotationCommandResult<TKey extends string, TEntry extends AnnotationEntry> = { id: string; count: number; } & Record<TKey, TEntry[]> & { total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; };"
|
|
1906
|
+
"signature": "export type AnnotationCommandResult<TKey extends string, TEntry extends AnnotationEntry> = { id: string; count: number; } & Record<TKey, TEntry[]> & { total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; };"
|
|
1846
1907
|
},
|
|
1847
1908
|
{
|
|
1848
1909
|
"classification": "advanced_export",
|
|
@@ -1866,7 +1927,7 @@
|
|
|
1866
1927
|
"classification": "advanced_export",
|
|
1867
1928
|
"kind": "interface",
|
|
1868
1929
|
"name": "AnnotationMutationReceipt",
|
|
1869
|
-
"signature": "export interface AnnotationMutationReceipt { action: \"add\" | \"edit\" | \"delete\"; entry_index: number; changed_count: 1; full_history_included: boolean; }"
|
|
1930
|
+
"signature": "export interface AnnotationMutationReceipt { action: \"add\" | \"edit\" | \"delete\"; entry_index: number; changed_count: 0 | 1; full_history_included: boolean; }"
|
|
1870
1931
|
},
|
|
1871
1932
|
{
|
|
1872
1933
|
"classification": "advanced_export",
|
|
@@ -3738,13 +3799,13 @@
|
|
|
3738
3799
|
"classification": "supported",
|
|
3739
3800
|
"kind": "interface",
|
|
3740
3801
|
"name": "CommentsCommandOptions",
|
|
3741
|
-
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
3802
|
+
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
3742
3803
|
},
|
|
3743
3804
|
{
|
|
3744
3805
|
"classification": "supported",
|
|
3745
3806
|
"kind": "interface",
|
|
3746
3807
|
"name": "CommentsResult",
|
|
3747
|
-
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
3808
|
+
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
3748
3809
|
},
|
|
3749
3810
|
{
|
|
3750
3811
|
"classification": "advanced_export",
|
|
@@ -8328,13 +8389,13 @@
|
|
|
8328
8389
|
"classification": "supported",
|
|
8329
8390
|
"kind": "interface",
|
|
8330
8391
|
"name": "LearningsCommandOptions",
|
|
8331
|
-
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
8392
|
+
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
8332
8393
|
},
|
|
8333
8394
|
{
|
|
8334
8395
|
"classification": "supported",
|
|
8335
8396
|
"kind": "interface",
|
|
8336
8397
|
"name": "LearningsResult",
|
|
8337
|
-
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
8398
|
+
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
8338
8399
|
},
|
|
8339
8400
|
{
|
|
8340
8401
|
"classification": "advanced_export",
|
|
@@ -9432,13 +9493,13 @@
|
|
|
9432
9493
|
"classification": "supported",
|
|
9433
9494
|
"kind": "interface",
|
|
9434
9495
|
"name": "NotesCommandOptions",
|
|
9435
|
-
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
9496
|
+
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
9436
9497
|
},
|
|
9437
9498
|
{
|
|
9438
9499
|
"classification": "supported",
|
|
9439
9500
|
"kind": "interface",
|
|
9440
9501
|
"name": "NotesResult",
|
|
9441
|
-
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
9502
|
+
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
9442
9503
|
},
|
|
9443
9504
|
{
|
|
9444
9505
|
"classification": "supported",
|
|
@@ -9962,6 +10023,12 @@
|
|
|
9962
10023
|
"name": "parseOptionalNumber",
|
|
9963
10024
|
"signature": "(raw: string, optionName: string) => number | calls: (raw: string, optionName: string) => number"
|
|
9964
10025
|
},
|
|
10026
|
+
{
|
|
10027
|
+
"classification": "contract_data",
|
|
10028
|
+
"kind": "function",
|
|
10029
|
+
"name": "parsePmAgentTaskTranscriptCorpus",
|
|
10030
|
+
"signature": "(value: unknown) => PmAgentTaskTranscriptCorpus | calls: (value: unknown) => PmAgentTaskTranscriptCorpus"
|
|
10031
|
+
},
|
|
9965
10032
|
{
|
|
9966
10033
|
"classification": "supported",
|
|
9967
10034
|
"kind": "function",
|
|
@@ -10256,6 +10323,18 @@
|
|
|
10256
10323
|
"name": "planWorkspaceSnapshotRestore",
|
|
10257
10324
|
"signature": "(pmRoot: string, target: string) => Promise<WorkspaceSnapshotRestorePlan> | calls: (pmRoot: string, target: string) => Promise<WorkspaceSnapshotRestorePlan>"
|
|
10258
10325
|
},
|
|
10326
|
+
{
|
|
10327
|
+
"classification": "contract_data",
|
|
10328
|
+
"kind": "value",
|
|
10329
|
+
"name": "PM_AGENT_TASK_ACCOUNTING_MODES",
|
|
10330
|
+
"signature": "readonly [\"self_reported\", \"independent_transport\"]"
|
|
10331
|
+
},
|
|
10332
|
+
{
|
|
10333
|
+
"classification": "contract_data",
|
|
10334
|
+
"kind": "value",
|
|
10335
|
+
"name": "PM_AGENT_TASK_TRANSCRIPT_VERSION",
|
|
10336
|
+
"signature": "2"
|
|
10337
|
+
},
|
|
10259
10338
|
{
|
|
10260
10339
|
"classification": "supported",
|
|
10261
10340
|
"kind": "value",
|
|
@@ -10836,7 +10915,7 @@
|
|
|
10836
10915
|
"classification": "contract_data",
|
|
10837
10916
|
"kind": "value",
|
|
10838
10917
|
"name": "PM_TOOL_PARAMETERS_SCHEMA_VERSION",
|
|
10839
|
-
"signature": "\"4.
|
|
10918
|
+
"signature": "\"4.10.1\""
|
|
10840
10919
|
},
|
|
10841
10920
|
{
|
|
10842
10921
|
"classification": "contract_data",
|
|
@@ -10880,6 +10959,42 @@
|
|
|
10880
10959
|
"name": "PmActionToolInputSchemaOptions",
|
|
10881
10960
|
"signature": "export interface PmActionToolInputSchemaOptions { properties?: Record<string, unknown>; required?: string[]; additionalProperties?: boolean; }"
|
|
10882
10961
|
},
|
|
10962
|
+
{
|
|
10963
|
+
"classification": "contract_data",
|
|
10964
|
+
"kind": "type",
|
|
10965
|
+
"name": "PmAgentTaskAccountingMode",
|
|
10966
|
+
"signature": "export type PmAgentTaskAccountingMode = (typeof PM_AGENT_TASK_ACCOUNTING_MODES)[number];"
|
|
10967
|
+
},
|
|
10968
|
+
{
|
|
10969
|
+
"classification": "contract_data",
|
|
10970
|
+
"kind": "type",
|
|
10971
|
+
"name": "PmAgentTaskExpectedFieldValue",
|
|
10972
|
+
"signature": "export type PmAgentTaskExpectedFieldValue = string | number | boolean | null;"
|
|
10973
|
+
},
|
|
10974
|
+
{
|
|
10975
|
+
"classification": "contract_data",
|
|
10976
|
+
"kind": "type",
|
|
10977
|
+
"name": "PmAgentTaskStepOutputKind",
|
|
10978
|
+
"signature": "export type PmAgentTaskStepOutputKind = PmOutputEnvelopeKind | \"refusal\";"
|
|
10979
|
+
},
|
|
10980
|
+
{
|
|
10981
|
+
"classification": "contract_data",
|
|
10982
|
+
"kind": "interface",
|
|
10983
|
+
"name": "PmAgentTaskTranscript",
|
|
10984
|
+
"signature": "export interface PmAgentTaskTranscript { id: string; description: string; steps: readonly PmAgentTaskTranscriptStep[]; }"
|
|
10985
|
+
},
|
|
10986
|
+
{
|
|
10987
|
+
"classification": "contract_data",
|
|
10988
|
+
"kind": "interface",
|
|
10989
|
+
"name": "PmAgentTaskTranscriptCorpus",
|
|
10990
|
+
"signature": "export interface PmAgentTaskTranscriptCorpus { version: typeof PM_AGENT_TASK_TRANSCRIPT_VERSION; tasks: readonly PmAgentTaskTranscript[]; }"
|
|
10991
|
+
},
|
|
10992
|
+
{
|
|
10993
|
+
"classification": "contract_data",
|
|
10994
|
+
"kind": "interface",
|
|
10995
|
+
"name": "PmAgentTaskTranscriptStep",
|
|
10996
|
+
"signature": "export interface PmAgentTaskTranscriptStep { id: string; args: readonly string[]; expected_exit_code: number; expected_output_kind: PmAgentTaskStepOutputKind; expected_accounting_mode: PmAgentTaskAccountingMode; required_fields: readonly string[]; expected_field_values?: Readonly<Record<string, PmAgentTaskExpectedFieldValue>>; expected_error_code?: string; expected_refusal_surface?: string; recovery_for?: string; }"
|
|
10997
|
+
},
|
|
10883
10998
|
{
|
|
10884
10999
|
"classification": "contract_data",
|
|
10885
11000
|
"kind": "type",
|
|
@@ -20498,6 +20613,12 @@
|
|
|
20498
20613
|
"name": "parseMutationReceipt",
|
|
20499
20614
|
"signature": "{ (json: string): PmMutationReceipt; (value: unknown): PmMutationReceipt; } | calls: (json: string) => PmMutationReceipt ; (value: unknown) => PmMutationReceipt"
|
|
20500
20615
|
},
|
|
20616
|
+
{
|
|
20617
|
+
"classification": "contract_data",
|
|
20618
|
+
"kind": "function",
|
|
20619
|
+
"name": "parsePmAgentTaskTranscriptCorpus",
|
|
20620
|
+
"signature": "(value: unknown) => PmAgentTaskTranscriptCorpus | calls: (value: unknown) => PmAgentTaskTranscriptCorpus"
|
|
20621
|
+
},
|
|
20501
20622
|
{
|
|
20502
20623
|
"classification": "contract_data",
|
|
20503
20624
|
"kind": "value",
|
|
@@ -20516,6 +20637,18 @@
|
|
|
20516
20637
|
"name": "PLAN_FLAG_CONTRACTS",
|
|
20517
20638
|
"signature": "CliFlagContract[]"
|
|
20518
20639
|
},
|
|
20640
|
+
{
|
|
20641
|
+
"classification": "contract_data",
|
|
20642
|
+
"kind": "value",
|
|
20643
|
+
"name": "PM_AGENT_TASK_ACCOUNTING_MODES",
|
|
20644
|
+
"signature": "readonly [\"self_reported\", \"independent_transport\"]"
|
|
20645
|
+
},
|
|
20646
|
+
{
|
|
20647
|
+
"classification": "contract_data",
|
|
20648
|
+
"kind": "value",
|
|
20649
|
+
"name": "PM_AGENT_TASK_TRANSCRIPT_VERSION",
|
|
20650
|
+
"signature": "2"
|
|
20651
|
+
},
|
|
20519
20652
|
{
|
|
20520
20653
|
"classification": "contract_data",
|
|
20521
20654
|
"kind": "value",
|
|
@@ -20796,7 +20929,7 @@
|
|
|
20796
20929
|
"classification": "contract_data",
|
|
20797
20930
|
"kind": "value",
|
|
20798
20931
|
"name": "PM_TOOL_PARAMETERS_SCHEMA_VERSION",
|
|
20799
|
-
"signature": "\"4.
|
|
20932
|
+
"signature": "\"4.10.1\""
|
|
20800
20933
|
},
|
|
20801
20934
|
{
|
|
20802
20935
|
"classification": "contract_data",
|
|
@@ -20816,6 +20949,42 @@
|
|
|
20816
20949
|
"name": "PmActionToolInputSchemaOptions",
|
|
20817
20950
|
"signature": "export interface PmActionToolInputSchemaOptions { properties?: Record<string, unknown>; required?: string[]; additionalProperties?: boolean; }"
|
|
20818
20951
|
},
|
|
20952
|
+
{
|
|
20953
|
+
"classification": "contract_data",
|
|
20954
|
+
"kind": "type",
|
|
20955
|
+
"name": "PmAgentTaskAccountingMode",
|
|
20956
|
+
"signature": "export type PmAgentTaskAccountingMode = (typeof PM_AGENT_TASK_ACCOUNTING_MODES)[number];"
|
|
20957
|
+
},
|
|
20958
|
+
{
|
|
20959
|
+
"classification": "contract_data",
|
|
20960
|
+
"kind": "type",
|
|
20961
|
+
"name": "PmAgentTaskExpectedFieldValue",
|
|
20962
|
+
"signature": "export type PmAgentTaskExpectedFieldValue = string | number | boolean | null;"
|
|
20963
|
+
},
|
|
20964
|
+
{
|
|
20965
|
+
"classification": "contract_data",
|
|
20966
|
+
"kind": "type",
|
|
20967
|
+
"name": "PmAgentTaskStepOutputKind",
|
|
20968
|
+
"signature": "export type PmAgentTaskStepOutputKind = PmOutputEnvelopeKind | \"refusal\";"
|
|
20969
|
+
},
|
|
20970
|
+
{
|
|
20971
|
+
"classification": "contract_data",
|
|
20972
|
+
"kind": "interface",
|
|
20973
|
+
"name": "PmAgentTaskTranscript",
|
|
20974
|
+
"signature": "export interface PmAgentTaskTranscript { id: string; description: string; steps: readonly PmAgentTaskTranscriptStep[]; }"
|
|
20975
|
+
},
|
|
20976
|
+
{
|
|
20977
|
+
"classification": "contract_data",
|
|
20978
|
+
"kind": "interface",
|
|
20979
|
+
"name": "PmAgentTaskTranscriptCorpus",
|
|
20980
|
+
"signature": "export interface PmAgentTaskTranscriptCorpus { version: typeof PM_AGENT_TASK_TRANSCRIPT_VERSION; tasks: readonly PmAgentTaskTranscript[]; }"
|
|
20981
|
+
},
|
|
20982
|
+
{
|
|
20983
|
+
"classification": "contract_data",
|
|
20984
|
+
"kind": "interface",
|
|
20985
|
+
"name": "PmAgentTaskTranscriptStep",
|
|
20986
|
+
"signature": "export interface PmAgentTaskTranscriptStep { id: string; args: readonly string[]; expected_exit_code: number; expected_output_kind: PmAgentTaskStepOutputKind; expected_accounting_mode: PmAgentTaskAccountingMode; required_fields: readonly string[]; expected_field_values?: Readonly<Record<string, PmAgentTaskExpectedFieldValue>>; expected_error_code?: string; expected_refusal_surface?: string; recovery_for?: string; }"
|
|
20987
|
+
},
|
|
20819
20988
|
{
|
|
20820
20989
|
"classification": "contract_data",
|
|
20821
20990
|
"kind": "type",
|
|
@@ -22254,13 +22423,13 @@
|
|
|
22254
22423
|
"classification": "supported",
|
|
22255
22424
|
"kind": "interface",
|
|
22256
22425
|
"name": "CommentsCommandOptions",
|
|
22257
|
-
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22426
|
+
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22258
22427
|
},
|
|
22259
22428
|
{
|
|
22260
22429
|
"classification": "supported",
|
|
22261
22430
|
"kind": "interface",
|
|
22262
22431
|
"name": "CommentsResult",
|
|
22263
|
-
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
22432
|
+
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
22264
22433
|
},
|
|
22265
22434
|
{
|
|
22266
22435
|
"classification": "supported",
|
|
@@ -22626,13 +22795,13 @@
|
|
|
22626
22795
|
"classification": "supported",
|
|
22627
22796
|
"kind": "interface",
|
|
22628
22797
|
"name": "LearningsCommandOptions",
|
|
22629
|
-
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22798
|
+
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22630
22799
|
},
|
|
22631
22800
|
{
|
|
22632
22801
|
"classification": "supported",
|
|
22633
22802
|
"kind": "interface",
|
|
22634
22803
|
"name": "LearningsResult",
|
|
22635
|
-
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
22804
|
+
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
22636
22805
|
},
|
|
22637
22806
|
{
|
|
22638
22807
|
"classification": "supported",
|
|
@@ -22722,13 +22891,13 @@
|
|
|
22722
22891
|
"classification": "supported",
|
|
22723
22892
|
"kind": "interface",
|
|
22724
22893
|
"name": "NotesCommandOptions",
|
|
22725
|
-
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22894
|
+
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
22726
22895
|
},
|
|
22727
22896
|
{
|
|
22728
22897
|
"classification": "supported",
|
|
22729
22898
|
"kind": "interface",
|
|
22730
22899
|
"name": "NotesResult",
|
|
22731
|
-
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
22900
|
+
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
22732
22901
|
},
|
|
22733
22902
|
{
|
|
22734
22903
|
"classification": "supported",
|
|
@@ -28188,13 +28357,13 @@
|
|
|
28188
28357
|
"classification": "supported",
|
|
28189
28358
|
"kind": "interface",
|
|
28190
28359
|
"name": "CommentsCommandOptions",
|
|
28191
|
-
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
28360
|
+
"signature": "export interface CommentsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
28192
28361
|
},
|
|
28193
28362
|
{
|
|
28194
28363
|
"classification": "supported",
|
|
28195
28364
|
"kind": "interface",
|
|
28196
28365
|
"name": "CommentsResult",
|
|
28197
|
-
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
28366
|
+
"signature": "export interface CommentsResult { id: string; comments: Comment[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
28198
28367
|
},
|
|
28199
28368
|
{
|
|
28200
28369
|
"classification": "advanced_export",
|
|
@@ -28944,13 +29113,13 @@
|
|
|
28944
29113
|
"classification": "supported",
|
|
28945
29114
|
"kind": "interface",
|
|
28946
29115
|
"name": "LearningsCommandOptions",
|
|
28947
|
-
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
29116
|
+
"signature": "export interface LearningsCommandOptions { add?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
28948
29117
|
},
|
|
28949
29118
|
{
|
|
28950
29119
|
"classification": "supported",
|
|
28951
29120
|
"kind": "interface",
|
|
28952
29121
|
"name": "LearningsResult",
|
|
28953
|
-
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
29122
|
+
"signature": "export interface LearningsResult { id: string; learnings: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
28954
29123
|
},
|
|
28955
29124
|
{
|
|
28956
29125
|
"classification": "advanced_export",
|
|
@@ -29184,13 +29353,13 @@
|
|
|
29184
29353
|
"classification": "supported",
|
|
29185
29354
|
"kind": "interface",
|
|
29186
29355
|
"name": "NotesCommandOptions",
|
|
29187
|
-
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
29356
|
+
"signature": "export interface NotesCommandOptions { add?: string; addJson?: string; stdin?: boolean; file?: string; edit?: number; delete?: number; limit?: string; since?: string; eventType?: string; includeMeta?: boolean; fullHistory?: boolean; ifAbsent?: boolean; author?: string; message?: string; force?: boolean; }"
|
|
29188
29357
|
},
|
|
29189
29358
|
{
|
|
29190
29359
|
"classification": "supported",
|
|
29191
29360
|
"kind": "interface",
|
|
29192
29361
|
"name": "NotesResult",
|
|
29193
|
-
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; }"
|
|
29362
|
+
"signature": "export interface NotesResult { id: string; notes: LogNote[]; count: number; total_count?: number; returned_count?: number; has_more?: boolean; limit?: number; structured_event_count?: number; mutation_receipt?: AnnotationMutationReceipt; omission_receipt?: AnnotationOmissionReceipt; changed?: boolean; }"
|
|
29194
29363
|
},
|
|
29195
29364
|
{
|
|
29196
29365
|
"classification": "supported",
|
|
@@ -31379,6 +31548,7 @@
|
|
|
31379
31548
|
"ambiguous_option_combination",
|
|
31380
31549
|
"annotation_alias_conflict",
|
|
31381
31550
|
"annotation_flag_like_value",
|
|
31551
|
+
"annotation_if_absent_without_append",
|
|
31382
31552
|
"annotation_message_without_text",
|
|
31383
31553
|
"annotation_transposed_subcommand",
|
|
31384
31554
|
"append_empty_body",
|
|
@@ -31567,6 +31737,8 @@
|
|
|
31567
31737
|
"no_update_fields",
|
|
31568
31738
|
"no_version_bounds_declared",
|
|
31569
31739
|
"non_refusal_exit",
|
|
31740
|
+
"npm_package_archive_missing",
|
|
31741
|
+
"npm_package_archive_unsafe",
|
|
31570
31742
|
"npm_package_not_found",
|
|
31571
31743
|
"ownership_conflict",
|
|
31572
31744
|
"ownership_dependency_bypass_restricted_options",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as p,E as m,Fe as P,Fg as F,O as S,P as A,T as O,ba as y,kf as N,qm as g,se as L,te as w}from"./chunk-3OO3W6FW.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae031bac-f5a1-5762-9c58-0410b8f1f86d")}catch{}})();var f=Object.freeze({clock:"PM_CLOCK",tickMs:"PM_CLOCK_TICK_MS",seed:"PM_SEED"});function I(e,t,n,o){return new m(e,p.USAGE,{code:"invalid_reproducible_process_environment",reason:t,field:n,required:`${f.clock} and ${f.seed}; ${f.tickMs} is optional`,nextSteps:[`Set ${f.clock} to an ISO-8601 instant with Z or a numeric UTC offset and ${f.seed} to a non-empty reproducibility seed.`,`Optionally set ${f.tickMs} to a non-negative integer; it defaults to 1.`,"Unset all three variables to retain normal wall-clock and cryptographic-random behavior."],recovery:{recovery_mode:"compact",provided_fields:o,missing_required_fields:t==="incomplete"?[f.clock,f.seed].filter(i=>!o.includes(i)):void 0}})}function j(e){let t=e[f.clock],n=e[f.tickMs],o=e[f.seed],i=[[f.clock,t],[f.tickMs,n],[f.seed,o]].filter(r=>r[1]!==void 0).map(([r])=>r);if(i.length===0)return;if(t===void 0||o===void 0)throw I("Reproducible process execution requires PM_CLOCK and PM_SEED together.","incomplete",t===void 0?f.clock:f.seed,i);if(o.trim().length===0)throw I(`${f.seed} must not be empty.`,"invalid_value",f.seed,i);if(!O(t))throw I(`${f.clock} must be a valid ISO-8601 instant with Z or a numeric UTC offset.`,"invalid_value",f.clock,i);let s=n===void 0?1:Number(n);if(n?.trim().length===0||!Number.isSafeInteger(s)||s<0)throw I(`${f.tickMs} must be a non-negative integer.`,"invalid_value",f.tickMs,i);return S({clock:t,seed:o,tickMs:s})}function K(e){let t=j(e);return t===void 0?n=>n():A(t)}async function Re(e,t){return K(e)(t)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="271cf7c1-f84b-5f59-aa13-ed8cb4ee232f")}catch{}})();var D=new Set(["append","claim","close","close-task","comments","copy","delete","deps","docs","files","focus","get","history","history-compact","history-redact","history-repair","learnings","notes","pause-task","release","restore","start-task","test","update"]),C=new Map([["files","discover"],["item","complete"]]),Y=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),X=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function Z(e){let t=e?.trim().toLowerCase()??"";return D.has(t)||C.has(t)}function v(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(Y.has(n)){t+=1;continue}if(!n.startsWith("-"))return t}}function M(e,t,n){let o=C.get(n);if(o===void 0)return t+1;let i=e[t+1]?.toLowerCase()===o;if(!(!i&&!D.has(n)))return t+(i?2:1)}function H(e){let t=new Map;for(let n of g(e))for(let o of[n.flag,n.short,...n.aliases??[]])o&&t.set(o,n);return t}function J(e){let t=[];for(let n=0;n<e.length;n+=1){let o=e[n];if(o==="--")break;o==="--id"?(t.push({index:n,consumed:2,value:e[n+1]}),n+=1):o.startsWith("--id=")&&t.push({index:n,consumed:1,value:o.slice(5)})}return t}function Q(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let i=n.get(e);return i!==void 0&&i.value_type!=="boolean"}function ee(e,t,n,o,i){let s=0;for(let r=t;r<e.length;r+=1){let a=e[r];if(a==="--")break;if(a==="--id"){r+=1;continue}if(!a.startsWith("--id=")){if(!a.startsWith("-")){if(r<o)return!0;s+=1;continue}Q(a,e[r+1],i)&&(r+=1)}}return s>(X.get(n)??0)}function V(e){let t=v(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(!Z(n))return{argv:[...e],changed:!1,conflict:!1};let o=C.get(n)===e[t+1]?.toLowerCase()?`${n} ${e[t+1]?.toLowerCase()}`:n,i=H(o),s=J(e),r=s[0];if(!r||!r.value?.trim())return{argv:[...e],changed:!1,conflict:!1};let a=M(e,t,n);if(a===void 0)return{argv:[...e],changed:!1,conflict:!1};if(s.length>1||ee(e,a,o,r.index,i))return{argv:[...e],changed:!1,conflict:!0,itemId:r.value};let u=[...e.slice(0,r.index),...e.slice(r.index+r.consumed)],c=v(u),l=M(u,c,n);return u.splice(l,0,r.value),{argv:u,changed:!0,conflict:!1,itemId:r.value}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90f1f3ba-b3a9-5730-9cf7-8947e782a027")}catch{}})();var b=new Set(["--pm-path","--path","--author","--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),te=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),$=e=>{let t=e.indexOf("=");return t>0&&b.has(e.slice(0,t))},k=(e,t)=>typeof t!="string"?!1:e==="--path"||e==="--pm-path"||!t.startsWith("-"),E=new Set(["--no-extensions","--no-pager","--json","--quiet","--lean","--token-accounting","--output-row-contract","--all"]);function ne(e,t,n){let o=e[t];if(E.has(o))return n.booleanFlags.add(o),1;let i=o.indexOf("="),s=i>0?o.slice(0,i):o;if(!b.has(s))return 1;let r=i>0?o.slice(i+1):void 0,a=r===void 0&&k(s,e[t+1]),u=r??(a?e[t+1]:void 0);return s==="--author"?n.author=u??"":typeof u=="string"&&u.length>0&&(te.has(s)?n.outputValues:n.pathValues).set(s,u),a?2:1}function oe(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=ne(e,n,t);return{path:t.pathValues.get("--pm-path")??t.pathValues.get("--path"),noExtensions:t.booleanFlags.has("--no-extensions"),noPager:t.booleanFlags.has("--no-pager"),json:t.booleanFlags.has("--json"),quiet:t.booleanFlags.has("--quiet"),lean:t.booleanFlags.has("--lean"),tokenAccounting:t.booleanFlags.has("--token-accounting"),...t.booleanFlags.has("--output-row-contract")?{outputRowContract:!0}:{},...t.outputValues.get("--output-include")===void 0?{}:{outputInclude:t.outputValues.get("--output-include")},...t.outputValues.get("--output-limit")===void 0?{}:{outputLimit:t.outputValues.get("--output-limit")},...t.outputValues.get("--output-budget")===void 0?{}:{outputBudget:t.outputValues.get("--output-budget")},...t.outputValues.get("--output-format")==="toon"||t.outputValues.get("--output-format")==="json"?{outputFormat:t.outputValues.get("--output-format")}:{},...t.outputValues.get("--output-session")===void 0?{}:{outputSession:t.outputValues.get("--output-session")},...t.outputValues.get("--output-cursor")===void 0?{}:{outputCursor:t.outputValues.get("--output-cursor")},...t.author===""?{authorMissingValue:!0}:t.author!==void 0?{author:t.author}:{}}}function z(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(E.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(b.has(o)){n+=k(o,e[n+1])?2:1;continue}if($(o)){n+=1;continue}t.push(o),n+=1}return t}function ie(e){let t=z(e);if(t[0]?.trim().toLowerCase()==="help"){let s=[];for(let r=1;r<t.length;r+=1){let a=t[r];if(a.startsWith("-"))break;s.push(a.trim().toLowerCase())}return{requested:!0,commandPathTokens:s}}if(t.findIndex(s=>s==="--help"||s==="-h")<0)return{requested:!1,commandPathTokens:[]};let i=[];for(let s of t){if(s.startsWith("-"))break;i.push(s.trim().toLowerCase())}return{requested:!0,commandPathTokens:i}}function _(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(b.has(n)){t+=k(n,e[t+1])?1:0;continue}if(!($(n)||E.has(n)||n==="--profile"||n==="--id-only"||n==="--explain")&&!n.startsWith("-"))return t}}function T(e){let t=_(e);return t===void 0?void 0:e[t].trim().toLowerCase()}function se(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:ie(e).requested}function Ze(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(s=>process.env[s]),o=()=>{for(let[s,r]of t.entries()){let a=n[s];a===void 0?delete process.env[r]:process.env[r]=a}},i=oe(e);return se(e,i)&&(process.env.PAGER="cat",process.env.MANPAGER="cat",process.env.GIT_PAGER="cat",(typeof process.env.LESS!="string"||process.env.LESS.trim().length===0)&&(process.env.LESS="FRX")),o}var re=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function ae(e){let t=_(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!re.has(n))return[...e];if(e.includes("--help")||e.includes("-h"))return[...e];let o=`--${n}`;return e.includes(o)?[...e]:[...e.slice(0,t+1),o,...e.slice(t+2)]}var ue=new Set(["pm","pm-cli"]);function ce(e,t){let n=_(e);if(n===void 0)return e;let o=e[n];return ue.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function le(e,t){let n=_(e);if(n===void 0)return e;let o=e[n],i=N[o.trim().toLowerCase()];if(!i)return e;let s=[...e];return s[n]=i,t.push({from:o,to:[i],reason:"command_alias",confidence:"high"}),s}function x(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function R(e){return x(e).replace(/-/g,"")}function B(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function de(e){let t=[],n=o=>{typeof o=="string"&&o.startsWith("--")&&t.push(o)};n(e.flag);for(let o of e.aliases??[])n(o);return t}function fe(e,t){let n=t??g(e),o=new Map,i=new Map,s=new Map,r=new Set;for(let a of n){let u=de(a);if(u.length===0)continue;let c=`--${x(u[0])}`;for(let d of u)B(o,x(d),c),B(i,R(d),c);let l=R(c);s.has(c)||s.set(c,l),a.list===!0&&r.add(c)}return{canonicalByNormalized:o,canonicalByCompact:i,canonicalComparables:[...s.entries()].map(([a,u])=>({canonicalFlag:a,comparable:u})),listCanonicalFlags:r}}function W(e,t){let n=x(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let i=n.replace(/-/g,""),s=t.canonicalByCompact.get(i);if(typeof s=="string")return{flag:s,reason:"flag_alias",confidence:"high"};let r=i.length>=8?2:1,a=Number.POSITIVE_INFINITY,u,c=!1;for(let l of t.canonicalComparables){let d=y(i,l.comparable,r);if(d!==null){if(d<a){a=d,u=l.canonicalFlag,c=!1;continue}d===a&&u!==l.canonicalFlag&&(c=!0)}}return!u||c||!Number.isFinite(a)||a<=0?null:{flag:u,reason:"flag_typo",confidence:a>=2?"medium":"high"}}function He(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function pe(e,t=!1){if(t||e.includes("://"))return null;let n=e.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);if(!n)return null;let o=n[1],i=n[3];return i.length===0?null:{key:o,value:i}}function me(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),i=o>=0?e.slice(0,o):e,s=o>=0?e.slice(o+1):void 0,r=W(i,t);if(!r)return{tokens:[e]};let a=s===void 0?r.flag:`${r.flag}=${s}`;return a===e?{tokens:[e]}:{tokens:[a],event:{from:e,to:[a],reason:r.reason,confidence:r.confidence}}}function he(e){let t=new Set,n=!1;for(let o=0;o<e.length;o+=1){if(n){t.add(o),n=!1;continue}let i=e[o];n=i==="--path"||i==="--pm-path"}return t}function ge(e){if(!e.startsWith("--"))return null;let t=e.indexOf("=");return t<0?{flag:e}:{flag:e.slice(0,t),inlineValue:e.slice(t+1)}}function be(e,t,n){n.push(e[t]);let o=e[t+1];return typeof o=="string"&&o!=="--"?(n.push(o),t+2):t+1}function ye(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let i=[],s=t+1;for(;s<e.length&&e[s]!=="--"&&!e[s].startsWith("-")&&(i.length===0||o.has(n.flag));)i.push(e[s]),s+=1;let r=i.length===0?1:1+i.length;return{originalTokens:e.slice(t,t+r),value:i.length===0?void 0:i.join(","),consumed:r}}function we(e,t,n,o){let i=e.get(n);if(i){i.values.push(o.value),i.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function Ie(e,t){let n=[],o=[];for(let[i,s]of e){if(!(s.occurrences>=2||t.has(i)&&s.originalTokens.length>2)){o.push({outputIndex:s.outputIndex,tokens:s.originalTokens});continue}let a=`${i}=${s.values.join(",")}`;o.push({outputIndex:s.outputIndex,tokens:[a]}),n.push({from:`${i} (x${s.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function xe(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function _e(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let i=[],s=new Map,r=0;for(;r<e.length;){let c=e[r];if(c==="--"){i.push(...e.slice(r));break}if(n.has(c)){r=be(e,r,i);continue}let l=ge(c);if(!l||!t.has(l.flag)){i.push(c),r+=1;continue}let d=ye(e,r,l,o);if(d.value===void 0){i.push(c),r+=d.consumed;continue}we(s,i,l.flag,{originalTokens:d.originalTokens,value:d.value}),r+=d.consumed}let{events:a,splices:u}=Ie(s,o);return xe(i,u),{argv:i,events:a}}var G=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function Ce(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],i=G.get(o);return i!==void 0&&i.has(n)}function ke(e,t){return e==="search"||Ce(e,t)}function Ee(e,t,n){if(t!=="test")return e;let o=[],i=0;for(;i<e.length;){let s=e[i];if(s==="--")return o.push(...e.slice(i)),o;let r=G.get(s),a=r?e[i+1]:void 0;if(!r||typeof a!="string"||!r.has(a)){o.push(s),i+=1;continue}let u=i+2;for(;u<e.length&&!e[u].startsWith("-");)u+=1;if(u-(i+2)!==1){o.push(s),i+=1;continue}let c=e[i+2],l=`${a}=${c}`;o.push(s,l),n.push({from:`${s} ${a} ${c}`,to:[s,l],reason:"bare_key_value",confidence:"high"}),i+=3}return o}function Te(e,t,n,o){let i=[],s=he(e);for(let r=0;r<e.length;r+=1){let a=e[r];if(a==="--"){i.push(...e.slice(r));break}let u=s.has(r),c=i[i.length-1];if(a.startsWith("--")){let d=me(a,t,u);i.push(...d.tokens),d.event&&o.push(d.event);continue}let l=pe(a,u);if(l&&!(typeof c=="string"&&c.startsWith("-"))&&!ke(n,i)){let d=W(l.key,t);if(d){let h=[d.flag,l.value];i.push(...h),o.push({from:a,to:h,reason:"bare_key_value",confidence:d.confidence});continue}}i.push(a)}return i}function Je(e){let t=[],n=ce(e,t),o=ae(n);(o.length!==n.length||o.some((h,q)=>h!==n[q]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let i=le(o,t),s=V(i);if(s.conflict)throw new m("Provide the item id either positionally or with --id, not both.",p.USAGE);s.changed&&t.push({from:`--id ${s.itemId}`,to:[s.itemId],reason:"item_id_alias",confidence:"high"});let r=T(s.argv),a=Se(s.argv),u=fe(a??r),c=Te(s.argv,u,r,t),l=Ee(c,r,t),d=_e(l,u.listCanonicalFlags,b,r==="create"?new Set(["--tags"]):new Set);for(let h of d.events)t.push(h);return{argv:d.argv,commandName:r,trace:t}}function Se(e){let t=z(e),n=t[0]?.trim().toLowerCase(),o=t[1]?.trim().toLowerCase();return(n==="extension"||n==="package"||n==="packages")&&typeof o=="string"&&o.length>0&&!o.startsWith("-")?`${n} ${o}`:n}function Qe(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--type"){let o=e[t+1];if(typeof o=="string"&&o.trim().length>0)return o.trim();continue}if(n.startsWith("--type=")){let o=n.slice(7).trim();if(o.length>0)return o}}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4973a995-60f0-5990-9927-371dc6716063")}catch{}})();function U(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function it(e){if(!(!Array.isArray(e)||e.length===0))return T(e)}function Ae(e,t){let n=U(t);if(!n)return;let o=g(e).find(i=>i.flag===n||i.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function st(e,t,n){let o=[...e],i=o.indexOf("--"),s=i<0?o.length:i;for(let r of n){let a=U(r);if(!a||o.slice(0,s).some(l=>l===a||l.startsWith(`${a}=`)))continue;let u=Ae(t,a),c=u?[a,u]:[a];o.splice(s,0,...c),s+=c.length}return o.length===e.length?void 0:P(o)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d82065d1-488d-523e-9df2-a30056f29603")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5810cf1d-fc9a-597b-a47e-a914009fadfa")}catch{}})();function ft(e){return e instanceof m||e instanceof Error?e.message:"Unknown failure"}function Oe(e){if(typeof e!="object"||e===null||!("exitCode"in e))return;let t=e.exitCode;return typeof t=="number"&&Number.isFinite(t)?t:void 0}function Le(e){let t=Math.trunc(e);return t>p.SUCCESS?t:p.GENERIC_FAILURE}function pt(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&e.code.startsWith("commander.")}function mt(e,t){if(e instanceof Error)return e;let n=new Error(t),o=Oe(e);return o!==void 0&&(n.exitCode=Le(o)),n}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f7cca3d-9b19-53b4-a510-5290aaf75e12")}catch{}})();function wt(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new m("--author requires a non-empty value.",p.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=L();w(t);let o=!1;return()=>{o||(o=!0,n===void 0?w(void 0):w(n))}}import{Command as Pe}from"commander";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="31e820a7-aa60-5e37-846d-c62b81b47587")}catch{}})();function Ct(e){return new Pe().name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(e).showHelpAfterError(!1).allowExcessArguments(!1).allowUnknownOption(!1).configureOutput({writeOut:t=>{F(t)},writeErr:()=>{}}).option("--json","Output JSON instead of TOON; mutations emit a flat receipt with top-level id/status/changed_field_count while reads use documented entity or collection envelopes").option("--lean","Omit null and empty containers from JSON output").option("--token-accounting","Attach a bounded per-section token-cost receipt to command output").option("--output-include <fields>","Retain comma-separated fields or sections in read output").option("--output-limit <count>","Bound rows in read output").option("--output-budget <tokens|unbounded>","Bound estimated tokens in read output or explicitly disable the default ceiling").option("--output-format <toon|json>","Select the read-output encoding").option("--output-session <state>","Carry a JSON session budget and served-item ledger across read calls").option("--output-cursor <cursor>","Resume a budget-compacted declared row collection").option("--output-row-contract","Include the machine-readable row selector and TOON encoding contract").option("--quiet","Suppress stdout output").option("--no-changed-fields","Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--full-changed-fields","Restore the legacy full mutation envelope and changed_fields array").option("--id-only","Print only id and status for single-item mutation output").option("--pm-path <dir>","Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>","Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions","Disable extension loading").option("--no-pager","Disable pager integration for help and long output").option("--explain","Render extended rationale and examples in help output").option("--all","Reveal every public command and compatibility alias").option("--profile","Print deterministic timing diagnostics").option("--author <id>","Override mutation author for this invocation").exitOverride()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="71e5a870-f62f-5252-b4e9-e1a42e36009f")}catch{}})();var Ne={add:["create","append"],fetch:["get"],inspect:["get","health"],log:["history","comments","notes"],ls:["list"],pause:["release"],read:["get"],remove:["delete"],rm:["delete"],show:["get"]};function Fe(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let i=n.split(" "),s=Ne[o]?.indexOf(n);if(s!==void 0&&s>=0)return s;if(n===o)return 10;if(i.includes(o))return 11;if(i.some(u=>u.startsWith(o)))return 12;let r=o.length>=5?2:1,a=Number.POSITIVE_INFINITY;for(let u of i){let c=y(u,o,r);c!==null&&(a=Math.min(a,c))}return Number.isFinite(a)?20+a:n.includes(o)?30:Number.POSITIVE_INFINITY}function Tt(e,t){return e.map(n=>({path:n,score:Fe(n,t)})).filter(n=>Number.isFinite(n.score)).sort((n,o)=>n.score!==o.score?n.score-o.score:n.path===o.path?0:n.path<o.path?-1:1).map(n=>n.path)}export{f as a,j as b,K as c,Re as d,Z as e,V as f,oe as g,z as h,ie as i,_ as j,T as k,Ze as l,ae as m,He as n,_e as o,Ee as p,Je as q,Qe as r,it as s,Ae as t,st as u,ft as v,Oe as w,Le as x,pt as y,mt as z,wt as A,Ct as B,Fe as C,Tt as D};
|
|
2
|
-
//# sourceMappingURL=chunk-QTO7USTH.js.map
|