@unbrained/pm-cli 2026.8.9 → 2026.8.10
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 +40 -0
- package/dist/cli/commander-usage.js +17 -12
- package/dist/cli/help-json-payload.js +51 -16
- package/dist/cli/main.js +7 -6
- package/dist/cli-bundle/bundle-manifest.json +165 -165
- package/dist/cli-bundle/chunks/chunk-2QYH4QMI.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-YC3UF2IO.js → chunk-EBO7OUUE.js} +57 -57
- package/dist/cli-bundle/chunks/{chunk-GMX5YOI3.js → chunk-ETML5C6H.js} +48 -48
- package/dist/cli-bundle/chunks/chunk-JUDU4RO4.js +194 -0
- package/dist/cli-bundle/chunks/{chunk-PYO5GZU6.js → chunk-JZSNADRR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-EF43KODO.js → chunk-MENWVGJW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5JO6R4BS.js → chunk-S4EITGLA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2DTCZXSD.js → chunk-TIGKWVLA.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-RJC7TPF4.js → chunk-TRWXF476.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TSLDTJLQ.js +2 -0
- package/dist/cli-bundle/chunks/{register-list-query-BUE7PTCU.js → register-list-query-OJ6ZXKV4.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-FC3XLVIK.js → register-mutation-DKI7QC7O.js} +2 -2
- package/dist/cli-bundle/chunks/register-operations-P5OGMT6I.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-UQDTNTLJ.js → register-setup-S3KT2LTH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6DO4YQWZ.js → chunk-2COZ67XT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-2EXI2DKR.js +4 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KNEHLPBF.js → chunk-34SX654S.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-36FTZ2NT.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-3CQECMKR.js +16 -0
- package/dist/cli-bundle/focused-chunks/chunk-75774JWP.js +6 -0
- package/dist/cli-bundle/focused-chunks/{chunk-MRWVJ3ZG.js → chunk-7UN6BHHO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VRXJSGIT.js → chunk-CHIBMEZR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-DZGAHZZV.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-FF4MNAYB.js +153 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ZG54B4XG.js → chunk-GHTN2ILR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-I4YM2I7S.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IMDTEN7K.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IW43E4XL.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3WVHTUAW.js → chunk-JMVA4HKR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-C3GCHDSQ.js → chunk-KR5RVXLQ.js} +31 -31
- package/dist/cli-bundle/focused-chunks/chunk-KSNJG4KI.js +16 -0
- package/dist/cli-bundle/focused-chunks/{chunk-73FIJONU.js → chunk-M6RPIXKC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-MXYSIQ56.js +18 -0
- package/dist/cli-bundle/focused-chunks/chunk-RIIN5V4N.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-U46GQJNY.js → chunk-RKWSCYYN.js} +2 -2
- package/dist/cli-bundle/main.js +13 -13
- 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 +38 -38
- 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 +1 -1
- 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 +2 -2
- package/dist/core/diagnostics/remediation.js +9 -9
- package/dist/core/fs/fs-utils.d.ts +10 -0
- package/dist/core/fs/fs-utils.js +16 -4
- package/dist/core/item/item-format.js +3 -32
- package/dist/core/schema/fields-file.d.ts +1 -2
- package/dist/core/schema/fields-file.js +4 -11
- package/dist/core/schema/runtime-schema.js +3 -10
- package/dist/core/schema/status-defs-file.d.ts +1 -2
- package/dist/core/schema/status-defs-file.js +4 -32
- package/dist/core/schema/status-token.d.ts +2 -0
- package/dist/core/schema/status-token.js +32 -0
- package/dist/core/schema/type-workflows.d.ts +1 -2
- package/dist/core/schema/type-workflows.js +4 -11
- package/dist/core/shared/author.d.ts +1 -1
- package/dist/core/shared/author.js +21 -8
- package/dist/core/shared/errors.d.ts +4 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/text-normalization.d.ts +1 -1
- package/dist/core/shared/text-normalization.js +2 -2
- package/dist/sdk/agent/command-recovery.d.ts +4 -0
- package/dist/sdk/agent/command-recovery.js +52 -0
- package/dist/sdk/agent/command-suggestions.d.ts +4 -0
- package/dist/sdk/agent/command-suggestions.js +67 -0
- package/dist/sdk/agent/create-option-policy.d.ts +12 -0
- package/dist/sdk/agent/create-option-policy.js +32 -0
- package/dist/sdk/agent/item-addressing.d.ts +19 -0
- package/dist/sdk/agent/item-addressing.js +208 -0
- package/dist/sdk/cli-bootstrap.d.ts +1 -1
- package/dist/sdk/cli-bootstrap.js +20 -5
- package/dist/sdk/cli-contracts/commander-mutation-options.js +16 -4
- package/dist/sdk/cli-contracts/flag-contracts.js +62 -21
- package/dist/sdk/cli-contracts/registration-helpers.js +10 -2
- package/dist/sdk/cli-contracts/runtime-contracts.js +5 -3
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +6 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js +4 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +19 -4
- package/dist/sdk/cli-contracts/tool-schema.js +17 -4
- package/dist/sdk/context-intent-runtime.js +8 -5
- package/dist/sdk/context-signal-store.d.ts +34 -0
- package/dist/sdk/context-signal-store.js +24 -2
- package/dist/sdk/dependency-flag-validation.d.ts +15 -1
- package/dist/sdk/dependency-flag-validation.js +54 -2
- package/dist/sdk/generated-error-code-catalog.js +74 -2
- package/dist/sdk/governance/health.js +14 -7
- package/dist/sdk/governance/provenance-health.d.ts +13 -0
- package/dist/sdk/governance/provenance-health.js +63 -17
- package/dist/sdk/governance/validate-item-reader.d.ts +13 -0
- package/dist/sdk/governance/validate-item-reader.js +18 -0
- package/dist/sdk/governance/validate.d.ts +2 -2
- package/dist/sdk/governance/validate.js +15 -6
- package/dist/sdk/index.d.ts +4 -0
- package/dist/sdk/index.js +6 -2
- package/dist/sdk/lifecycle/close.js +17 -14
- package/dist/sdk/lifecycle/create.d.ts +2 -0
- package/dist/sdk/lifecycle/create.js +62 -9
- package/dist/sdk/lifecycle/update-many.js +39 -27
- package/dist/sdk/lifecycle/update.d.ts +6 -1
- package/dist/sdk/lifecycle/update.js +47 -10
- package/dist/sdk/merge/index.d.ts +1 -1
- package/dist/sdk/merge/index.js +3 -3
- package/dist/sdk/merge/install.d.ts +4 -0
- package/dist/sdk/merge/install.js +28 -16
- package/dist/sdk/merge/receipts.d.ts +3 -0
- package/dist/sdk/merge/receipts.js +81 -17
- package/dist/sdk/output-projection.js +24 -4
- package/dist/sdk/query/context.d.ts +2 -0
- package/dist/sdk/query/context.js +7 -4
- package/dist/sdk/query/light-metadata.d.ts +3 -0
- package/dist/sdk/query/light-metadata.js +19 -0
- package/dist/sdk/runtime.d.ts +4 -1
- package/dist/sdk/runtime.js +8 -3
- package/dist/sdk/schema-migration.js +7 -9
- package/dist/sdk/similarity-scoring.d.ts +1 -2
- package/dist/sdk/similarity-scoring.js +4 -16
- package/dist/sdk/workspace-snapshot.d.ts +4 -0
- package/dist/sdk/workspace-snapshot.js +24 -11
- package/docs/AGENT_GUIDE.md +3 -1
- package/docs/COMMANDS.md +8 -5
- package/docs/MERGE_SAFETY.md +7 -5
- package/docs/README.md +2 -5
- package/docs/READ_OUTPUT_CONTRACTS.md +2 -2
- package/docs/SDK.md +33 -8
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +3 -2
- package/docs/SDK_CONTEXT.md +97 -0
- package/docs/SDK_CONTEXT_INTEGRITY.md +18 -3
- package/docs/agent-task-token-baseline.json +2 -2
- package/marketplace.json +2 -2
- package/package.json +5 -4
- 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 +194 -26
- package/dist/cli-bundle/chunks/chunk-5KN4DZYV.js +0 -194
- package/dist/cli-bundle/chunks/chunk-HUV2Z7IS.js +0 -28
- package/dist/cli-bundle/chunks/chunk-MHBVCUF2.js +0 -2
- package/dist/cli-bundle/chunks/register-operations-YH2WAOXU.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2VVP5RAA.js +0 -153
- package/dist/cli-bundle/focused-chunks/chunk-3GSFUDAI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-4H6MVCK3.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-54TZJ4BM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-5NK5TJ5D.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JGRSQZJT.js +0 -18
- package/dist/cli-bundle/focused-chunks/chunk-NL57J7BZ.js +0 -4
- package/dist/cli-bundle/focused-chunks/chunk-P6BBIQRG.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-PZAGVQNN.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-QDAO3XEK.js +0 -14
- package/dist/cli-bundle/focused-chunks/chunk-T4IGQCSY.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-XC2ZW3CJ.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as r,t as T,u as A,v as B,w as C,x as f}from"./focused-chunks/chunk-
|
|
1
|
+
import{s as r,t as T,u as A,v as B,w as C,x as f}from"./focused-chunks/chunk-KR5RVXLQ.js";import"./focused-chunks/chunk-75774JWP.js";import{$ as F,M as k,N as v,O as E,P as R,Q as U,R as j,S as q,T as z,wa as G,xa as H,ya as J}from"./focused-chunks/chunk-3CQECMKR.js";import"./focused-chunks/chunk-IW43E4XL.js";import"./focused-chunks/chunk-I4YM2I7S.js";import"./focused-chunks/chunk-M6RPIXKC.js";import{a as w,b as h,c as D,d as I,e as _}from"./focused-chunks/chunk-RKWSCYYN.js";import{ia as n,ja as d,ka as p,la as x,ma as m,na as s,pa as a,qa as i,ra as l,sa as u,ta as b,ua as g,va as y,wa as c}from"./focused-chunks/chunk-MXYSIQ56.js";import"./focused-chunks/chunk-DZGAHZZV.js";import"./focused-chunks/chunk-36FTZ2NT.js";import"./focused-chunks/chunk-FF4MNAYB.js";import"./focused-chunks/chunk-2EXI2DKR.js";import"./focused-chunks/chunk-RIIN5V4N.js";import"./focused-chunks/chunk-GHTN2ILR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8e8c2de1-7bff-57c6-8e71-9c27e9e76eaa")}catch{}})();export{k as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,n as PM_MUTATION_ACTION_CONTRACTS,C as _testOnlyHealthCommand,h as _testOnlySimilarity,H as _testOnlyValidateCommand,z as acknowledgeUnknownAuthorHistoryEvents,q as acknowledgeUnknownAuthorHistoryEventsFromTransport,v as classifyHistoryAuthorEvent,p as evaluateMutationGuard,_ as evaluateSimilarityGovernance,I as findDuplicateClusters,D as findSimilarItems,s as getMutationActionContract,E as inspectHistoryAuthorStream,y as inspectStaleInProgressItems,x as isMutationAction,a as jaccardSimilarity,m as listMutationActions,i as normalizeSimilarityText,j as parseUnknownAuthorHistoryEventCoordinates,u as prepareSimilarityText,G as projectValidateCounts,U as resolveUnknownAuthorAcknowledgmentSelector,T as runGc,B as runHealth,f as runReindex,r as runUpgrade,J as runValidate,R as scanHistoryAuthorAttribution,d as scanMutationSecrets,A as scanProvenanceResolverHealth,c as scanStaleInProgressItems,F as scanStorageIntegrity,b as scoreItemSimilarity,g as scorePreparedItemSimilarity,w as similarityAdvisoryWarnings,l as tokenizeSimilarityText};
|
|
2
2
|
//# sourceMappingURL=sdk-governance.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as ne,C as ie,D as se,E as oe,F as ae,G as pe,H as de,I as ce,J as le,K as he,L as fe,M as ge,N as ue,O as me,P as ye,Q as we,R as be,a as Ce,b as $e,c as Oe,d as Pe,e as Ne,f as Me,g as H,h as B,i as W,j,k as z,l as F,m as U,n as L,o as V,p as K,q,r as J,s as Z,t as Q,u as X,v as Y,w as ee,x as te,y as re,z as Ue}from"./focused-chunks/chunk-VRXJSGIT.js";import{c as O,d as P,e as N,f as M,g as v,h as k}from"./focused-chunks/chunk-73FIJONU.js";import{a as ve,b as He,c as Be,d as We,e as je,f as ze,g as Fe}from"./focused-chunks/chunk-MRWVJ3ZG.js";import"./focused-chunks/chunk-2VVP5RAA.js";import{$ as Ee,aa as _,ba as S,ca as Se,da as xe,ea as Ie,fa as De,ga as f,ha as Te}from"./focused-chunks/chunk-NL57J7BZ.js";import"./focused-chunks/chunk-XC2ZW3CJ.js";import{aa as b,la as $}from"./focused-chunks/chunk-ZG54B4XG.js";import{createHash as Re}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var A=1;function g(e){e?.throwIfAborted()}function l(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function u(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),a=e.edges(),s=t.list();return Object.freeze({version:A,fingerprint:Re("sha256").update(b({nodes:i,edges:a,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:a,kinds:s})}function _e(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!_e(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==A)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(i=>typeof i!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new _([]);for(let i of e.kinds)t.register(i);let r=new f(e.nodes,e.edges,t),n=u(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function c(e,t){l(e.name,"adapter name");let r=l(t.workspace,"workspace");g(t.signal);let n=await e.read({...t,workspace:r});return g(t.signal),n===null?null:y(n)}async function R(e,t){let r=l(t.workspace,"workspace"),n=y(t.snapshot).snapshot,i=await c(e,{workspace:r,signal:t.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function ke(e,t={}){let r=e.map(y),n=new Map;for(let s of r)for(let o of s.snapshot.kinds){let d=n.get(o.kind);if(d&&b(d)!==b(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new _([...n.values()].sort((s,o)=>s.kind.localeCompare(o.kind))),a=new f(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),i);return u(a,i,t)}var m=class{name;#e=new Map;constructor(t="memory"){this.name=l(t,"adapter name")}async read(t){g(t.signal);let r=this.#e.get(l(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(y(t.snapshot).snapshot))}async clear(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function x(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ae(e){let t=x(e.nodeCount,"nodeCount"),r=x(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let i=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!i||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<t;o+=1)yield`${a}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=r;o<t;o+=r)yield{source:`${a}-${n==="star"?0:o-r}`,target:`${a}-${o}`,kind:i}}}}}function h(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function I(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=S(),i=u(new f(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=u(new f(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];h(await c(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let o=await R(e,{workspace:r,snapshot:i});h(o.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),h((await R(e,{workspace:r,snapshot:i})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let w=!1;try{await e.replace({workspace:r,snapshot:i,expected_fingerprint:i.fingerprint})}catch{w=!0}return h(w,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),h(await c(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function Ge(e){return I(new m,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();import{createHash as D}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function gt(e,t){let r=T(t.migrationId,"migrationId"),n=T(t.author,"author"),i=Date.parse(t.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(i).toISOString(),s=k(e,void 0,t.registry),o=s.graph.nodes(),d=s.graph.edges().map(p=>{let E=D("sha256").update(JSON.stringify([r,p.kind,p.source,p.target,p.createdAt??null,p.author??null,p.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${E}`,relationshipId:`migration:${r}:${E}`,action:"add",edge:p,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),w=D("sha256").update(JSON.stringify({migrationId:r,nodes:o,events:d})).digest("hex"),C=new Set([...t.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),G=d.filter(p=>!C.has(p.eventId));return Object.freeze({migration_id:r,fingerprint:w,nodes:o,events:Object.freeze(G),edge_count:d.length,skipped_existing_count:d.length-G.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}(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]="b6d6f773-8336-5e0e-8dfb-d5729caa18d9")}catch{}})();export{ve as ACTIONABILITY_ORDERING_KINDS,Ee as BUILTIN_RELATIONSHIP_KINDS,ae as GRAPH_DURABLE_CACHE_MIN_ITEMS,oe as GRAPH_DURABLE_CACHE_VERSION,$ as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,A as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ce as RelationshipEventLog,$e as RelationshipEventStore,f as RelationshipGraph,_ as RelationshipKindRegistry,ee as WorkspaceGraphCache,Pe as analyzeGraphImpact,Ne as analyzeKnowledgeGraph,Oe as analyzeRelationshipExecution,se as analyzeRelationshipSchedule,k as assembleWorkspaceRelationshipGraph,Ge as assertMemoryRelationshipGraphAdapterConformance,De as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,Z as auditWorkspaceRelationshipGraph,Ue as buildRelationshipContext,Se as canonicalizeRelationshipKind,he as clearDurableGraphCache,He as collectBlockedByIds,We as collectBlockedByIdsFromCorpus,M as collectDanglingDependencyReferences,ze as collectDependencyBlockedIds,N as collectDuplicateDependencyRows,J as collectDuplicateRelationshipEdgeGroups,v as collectMissingDependencyTargetIds,X as collectNewOrderingCycleWarnings,K as collectOrderingCycles,Me as compareRelationshipSnapshots,Fe as computeActionabilityReport,ne as computeRelationshipCentrality,V as computeRelationshipDominators,Y as computeWorkspaceGraphFingerprint,Ae as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,Te as dependencyToRelationship,U as detectRelationshipCommunities,Q as diffRelationshipAuditSnapshots,pe as durableGraphCachePath,fe as durableGraphCacheStatus,z as enumerateRelationshipPaths,ke as federateRelationshipGraphSnapshots,L as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,F as forEachMatchedRelationshipEdge,q as formatDuplicateEdgeGroup,de as graphAuditBaselinePath,H as hierarchyAncestors,B as hierarchyDescendants,Be as indexBlockedByIds,Ie as isOrderingRelationshipKind,ue as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,O as normalizeDependencyGraphTarget,ce as openDurableGraphCache,W as orderingPredecessors,j as orderingSuccessors,we as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,le as persistDurableGraphResult,gt as planRelationshipEventBackfill,ye as planRelationshipRemediation,re as resetWorkspaceGraphCache,xe as resolveCanonicalRelationshipKind,je as resolveItemBlockers,P as resolveWorkspaceRelationshipKindRegistry,be as runGraph,me as saveGraphAuditBaseline,ge as shouldPersistDurableGraphCache,R as syncRelationshipGraphAdapter,te as workspaceGraphCache};
|
|
1
|
+
import{B as ne,C as ie,D as se,E as oe,F as ae,G as pe,H as de,I as ce,J as le,K as he,L as fe,M as ge,N as ue,O as me,P as ye,Q as we,R as be,a as Ce,b as $e,c as Oe,d as Pe,e as Ne,f as Me,g as H,h as B,i as W,j,k as z,l as F,m as U,n as L,o as V,p as K,q,r as J,s as Z,t as Q,u as X,v as Y,w as ee,x as te,y as re,z as Ue}from"./focused-chunks/chunk-CHIBMEZR.js";import{d as O,e as P,f as N,g as M,h as v,i as k}from"./focused-chunks/chunk-M6RPIXKC.js";import{a as ve,b as He,c as Be,d as We,e as je,f as ze,g as Fe}from"./focused-chunks/chunk-7UN6BHHO.js";import"./focused-chunks/chunk-FF4MNAYB.js";import{aa as Ee,ba as _,ca as S,da as Se,ea as xe,fa as Ie,ga as De,ha as f,ia as Te}from"./focused-chunks/chunk-2EXI2DKR.js";import"./focused-chunks/chunk-RIIN5V4N.js";import{aa as b,la as $}from"./focused-chunks/chunk-GHTN2ILR.js";import{createHash as Re}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var A=1;function g(e){e?.throwIfAborted()}function l(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function u(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),a=e.edges(),s=t.list();return Object.freeze({version:A,fingerprint:Re("sha256").update(b({nodes:i,edges:a,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:a,kinds:s})}function _e(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!_e(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==A)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(i=>typeof i!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new _([]);for(let i of e.kinds)t.register(i);let r=new f(e.nodes,e.edges,t),n=u(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function c(e,t){l(e.name,"adapter name");let r=l(t.workspace,"workspace");g(t.signal);let n=await e.read({...t,workspace:r});return g(t.signal),n===null?null:y(n)}async function R(e,t){let r=l(t.workspace,"workspace"),n=y(t.snapshot).snapshot,i=await c(e,{workspace:r,signal:t.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function ke(e,t={}){let r=e.map(y),n=new Map;for(let s of r)for(let o of s.snapshot.kinds){let d=n.get(o.kind);if(d&&b(d)!==b(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new _([...n.values()].sort((s,o)=>s.kind.localeCompare(o.kind))),a=new f(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),i);return u(a,i,t)}var m=class{name;#e=new Map;constructor(t="memory"){this.name=l(t,"adapter name")}async read(t){g(t.signal);let r=this.#e.get(l(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(y(t.snapshot).snapshot))}async clear(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function x(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ae(e){let t=x(e.nodeCount,"nodeCount"),r=x(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let i=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!i||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<t;o+=1)yield`${a}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=r;o<t;o+=r)yield{source:`${a}-${n==="star"?0:o-r}`,target:`${a}-${o}`,kind:i}}}}}function h(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function I(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=S(),i=u(new f(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=u(new f(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];h(await c(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let o=await R(e,{workspace:r,snapshot:i});h(o.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),h((await R(e,{workspace:r,snapshot:i})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let w=!1;try{await e.replace({workspace:r,snapshot:i,expected_fingerprint:i.fingerprint})}catch{w=!0}return h(w,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),h(await c(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function Ge(e){return I(new m,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();import{createHash as D}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function gt(e,t){let r=T(t.migrationId,"migrationId"),n=T(t.author,"author"),i=Date.parse(t.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(i).toISOString(),s=k(e,void 0,t.registry),o=s.graph.nodes(),d=s.graph.edges().map(p=>{let E=D("sha256").update(JSON.stringify([r,p.kind,p.source,p.target,p.createdAt??null,p.author??null,p.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${E}`,relationshipId:`migration:${r}:${E}`,action:"add",edge:p,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),w=D("sha256").update(JSON.stringify({migrationId:r,nodes:o,events:d})).digest("hex"),C=new Set([...t.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),G=d.filter(p=>!C.has(p.eventId));return Object.freeze({migration_id:r,fingerprint:w,nodes:o,events:Object.freeze(G),edge_count:d.length,skipped_existing_count:d.length-G.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}(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]="b6d6f773-8336-5e0e-8dfb-d5729caa18d9")}catch{}})();export{ve as ACTIONABILITY_ORDERING_KINDS,Ee as BUILTIN_RELATIONSHIP_KINDS,ae as GRAPH_DURABLE_CACHE_MIN_ITEMS,oe as GRAPH_DURABLE_CACHE_VERSION,$ as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,A as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ce as RelationshipEventLog,$e as RelationshipEventStore,f as RelationshipGraph,_ as RelationshipKindRegistry,ee as WorkspaceGraphCache,Pe as analyzeGraphImpact,Ne as analyzeKnowledgeGraph,Oe as analyzeRelationshipExecution,se as analyzeRelationshipSchedule,k as assembleWorkspaceRelationshipGraph,Ge as assertMemoryRelationshipGraphAdapterConformance,De as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,Z as auditWorkspaceRelationshipGraph,Ue as buildRelationshipContext,Se as canonicalizeRelationshipKind,he as clearDurableGraphCache,He as collectBlockedByIds,We as collectBlockedByIdsFromCorpus,M as collectDanglingDependencyReferences,ze as collectDependencyBlockedIds,N as collectDuplicateDependencyRows,J as collectDuplicateRelationshipEdgeGroups,v as collectMissingDependencyTargetIds,X as collectNewOrderingCycleWarnings,K as collectOrderingCycles,Me as compareRelationshipSnapshots,Fe as computeActionabilityReport,ne as computeRelationshipCentrality,V as computeRelationshipDominators,Y as computeWorkspaceGraphFingerprint,Ae as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,Te as dependencyToRelationship,U as detectRelationshipCommunities,Q as diffRelationshipAuditSnapshots,pe as durableGraphCachePath,fe as durableGraphCacheStatus,z as enumerateRelationshipPaths,ke as federateRelationshipGraphSnapshots,L as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,F as forEachMatchedRelationshipEdge,q as formatDuplicateEdgeGroup,de as graphAuditBaselinePath,H as hierarchyAncestors,B as hierarchyDescendants,Be as indexBlockedByIds,Ie as isOrderingRelationshipKind,ue as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,O as normalizeDependencyGraphTarget,ce as openDurableGraphCache,W as orderingPredecessors,j as orderingSuccessors,we as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,le as persistDurableGraphResult,gt as planRelationshipEventBackfill,ye as planRelationshipRemediation,re as resetWorkspaceGraphCache,xe as resolveCanonicalRelationshipKind,je as resolveItemBlockers,P as resolveWorkspaceRelationshipKindRegistry,be as runGraph,me as saveGraphAuditBaseline,ge as shouldPersistDurableGraphCache,R as syncRelationshipGraphAdapter,te as workspaceGraphCache};
|
|
2
2
|
//# sourceMappingURL=sdk-graph.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as b,b as M,c as E,d as m,e as R,f as y,g as D,h as A,l as S}from"./focused-chunks/chunk-JMVA4HKR.js";import{V as I,X as _,Z as c,_ as p,d as o,e as n,f as i,g as f,h as s,i as d,j as T,k as w,l,m as g,n as u,o as a,p as h}from"./focused-chunks/chunk-3CQECMKR.js";import"./focused-chunks/chunk-IW43E4XL.js";import"./focused-chunks/chunk-I4YM2I7S.js";import"./focused-chunks/chunk-M6RPIXKC.js";import"./focused-chunks/chunk-34SX654S.js";import"./focused-chunks/chunk-MXYSIQ56.js";import"./focused-chunks/chunk-DZGAHZZV.js";import"./focused-chunks/chunk-36FTZ2NT.js";import"./focused-chunks/chunk-FF4MNAYB.js";import"./focused-chunks/chunk-2EXI2DKR.js";import"./focused-chunks/chunk-RIIN5V4N.js";import"./focused-chunks/chunk-GHTN2ILR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="687855bf-7432-5691-a809-1f0406b5d8a8")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="00dc29ff-60e0-5755-b7f1-4f69e438e87f")}catch{}})();export{m as ITEM_LATEST_TIMESTAMP_FIELDS,E as ITEM_UNION_COLLECTION_FIELDS,D as MERGE_DRIVER_ARTIFACT_VALUES,n as PM_GITATTRIBUTES_END,o as PM_GITATTRIBUTES_START,f as PM_GITATTRIBUTES_V2_END,i as PM_GITATTRIBUTES_V2_START,l as auditMergeAttributeFence,g as auditMergeDriverConfiguration,T as buildMergeAttributePatterns,d as findGitWorkspaceRoot,h as installMergeFence,_ as listMergeReceipts,c as markMergeReceiptReconciled,b as mergeHistoryStreams,R as mergeItemDocuments,y as mergeJsonDocuments,M as mergeRelationshipEventStreams,u as refreshMergeAttributeFenceIfInstalled,s as resolveMergeInstallContext,w as resolveProjectMergeTypeFolders,A as runMergeDriver,a as runMergeInstall,p as runMergeReceiptReport,S as runMergeReconcile,I as summarizeMergeReceipt};
|
|
2
2
|
//# sourceMappingURL=sdk-merge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as ve,$a as mo,A as oe,Aa as
|
|
1
|
+
import{$ as ve,$a as mo,A as oe,Aa as c,B as te,Ba as b,C as re,Ca as y,D as ne,Da as g,E as fe,Ea as C,F as de,Fa as w,G as pe,Ga as I,H as se,Ha as qe,I as xe,Ia as ze,J as ae,Ja as Ge,K as me,Ka as He,L as ie,La as Je,M as le,Ma as Ke,N as ue,Na as Qe,O as ce,Oa as Ye,P as be,Pa as Ze,Q as ye,Qa as $e,R as ge,Ra as eo,S as Ce,Sa as oo,T as we,Ta as to,U as Ie,Ua as ro,V as Te,Va as no,W as he,Wa as fo,X as ke,Xa as po,Y as _e,Ya as so,Z as De,Za as xo,_ as Se,_a as ao,aa as Fe,ab as io,b as N,ba as Ee,bb as lo,c as V,ca as Pe,cb as uo,d as W,da as Oe,db as co,ea as Re,fa as Ue,ga as je,ha as Ae,i as r,ia as Be,ja as Le,k as X,ka as Me,l as q,la as Ne,m as z,ma as Ve,n as G,na as We,oa as Xe,pa as n,qa as f,ra as d,s as H,sa as p,t as J,ta as s,u as K,ua as x,v as Q,va as a,w as Y,wa as m,x as Z,xa as i,y as $,ya as l,z as ee,za as u}from"./focused-chunks/chunk-KSNJG4KI.js";import"./focused-chunks/chunk-RKWSCYYN.js";import"./focused-chunks/chunk-7UN6BHHO.js";import"./focused-chunks/chunk-34SX654S.js";import{E as M}from"./focused-chunks/chunk-MXYSIQ56.js";import"./focused-chunks/chunk-DZGAHZZV.js";import"./focused-chunks/chunk-36FTZ2NT.js";import{$a as L,Aa as P,Ua as O,Va as R,Wa as U,Xa as j,Za as A,_a as B,ha as E}from"./focused-chunks/chunk-FF4MNAYB.js";import"./focused-chunks/chunk-2EXI2DKR.js";import{l as T,m as h,n as k,o as _,p as D,q as S,r as v,s as F}from"./focused-chunks/chunk-RIIN5V4N.js";import"./focused-chunks/chunk-GHTN2ILR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();export{Z as BRIEF_LIST_FIELDS,ye as CONTEXT_EVALUATION_METRIC_NAMES,n as CONTEXT_OUTPUT_VALUES,Te as CONTEXT_PACKING_PROFILES,le as CONTEXT_RELEVANCE_SERVICE,me as CONTEXT_RELEVANCE_SIGNAL_NAMES,Ee as CONTEXT_SIGNAL_SET_VERSION,Fe as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Pe as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,je as ContextSignalStore,ke as ContextUsageValidationError,Ze as DEFAULT_CHILD_SAMPLE_LIMIT,Y as DEFAULT_COMPACT_LIST_FIELDS,j as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Be as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Ue as JsonFileContextSignalStoreAdapter,$ as LIST_COMMAND_DEFAULT_PROJECTIONS,K as LIST_SORT_FIELDS,Q as LIST_SORT_ORDER_VALUES,Ye as MAX_CHILD_PROJECTION_ITEMS,qe as NEXT_OUTPUT_VALUES,F as QUERY_CURSOR_CONTRACT,ne as _testOnly,de as _testOnlyAggregateCommand,oo as _testOnlyGetCommand,Ge as _testOnlyNextCommand,lo as _testOnlySearchCommand,A as acquireItemMetadataDerivedIndexLock,w as applyContextTagProjection,ee as applyFilterValueEcho,b as buildChildrenByParent,to as buildCompactSearchFilterSummary,oe as buildContentFilterEcho,Re as buildContextSignalSnapshot,te as buildGovernanceMissingFilterEcho,$e as buildItemChildrenRollup,ie as buildItemContextRelevanceCandidates,ro as buildVerboseSearchFilters,Le as buildWorkspaceMemorySnapshot,io as classifyImplicitSemanticFallbackReason,mo as collectErrorCauseCodes,m as collectSubtreeIds,i as compareCriticalItems,h as createQueryFingerprint,no as createSearchCursorFingerprint,D as decodeQueryCursor,_ as decodeQueryCursorState,ue as defaultScoreContextCandidates,k as encodeQueryCursor,ge as evaluateContextRanking,g as mergeSortedWarnings,he as packContextCandidates,l as packRankedContextItems,v as paginateQueryRows,x as parseContextDepth,f as parseContextFocusFields,a as parseContextSections,Oe as parseContextSignalSnapshot,N as parseIntegerLimit,M as parseLimit,X as parseMultiValueFilter,V as parsePriority,G as parsePriorityFilterSet,q as parseStringFilterSet,W as parseType,z as parseTypeFilterSet,He as partitionDecisionEntries,d as projectContextFocusRows,O as queryItemMetadataIndex,R as queryLinkedFileMetadataIndex,U as querySimilarItemMetadataIndex,ve as readContextUsageAffinity,E as readHistoryEntries,B as readItemMetadataDerivedIndexState,Ae as readWorkspaceContextSignals,Me as readWorkspaceMemory,_e as recordContextUsageServing,De as recordContextUsageTouch,Se as recordContextUsageTouches,L as refreshItemMetadataDerivedIndex,se as renderCalendarMarkdown,xe as renderCalendarToon,C as renderContextMarkdown,Ke as renderNextMarkdown,pe as resolveCalendarOutputFormat,J as resolveContentFieldFilters,p as resolveContextOutputFormat,s as resolveContextTokenBudget,xo as resolveHybridSemanticWeight,H as resolveMissingMetadataFilters,ze as resolveNextOutputFormat,S as resolveQueryCursorStart,po as resolveSearchMaxResults,fo as resolveSearchPage,so as resolveSearchScoreThreshold,ao as resolveSearchTuning,r as runActivity,fe as runAggregate,ae as runCalendar,I as runContext,Ie as runContextEvaluationCorpus,Ce as runContextEvaluationScenario,co as runDuplicates,eo as runGet,Qe as runHistory,re as runList,Je as runNext,uo as runSearch,ce as scoreContextCandidates,be as scoreContextCandidatesWithActiveExtensions,We as searchWorkspaceMemory,Xe as searchWorkspaceMemoryReadResult,T as selectCursorSemanticOptions,Ve as selectWorkspaceMemory,Ne as selectWorkspaceMemoryRollups,we as summarizeContextEvaluationReports,y as toContextFocusItem,u as toContextPackingSummary,c as toContextRankingSummary,P as verifyHistoryChain};
|
|
2
2
|
//# sourceMappingURL=sdk-query.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as
|
|
1
|
+
import{$a as tb,$b as tc,Aa as Pa,Ab as Ub,Ac as Uc,Ba as Qa,Bb as Vb,Bc as Vc,Ca as Ra,Cb as Wb,Cc as Wc,Da as Sa,Db as Xb,Ea as Ta,Eb as Yb,Fa as Ua,Fb as Zb,G as Ba,Ga as Va,Gb as _b,H as Ca,Ha as Wa,Hb as $b,I as Da,Ia as Xa,Ib as ac,Ja as Ya,Jb as bc,Ka as Za,Kb as cc,La as _a,Lb as dc,Ma as $a,Mb as ec,Na as ab,Nb as fc,Oa as bb,Ob as gc,Pa as cb,Pb as hc,Qa as db,Qb as ic,Ra as eb,Rb as jc,Sa as fb,Sb as kc,Ta as gb,Tb as lc,Ua as hb,Ub as mc,Va as ib,Vb as nc,Wa as jb,Wb as oc,Xa as kb,Xb as pc,Ya as lb,Yb as qc,Za as rb,Zb as rc,_a as sb,_b as sc,a as aa,ab as ub,ac as uc,b as ba,bb as vb,bc as vc,c as ca,cb as wb,cc as wc,db as xb,dc as xc,eb as yb,ec as yc,fb as zb,fc as zc,ga as Ga,gb as Ab,gc as Ac,ha as Ha,hb as Bb,hc as Bc,ia as Ia,ib as Cb,ic as Cc,ja as Ja,jb as Db,jc as Dc,kb as Eb,kc as Ec,lb as Fb,lc as Fc,mb as Gb,mc as Gc,n as ha,nb as Hb,nc as Hc,o as ia,ob as Ib,oc as Ic,pb as Jb,pc as Jc,qb as Kb,qc as Kc,rb as Lb,rc as Lc,sb as Mb,sc as Mc,tb as Nb,tc as Nc,ub as Ob,uc as Oc,vb as Pb,vc as Pc,w as za,wb as Qb,wc as Qc,xa as Ma,xb as Rb,xc as Rc,ya as Na,yb as Sb,yc as Sc,za as Oa,zb as Tb,zc as Tc}from"./chunks/chunk-EBO7OUUE.js";import"./chunks/chunk-S4EITGLA.js";import{E as Fa,f as ka,n as Ea}from"./chunks/chunk-JZSNADRR.js";import{$ as Aa,Ac as pb,Bc as qb,kc as Ka,lc as La,n as ta,o as ua,p as va,r as wa,s as xa,t as ya,xc as mb,yc as nb,zc as ob}from"./chunks/chunk-2QYH4QMI.js";import{c as da,d as ea,f as fa,g as ga}from"./chunks/chunk-ETML5C6H.js";import{$ as la,Ma as pa,_ as ja,aa as ma,ba as na,bb as qa,ca as oa,cb as ra,gb as sa}from"./chunks/chunk-TIGKWVLA.js";import{$c as A,$g as X,B as e,D as f,Fa as p,Gf as O,Jg as T,La as q,Na as r,P as g,Pf as P,Q as h,Qa as s,Qf as Q,Ra as t,Rf as R,Ta as u,Uc as y,Wc as z,Wh as Y,Xf as S,Xh as Z,Yg as U,Yh as _,Zg as V,_g as W,_h as $,ad as B,bd as C,c as a,ca as i,cd as D,da as j,dd as E,e as b,ea as k,ed as F,f as c,fd as G,g as d,hd as H,ia as l,jd as I,ka as m,kd as J,la as n,ma as o,md as K,nd as L,oc as v,pf as M,qf as N,xc as w,zc as x}from"./chunks/chunk-JUDU4RO4.js";export{A as BASELINE_ITEM_FORMAT_VERSION,i as BUILTIN_ITEM_TYPE_VALUES,o as CONFIDENCE_TEXT_VALUES,pa as CONTEXT_OUTPUT_VALUES,B as CURRENT_ITEM_FORMAT_VERSION,ta as DEFAULT_TERMINAL_TRANSITION_POLICY,l as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,n as ISSUE_SEVERITY_VALUES,j as ITEM_TYPE_VALUES,ra as NEXT_OUTPUT_VALUES,aa as PM_CLI_EXPECTED_ERROR_NAME,ea as PM_GITIGNORE_END,da as PM_GITIGNORE_START,f as PmCliError,rb as PmClient,m as RISK_VALUES,ha as SEARCH_EXTENSION_FLAG_DEFINITIONS,k as STATUS_VALUES,O as acquireLock,xb as aggregate,Wc as analyzeSdkActionCoverage,Jb as append,N as appendHistoryEntry,wa as applyTerminalOrderingPolicy,L as canonicalDocument,rc as claim,sc as claimNext,E as classifyItemFormatVersion,ia as clearWorkspaceContractsCache,qc as close,xa as closeItem,Ac as closeTask,Ab as comments,gb as commitImportedItem,Lb as config,sb as context,uc as copy,oc as create,M as createHistoryEntry,ba as createPmCliExpectedError,vc as deleteItem,Hb as deps,Gb as docs,zb as duplicates,C as effectiveItemFormatVersion,fb as emptyImportedDocument,ga as ensurePmGitignore,eb as ensureTrackerInitialized,Bc as extension,Dc as extensionActivate,Ec as extensionDeactivate,Cc as extensionList,Db as files,Eb as filesDiscover,Fb as filesLookup,xc as focus,ic as gc,R as generateItemId,vb as get,v as getActiveExtensionRegistrations,Sc as getContracts,u as getHistoryPath,t as getItemPath,fa as getPmGitignoreBlock,s as getSettingsPath,Rc as getWorkspaceContracts,Ib as graph,hc as health,mc as historyCompact,nc as historyCompactBulk,jc as historyRedact,kc as historyRepair,lc as historyRepairAll,Kb as init,ca as isPmCliExpectedError,H as isTerminalStatus,h as isTimestampLiteral,Y as jaccardSimilarity,Cb as learnings,tb as list,W as listAllItemMetadata,X as listAllItemMetadataLight,Ga as loadCreateTemplateOptions,U as locateItem,wb as next,D as normalizeItemFormatVersion,Q as normalizeItemId,I as normalizeItemMetadata,P as normalizeRawItemId,Z as normalizeSimilarityText,G as normalizeStatusInput,Bb as notes,g as nowIso,Oc as packageActivate,Nc as packageCatalog,Pc as packageDeactivate,Lc as packageDescribe,Jc as packageDoctor,Hc as packageInstall,Fc as packageLifecycle,Gc as packageList,Kc as packageManage,Mc as packageReload,Ic as packageUninstall,S as parseTags,a as pathExists,zc as pauseTask,bc as profile,ec as profileApply,fc as profileLint,cc as profileList,dc as profileShow,Na as readBooleanOption,Oa as readCsvListOption,b as readFileIfExists,V as readLocatedItem,Tc as readRequiredString,T as readSettings,Ma as readStringOption,tc as release,d as removeFileIfExists,ma as renderCalendarMarkdown,na as renderCalendarToon,jb as renderGuideMarkdown,va as requireTerminalReason,la as resolveCalendarOutputFormat,hb as resolveGuideOutputFormat,q as resolveImplicitPmRoot,p as resolveItemTypeRegistry,r as resolvePmRoot,z as resolveRuntimeFieldRegistry,y as resolveRuntimeStatusRegistry,ua as resolveTerminalReason,wc as restore,Vc as runAction,x as runActiveOnReadHooks,w as runActiveOnWriteHooks,ka as runAggregate,oa as runCalendar,ya as runClose,kb as runCompletion,qa as runContext,Ba as runCopy,Ca as runDelete,La as runDuplicates,Da as runFocus,Ea as runGet,ib as runGuide,ja as runList,sa as runNext,lb as runReindex,za as runRestore,Fa as runSearch,Ka as runStats,Ia as runTemplatesList,Ha as runTemplatesSave,Ja as runTemplatesShow,mb as runTestRunsList,ob as runTestRunsLogs,qb as runTestRunsResume,nb as runTestRunsStatus,pb as runTestRunsStop,Aa as runUpdate,Uc as runWithActiveExtensions,F as scanItemFormatVersions,Mb as schema,Tb as schemaAddField,Rb as schemaAddStatus,Pb as schemaAddType,Xb as schemaApplyPreset,Yb as schemaInferTypes,Nb as schemaList,Vb as schemaListFields,$b as schemaRemapStatus,Ub as schemaRemoveField,Sb as schemaRemoveStatus,Qb as schemaRemoveType,_b as schemaRenameField,Zb as schemaRenameType,Ob as schemaShow,Wb as schemaShowField,ac as schemaShowStatus,$ as scoreItemSimilarity,ub as search,db as selectImportAuthor,K as serializeItemDocument,J as splitFrontMatter,yc as startTask,yb as stats,Qa as toEstimatedMinutesValue,Va as toImportBoolean,Za as toImportConfidence,Ua as toImportInteger,bb as toImportLinkedDocs,ab as toImportLinkedFiles,cb as toImportLinkedTests,$a as toImportLogEntries,_a as toImportNormalizedEnum,Ya as toImportNumberMap,Ra as toImportPriority,Ta as toImportStatus,Wa as toImportStringList,Xa as toImportStringMap,Sa as toImportTags,Pa as toNonEmptyImportString,_ as tokenizeSimilarityText,pc as update,Qc as upgrade,gc as validate,c as writeFileAtomic};
|
|
2
2
|
//# sourceMappingURL=sdk-runtime.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-
|
|
1
|
+
import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-TRWXF476.js";import"./chunks/chunk-EBO7OUUE.js";import"./chunks/chunk-S4EITGLA.js";import"./chunks/chunk-JZSNADRR.js";import"./chunks/chunk-2QYH4QMI.js";import{o as a,ya as b}from"./chunks/chunk-ETML5C6H.js";import"./chunks/chunk-TIGKWVLA.js";import"./chunks/chunk-JUDU4RO4.js";export{e as activateExtensionForTest,M as assertExtensionBlueprint,L as assertExtensionCapabilityUsage,t as assertExtensionDeactivated,P as assertExtensionManifestCompatible,O as assertExtensionManifestMatchesBlueprint,Q as assertExtensionPreflight,u as assertPackageManifest,N as assertProjectProfile,v as assertRegisteredCommandContract,F as assertRegisteredCommandOverride,B as assertRegisteredExporter,w as assertRegisteredFlags,x as assertRegisteredHook,A as assertRegisteredImporter,C as assertRegisteredItemField,D as assertRegisteredItemType,K as assertRegisteredMigration,G as assertRegisteredParserOverride,H as assertRegisteredPreflightOverride,E as assertRegisteredProfile,I as assertRegisteredRendererOverride,y as assertRegisteredSearchProvider,J as assertRegisteredServiceOverride,z as assertRegisteredVectorStoreAdapter,R as createExtensionTestHarness,f as deactivateExtensionForTest,a as describeExtensionActivation,c as describeExtensionBlueprint,d as lintExtensionBlueprint,b as renderExtensionSurfaceMarkdown,g as runRegisteredCommandForTest,l as runRegisteredCommandOverrideForTest,s as runRegisteredExporterForTest,i as runRegisteredHookForTest,r as runRegisteredImporterForTest,q as runRegisteredMigrationForTest,h as runRegisteredMutationGuardForTest,j as runRegisteredParserOverrideForTest,k as runRegisteredPreflightOverrideForTest,m as runRegisteredRendererOverrideForTest,o as runRegisteredSearchProviderForTest,n as runRegisteredServiceOverrideForTest,p as runRegisteredVectorStoreAdapterForTest};
|
|
2
2
|
//# sourceMappingURL=sdk-testing.js.map
|