@ansible-flow/core 0.85.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ai/describe.js +4 -3
- package/dist/ai/handlers.js +17 -16
- package/dist/ai/handlers.js.map +1 -1
- package/dist/ai/ops.js +5 -4
- package/dist/ai/scenarios.js +9 -7
- package/dist/awx/import.js +6 -5
- package/dist/catalog/draft.d.ts +2 -0
- package/dist/catalog/draft.js +23 -4
- package/dist/catalog/draft.js.map +2 -2
- package/dist/chunks/{chunk-BXHI5EQM.js → chunk-2DT5DOSO.js} +43 -1
- package/dist/chunks/chunk-2DT5DOSO.js.map +7 -0
- package/dist/chunks/{chunk-CXVJWFGT.js → chunk-2MJKBPGG.js} +2 -2
- package/dist/chunks/{chunk-JTWR3TGG.js → chunk-2P3JEHLH.js} +4 -4
- package/dist/chunks/{chunk-6M3OG3E4.js → chunk-3Z4WABFK.js} +6 -6
- package/dist/chunks/{chunk-ZAYNYPCX.js → chunk-ARA3VJR2.js} +2 -2
- package/dist/chunks/{chunk-2HMLC2AO.js → chunk-BNMW6KWK.js} +6 -6
- package/dist/chunks/{chunk-CM23ODBB.js → chunk-DL4LYODQ.js} +2 -2
- package/dist/chunks/chunk-FIKPXL6E.js +23 -0
- package/dist/chunks/chunk-FIKPXL6E.js.map +7 -0
- package/dist/chunks/{chunk-ABYJBONR.js → chunk-FMCBTYUM.js} +3 -3
- package/dist/chunks/{chunk-J7KCGVHU.js → chunk-HPRG2672.js} +2 -2
- package/dist/chunks/{chunk-V2SPY2EI.js → chunk-IXW7A4M7.js} +2 -2
- package/dist/chunks/{chunk-22D2NC2L.js → chunk-IZJPLWDY.js} +5 -5
- package/dist/chunks/{chunk-MZ6IJWB2.js → chunk-KZALUEFT.js} +2 -2
- package/dist/chunks/{chunk-XOPGOWNQ.js → chunk-O5Y3AZ4X.js} +1 -1
- package/dist/chunks/chunk-O5Y3AZ4X.js.map +7 -0
- package/dist/chunks/{chunk-2QQC4IZ7.js → chunk-PNLY5IWM.js} +8 -8
- package/dist/chunks/chunk-PNLY5IWM.js.map +7 -0
- package/dist/chunks/{chunk-T5UB4MBB.js → chunk-TOTSB4HG.js} +41 -1
- package/dist/chunks/chunk-TOTSB4HG.js.map +7 -0
- package/dist/chunks/{chunk-7GLSXIZ3.js → chunk-W2CSOAIB.js} +2 -2
- package/dist/chunks/{chunk-UXIXXEIW.js → chunk-WSARMPYU.js} +2 -2
- package/dist/engine/bypass.js +4 -2
- package/dist/engine/engines.js +6 -4
- package/dist/engine/files.js +6 -4
- package/dist/engine/optionA.js +5 -3
- package/dist/engine/partial.js +3 -1
- package/dist/engine/partial.js.map +1 -1
- package/dist/engine/preview.js +6 -4
- package/dist/engine/preview.js.map +1 -1
- package/dist/engine/writePlan.js +9 -8
- package/dist/flow/commands.d.ts +10 -0
- package/dist/flow/commands.js +3 -1
- package/dist/flow/facts.d.ts +6 -0
- package/dist/flow/facts.js +13 -0
- package/dist/flow/facts.js.map +7 -0
- package/dist/flow/merge.d.ts +27 -0
- package/dist/flow/merge.js +422 -0
- package/dist/flow/merge.js.map +7 -0
- package/dist/flow/mergeText.d.ts +3 -0
- package/dist/flow/mergeText.js +71 -0
- package/dist/flow/mergeText.js.map +7 -0
- package/dist/flow/save.js +3 -1
- package/dist/flow/save.js.map +1 -1
- package/dist/flow/validate.js +3 -2
- package/dist/flow/valueText.d.ts +6 -0
- package/dist/flow/valueText.js +56 -0
- package/dist/flow/valueText.js.map +7 -0
- package/dist/import/outline.js +6 -5
- package/dist/import/playbook.js +5 -4
- package/dist/lens/caption.js +1 -1
- package/dist/lens/data.js +3 -1
- package/dist/lens/index.js +6 -4
- package/dist/lens/index.js.map +1 -1
- package/dist/lens/types.d.ts +2 -0
- package/dist/lens/types.js +1 -1
- package/dist/messageCheck.js +4 -0
- package/dist/messageCheck.js.map +2 -2
- package/dist/protocol.d.ts +45 -0
- package/dist/scenario/live.js +7 -5
- package/dist/scenario/simulate.js +6 -4
- package/dist/view/flowFacts.js +9 -8
- package/dist/view/flowFacts.js.map +1 -1
- package/dist/view/jinjaComplete.js +3 -3
- package/dist/view/serverChange.d.ts +23 -0
- package/dist/view/serverChange.js +48 -0
- package/dist/view/serverChange.js.map +7 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-2QQC4IZ7.js.map +0 -7
- package/dist/chunks/chunk-BXHI5EQM.js.map +0 -7
- package/dist/chunks/chunk-T5UB4MBB.js.map +0 -7
- package/dist/chunks/chunk-XOPGOWNQ.js.map +0 -7
- /package/dist/chunks/{chunk-CXVJWFGT.js.map → chunk-2MJKBPGG.js.map} +0 -0
- /package/dist/chunks/{chunk-JTWR3TGG.js.map → chunk-2P3JEHLH.js.map} +0 -0
- /package/dist/chunks/{chunk-6M3OG3E4.js.map → chunk-3Z4WABFK.js.map} +0 -0
- /package/dist/chunks/{chunk-ZAYNYPCX.js.map → chunk-ARA3VJR2.js.map} +0 -0
- /package/dist/chunks/{chunk-2HMLC2AO.js.map → chunk-BNMW6KWK.js.map} +0 -0
- /package/dist/chunks/{chunk-CM23ODBB.js.map → chunk-DL4LYODQ.js.map} +0 -0
- /package/dist/chunks/{chunk-ABYJBONR.js.map → chunk-FMCBTYUM.js.map} +0 -0
- /package/dist/chunks/{chunk-J7KCGVHU.js.map → chunk-HPRG2672.js.map} +0 -0
- /package/dist/chunks/{chunk-V2SPY2EI.js.map → chunk-IXW7A4M7.js.map} +0 -0
- /package/dist/chunks/{chunk-22D2NC2L.js.map → chunk-IZJPLWDY.js.map} +0 -0
- /package/dist/chunks/{chunk-MZ6IJWB2.js.map → chunk-KZALUEFT.js.map} +0 -0
- /package/dist/chunks/{chunk-7GLSXIZ3.js.map → chunk-W2CSOAIB.js.map} +0 -0
- /package/dist/chunks/{chunk-UXIXXEIW.js.map → chunk-WSARMPYU.js.map} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../src/core/lens/types.ts"],
|
|
4
|
-
"sourcesContent": ["// Lenses (D-18, 04 \u00A77, M8): one category of facts across the whole canvas. A lens fills the node\n// chips (two at most, D-19), may label wires, and adds a side panel with findings. Pure data: the\n// host gathers facts (inventory, catalog, run history), the webview computes the view.\nimport type { FlowCommand } from '../flow/commands';\nimport type { FlowDocument, NodeType, Position, Ulid } from '../flow/types';\n\nexport type LensId = 'inventory' | 'data' | 'code' | 'access' | 'timing' | 'changes';\n\n/** Each lens with what it shows, in a newcomer's words (AFD-71: its tooltip). */\nexport const LENSES: readonly { id: LensId; label: string; hint: string }[] = [\n {\n id: 'inventory',\n label: 'Inventory',\n hint: 'Which hosts each step runs on, counted in your inventory',\n },\n {\n id: 'data',\n label: 'Data',\n hint: 'What each step reads and sets, with dotted wires from where each input comes',\n },\n {\n id: 'code',\n label: 'Code',\n hint: 'What each step runs (module, role or playbook) and whether your environment has it',\n },\n {\n id: 'access',\n label: 'Access',\n hint: 'Who each step acts as: credential, user, become, vaulted variables',\n },\n {\n id: 'timing',\n label: 'Timing',\n hint: 'Batches, timeouts and measured durations, against the maintenance window',\n },\n {\n id: 'changes',\n label: 'Changes',\n hint: 'What changed since another version of the flow: HEAD, a branch or a commit',\n },\n];\n\nexport interface LensChip {\n text: string;\n title?: string;\n tone?: 'warn' | 'muted';\n}\n\n/** A side panel row; hovering it highlights `nodes` and dims the rest (04 \u00A77). */\nexport interface LensItem {\n key: string;\n label: string;\n value?: string;\n detail?: string;\n nodes: Ulid[];\n tone?: 'warn' | 'muted';\n}\n\nexport interface LensSection {\n title: string;\n items: LensItem[];\n empty?: string;\n}\n\n/** A one-edit fix (a canvas command), or a jump to the node's properties. */\nexport type FindingFix =\n | { label: string; command: FlowCommand }\n | { label: string; properties: Ulid };\n\nexport interface LensFinding {\n /** Stable across documents (`inventory:broad-target:<node>`), the key of `finding_accepted`. */\n id: string;\n lens: LensId;\n severity: 'warning' | 'info';\n title: string;\n detail: string;\n /** The node an acceptance is attached to (deleted with it). */\n node?: Ulid;\n nodes: Ulid[];\n fixes: FindingFix[];\n accepted?: { reason: string; by?: string };\n /**\n * AFD-106 (round 3: R10): Accept with Reason comes before the fixes. Keeping become needs a\n * reason; the participant kept it and recorded none.\n */\n acceptFirst?: boolean;\n}\n\n/** Data lens (decision 14): derived from `from:` references, never stored as edges. */\nexport interface DataWire {\n id: string;\n from: Ulid;\n to: Ulid;\n label: string;\n title: string;\n}\n\n/** A node of the compared version that is gone (AFD-57): drawn as a ghost on its level. */\nexport interface GhostNode {\n id: Ulid;\n title: string;\n type: NodeType;\n level: string;\n position?: Position;\n}\n\nexport interface LensView {\n lens: LensId;\n /** Changes lens: removed nodes, drawn where they stood. */\n ghosts?: GhostNode[];\n /** Changes lens (AFD-66): annotations outlined as added or changed. */\n annotations?: Record<Ulid, 'added' | 'changed'>;\n chips: Record<Ulid, LensChip[]>;\n /** Wire labels by edge id (Inventory: hosts that took the wire in the last run). */\n wires?: Record<string, string>;\n dataWires?: DataWire[];\n stats: { label: string; value: string }[];\n sections: LensSection[];\n findings: LensFinding[];\n /** What the lens cannot show yet and why (no inventory read, no catalog, no runs). */\n notes: string[];\n}\n\n// ---- Facts the host gathers -------------------------------------------------------------------\n\n/** One host pattern resolved against the inventory (probe `inventory_lens`). */\nexport interface PatternFacts {\n count: number;\n /** Hosts the flow targets do not include. */\n outside: number;\n /** A few of those hosts, for the finding text. */\n sample: string[];\n}\n\n/** Inventory variables that decide access, aggregated over a pattern's hosts. */\nexport interface AccessVar {\n /** Value \u2192 host count; booleans as `true`/`false`. Vaulted values are never read. */\n values: Record<string, number>;\n /** Where the values come from (`group_vars/all.yml:2`); booleans carry no origin. */\n origins: string[];\n vault?: boolean;\n}\n\nexport interface InventoryFacts {\n sources: string[];\n /** Sources that are inventory plugins or scripts (read on demand, with a timeout). */\n dynamic: string[];\n total: number;\n /** The flow targets this was resolved for (the targets input as last entered). */\n targets: string;\n patterns: Record<string, PatternFacts>;\n /** Hosts in any pattern, and the groups they belong to. */\n scope: { count: number; groups: Record<string, number> };\n prod_groups: string[];\n /** Per pattern: ansible_user, ansible_become, ansible_become_user, ansible_connection. */\n access: Record<string, Record<string, AccessVar>>;\n /** Vaulted variable names of the hosts in scope, with their origin (never the value). */\n vaulted: Record<string, string>;\n}\n\nexport interface InventoryState {\n state: 'idle' | 'loading' | 'ready' | 'error';\n facts?: InventoryFacts;\n error?: string;\n /** The targets pattern the user entered (remembered with the run inputs). */\n targets?: string;\n inventory?: string;\n}\n\nexport interface CodeNodeFacts {\n kind: 'module' | 'role' | 'playbook';\n ref: string;\n fqcn?: string;\n collection?: string;\n version?: string;\n state: 'ok' | 'not-in-ee' | 'removed' | 'deprecated' | 'unknown';\n why?: string;\n /** Playbook bindings: the `hosts:` of the imported plays. */\n hosts?: string[];\n}\n\nexport interface CodeFacts {\n /** False until a catalog of the environment exists (opening a flow never starts the probe). */\n ready: boolean;\n environment: string;\n /** Installed collection \u2192 version. */\n collections: Record<string, string>;\n /** `collections/requirements.yml` pins, collection \u2192 version spec. */\n requirements?: { path: string; pins: Record<string, string> };\n nodes: Record<Ulid, CodeNodeFacts>;\n}\n\nexport interface NodeTiming {\n runs: number;\n /** Seconds. */\n avg: number;\n p95: number;\n last: number;\n}\n\n/** Local run history (decision M8-2): the last 20 runs started from VS Code. */\nexport interface TimingFacts {\n runs: number;\n nodes: Record<Ulid, NodeTiming>;\n}\n\n/** A version to compare with (AFD-57): HEAD, a branch, or a commit that touched the flow. */\nexport interface CompareRef {\n ref: string;\n label: string;\n}\n\n/** The Changes lens's base: the flow as the chosen version has it. */\nexport interface CompareFacts {\n state: 'loading' | 'ready' | 'error';\n ref: string;\n label: string;\n refs: CompareRef[];\n base?: FlowDocument;\n error?: string;\n}\n\nexport interface LensFacts {\n inventory?: InventoryState;\n code?: CodeFacts;\n timing?: TimingFacts;\n compare?: CompareFacts;\n}\n"],
|
|
5
|
-
"mappings": ";AASO,IAAM,SAAiE;AAAA,EAC5E;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|