kenaz 0.0.0-stage → 0.3.2
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/bin/kenaz.js +3 -0
- package/core/.agents/skills/remotion-best-practices/SKILL.md +61 -0
- package/core/.agents/skills/remotion-best-practices/rules/3d.md +86 -0
- package/core/.agents/skills/remotion-best-practices/rules/animations.md +27 -0
- package/core/.agents/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/core/.agents/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/core/.agents/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +103 -0
- package/core/.agents/skills/remotion-best-practices/rules/assets.md +78 -0
- package/core/.agents/skills/remotion-best-practices/rules/audio-visualization.md +198 -0
- package/core/.agents/skills/remotion-best-practices/rules/audio.md +169 -0
- package/core/.agents/skills/remotion-best-practices/rules/calculate-metadata.md +134 -0
- package/core/.agents/skills/remotion-best-practices/rules/can-decode.md +81 -0
- package/core/.agents/skills/remotion-best-practices/rules/charts.md +120 -0
- package/core/.agents/skills/remotion-best-practices/rules/compositions.md +154 -0
- package/core/.agents/skills/remotion-best-practices/rules/display-captions.md +184 -0
- package/core/.agents/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/core/.agents/skills/remotion-best-practices/rules/ffmpeg.md +38 -0
- package/core/.agents/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/core/.agents/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/core/.agents/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/core/.agents/skills/remotion-best-practices/rules/get-video-duration.md +60 -0
- package/core/.agents/skills/remotion-best-practices/rules/gifs.md +141 -0
- package/core/.agents/skills/remotion-best-practices/rules/images.md +134 -0
- package/core/.agents/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/core/.agents/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/core/.agents/skills/remotion-best-practices/rules/lottie.md +70 -0
- package/core/.agents/skills/remotion-best-practices/rules/maps.md +412 -0
- package/core/.agents/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/core/.agents/skills/remotion-best-practices/rules/measuring-text.md +140 -0
- package/core/.agents/skills/remotion-best-practices/rules/parameters.md +109 -0
- package/core/.agents/skills/remotion-best-practices/rules/sequencing.md +118 -0
- package/core/.agents/skills/remotion-best-practices/rules/sfx.md +30 -0
- package/core/.agents/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/core/.agents/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/core/.agents/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/core/.agents/skills/remotion-best-practices/rules/timing.md +179 -0
- package/core/.agents/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/core/.agents/skills/remotion-best-practices/rules/transitions.md +197 -0
- package/core/.agents/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/core/.agents/skills/remotion-best-practices/rules/trimming.md +51 -0
- package/core/.agents/skills/remotion-best-practices/rules/videos.md +171 -0
- package/core/.agents/skills/remotion-best-practices/rules/voiceover.md +99 -0
- package/core/.agents/skills/supabase-postgres-best-practices/AGENTS.md +90 -0
- package/core/.agents/skills/supabase-postgres-best-practices/CLAUDE.md +1 -0
- package/core/.agents/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/query-index-types.md +45 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
- package/core/.agents/skills/supabase-postgres-best-practices/references/security-rls-performance.md +57 -0
- package/core/.agents/skills/typesafe-ai/LICENSE +21 -0
- package/core/.agents/skills/typesafe-ai/SKILL.md +149 -0
- package/core/.agents/skills/vercel-react-best-practices/AGENTS.md +2934 -0
- package/core/.agents/skills/vercel-react-best-practices/SKILL.md +136 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/core/.agents/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/core/.claude/agents/pcb-reviewer.md +146 -0
- package/core/.claude/commands/Amelia.md +5 -0
- package/core/.claude/commands/Ansuz.md +38 -0
- package/core/.claude/commands/Huginn.md +25 -0
- package/core/.claude/commands/agent-worker.md +168 -0
- package/core/.claude/commands/architect.md +24 -0
- package/core/.claude/commands/archive.md +24 -0
- package/core/.claude/commands/canary.md +17 -0
- package/core/.claude/commands/incident.md +15 -0
- package/core/.claude/commands/init.md +112 -0
- package/core/.claude/commands/legacy_dev.md +18 -0
- package/core/.claude/commands/product-review.md +131 -0
- package/core/.claude/commands/review.md +14 -0
- package/core/.claude/commands/security.md +15 -0
- package/core/.claude/commands/spec.md +22 -0
- package/core/.claude/commands/strategy.md +141 -0
- package/core/.claude/commands/sunny.md +1 -0
- package/core/.claude/commands//347/224/242/345/223/201.md +15 -0
- package/core/.claude/commands//347/224/242/345/223/201/346/252/242/350/246/226.md +129 -0
- package/core/.claude/commands//350/250/255/350/250/210.md +14 -0
- package/core/.claude/commands//350/251/225/344/274/260.md +16 -0
- package/core/.claude/commands//351/200/262/345/272/246.md +15 -0
- package/core/.claude/hooks/__tests__/substrate.test.js +122 -0
- package/core/.claude/hooks/__tests__/task-1866-cli-guard.test.js +193 -0
- package/core/.claude/hooks/__tests__/task-1977-dedupe-guard.test.js +125 -0
- package/core/.claude/hooks/__tests__/task-2087-mark-landed-idempotent.test.js +128 -0
- package/core/.claude/hooks/__tests__/task-2253-null-tip-marker-reuse.test.js +84 -0
- package/core/.claude/hooks/__tests__/task-2381-project-guard-walkup.test.js +53 -0
- package/core/.claude/hooks/_ansuz-conversation.js +183 -0
- package/core/.claude/hooks/_ansuz-conversation.test.js +90 -0
- package/core/.claude/hooks/_dedupe-guard.js +75 -0
- package/core/.claude/hooks/_peer-project-root.js +113 -0
- package/core/.claude/hooks/_peer-project-root.test.js +121 -0
- package/core/.claude/hooks/_peer-waiting-line.js +27 -0
- package/core/.claude/hooks/_project-guard.js +45 -0
- package/core/.claude/hooks/_run-user-prompt.js +134 -0
- package/core/.claude/hooks/_run-user-prompt.test.js +80 -0
- package/core/.claude/hooks/_session-identity.js +62 -0
- package/core/.claude/hooks/_session-pin.js +34 -0
- package/core/.claude/hooks/_session-pin.test.js +89 -0
- package/core/.claude/hooks/_signal-fence.js +17 -0
- package/core/.claude/hooks/_substrate-paths.js +95 -0
- package/core/.claude/hooks/_user-scope.js +23 -0
- package/core/.claude/hooks/ansuz-session-pin-via-turn-context.test.js +52 -0
- package/core/.claude/hooks/ansuz-session-pin.js +171 -0
- package/core/.claude/hooks/ansuz-session-pin.test.js +140 -0
- package/core/.claude/hooks/context-check.js +51 -0
- package/core/.claude/hooks/core-resolve.js +230 -0
- package/core/.claude/hooks/daemon-outbox-hook.js +139 -0
- package/core/.claude/hooks/fatigue-check.js +52 -0
- package/core/.claude/hooks/handoff-snapshot-on-commit.js +154 -0
- package/core/.claude/hooks/handoff-snapshot-on-decision.js +188 -0
- package/core/.claude/hooks/handoff-snapshot-on-question.js +158 -0
- package/core/.claude/hooks/handoff-staleness.js +197 -0
- package/core/.claude/hooks/jev-thalamus-context.js +17 -0
- package/core/.claude/hooks/jev-thalamus-context.test.js +41 -0
- package/core/.claude/hooks/lease-release.js +119 -0
- package/core/.claude/hooks/lease-touch.js +96 -0
- package/core/.claude/hooks/memory-guard.js +723 -0
- package/core/.claude/hooks/memory-guard.test.js +574 -0
- package/core/.claude/hooks/reflex-feedback.js +5 -0
- package/core/.claude/hooks/session-init.ps1 +49 -0
- package/core/.claude/hooks/sound-event.js +70 -0
- package/core/.claude/hooks/sound-event.sh +37 -0
- package/core/.claude/hooks/stream-delta.js +169 -0
- package/core/.claude/hooks/synapse-first-investigation.js +326 -0
- package/core/.claude/hooks/synapse-first-investigation.test.js +126 -0
- package/core/.claude/hooks/task-bridge.js +33 -0
- package/core/.claude/hooks/turn-context-peer.test.js +115 -0
- package/core/.claude/hooks/turn-context-session-line.test.js +69 -0
- package/core/.claude/hooks/turn-context.js +215 -0
- package/core/.claude/hooks/worktree-create.js +1232 -0
- package/core/.claude/hooks/worktree-remove.js +181 -0
- package/core/.claude/no-hooks.settings.json +3 -0
- package/core/.claude/settings.json +180 -0
- package/core/.claude/skills/adapt/SKILL.md +199 -0
- package/core/.claude/skills/animate/SKILL.md +190 -0
- package/core/.claude/skills/architect_agent/SKILL.md +408 -0
- package/core/.claude/skills/assessment_agent/SKILL.md +289 -0
- package/core/.claude/skills/audit/SKILL.md +129 -0
- package/core/.claude/skills/backend_agent/SKILL.md +407 -0
- package/core/.claude/skills/backend_engineer/SKILL.md +788 -0
- package/core/.claude/skills/bolder/SKILL.md +132 -0
- package/core/.claude/skills/clarify/SKILL.md +180 -0
- package/core/.claude/skills/code_reviewer/SKILL.md +305 -0
- package/core/.claude/skills/code_reviewer/patterns.yaml +85 -0
- package/core/.claude/skills/colorize/SKILL.md +158 -0
- package/core/.claude/skills/critique/SKILL.md +118 -0
- package/core/.claude/skills/delight/SKILL.md +317 -0
- package/core/.claude/skills/designer/SKILL.md +845 -0
- package/core/.claude/skills/dev_agent/SKILL.md +503 -0
- package/core/.claude/skills/developer/SKILL.md +792 -0
- package/core/.claude/skills/distill/SKILL.md +137 -0
- package/core/.claude/skills/extract/SKILL.md +95 -0
- package/core/.claude/skills/feature_agent/SKILL.md +303 -0
- package/core/.claude/skills/frontend-design/SKILL.md +127 -0
- package/core/.claude/skills/frontend-design/reference/color-and-contrast.md +132 -0
- package/core/.claude/skills/frontend-design/reference/interaction-design.md +123 -0
- package/core/.claude/skills/frontend-design/reference/motion-design.md +99 -0
- package/core/.claude/skills/frontend-design/reference/responsive-design.md +114 -0
- package/core/.claude/skills/frontend-design/reference/spatial-design.md +100 -0
- package/core/.claude/skills/frontend-design/reference/typography.md +131 -0
- package/core/.claude/skills/frontend-design/reference/ux-writing.md +107 -0
- package/core/.claude/skills/frontend_agent/SKILL.md +327 -0
- package/core/.claude/skills/harden/SKILL.md +358 -0
- package/core/.claude/skills/heimdall/SKILL.md +84 -0
- package/core/.claude/skills/huginn/SKILL.md +208 -0
- package/core/.claude/skills/incident_response/SKILL.md +315 -0
- package/core/.claude/skills/legacy_dev/SKILL.md +202 -0
- package/core/.claude/skills/normalize/SKILL.md +67 -0
- package/core/.claude/skills/onboard/SKILL.md +243 -0
- package/core/.claude/skills/optimization_agent/SKILL.md +340 -0
- package/core/.claude/skills/optimize/SKILL.md +269 -0
- package/core/.claude/skills/pcb-review/SKILL.md +39 -0
- package/core/.claude/skills/polish/SKILL.md +202 -0
- package/core/.claude/skills/product_manager/SKILL.md +1091 -0
- package/core/.claude/skills/qa_engineer/SKILL.md +1269 -0
- package/core/.claude/skills/quieter/SKILL.md +118 -0
- package/core/.claude/skills/remotion-best-practices/SKILL.md +61 -0
- package/core/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
- package/core/.claude/skills/remotion-best-practices/rules/animations.md +27 -0
- package/core/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/core/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/core/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +103 -0
- package/core/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
- package/core/.claude/skills/remotion-best-practices/rules/audio-visualization.md +198 -0
- package/core/.claude/skills/remotion-best-practices/rules/audio.md +169 -0
- package/core/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +134 -0
- package/core/.claude/skills/remotion-best-practices/rules/can-decode.md +81 -0
- package/core/.claude/skills/remotion-best-practices/rules/charts.md +120 -0
- package/core/.claude/skills/remotion-best-practices/rules/compositions.md +154 -0
- package/core/.claude/skills/remotion-best-practices/rules/display-captions.md +184 -0
- package/core/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/core/.claude/skills/remotion-best-practices/rules/ffmpeg.md +38 -0
- package/core/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/core/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/core/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/core/.claude/skills/remotion-best-practices/rules/get-video-duration.md +60 -0
- package/core/.claude/skills/remotion-best-practices/rules/gifs.md +141 -0
- package/core/.claude/skills/remotion-best-practices/rules/images.md +134 -0
- package/core/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/core/.claude/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/core/.claude/skills/remotion-best-practices/rules/lottie.md +70 -0
- package/core/.claude/skills/remotion-best-practices/rules/maps.md +412 -0
- package/core/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/core/.claude/skills/remotion-best-practices/rules/measuring-text.md +140 -0
- package/core/.claude/skills/remotion-best-practices/rules/parameters.md +109 -0
- package/core/.claude/skills/remotion-best-practices/rules/sequencing.md +118 -0
- package/core/.claude/skills/remotion-best-practices/rules/sfx.md +30 -0
- package/core/.claude/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/core/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/core/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/core/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
- package/core/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/core/.claude/skills/remotion-best-practices/rules/transitions.md +197 -0
- package/core/.claude/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/core/.claude/skills/remotion-best-practices/rules/trimming.md +51 -0
- package/core/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
- package/core/.claude/skills/remotion-best-practices/rules/voiceover.md +99 -0
- package/core/.claude/skills/security_agent/SKILL.md +312 -0
- package/core/.claude/skills/spec_optimizer/SKILL.md +299 -0
- package/core/.claude/skills/sre_agent/SKILL.md +1347 -0
- package/core/.claude/skills/sunny/SKILL.md +74 -0
- package/core/.claude/skills/supabase-postgres-best-practices/AGENTS.md +90 -0
- package/core/.claude/skills/supabase-postgres-best-practices/CLAUDE.md +1 -0
- package/core/.claude/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/query-index-types.md +45 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
- package/core/.claude/skills/supabase-postgres-best-practices/references/security-rls-performance.md +57 -0
- package/core/.claude/skills/synapse_maintain/SKILL.md +84 -0
- package/core/.claude/skills/ui-ux-pro-max/SKILL.md +377 -0
- package/core/.claude/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/core/.claude/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/core/.claude/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/core/.claude/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/core/.claude/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/core/.claude/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/core/.claude/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/core/.claude/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/core/.claude/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/core/.claude/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/core/.claude/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/core/.claude/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/core/.claude/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/core/.claude/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/core/.claude/skills/ui-ux-pro-max/scripts/search.py +106 -0
- package/core/.claude/skills/vercel-react-best-practices/AGENTS.md +2934 -0
- package/core/.claude/skills/vercel-react-best-practices/SKILL.md +136 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/core/.claude/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/core/.collaboration/README.md +258 -0
- package/core/.collaboration/cli/commands/assign.js +39 -0
- package/core/.collaboration/cli/commands/claim.js +33 -0
- package/core/.collaboration/cli/commands/complete.js +44 -0
- package/core/.collaboration/cli/commands/create.js +110 -0
- package/core/.collaboration/cli/commands/get.js +83 -0
- package/core/.collaboration/cli/commands/index.js +52 -0
- package/core/.collaboration/cli/commands/list.js +51 -0
- package/core/.collaboration/cli/commands/lock.js +45 -0
- package/core/.collaboration/cli/commands/rebuild.js +39 -0
- package/core/.collaboration/cli/commands/search.js +61 -0
- package/core/.collaboration/cli/commands/stats.js +61 -0
- package/core/.collaboration/cli/commands/transfer.js +41 -0
- package/core/.collaboration/cli/commands/unlock.js +48 -0
- package/core/.collaboration/cli/formatters/help-formatter.js +70 -0
- package/core/.collaboration/cli/formatters/index.js +7 -0
- package/core/.collaboration/cli/task-cli.js +46 -0
- package/core/.collaboration/cli/utils/arg-parser.js +74 -0
- package/core/.collaboration/cli/utils/git-user.js +25 -0
- package/core/.collaboration/cli/utils/index.js +9 -0
- package/core/.collaboration/cli/utils/output.js +10 -0
- package/core/.collaboration/config/default.yaml +189 -0
- package/core/.collaboration/core/conflict-resolver.js +461 -0
- package/core/.collaboration/core/conflict-resolver.test.js +389 -0
- package/core/.collaboration/core/id-generator.js +303 -0
- package/core/.collaboration/core/migrate-legacy.js +260 -0
- package/core/.collaboration/core/package.json +1 -0
- package/core/.collaboration/core/task-2257-estimated-hours.test.js +72 -0
- package/core/.collaboration/core/task-2260-dir-layout-move.test.js +60 -0
- package/core/.collaboration/core/task-2264-single-after-capture.test.js +61 -0
- package/core/.collaboration/core/task-2288-followups.test.js +121 -0
- package/core/.collaboration/core/task-api-json.js +211 -0
- package/core/.collaboration/core/task-api.js +3729 -0
- package/core/.collaboration/core/task-api.test.js +1268 -0
- package/core/.collaboration/docs/API.md +787 -0
- package/core/.collaboration/docs/ARCHITECTURE.md +596 -0
- package/core/.collaboration/docs/CLI.md +821 -0
- package/core/.collaboration/docs/FAQ.md +695 -0
- package/core/.collaboration/docs/MIGRATION.md +804 -0
- package/core/.collaboration/docs/examples/README.md +320 -0
- package/core/.collaboration/docs/examples/advanced-queries.js +261 -0
- package/core/.collaboration/docs/examples/basic-usage.js +184 -0
- package/core/.collaboration/docs/examples/team-workflow.js +352 -0
- package/core/.collaboration/hooks/README.md +70 -0
- package/core/.collaboration/hooks/config.json +10 -0
- package/core/.collaboration/hooks/install.js +400 -0
- package/core/.collaboration/hooks/post-merge.js +163 -0
- package/core/.collaboration/hooks/pre-commit.js +264 -0
- package/core/.collaboration/hooks/synapse-hook.js +486 -0
- package/core/.collaboration/hooks/synapse-hook.test.js +69 -0
- package/core/.failure/INDEX.yaml +231 -0
- package/core/.failure/agent-execution/FAIL-001-agent-no-output.yaml +391 -0
- package/core/.failure/agent-execution/FAIL-004_agent_platform_specific_commands.md +194 -0
- package/core/.failure/agent-execution/FAIL-005_background_agent_permission_denied.md +204 -0
- package/core/.failure/agent-execution/FAIL-007-pm-lead-wrong-team-invocation.yaml +0 -0
- package/core/.failure/agent-execution/FAIL-008-bypass-api-direct-yaml-write.yaml +94 -0
- package/core/.failure/agent-execution/FAIL-010-phase0-poem-format-skipped.yaml +28 -0
- package/core/.failure/agent-execution/FAIL-010-skipping-cognitive-checkpoint-after-verification.yaml +59 -0
- package/core/.failure/agent-execution/FAIL-012-grep-shortcut-during-investigation.yaml +85 -0
- package/core/.failure/agent-execution/FAIL-013-search-cwd-drift-and-case-mismatch.yaml +103 -0
- package/core/.failure/agent-execution/FAIL-014-shared-worktree-premature-death-verdict.yaml +35 -0
- package/core/.failure/agent-execution/FAIL-AUTO-TASK_1413.yaml +31 -0
- package/core/.failure/agent-execution/FAIL-AUTO-TASK_1427.yaml +41 -0
- package/core/.failure/agent-execution/FAIL-AUTO-TASK_904.yaml +30 -0
- package/core/.failure/agent-execution/README.md +68 -0
- package/core/.failure/architecture/FAIL-004_session_based_skill_recognition.md +128 -0
- package/core/.failure/architecture/FAIL-006-python-version-compatibility.yaml +445 -0
- package/core/.failure/architecture/README.md +87 -0
- package/core/.failure/code-quality/README.md +89 -0
- package/core/.failure/data-integrity/FAIL-002-json-bom.yaml +220 -0
- package/core/.failure/data-integrity/README.md +141 -0
- package/core/.failure/pipeline/FAIL-003-queue-pollution.yaml +335 -0
- package/core/.failure/pipeline/README.md +95 -0
- package/core/.failure/retired/FAIL-009-skipping-synapse-pulse-before-code-change.yaml +49 -0
- package/core/.failure/tools/README.md +230 -0
- package/core/.failure/tools/USAGE_GUIDE.md +323 -0
- package/core/.failure/tools/check_bom.js +101 -0
- package/core/.failure/tools/check_failures.ps1 +387 -0
- package/core/.failure/tools/fix_json.js +58 -0
- package/core/.failure/tools/log_failure.ps1 +474 -0
- package/core/.failure/tools/remove_bom.js +46 -0
- package/core/.failure/tools/validate_json.js +50 -0
- package/core/.formation/.episode-input.json +10 -0
- package/core/.formation/README.md +188 -0
- package/core/.formation/bifrost/CGDD_hook_lifecycle.js +575 -0
- package/core/.formation/bifrost/HOOK_PARITY_VERIFICATION.md +241 -0
- package/core/.formation/bifrost/README.md +71 -0
- package/core/.formation/bifrost/codex-doctor.js +106 -0
- package/core/.formation/bifrost/codex-doctor.test.js +51 -0
- package/core/.formation/bifrost/launch.js +510 -0
- package/core/.formation/bifrost/launch.test.js +217 -0
- package/core/.formation/bifrost/openai/codex-hook-shim.js +171 -0
- package/core/.formation/bifrost/openai/codex-hook-shim.test.js +107 -0
- package/core/.formation/bifrost/openai/models.json +36 -0
- package/core/.formation/bifrost/openai/relay.js +781 -0
- package/core/.formation/bifrost/openai/relay.test.js +71 -0
- package/core/.formation/bifrost/session.js +382 -0
- package/core/.formation/bifrost/session.test.js +121 -0
- package/core/.formation/bifrost/setup-codex.js +685 -0
- package/core/.formation/bifrost/setup-codex.test.js +102 -0
- package/core/.formation/bifrost/shared/ansuz-boot-policy.js +31 -0
- package/core/.formation/bifrost/shared/ansuz-boot-policy.test.js +40 -0
- package/core/.formation/bifrost/shared/boot-context.js +68 -0
- package/core/.formation/bifrost/shared/boot-context.test.js +67 -0
- package/core/.formation/bifrost/shared/codex-appserver.js +191 -0
- package/core/.formation/bifrost/shared/codex-injection.js +126 -0
- package/core/.formation/bifrost/shared/codex-session-registry.js +105 -0
- package/core/.formation/bifrost/shared/codex-session-registry.test.js +126 -0
- package/core/.formation/bifrost/shared/consolidate.js +286 -0
- package/core/.formation/bifrost/shared/stream-json.js +103 -0
- package/core/.formation/bifrost/shared/tools.js +278 -0
- package/core/.formation/bifrost/sync.js +142 -0
- package/core/.formation/briefs/scheduler-evolution.md +209 -0
- package/core/.formation/lead.yaml +118 -0
- package/core/.formation/legacy.bak/designer.yaml +57 -0
- package/core/.formation/legacy.bak/pm.yaml +57 -0
- package/core/.formation/legacy.bak/qa.yaml +57 -0
- package/core/.formation/legacy.bak/review.yaml +62 -0
- package/core/.formation/legacy.bak/scheduler.yaml +129 -0
- package/core/.formation/legacy.bak/sre.yaml +57 -0
- package/core/.formation/legion/forge.yaml +299 -0
- package/core/.formation/legion/hive.yaml +238 -0
- package/core/.formation/native/claude/README.md +61 -0
- package/core/.formation/native/claude/models.json +42 -0
- package/core/.formation/role-map.yaml +274 -0
- package/core/.formation/roles/_shared/modules/code_review.yaml +98 -0
- package/core/.formation/roles/_shared/modules/security.yaml +103 -0
- package/core/.formation/roles/_shared/modules/testing.yaml +14 -0
- package/core/.formation/roles/backend/role.yaml +93 -0
- package/core/.formation/roles/code_reviewer/role.yaml +102 -0
- package/core/.formation/roles/database_optimizer/role.yaml +107 -0
- package/core/.formation/roles/designer/role.yaml +66 -0
- package/core/.formation/roles/developer/role.yaml +75 -0
- package/core/.formation/roles/frontend/role.yaml +134 -0
- package/core/.formation/roles/incident_response/role.yaml +89 -0
- package/core/.formation/roles/qa/role.yaml +89 -0
- package/core/.formation/roles/security/role.yaml +87 -0
- package/core/.formation/roles/sre/role.yaml +66 -0
- package/core/.formation/skills/coordinator.yaml +52 -0
- package/core/.formation/solo/diagnosis.yaml +78 -0
- package/core/.formation/solo/strategy.yaml +121 -0
- package/core/.formation/spec/task_operations.parity.test.js +426 -0
- package/core/.formation/spec/task_operations.yaml +291 -0
- package/core/.formation/squad/blitz.yaml +192 -0
- package/core/.formation/squad/strategy-tribunal.yaml +354 -0
- package/core/.formation/squad/strategy.yaml +349 -0
- package/core/.formation/squad/sweep.yaml +208 -0
- package/core/.formation/tests/hello.txt +2 -0
- package/core/.formation/tools/__tests__/m1-claim-gate.test.js +175 -0
- package/core/.formation/tools/__tests__/m1-hmap-convid.test.js +216 -0
- package/core/.formation/tools/__tests__/release-lock.test.js +176 -0
- package/core/.formation/tools/__tests__/subagent-bifrost-guard.test.js +234 -0
- package/core/.formation/tools/__tests__/subagent-codex-harness.test.js +96 -0
- package/core/.formation/tools/__tests__/task-1863-claim-late-release.test.js +160 -0
- package/core/.formation/tools/__tests__/task-2265-singleton-identity.test.js +134 -0
- package/core/.formation/tools/__tests__/task-2281-singleton-readers.test.js +64 -0
- package/core/.formation/tools/__tests__/task2030-worktree-node-modules.test.js +221 -0
- package/core/.formation/tools/__tests__/task2067-worktree-branch-reuse.test.js +148 -0
- package/core/.formation/tools/alaya-gate.js +198 -0
- package/core/.formation/tools/analytics.js +172 -0
- package/core/.formation/tools/broadcast.js +103 -0
- package/core/.formation/tools/commit-sync.js +154 -0
- package/core/.formation/tools/coordinator.js +350 -0
- package/core/.formation/tools/dashboard-models-chain.test.js +60 -0
- package/core/.formation/tools/dispatch-cortex-context.test.js +52 -0
- package/core/.formation/tools/dispatch-detail/cross-project-worktree.md +40 -0
- package/core/.formation/tools/dispatch-detail/testing-module.md +53 -0
- package/core/.formation/tools/dispatch-detail/worktree-subagent-mode.md +72 -0
- package/core/.formation/tools/dispatch-dryrun.test.js +54 -0
- package/core/.formation/tools/dispatch-model-policy.test.js +165 -0
- package/core/.formation/tools/dispatch-notifier.js +84 -0
- package/core/.formation/tools/dispatch-registry.js +346 -0
- package/core/.formation/tools/dispatch.js +1931 -0
- package/core/.formation/tools/formations.js +1203 -0
- package/core/.formation/tools/forseti-verify.js +1170 -0
- package/core/.formation/tools/git-salvage.js +269 -0
- package/core/.formation/tools/guard-attribution.js +224 -0
- package/core/.formation/tools/headless-branch-recovery.test.js +64 -0
- package/core/.formation/tools/headless-dryrun.test.js +79 -0
- package/core/.formation/tools/headless-v2.js +659 -0
- package/core/.formation/tools/headless.js +1071 -0
- package/core/.formation/tools/integration.js +528 -0
- package/core/.formation/tools/jev-correction.js +214 -0
- package/core/.formation/tools/jev-correction.test.js +178 -0
- package/core/.formation/tools/legacy-scheduler.js +1994 -0
- package/core/.formation/tools/lib/exec-tree.js +92 -0
- package/core/.formation/tools/lib/exec-tree.test.js +82 -0
- package/core/.formation/tools/loader.js +190 -0
- package/core/.formation/tools/log-reader.js +232 -0
- package/core/.formation/tools/logger.js +273 -0
- package/core/.formation/tools/mcp-allowlist.test.js +40 -0
- package/core/.formation/tools/memory-loader.js +422 -0
- package/core/.formation/tools/merge-lock-heartbeat.test.js +35 -0
- package/core/.formation/tools/no-hooks.settings.json +3 -0
- package/core/.formation/tools/pool-status-push.js +121 -0
- package/core/.formation/tools/pool-status-push.test.js +165 -0
- package/core/.formation/tools/post-complete/bounded-http.js +102 -0
- package/core/.formation/tools/post-complete/bounded-http.test.js +130 -0
- package/core/.formation/tools/post-complete/cognitive.js +270 -0
- package/core/.formation/tools/post-complete/git-merge.js +2845 -0
- package/core/.formation/tools/post-complete/health.js +464 -0
- package/core/.formation/tools/post-complete/integration-gaps.js +98 -0
- package/core/.formation/tools/post-complete/outcome.js +874 -0
- package/core/.formation/tools/post-complete/staging.js +390 -0
- package/core/.formation/tools/post-complete/subagent-transcript-stats.js +460 -0
- package/core/.formation/tools/post-complete/subagent-transcript-stats.test.js +680 -0
- package/core/.formation/tools/post-complete/task1536.test.js +627 -0
- package/core/.formation/tools/post-complete/task1543.test.js +261 -0
- package/core/.formation/tools/post-complete/task1876.test.js +287 -0
- package/core/.formation/tools/post-complete/task1957.test.js +293 -0
- package/core/.formation/tools/post-complete/task1997.test.js +401 -0
- package/core/.formation/tools/post-complete/task2028.test.js +232 -0
- package/core/.formation/tools/post-complete/task2029.test.js +275 -0
- package/core/.formation/tools/post-complete/task2036.test.js +330 -0
- package/core/.formation/tools/post-complete/task2038.test.js +246 -0
- package/core/.formation/tools/post-complete/task2071.test.js +231 -0
- package/core/.formation/tools/post-complete/task2233.test.js +100 -0
- package/core/.formation/tools/post-complete/task2240.test.js +134 -0
- package/core/.formation/tools/post-complete/task2244.test.js +199 -0
- package/core/.formation/tools/post-complete/task2255.test.js +28 -0
- package/core/.formation/tools/post-complete/task2268.test.js +106 -0
- package/core/.formation/tools/post-complete/task2341.test.js +74 -0
- package/core/.formation/tools/post-complete/task2345.test.js +38 -0
- package/core/.formation/tools/post-complete/testing.js +482 -0
- package/core/.formation/tools/post-complete/wish.js +177 -0
- package/core/.formation/tools/post-complete/worktree-rescue.test.js +283 -0
- package/core/.formation/tools/post-complete.js +3660 -0
- package/core/.formation/tools/post-complete.test.js +1002 -0
- package/core/.formation/tools/pre-dispatch-snapshot.test.js +328 -0
- package/core/.formation/tools/process-state.js +33 -0
- package/core/.formation/tools/prompt.js +2183 -0
- package/core/.formation/tools/prompt.test.js +875 -0
- package/core/.formation/tools/remote-conflict.js +98 -0
- package/core/.formation/tools/revert-daemon-state.js +162 -0
- package/core/.formation/tools/route-audit.test.js +55 -0
- package/core/.formation/tools/runner.js +1332 -0
- package/core/.formation/tools/supabase-client.js +104 -0
- package/core/.formation/tools/task-sync.js +236 -0
- package/core/.formation/tools/task-utils.js +344 -0
- package/core/.formation/tools/task2028-headless-worktree.test.js +112 -0
- package/core/.formation/tools/test-drift.js +148 -0
- package/core/.formation/tools/tests/headless-mcp-args-plumbing.test.js +123 -0
- package/core/.formation/tools/tests/relay-mcp-overrides.test.js +112 -0
- package/core/.formation/tools/transcript-recorder.js +574 -0
- package/core/.formation/tools/utils-claude-cmd.test.js +28 -0
- package/core/.formation/tools/utils-worktree-config.test.js +44 -0
- package/core/.formation/tools/utils.js +1020 -0
- package/core/.formation/tools/verify-acceptance.js +585 -0
- package/core/.formation/tools/worktree-leak.test.js +162 -0
- package/core/.formation/tools/worktree-reclaim.js +259 -0
- package/core/.formation/tools/worktree-reclaim.test.js +182 -0
- package/core/.formation/tools/yggdrasil-local.js +97 -0
- package/core/.formation/unit/do.yaml +78 -0
- package/core/.formation/unit/heimdall.yaml +96 -0
- package/core/.formation/unit/plan.yaml +67 -0
- package/core/.formation/unit/think.yaml +58 -0
- package/core/.kenaz/MUNINN_SNAPSHOT9_EPISODE.json +32 -0
- package/core/.kenaz/MUNINN_SNAPSHOT9_RUNE.json +23 -0
- package/core/.kenaz/MUNINN_SNAPSHOT9_SUMMARY.md +89 -0
- package/core/.kenaz/ash_TASK_1428-20260507.json +14 -0
- package/core/.kenaz/cache/native-models/claude.json +42 -0
- package/core/.kenaz/claude-hooks-manifest.json +119 -0
- package/core/.kenaz/cortex.yaml +100 -0
- package/core/.kenaz/curator_state.json +7 -0
- package/core/.kenaz/dashboard-quick-prompts.json +9 -0
- package/core/.kenaz/designs/METAPLASTICITY_CONFIDENCE_DESIGN.md +537 -0
- package/core/.kenaz/designs/REFLEX_INITIATOR_DESIGN.md +501 -0
- package/core/.kenaz/designs/TASK_1385_handoff_mcp_design.md +426 -0
- package/core/.kenaz/designs/TASK_932_hippocampus_consolidation.md +103 -0
- package/core/.kenaz/designs/TASK_934_efe_signal_engine.md +97 -0
- package/core/.kenaz/designs/TASK_935_self_evolution_framework.md +154 -0
- package/core/.kenaz/designs/VISION_cognitive_architecture_roadmap.md +159 -0
- package/core/.kenaz/designs/metaplasticity_simulation_results.json +696 -0
- package/core/.kenaz/docs/INDEX.md +214 -0
- package/core/.kenaz/docs/README.md +290 -0
- package/core/.kenaz/docs/registry.json +962 -0
- package/core/.kenaz/docs/schema.json +144 -0
- package/core/.kenaz/docs/tools/GIT_HOOK_GUIDE.md +203 -0
- package/core/.kenaz/docs/tools/RAG_INTEGRATION_GUIDE.md +306 -0
- package/core/.kenaz/docs/tools/README.md +99 -0
- package/core/.kenaz/docs/tools/TIME_ESTIMATION_GUIDE.md +299 -0
- package/core/.kenaz/docs/tools/package-lock.json +618 -0
- package/core/.kenaz/docs/tools/package.json +34 -0
- package/core/.kenaz/docs/tools/src/cli.ts +365 -0
- package/core/.kenaz/docs/tools/src/field-extractor.ts +152 -0
- package/core/.kenaz/docs/tools/src/index.ts +14 -0
- package/core/.kenaz/docs/tools/src/registry.ts +664 -0
- package/core/.kenaz/docs/tools/src/search.ts +195 -0
- package/core/.kenaz/docs/tools/src/types.ts +88 -0
- package/core/.kenaz/docs/tools/test-git-hook.sh +79 -0
- package/core/.kenaz/docs/tools/tsconfig.json +20 -0
- package/core/.kenaz/docs/tools/verify.sh +106 -0
- package/core/.kenaz/episodes/SESSION_ansuz-prompt-1785087304784.yaml +68 -0
- package/core/.kenaz/huginn-exploration.json +8 -0
- package/core/.kenaz/knowledge/ladybug_2c51da1e_shadow_file_frame_group.patch +163 -0
- package/core/.kenaz/knowledge/ladybug_30cf85690e_shadow_page_read_during_checkpoint.patch +393 -0
- package/core/.kenaz/knowledge/ladybug_7a17858d3a_node_group_delete_lock.patch +102 -0
- package/core/.kenaz/knowledge/ladybug_926a0ba1_column_checkpoint.patch +412 -0
- package/core/.kenaz/knowledge/ladybug_a346c4c4b6_pk_index_header_pages.patch +144 -0
- package/core/.kenaz/knowledge/ladybug_ba5f38815b_csr_node_group.patch +86 -0
- package/core/.kenaz/main-memory/README.md +230 -0
- package/core/.kenaz/main-memory/kenaz/cortex/001_cortex_overview.md +168 -0
- package/core/.kenaz/main-memory/kenaz/cortex/001_rag_engine_overview.md +30 -0
- package/core/.kenaz/main-memory/kenaz/memory-system/001_three_tier_architecture.md +361 -0
- package/core/.kenaz/main-memory/kenaz/pipeline/001_task_execution_flow.md +117 -0
- package/core/.kenaz/main-memory/kenaz/pipeline/001_task_granularity.md +154 -0
- package/core/.kenaz/main-memory/kenaz/pipeline/002_team_priority.md +51 -0
- package/core/.kenaz/main-memory/kenaz/pipeline/003_feature_id_system.md +46 -0
- package/core/.kenaz/main-memory/kenaz/rules/001_gen_007_self_containment.md +108 -0
- package/core/.kenaz/main-memory/kenaz/rules/001_rule_priority_system.md +121 -0
- package/core/.kenaz/main-memory/kenaz/rules/002_agt_006_pre_check.md +0 -0
- package/core/.kenaz/main-memory/kenaz/rules/003_ppl_002_task_archival.md +48 -0
- package/core/.kenaz/main-memory/kenaz/system/001_dual_track_task_system.md +197 -0
- package/core/.kenaz/main-memory/knowledge/patterns/001_json_bom_issue.md +78 -0
- package/core/.kenaz/main-memory/knowledge/patterns/001_leader_worker_pattern.md +0 -0
- package/core/.kenaz/main-memory/knowledge/patterns/002_scope_path_conflict.md +115 -0
- package/core/.kenaz/main-memory/knowledge/patterns/002_task_dependency_resolution.md +223 -0
- package/core/.kenaz/main-memory/knowledge/patterns/003_question_protocol.md +242 -0
- package/core/.kenaz/main-memory/knowledge/patterns/004_user_insight_value.md +111 -0
- package/core/.kenaz/main-memory/knowledge/patterns/005_file_lock_pattern.md +274 -0
- package/core/.kenaz/main-memory/knowledge/references/001_ppl_rules.md +28 -0
- package/core/.kenaz/main-memory/knowledge/solutions/001_json_bom_issue.md +137 -0
- package/core/.kenaz/main-memory/knowledge/solutions/001_team_invocation.md +0 -0
- package/core/.kenaz/main-memory/knowledge/solutions/002_passive_monitoring.md +0 -0
- package/core/.kenaz/main-memory/knowledge/solutions/003_windows_file_race_condition.md +239 -0
- package/core/.kenaz/main-memory/registry.json +326 -0
- package/core/.kenaz/main-memory/version.yaml +58 -0
- package/core/.kenaz/muninn_episode_write.ps1 +17 -0
- package/core/.kenaz/muninn_snapshot11_rune_candidates.md +63 -0
- package/core/.kenaz/muninn_snapshot1_rune_candidates.md +49 -0
- package/core/.kenaz/orphan_audit_2026-05.md +181 -0
- package/core/.kenaz/ownership.yaml +155 -0
- package/core/.kenaz/peer.yaml +72 -0
- package/core/.kenaz/project.yaml +62 -0
- package/core/.kenaz/rune_ansuz_literature_validation_strategy.md +40 -0
- package/core/.kenaz/rune_efe_active_inference_validation.md +36 -0
- package/core/.kenaz/rune_yggdrasil_filesystem_scoped_project.md +41 -0
- package/core/.kenaz/rune_yggdrasil_project_identity_folder_name.md +41 -0
- package/core/.kenaz/rune_yggdrasil_relay_protocol_project_mismatch.md +39 -0
- package/core/.kenaz/runes_TASK_1428.json +57 -0
- package/core/.kenaz/specialist/ansuz_motivational_state.schema.json +138 -0
- package/core/.kenaz/specialist/ansuz_rules.yaml +241 -0
- package/core/.kenaz/specialist/ansuz_session_handoff.schema.json +128 -0
- package/core/.kenaz/specialist/chart_TASK_1657.json +50 -0
- package/core/.kenaz/specialist/cognitive-hub-e2e.test.js +494 -0
- package/core/.kenaz/specialist/daemon-manifest.yaml +168 -0
- package/core/.kenaz/specialist/empty_ac_audit_report.md +63 -0
- package/core/.kenaz/specialist/episode_muninn_completion_1785056865691.json +91 -0
- package/core/.kenaz/specialist/field_report_watermark.json +1 -0
- package/core/.kenaz/specialist/gc1826_driver.js +118 -0
- package/core/.kenaz/specialist/heimdall_proposal_1017c07f.json +13 -0
- package/core/.kenaz/specialist/heimdall_proposal_3dfaa8b9.json +12 -0
- package/core/.kenaz/specialist/heimdall_proposal_57af18f9.json +15 -0
- package/core/.kenaz/specialist/heimdall_proposal_57b1aa1b.json +14 -0
- package/core/.kenaz/specialist/heimdall_proposal_5a3c9473.json +13 -0
- package/core/.kenaz/specialist/identity_verdicts/TASK_1073.json +75 -0
- package/core/.kenaz/specialist/identity_verdicts/TASK_TEST.json +77 -0
- package/core/.kenaz/specialist/memory_guard_fired.json +1 -0
- package/core/.kenaz/specialist/memory_guard_trigger_cache.json +1 -0
- package/core/.kenaz/specialist/memory_source_priority.yaml +260 -0
- package/core/.kenaz/specialist/motivational_state.schema.json +62 -0
- package/core/.kenaz/specialist/prompt_1775.txt +317 -0
- package/core/.kenaz/specialist/prompt_1776.txt +326 -0
- package/core/.kenaz/specialist/prompt_1791.txt +320 -0
- package/core/.kenaz/specialist/prompt_1792.txt +320 -0
- package/core/.kenaz/specialist/prompt_1795.txt +281 -0
- package/core/.kenaz/specialist/prompt_1813.txt +332 -0
- package/core/.kenaz/specialist/prompt_1814.txt +401 -0
- package/core/.kenaz/specialist/prompt_1815.txt +394 -0
- package/core/.kenaz/specialist/prompt_1816.txt +437 -0
- package/core/.kenaz/specialist/prompt_1818.txt +361 -0
- package/core/.kenaz/specialist/prompt_1819.txt +421 -0
- package/core/.kenaz/specialist/prompt_1821.txt +345 -0
- package/core/.kenaz/specialist/prompt_1822.txt +313 -0
- package/core/.kenaz/specialist/prompt_1824.txt +348 -0
- package/core/.kenaz/specialist/prompt_1826.txt +388 -0
- package/core/.kenaz/specialist/retired_organs/README.md +58 -0
- package/core/.kenaz/specialist/rune_calibration_poc.md +175 -0
- package/core/.kenaz/specialist/rune_efe_salience_gap.md +21 -0
- package/core/.kenaz/specialist/rune_ember_autonomous_dispatch_gate.md +24 -0
- package/core/.kenaz/specialist/rune_post_dispatch_verification_pattern.md +31 -0
- package/core/.kenaz/specialist/rune_surprise_proxy_improvement.md +28 -0
- package/core/.kenaz/specialist/rune_worktree_dispatch_pattern.md +31 -0
- package/core/.kenaz/specialist/rune_yaml_filter_desync_fix.md +26 -0
- package/core/.kenaz/specialist/rune_yggdrasil_project_identity_folder_name.md +24 -0
- package/core/.kenaz/specialist/sessions/chart_TASK_1599.json +41 -0
- package/core/.kenaz/specialist/sessions/hmap_028aa781-aad2-48c0-9a61-5540565d4a7f.json +5 -0
- package/core/.kenaz/specialist/sessions/hmap_20210387-0c64-400c-9d0a-53042a0cbd89.json +5 -0
- package/core/.kenaz/specialist/sessions/hmap_c1375c5d-fd9f-44bd-a83e-353ecbb0392f.json +5 -0
- package/core/.kenaz/specialist/sessions/scratch_028aa781-aad2-48c0-9a61-5540565d4a7f.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_0acc0fb3-24f9-453f-9e92-6ef1cdf03a7c.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_20210387-0c64-400c-9d0a-53042a0cbd89.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_2f10623e-b7a1-4647-905e-9dc7c4d99f9c.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_5a38b62d-608a-488c-82f0-7e47e95e0905.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_5d9758ef-d9b6-4ffe-a017-3ed26d0a313b.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_c1375c5d-fd9f-44bd-a83e-353ecbb0392f.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_c9f3c711-b73d-4fcd-ad2a-7b2bc024ee77.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_e72e5274-1c81-4655-a05a-f87d1ecb2917.json +6 -0
- package/core/.kenaz/specialist/sessions/scratch_f740cdbe-f756-41fc-98fb-2b1413d51901.json +6 -0
- package/core/.kenaz/specialist/t1777_probe.txt +1 -0
- package/core/.kenaz/specialist/task1825_update.json +43 -0
- package/core/.kenaz/specialist/task1827_update.json +43 -0
- package/core/.kenaz/specialist/task1828_update.json +43 -0
- package/core/.kenaz/specialist/taskgen/consolidation_i.json +38 -0
- package/core/.kenaz/specialist/taskgen/csharp_a.json +44 -0
- package/core/.kenaz/specialist/taskgen/csharp_b.json +40 -0
- package/core/.kenaz/specialist/taskgen/embedding_e.json +34 -0
- package/core/.kenaz/specialist/taskgen/hygiene_fg.json +39 -0
- package/core/.kenaz/specialist/taskgen/pathology_h.json +36 -0
- package/core/.kenaz/specialist/taskgen/unity_noise_d.json +38 -0
- package/core/.kenaz/specialist/taskgen/visibility_c.json +38 -0
- package/core/.kenaz/specialist/verify_1837.js +302 -0
- package/core/.kenaz/specialist/verify_1838.js +124 -0
- package/core/.kenaz/tmp/heimdall_proposal_fc7e0944.json +10 -0
- package/core/.kenaz/tmp_heimdall_proposal_8d3e392.json +13 -0
- package/core/.kenaz/tmp_props.json +1 -0
- package/core/.kenaz/tmp_sounddrop_t1_prompt.txt +371 -0
- package/core/.kenaz/user_model.schema.json +107 -0
- package/core/.matrix/README.md +257 -0
- package/core/.matrix/index.matrix +5 -0
- package/core/.mcp.json +8 -0
- package/core/.prefrontal/.gitkeep +0 -0
- package/core/.prefrontal/proposals/.gitkeep +0 -0
- package/core/.rule/INDEX.yaml +99 -0
- package/core/.rule/MECHANIZED.md +61 -0
- package/core/.rule/code/README.md +211 -0
- package/core/.rule/code/backend.yaml +294 -0
- package/core/.rule/code/checklist.yaml +258 -0
- package/core/.rule/code/maintainability.yaml +227 -0
- package/core/.rule/code/naming.yaml +106 -0
- package/core/.rule/code/principles.yaml +71 -0
- package/core/.rule/code/reusability.yaml +192 -0
- package/core/.rule/code/structure.yaml +218 -0
- package/core/.rule/code/style.yaml +197 -0
- package/core/.rule/design/ui.yaml +79 -0
- package/core/.rule/general/agent-workflow.yaml +572 -0
- package/core/.rule/general/cortex-memory-recall.yaml +446 -0
- package/core/.rule/general/cortex-tools.yaml +181 -0
- package/core/.rule/general/cross-platform.yaml +107 -0
- package/core/.rule/general/ddx-synapse-stack.yaml +162 -0
- package/core/.rule/general/file-size-threshold.yaml +45 -0
- package/core/.rule/general/identity-contract.schema.yaml +251 -0
- package/core/.rule/general/memory-language.yaml +67 -0
- package/core/.rule/general/memory-source-priority.yaml +207 -0
- package/core/.rule/general/pipeline.yaml +246 -0
- package/core/.rule/general/principles.yaml +77 -0
- package/core/.rule/general/project-self-containment.yaml +253 -0
- package/core/.rule/general/rust-verify-target.yaml +80 -0
- package/core/.rule/general/specialist-identity-contract.yaml +153 -0
- package/core/.rule/general/sunny-access-control.yaml +60 -0
- package/core/.rule/general/synapse-code-intelligence.yaml +375 -0
- package/core/.rule/general/synapse-cognitive-fusion.yaml +301 -0
- package/core/.rule/general/system-invariants.yaml +248 -0
- package/core/.rule/general/task-pool-routing.yaml +102 -0
- package/core/.rule/general/worktree-isolation.yaml +79 -0
- package/core/.rule/pipeline/PPL-002-completed-task-archival.yaml +528 -0
- package/core/.rule/pipeline/auto-update.yaml +282 -0
- package/core/.rule/pipeline/task-execution.yaml +368 -0
- package/core/.rule/tools/check-permissions.js +197 -0
- package/core/.specialist/Amelia/README.md +329 -0
- package/core/.specialist/Amelia/capability.yaml +386 -0
- package/core/.specialist/Amelia/knowledge.yaml +217 -0
- package/core/.specialist/Amelia/principles.yaml +10 -0
- package/core/.specialist/Amelia/rule.yaml +79 -0
- package/core/.specialist/Amelia/workflow.yaml +241 -0
- package/core/.specialist/Ansuz/HEURISTIC_BOOT_ROUTING.md +39 -0
- package/core/.specialist/Ansuz/ROUTING.md +35 -0
- package/core/.specialist/Ansuz/RULES.md +79 -0
- package/core/.specialist/Ansuz/SYSTEM_DOC.md +611 -0
- package/core/.specialist/Ansuz/VERIFY.md +38 -0
- package/core/.specialist/Ansuz/capability.yaml +338 -0
- package/core/.specialist/Ansuz/cognitive_principles.yaml +62 -0
- package/core/.specialist/Ansuz/concepts/agent_types.yaml +22 -0
- package/core/.specialist/Ansuz/concepts/autonomous_agenda.yaml +170 -0
- package/core/.specialist/Ansuz/concepts/autonomy_contract.yaml +126 -0
- package/core/.specialist/Ansuz/concepts/boot_ritual.yaml +107 -0
- package/core/.specialist/Ansuz/concepts/boot_rules_summary.yaml +16 -0
- package/core/.specialist/Ansuz/concepts/capability_pointers.yaml +21 -0
- package/core/.specialist/Ansuz/concepts/cognitive_fluency_contract.yaml +264 -0
- package/core/.specialist/Ansuz/concepts/cognitive_systems_competence_map.yaml +14 -0
- package/core/.specialist/Ansuz/concepts/cognitive_systems_hippocampus.yaml +14 -0
- package/core/.specialist/Ansuz/concepts/cognitive_systems_overview.yaml +27 -0
- package/core/.specialist/Ansuz/concepts/cognitive_systems_serendipity.yaml +14 -0
- package/core/.specialist/Ansuz/concepts/cognitive_systems_turn_context.yaml +13 -0
- package/core/.specialist/Ansuz/concepts/commitment_layer.yaml +150 -0
- package/core/.specialist/Ansuz/concepts/completion_tracking.yaml +29 -0
- package/core/.specialist/Ansuz/concepts/deep_knowledge_pointers.yaml +28 -0
- package/core/.specialist/Ansuz/concepts/evolvable_guardrails.yaml +20 -0
- package/core/.specialist/Ansuz/concepts/fatigue_handoff.yaml +84 -0
- package/core/.specialist/Ansuz/concepts/formation_quick_ref.yaml +28 -0
- package/core/.specialist/Ansuz/concepts/guardrails_immutable.yaml +31 -0
- package/core/.specialist/Ansuz/concepts/identity.yaml +48 -0
- package/core/.specialist/Ansuz/concepts/interaction_protocol.yaml +42 -0
- package/core/.specialist/Ansuz/concepts/meta_evolvable_tier.yaml +28 -0
- package/core/.specialist/Ansuz/concepts/mindset.yaml +18 -0
- package/core/.specialist/Ansuz/concepts/phase9_verification.yaml +21 -0
- package/core/.specialist/Ansuz/concepts/phase_protocol.yaml +66 -0
- package/core/.specialist/Ansuz/concepts/principles.yaml +65 -0
- package/core/.specialist/Ansuz/concepts/self_evolution_overview.yaml +53 -0
- package/core/.specialist/Ansuz/concepts/task_first_protocol.yaml +7 -0
- package/core/.specialist/Ansuz/concepts/task_pool.yaml +119 -0
- package/core/.specialist/Ansuz/concepts/task_system.yaml +22 -0
- package/core/.specialist/Ansuz/concepts/write_verification.yaml +26 -0
- package/core/.specialist/Ansuz/core.yaml +224 -0
- package/core/.specialist/Ansuz/decisions/ADR-requirement-graph-layer.md +390 -0
- package/core/.specialist/Ansuz/elixir.yaml +70 -0
- package/core/.specialist/Ansuz/exo_cortex_tools.yaml +13 -0
- package/core/.specialist/Ansuz/experiments/boot_ablation_replay.js +197 -0
- package/core/.specialist/Ansuz/guards/blind_spot_guards.yaml +28 -0
- package/core/.specialist/Ansuz/guards/lesson_guards.yaml +203 -0
- package/core/.specialist/Ansuz/identity_contract.yaml +375 -0
- package/core/.specialist/Ansuz/knowledge.yaml +284 -0
- package/core/.specialist/Ansuz/modules/amelia_review.yaml +112 -0
- package/core/.specialist/Ansuz/modules/ddx.yaml +47 -0
- package/core/.specialist/Ansuz/modules/design_checks.yaml +47 -0
- package/core/.specialist/Ansuz/modules/identity_verification.yaml +119 -0
- package/core/.specialist/Ansuz/modules/loop_guard.yaml +36 -0
- package/core/.specialist/Ansuz/modules/prevention.yaml +84 -0
- package/core/.specialist/Ansuz/modules/prophecy.yaml +95 -0
- package/core/.specialist/Ansuz/modules/pulse_empty.yaml +36 -0
- package/core/.specialist/Ansuz/modules/qa_intake.yaml +29 -0
- package/core/.specialist/Ansuz/modules/recall.yaml +45 -0
- package/core/.specialist/Ansuz/principles.yaml +31 -0
- package/core/.specialist/Ansuz/research/EMBER_architecture_comparison.md +142 -0
- package/core/.specialist/Ansuz/rule.yaml +97 -0
- package/core/.specialist/Ansuz/self_model_seed.backup.json +100 -0
- package/core/.specialist/Ansuz/self_model_seed.json +100 -0
- package/core/.specialist/Ansuz/self_model_seed.sha256 +1 -0
- package/core/.specialist/Ansuz/tools/ansuz-handoff-snapshot.js +626 -0
- package/core/.specialist/Ansuz/tools/ansuz-handoff.js +437 -0
- package/core/.specialist/Ansuz/tools/ansuz-sdk-runner.js +1254 -0
- package/core/.specialist/Ansuz/tools/ansuz-sdk-runner.test.js +137 -0
- package/core/.specialist/Ansuz/tools/ansuz-state.js +288 -0
- package/core/.specialist/Ansuz/tools/bootstrap-anchors.js +289 -0
- package/core/.specialist/Ansuz/tools/handoff-freshness-milestone.test.js +73 -0
- package/core/.specialist/Ansuz/tools/handoff-resolver.js +207 -0
- package/core/.specialist/Ansuz/tools/handoff-session-identity.test.js +333 -0
- package/core/.specialist/Ansuz/tools/handoff-snapshot-args.test.js +25 -0
- package/core/.specialist/Ansuz/tools/install-claude-hooks.js +354 -0
- package/core/.specialist/Ansuz/tools/install-claude-hooks.test.js +110 -0
- package/core/.specialist/Ansuz/tools/package.json +16 -0
- package/core/.specialist/Ansuz/tools/preservation-coordinator.js +504 -0
- package/core/.specialist/Ansuz/tools/verify-and-land.js +1012 -0
- package/core/.specialist/Ansuz/tools/verify-and-land.test.js +1099 -0
- package/core/.specialist/Ansuz/workflow.yaml +1273 -0
- package/core/.specialist/Forseti/capability.yaml +210 -0
- package/core/.specialist/Forseti/core.yaml +176 -0
- package/core/.specialist/Forseti/principles.yaml +88 -0
- package/core/.specialist/Forseti/rule.yaml +86 -0
- package/core/.specialist/Heimdall/SKILL.md +65 -0
- package/core/.specialist/Heimdall/capability.yaml +134 -0
- package/core/.specialist/Heimdall/core.yaml +275 -0
- package/core/.specialist/Heimdall/principles.yaml +66 -0
- package/core/.specialist/Heimdall/rule.yaml +68 -0
- package/core/.specialist/Huginn/capability.yaml +234 -0
- package/core/.specialist/Huginn/core.yaml +482 -0
- package/core/.specialist/Huginn/principles.yaml +57 -0
- package/core/.specialist/Huginn/rule.yaml +121 -0
- package/core/.specialist/REFLECTION_TO_CONTROL.md +347 -0
- package/core/.specialist/ansuz_session_handoff.json +96 -0
- package/core/.specialist/experiments/rg_benchmark.js +523 -0
- package/core/.specialist/experiments/rg_benchmark_results.json +27 -0
- package/core/.specialist/shared/cognitive-primer.md +15 -0
- package/core/.specialist/shared/guard_schema.json +290 -0
- package/core/.specialist/shared/principles.yaml +213 -0
- package/core/.specialist/tests/runtime-discovery/README.md +224 -0
- package/core/.specialist/tests/runtime-discovery/active-project-polling.test.js +495 -0
- package/core/.specialist/tests/runtime-discovery/port-binding.test.js +418 -0
- package/core/.specialist/tests/runtime-discovery/resolver-priority.test.js +693 -0
- package/core/.specialist/tests/runtime-discovery/resolver-skip-on-invalid.test.js +467 -0
- package/core/.specialist/tests/runtime-discovery/resolver-symmetry.test.js +679 -0
- package/core/.specialist/tests/runtime-discovery/tail-cli-project-path.test.js +231 -0
- package/core/.specialist/tools/MEMORY_RECALL_TRIGGERS.md +156 -0
- package/core/.specialist/tools/README.md +129 -0
- package/core/.specialist/tools/__tests__/freya-cli-contract.test.js +156 -0
- package/core/.specialist/tools/__tests__/task-1863-boot-lease-reuse.test.js +99 -0
- package/core/.specialist/tools/__tests__/task-1917-orphan-detection.test.js +175 -0
- package/core/.specialist/tools/__tests__/task-1977-banner-cap.test.js +129 -0
- package/core/.specialist/tools/__tests__/task-1983-lease-project-path.test.js +96 -0
- package/core/.specialist/tools/__tests__/task-2218-boot-session-id.test.js +118 -0
- package/core/.specialist/tools/__tests__/task-2222-session-identity-interleave.test.js +203 -0
- package/core/.specialist/tools/__tests__/task-2246-reap-honesty.test.js +96 -0
- package/core/.specialist/tools/__tests__/task-2254-handoff-archive-contract.test.js +60 -0
- package/core/.specialist/tools/__tests__/task-2272-open-card-status-quote.test.js +26 -0
- package/core/.specialist/tools/__tests__/task-2374-usage-counter.test.js +34 -0
- package/core/.specialist/tools/ansuz-boot-fast.js +1120 -0
- package/core/.specialist/tools/ansuz-boot-fast.test.js +705 -0
- package/core/.specialist/tools/canary.js +501 -0
- package/core/.specialist/tools/context-injection.js +395 -0
- package/core/.specialist/tools/design-reasoning.js +493 -0
- package/core/.specialist/tools/discovery-fixtures.js +308 -0
- package/core/.specialist/tools/discovery-runner.js +460 -0
- package/core/.specialist/tools/failure-detector.js +1132 -0
- package/core/.specialist/tools/identity-scorer.js +714 -0
- package/core/.specialist/tools/jev-optional-context.js +107 -0
- package/core/.specialist/tools/jev-optional-context.test.js +152 -0
- package/core/.specialist/tools/lesson-guard.js +1084 -0
- package/core/.specialist/tools/lib/chart-path.js +159 -0
- package/core/.specialist/tools/lib/chart-path.test.js +171 -0
- package/core/.specialist/tools/lib/project-resolver.js +200 -0
- package/core/.specialist/tools/lib/project-resolver.test.js +241 -0
- package/core/.specialist/tools/memory-action-log.js +839 -0
- package/core/.specialist/tools/phase-gate.js +3754 -0
- package/core/.specialist/tools/phase-gate.test.js +85 -0
- package/core/.specialist/tools/phase9-policy.test.js +109 -0
- package/core/.specialist/tools/precompute-runner.js +444 -0
- package/core/.specialist/tools/prompt-files.test.js +169 -0
- package/core/.specialist/tools/replay-detectors.js +290 -0
- package/core/.specialist/tools/rule-engine.js +621 -0
- package/core/.specialist/tools/session-boot-ownership.test.js +117 -0
- package/core/.specialist/tools/session-project-state.test.js +65 -0
- package/core/.specialist/tools/session.js +1866 -0
- package/core/.specialist/tools/stream-lease.js +263 -0
- package/core/.specialist/tools/task-bridge-jev.test.js +170 -0
- package/core/.specialist/tools/task-bridge.js +765 -0
- package/core/.specialist/tools/verify-identity.js +453 -0
- package/core/.specialist/tools/wish-mandate-delivery.test.js +76 -0
- package/core/.system/README.md +555 -0
- package/core/.system/agent-skills/README.md +724 -0
- package/core/.system/archive/README.md +499 -0
- package/core/.system/assessment/README.md +645 -0
- package/core/.system/cli-tools/README.md +724 -0
- package/core/.system/collaboration/KNOWLEDGE.md +65 -0
- package/core/.system/collaboration/README.md +570 -0
- package/core/.system/cortex/MODULES.md +1046 -0
- package/core/.system/dashboard/FRONTEND.md +812 -0
- package/core/.system/dashboard/README.md +737 -0
- package/core/.system/external-skills/README.md +522 -0
- package/core/.system/failure/README.md +723 -0
- package/core/.system/formation/LEGACY_SKILLS.md +972 -0
- package/core/.system/formation/POST_COMPLETE.md +600 -0
- package/core/.system/formation/README.md +1092 -0
- package/core/.system/formation/TOOLS_REFERENCE.md +1145 -0
- package/core/.system/githooks/README.md +846 -0
- package/core/.system/kenaz/README.md +787 -0
- package/core/.system/memory/README.md +716 -0
- package/core/.system/pipeline/README.md +712 -0
- package/core/.system/rule/README.md +794 -0
- package/core/.system/specialist/README.md +669 -0
- package/core/.system/specialist/STRUCTURE.md +262 -0
- package/core/.system/sunny/README.md +476 -0
- package/core/.system/sunny/RULES.json +89 -0
- package/core/.system/sunny/knowledge/INDEX.md +37 -0
- package/core/.system/sunny/knowledge/agent-teams-api.md +0 -0
- package/core/.system/sunny/knowledge/ansuz-specialist.md +500 -0
- package/core/.system/sunny/knowledge/claude-cli-spawn.md +177 -0
- package/core/.system/sunny/knowledge/collaboration-api.md +925 -0
- package/core/.system/sunny/teammates/README.md +107 -0
- package/core/.system/sunny/teammates/how_to_use.yaml +101 -0
- package/core/.system/sunny/teammates/tools/headless/launcher.js +318 -0
- package/core/.system/sunny/teammates/tools/powershell/launcher.js +241 -0
- package/core/.system/sunny/teammates/tools/powershell/start.bat +50 -0
- package/core/.system/sunny/teammates/tools/utils/env.js +96 -0
- package/core/.system/sunny/teammates/tools/utils/format-output.js +329 -0
- package/core/.system/sunny/tools.json +101 -0
- package/core/.vendor/js-yaml.cjs +2795 -0
- package/core/.vendor/require-yaml.cjs +8 -0
- package/core/CLAUDE.md +172 -0
- package/core/KENAZ_CORE_VERSION +1 -0
- package/core/dev/ALAYA_FIELD_FEEDBACK_DESIGN.md +126 -0
- package/core/dev/ANSUZ_SCAFFOLD_DIET_2026-09-20.md +231 -0
- package/core/dev/ANSUZ_STARTUP_INJECTION_REVIEW.md +355 -0
- package/core/dev/ANSUZ_WORKFLOW_MODERNIZATION.md +143 -0
- package/core/dev/CORTEX_META_GRAPH_ASSESSMENT.md +99 -0
- package/core/dev/FREYA_DOWNSTREAM_BUGS_2026-09-19.md +44 -0
- package/core/dev/GLOBAL_MEMORY_IDENTITY_CONSOLIDATION.md +263 -0
- package/core/dev/GUARD_EFFECTIVENESS_DESIGN.md +180 -0
- package/core/dev/HEALTH_GATE_VARIANCE_ASSESSMENT.md +271 -0
- package/core/dev/HOOK_DIET_2026-09-21.md +126 -0
- package/core/dev/JEV_INTEGRATION_PLAN.md +189 -0
- package/core/dev/KENAZ_AGENT_CONNECT_v1_SPEC.md +139 -0
- package/core/dev/MOBILE_DESIGN_SPEC.md +569 -0
- package/core/dev/MULTI_ANSUZ_SPEC.md +136 -0
- package/core/dev/MUNINN_RETIREMENT.md +115 -0
- package/core/dev/PHASE3_ATTRIBUTION_POPULATION_DIAGNOSIS.md +211 -0
- package/core/dev/PHASE3_P3-2B_TASKLEVEL_PROBE.md +83 -0
- package/core/dev/PHASE3_P3-2_POPULATION_DISJOINTNESS.md +83 -0
- package/core/dev/PHASE3_P3-2_REMEASURE_REPORT.md +231 -0
- package/core/dev/PREDICTION_GROUNDING_DESIGN.md +376 -0
- package/core/dev/PRODUCT_SPEC.md +317 -0
- package/core/dev/PRODUCT_SPEC_FOR_AI_tepmlate.md +716 -0
- package/core/dev/PROJECT_REGISTRY_DUPLICATE_ASSESSMENT.md +86 -0
- package/core/dev/STARTUP_TIMELINE_TASK_1995.md +181 -0
- package/core/dev/SYNAPSE_WORKER_PER_PROJECT.md +881 -0
- package/core/dev/TASK_1680_P3-3_DISPATCH_SPEC.md +96 -0
- package/core/dev/TASK_1684_CALIBRATION_IMPACT_ANALYSIS.md +170 -0
- package/core/dev/TASK_1684_FORK_A_GOODHART_DESIGN.md +171 -0
- package/core/dev/TASK_1684_P3_2_REMEASURE_VALIDATION.md +262 -0
- package/core/dev/TASK_1903_SIGNAL_AUC_MEASUREMENT.md +207 -0
- package/core/dev/TASK_1904_BRANCH_INTEGRITY_AUDIT.md +146 -0
- package/core/dev/ansuz-eval/README.md +38 -0
- package/core/dev/ansuz-eval/build-fixtures.js +87 -0
- package/core/dev/ansuz-eval/grade.js +96 -0
- package/core/dev/ansuz-eval/grader.test.js +117 -0
- package/core/dev/ansuz-eval/tasks.md +32 -0
- package/core/dev/archive/ansuz/BOOT_FULL.md +141 -0
- package/core/dev/archive/ansuz/agents/ansuz-boot.md +176 -0
- package/core/dev/archive/ansuz/designs/alaya-passive-surfacing.md +84 -0
- package/core/dev/archive/ansuz/designs/cc_memory_indexing.md +307 -0
- package/core/dev/archive/ansuz/designs/check_guard.md +322 -0
- package/core/dev/archive/ansuz/designs/consequence_loop.md +227 -0
- package/core/dev/archive/ansuz/designs/mcp_kuzudb_lock_architecture.md +312 -0
- package/core/dev/archive/ansuz/designs/phase0_git_enrichment.md +278 -0
- package/core/dev/archive/ansuz/designs/refactor_mcp_tools_synapse.md +490 -0
- package/core/dev/archive/ansuz/designs/semantic_markdown_extraction.md +167 -0
- package/core/dev/archive/ansuz/designs/task_1372_prompt_injects_into.md +193 -0
- package/core/dev/archive/ansuz/designs/thought_stack.md +286 -0
- package/core/dev/archive/ansuz/investigations/reachability_unified_api_2026-04-11.md +330 -0
- package/core/dev/archive/ansuz/investigations/synapse_orphans_indexing_bug_2026-04-11.md +352 -0
- package/core/dev/archive/ansuz/investigations/synapse_orphans_reindex_verification_2026-04-11.md +48 -0
- package/core/dev/archive/ansuz/investigations/synapse_orphans_verification_2026-04-11.md +170 -0
- package/core/dev/archive/ansuz/legacy/kernel.yaml +399 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_0.yaml +418 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_1.yaml +376 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_10.yaml +35 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_11.yaml +582 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_2.yaml +94 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_3.yaml +274 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_4.yaml +67 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_5.yaml +32 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_6.yaml +91 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_7.yaml +58 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_8.yaml +146 -0
- package/core/dev/archive/ansuz/legacy/phases/phase_9.yaml +424 -0
- package/core/dev/archive/ansuz/specs/INDEX_bifrost_hook_parity.yaml +92 -0
- package/core/dev/archive/ansuz/specs/active-inference-formation.yaml +453 -0
- package/core/dev/archive/ansuz/specs/brief_TASK_1228_userpromptsubmit.yaml +191 -0
- package/core/dev/archive/ansuz/specs/brief_TASK_1229_pretooluse_posttooluse.yaml +250 -0
- package/core/dev/archive/ansuz/specs/brief_TASK_1230_sessionstart_stop.yaml +301 -0
- package/core/dev/archive/ansuz/specs/brief_TASK_1231_verification.yaml +272 -0
- package/core/dev/design/PHASE4_DESIGN.md +559 -0
- package/core/dev/design/dashboard_docs_integration_PLAN.md +388 -0
- package/core/dev/design/matrix_format_ABBREVIATIONS.md +655 -0
- package/core/dev/design/matrix_format_DESIGN_SPEC.md +601 -0
- package/core/dev/design/matrix_format_DISCUSSION_SUMMARY.md +484 -0
- package/core/dev/design/matrix_format_EXAMPLE_memory.matrix +13 -0
- package/core/dev/design/matrix_format_EXAMPLE_project_status.matrix +9 -0
- package/core/dev/design/matrix_format_EXAMPLE_tasks.matrix +14 -0
- package/core/dev/design/matrix_format_SYNTAX_BNF.md +754 -0
- package/core/dev/design/matrix_format_TOKEN_COMPARISON.md +484 -0
- package/core/dev/design/matrix_v2_COGNITIVE_DESIGN.md +503 -0
- package/core/dev/design/matrix_v2_DISCUSSION_SUMMARY.md +414 -0
- package/core/dev/design/matrix_v2_EXAMPLE.matrix +67 -0
- package/core/dev/designs/EXPANDABLE_CARD_DESIGN_SPEC.md +509 -0
- package/core/dev/jev-eval/ACTIVE_CORRECTION.md +52 -0
- package/core/dev/jev-eval/ANNOTATION_GUIDE.md +68 -0
- package/core/dev/jev-eval/BASELINE_COMPARISON.md +45 -0
- package/core/dev/jev-eval/CONTEXT_REVIEW.md +31 -0
- package/core/dev/jev-eval/EVALUATION_STATUS.md +39 -0
- package/core/dev/jev-eval/HISTORICAL_CORPUS.md +33 -0
- package/core/dev/jev-eval/PACKAGING_VERIFICATION.md +42 -0
- package/core/dev/jev-eval/README.md +101 -0
- package/core/dev/jev-eval/THALAMUS_RANKING.md +58 -0
- package/core/dev/jev-eval/VALIDATION_PROGRESS.md +54 -0
- package/core/dev/jev-eval/cli.mjs +50 -0
- package/core/dev/jev-eval/context.mjs +183 -0
- package/core/dev/jev-eval/corpus.mjs +186 -0
- package/core/dev/jev-eval/fixtures/conversation-review.seed.jsonl +6 -0
- package/core/dev/jev-eval/fixtures/synthetic.jsonl +11 -0
- package/core/dev/jev-eval/metrics.mjs +67 -0
- package/core/dev/jev-eval/muninn-baseline.mjs +119 -0
- package/core/dev/jev-eval/providers.mjs +95 -0
- package/core/dev/jev-eval/reports/annotation-pilot-2026-09-20.json +32 -0
- package/core/dev/jev-eval/reports/context-review-2026-09-20.json +48 -0
- package/core/dev/jev-eval/reports/conversation-review.pending.json +151 -0
- package/core/dev/jev-eval/reports/history-corpus-2026-09-20.json +52 -0
- package/core/dev/jev-eval/reports/length-probe-2026-09-20.json +133 -0
- package/core/dev/jev-eval/reports/live-smoke-2026-09-20.json +616 -0
- package/core/dev/jev-eval/reports/muninn-baseline-2026-09-20.json +52 -0
- package/core/dev/jev-eval/reports/resilience-2026-09-20.json +520 -0
- package/core/dev/jev-eval/reports/rules-baseline.json +197 -0
- package/core/dev/jev-eval/reports/synthetic-review.pending.json +357 -0
- package/core/dev/jev-eval/resilience.mjs +71 -0
- package/core/dev/jev-eval/review.mjs +78 -0
- package/core/dev/jev-eval/schema.mjs +87 -0
- package/core/dev/jev-eval/test/context.test.mjs +95 -0
- package/core/dev/jev-eval/test/corpus.test.mjs +102 -0
- package/core/dev/jev-eval/test/eval.test.mjs +146 -0
- package/core/dev/jev-eval/test/muninn-baseline.test.mjs +71 -0
- package/core/dev/jev-eval/test/resilience.test.mjs +72 -0
- package/core/dev/jev-eval/test/review.test.mjs +61 -0
- package/core/dev/pipeline/LOCK_STATE.json +4 -0
- package/core/dev/pipeline/OPTIMIZATION_PROPOSALS.json +32 -0
- package/core/dev/pipeline/PHASE3_PLANNING_SUMMARY.md +338 -0
- package/core/dev/pipeline/PIPELINE_CONFIG.json +46 -0
- package/core/dev/pipeline/PROGRESS.md +113 -0
- package/core/dev/pipeline/PROGRESS_template.md +860 -0
- package/core/dev/pipeline/QA_REPORT_F008.md +431 -0
- package/core/dev/pipeline/QA_REPORT_LOCAL_CLAUDE_DIAGNOSIS.md +583 -0
- package/core/dev/pipeline/README.md +210 -0
- package/core/dev/pipeline/SELF_ENHANCEMENT_STATUS.json.bak +47 -0
- package/core/dev/pipeline/TASK_QUEUE.json +192 -0
- package/core/dev/pipeline/WORKFLOW_GUIDE.md +824 -0
- package/core/dev/pipeline/archived/TASK_015_tauri_init.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_016_tauri_commands.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_017_rust_pty.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_018_tauri_bundle.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_019_release_workflow.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_020_update_ui.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_021_update_notification_ui.yaml +55 -0
- package/core/dev/pipeline/archived/TASK_022_remove_node_pty.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_023_api_routes_migration.yaml +86 -0
- package/core/dev/pipeline/archived/TASK_024_feature_id_system.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_025_executable_acceptance.yaml +66 -0
- package/core/dev/pipeline/archived/TASK_026_spec_versioning.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_027_drift_detection.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_028_tauri_pty_manager.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_029_tauri_pty_commands.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_030_frontend_session_adapter.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_031_terminal_tauri_events.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_041_scheduler_data_models.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_042_path_lock_manager.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_043_process_manager.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_044_git_integration.yaml +85 -0
- package/core/dev/pipeline/archived/TASK_045_task_queue_manager.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_046_scheduler_dispatcher.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_047_tauri_scheduler_commands.yaml +55 -0
- package/core/dev/pipeline/archived/TASK_048_realtime_status_push.yaml +92 -0
- package/core/dev/pipeline/archived/TASK_049_frontend_scheduler_integration.yaml +58 -0
- package/core/dev/pipeline/archived/TASK_050_error_recovery.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_051_optimization_proposals_backend.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_052_optimization_proposals_ui.yaml +58 -0
- package/core/dev/pipeline/archived/TASK_053_optimization_proposals_diff_view.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_054_multi_project_scheduler_state.yaml +76 -0
- package/core/dev/pipeline/archived/TASK_055_scheduler_api_project_scope.yaml +64 -0
- package/core/dev/pipeline/archived/TASK_056_frontend_scheduler_project_scope.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_057_scheduler_module_structure.yaml +54 -0
- package/core/dev/pipeline/archived/TASK_058_scheduler_models_extract.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_059_scheduler_core_extract.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_060_scheduler_commands_extract.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_061_scheduler_specialized_commands.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_062_process_manager_module_structure.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_063_process_manager_core_extract.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_064_recovery_module_structure.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_065_recovery_core_extract.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_066_self_enhancement_scheduler_models.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_067_agents_section_quick_actions.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_067_self_enhancement_scheduler_core.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_068_agent_workflow_rule_enhancement.yaml +46 -0
- package/core/dev/pipeline/archived/TASK_068_self_enhancement_tauri_commands.yaml +61 -0
- package/core/dev/pipeline/archived/TASK_069_agent_wizard_responsive.yaml +46 -0
- package/core/dev/pipeline/archived/TASK_069_self_enhancement_ui.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_070_preview_panel_redesign.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_070_self_enhancement_integration.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_071_preview_panel_qa.yaml +98 -0
- package/core/dev/pipeline/archived/TASK_071_single_agent_config.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_072_preview_modal_esc_fix.yaml +71 -0
- package/core/dev/pipeline/archived/TASK_072_product_review_module.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_073_agents_page_component_refactor.yaml +68 -0
- package/core/dev/pipeline/archived/TASK_073_rename_single_agent.yaml +64 -0
- package/core/dev/pipeline/archived/TASK_074_preview_mode_ui_diagnosis.yaml +71 -0
- package/core/dev/pipeline/archived/TASK_074_single_agent_ui_toggle.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_075_agents_page_component_refactor.yaml +69 -0
- package/core/dev/pipeline/archived/TASK_075_single_agent_integration_test.yaml +75 -0
- package/core/dev/pipeline/archived/TASK_076_preview_mode_ui_diagnosis.yaml +70 -0
- package/core/dev/pipeline/archived/TASK_076_single_agent_continuous_mode.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_077_failure_directory_structure.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_077_single_agent_typescript_types.yaml +59 -0
- package/core/dev/pipeline/archived/TASK_078_fail_001_agent_no_output.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_078_single_agent_ui_simplify.yaml +74 -0
- package/core/dev/pipeline/archived/TASK_079_dashboard_rwd_responsive.yaml +63 -0
- package/core/dev/pipeline/archived/TASK_079_fail_002_json_bom.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_080_fail_003_queue_pollution.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_080_http_server_module.yaml +55 -0
- package/core/dev/pipeline/archived/TASK_081_failure_logging_tools.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_081_http_api_routes.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_082_frontend_api_adapter.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_082_integrate_failure_to_workflow.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_083_cleanup_nextjs_api.yaml +48 -0
- package/core/dev/pipeline/archived/TASK_083_task_queue_cleanup.yaml +67 -0
- package/core/dev/pipeline/archived/TASK_084_rust_dead_code_cleanup.yaml +66 -0
- package/core/dev/pipeline/archived/TASK_084_scheduler_sync_logic_fix.yaml +68 -0
- package/core/dev/pipeline/archived/TASK_085_http_api_web_mode_fixes.yaml +46 -0
- package/core/dev/pipeline/archived/TASK_085_memory_consolidation_0204_0205.yaml +98 -0
- package/core/dev/pipeline/archived/TASK_086_collapsible_preview_panel.yaml +161 -0
- package/core/dev/pipeline/archived/TASK_086_web_mode_feature_parity.yaml +62 -0
- package/core/dev/pipeline/archived/TASK_087_manual_memory_archival.yaml +163 -0
- package/core/dev/pipeline/archived/TASK_087_mobile_http_control.yaml +68 -0
- package/core/dev/pipeline/archived/TASK_088_fail_003_to_ppl_002_rule.yaml +63 -0
- package/core/dev/pipeline/archived/TASK_088_mobile_http_qa.yaml +121 -0
- package/core/dev/pipeline/archived/TASK_089_agent_collaboration_topic.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_089_web_mode_monitor_fix.yaml +58 -0
- package/core/dev/pipeline/archived/TASK_090_cli_detection_fix.yaml +61 -0
- package/core/dev/pipeline/archived/TASK_090_ui_ux_lessons_topic.yaml +63 -0
- package/core/dev/pipeline/archived/TASK_091_expandable_card_design.yaml +56 -0
- package/core/dev/pipeline/archived/TASK_091_move_agent_section_components.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_092_expandable_card_component.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_092_refactor_agent_create_wizard.yaml +84 -0
- package/core/dev/pipeline/archived/TASK_093_taskcard_detail_integration.yaml +57 -0
- package/core/dev/pipeline/archived/TASK_093_update_barrel_exports_test.yaml +84 -0
- package/core/dev/pipeline/archived/TASK_094_ai_agent_generation_enhancement.yaml +115 -0
- package/core/dev/pipeline/archived/TASK_094_proposalcard_detail_integration.yaml +55 -0
- package/core/dev/pipeline/archived/TASK_095_preview_fixes.yaml +129 -0
- package/core/dev/pipeline/archived/TASK_095_single_agent_task_selector.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_096_agents_page_ux_improvements.yaml +163 -0
- package/core/dev/pipeline/archived/TASK_096_single_agent_status_sync.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_097_local_claude_error_logging.yaml +59 -0
- package/core/dev/pipeline/archived/TASK_097_single_agent_monitor_events.yaml +59 -0
- package/core/dev/pipeline/archived/TASK_098_product_manager_team_phase2.yaml +60 -0
- package/core/dev/pipeline/archived/TASK_098_single_agent_refactor_test.yaml +58 -0
- package/core/dev/pipeline/archived/TASK_099_backend_team_creation.yaml +258 -0
- package/core/dev/pipeline/archived/TASK_100_frontend_team_creation.yaml +61 -0
- package/core/dev/pipeline/archived/TASK_101_orchestrator_system.yaml +403 -0
- package/core/dev/pipeline/archived/TASK_102_designer_sre_teams.yaml +90 -0
- package/core/dev/pipeline/archived/TASK_103_integration_testing.yaml +86 -0
- package/core/dev/pipeline/archived/TASK_128_integration_testing.yaml +83 -0
- package/core/dev/pipeline/archived/TASK_134_cortex_v2_phase3_file_watcher.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_134_team_http_api.yaml +96 -0
- package/core/dev/pipeline/archived/TASK_135_cortex_v2_phase3_git_monitor.yaml +63 -0
- package/core/dev/pipeline/archived/TASK_136_cortex_v2_phase3_change_analyzer.yaml +69 -0
- package/core/dev/pipeline/archived/TASK_137_cortex_v2_phase3_cache_invalidator.yaml +67 -0
- package/core/dev/pipeline/archived/TASK_137_team_orchestrator_integration.yaml +93 -0
- package/core/dev/pipeline/archived/TASK_138_cortex_v2_phase3_distributed_cache.yaml +68 -0
- package/core/dev/pipeline/archived/TASK_138_matrix_folder_structure.yaml +61 -0
- package/core/dev/pipeline/archived/TASK_139_cortex_v2_phase3_cache_prewarming.yaml +65 -0
- package/core/dev/pipeline/archived/TASK_146_unified_documentation.yaml +141 -0
- package/core/dev/pipeline/archived/TASK_147_pipeline_execution_rules.yaml +76 -0
- package/core/dev/pipeline/archived/TASK_148_update_claude_md.yaml +77 -0
- package/core/dev/pipeline/archived/TASK_149_fix_nextjs_mdx_serialization.yaml +63 -0
- package/core/dev/pipeline/archived/TASK_149_update_team_docs.yaml +77 -0
- package/core/dev/pipeline/archived/TASK_150_pipeline_workflow_guide.yaml +82 -0
- package/core/dev/pipeline/archived/TASK_164_fix_smart_context_switch.yaml +49 -0
- package/core/dev/pipeline/archived/TASK_165_ctags_symbol_index.yaml +53 -0
- package/core/dev/pipeline/archived/TASK_166_symbol_search_mcp_tool.yaml +48 -0
- package/core/dev/pipeline/archived/TASK_167_llm_module_summary.yaml +55 -0
- package/core/dev/pipeline/archived/TASK_168_map_reduce_context.yaml +51 -0
- package/core/dev/pipeline/archived/TASK_169_v2_integration_testing.yaml +52 -0
- package/core/dev/pipeline/backups/archive_2026-02-04T22-07-22/TASK_QUEUE_backup.json +95 -0
- package/core/dev/pipeline/docs/multi-agent-coordination.md +446 -0
- package/core/dev/pipeline/docs/overview.md +406 -0
- package/core/dev/pipeline/docs/task-management.md +412 -0
- package/core/dev/pipeline/docs/workflows.md +32 -0
- package/core/dev/pipeline/orchestrator/schemas/task_queue_schema.json +58 -0
- package/core/dev/pipeline/orchestrator/schemas/task_schema.json +139 -0
- package/core/dev/pipeline/plans/PLAN_task_cli_refactor.md +281 -0
- package/core/dev/pipeline/tasks/.gitkeep +1 -0
- package/core/dev/pipeline/test_results/TASK_TEST_PARALLEL_002_result.txt +27 -0
- package/core/dev/plans/CLI_FIRST_INSTALL_FLOW.md +128 -0
- package/core/dev/plans/FORMATION_RETIREMENT_PLAN.md +313 -0
- package/core/dev/plans/KUZU_REPLACEMENT_PLAN.md +126 -0
- package/core/dev/schemas/PRODUCT_SPEC.example.yaml +382 -0
- package/core/dev/schemas/PRODUCT_SPEC.schema.json +800 -0
- package/core/dev/schemas/README.md +517 -0
- package/core/dev/schemas/TASK.schema.json +226 -0
- package/core/dev/schemas/dataflows_ground_truth.yaml +173 -0
- package/core/dev/schemas/dataflows_spec.yaml +160 -0
- package/core/dev/schemas/extends_ground_truth.yaml +66 -0
- package/core/dev/schemas/extends_spec.yaml +121 -0
- package/core/dev/schemas/implements_ground_truth.yaml +77 -0
- package/core/dev/schemas/implements_spec.yaml +140 -0
- package/core/dev/scripts/CRASH_DIAGNOSIS.md +47 -0
- package/core/dev/scripts/README.md +142 -0
- package/core/dev/scripts/RUN_ONCE.bat +40 -0
- package/core/dev/scripts/START_DEV_AGENT.bat +63 -0
- package/core/dev/scripts/START_MULTI_AGENT.bat +80 -0
- package/core/dev/scripts/check-alaya-report-isolation.js +255 -0
- package/core/dev/scripts/check-file-size.js +268 -0
- package/core/dev/scripts/ci-feedback.js +251 -0
- package/core/dev/scripts/clean-verify-targets.js +132 -0
- package/core/dev/scripts/cleanup-queue.js +184 -0
- package/core/dev/scripts/cleanup_queue.js +86 -0
- package/core/dev/scripts/dev_agent_scheduler.ps1 +536 -0
- package/core/dev/scripts/dispatch-stats.js +384 -0
- package/core/dev/scripts/dispatch-stats.test.js +162 -0
- package/core/dev/scripts/gc-agent-worktrees.js +461 -0
- package/core/dev/scripts/gc-agent-worktrees.test.js +48 -0
- package/core/dev/scripts/hooks/README.md +148 -0
- package/core/dev/scripts/init_git.ps1 +396 -0
- package/core/dev/scripts/init_git.sh +337 -0
- package/core/dev/scripts/init_project.ps1 +851 -0
- package/core/dev/scripts/init_project.sh +477 -0
- package/core/dev/scripts/js-yaml-resolution.test.js +48 -0
- package/core/dev/scripts/kenaz-session.js +354 -0
- package/core/dev/scripts/kenaz-session.test.js +234 -0
- package/core/dev/scripts/legacy/README.md +39 -0
- package/core/dev/scripts/legacy/dev_agent_scheduler.ps1.bak +536 -0
- package/core/dev/scripts/legacy/multi_agent_scheduler.ps1.bak +1978 -0
- package/core/dev/scripts/matrix/CLI_README.md +214 -0
- package/core/dev/scripts/matrix/README.md +310 -0
- package/core/dev/scripts/matrix/package-lock.json +4266 -0
- package/core/dev/scripts/matrix/package.json +55 -0
- package/core/dev/scripts/matrix/src/abbreviations.ts +295 -0
- package/core/dev/scripts/matrix/src/cli/commands/convert.ts +211 -0
- package/core/dev/scripts/matrix/src/cli/commands/create.ts +95 -0
- package/core/dev/scripts/matrix/src/cli/commands/delete.ts +102 -0
- package/core/dev/scripts/matrix/src/cli/commands/list-tags.ts.wip +140 -0
- package/core/dev/scripts/matrix/src/cli/commands/manage-tags.ts.wip +173 -0
- package/core/dev/scripts/matrix/src/cli/commands/query.ts +261 -0
- package/core/dev/scripts/matrix/src/cli/commands/read.ts +77 -0
- package/core/dev/scripts/matrix/src/cli/commands/stats.ts.wip +168 -0
- package/core/dev/scripts/matrix/src/cli/commands/tokens.ts.wip +126 -0
- package/core/dev/scripts/matrix/src/cli/commands/update.ts +147 -0
- package/core/dev/scripts/matrix/src/cli/commands/validate.ts +275 -0
- package/core/dev/scripts/matrix/src/cli/index.ts +350 -0
- package/core/dev/scripts/matrix/src/cli/utils/file-handler.ts +72 -0
- package/core/dev/scripts/matrix/src/cli/utils/logger.ts +65 -0
- package/core/dev/scripts/matrix/src/index.ts +62 -0
- package/core/dev/scripts/matrix/src/indexer/tag-indexer.ts +165 -0
- package/core/dev/scripts/matrix/src/parser.ts +281 -0
- package/core/dev/scripts/matrix/src/serializer.ts +151 -0
- package/core/dev/scripts/matrix/src/validator.ts +301 -0
- package/core/dev/scripts/matrix/tests/abbreviations.test.ts +122 -0
- package/core/dev/scripts/matrix/tests/cli.test.ts +177 -0
- package/core/dev/scripts/matrix/tests/convert.test.ts +143 -0
- package/core/dev/scripts/matrix/tests/parser.test.ts +203 -0
- package/core/dev/scripts/matrix/tests/query.test.ts +85 -0
- package/core/dev/scripts/matrix/tests/serializer.test.ts +197 -0
- package/core/dev/scripts/matrix/tests/validate.test.ts +141 -0
- package/core/dev/scripts/matrix/tests/validator.test.ts +167 -0
- package/core/dev/scripts/matrix/tsconfig.json +20 -0
- package/core/dev/scripts/matrix/types/index.d.ts +111 -0
- package/core/dev/scripts/matrix/types/index.d.ts.map +1 -0
- package/core/dev/scripts/matrix/types/index.js +8 -0
- package/core/dev/scripts/matrix/types/index.js.map +1 -0
- package/core/dev/scripts/matrix/types/index.ts +124 -0
- package/core/dev/scripts/memory-guard-eval.js +330 -0
- package/core/dev/scripts/memory-usage-report.js +152 -0
- package/core/dev/scripts/migrate-task-dependencies.js +198 -0
- package/core/dev/scripts/multi_agent_scheduler.ps1 +2021 -0
- package/core/dev/scripts/multi_agent_scheduler.sh +1344 -0
- package/core/dev/scripts/probe/ansuz-scaffold-ablation.js +579 -0
- package/core/dev/scripts/probe/ansuz-scaffold-ablation.test.js +244 -0
- package/core/dev/scripts/probe/hippocampus-concurrency.js +247 -0
- package/core/dev/scripts/probe/hook-latency-probe.js +315 -0
- package/core/dev/scripts/probe/hook-latency-probe.test.js +105 -0
- package/core/dev/scripts/probe/prediction-signal-auc.js +483 -0
- package/core/dev/scripts/probe/prediction-signal-auc.test.js +200 -0
- package/core/dev/scripts/reset_tasks.js +99 -0
- package/core/dev/scripts/run-rust-tests.js +207 -0
- package/core/dev/scripts/run-rust-tests.test.js +154 -0
- package/core/dev/scripts/run_once.sh +47 -0
- package/core/dev/scripts/rust-verify-worktree.js +591 -0
- package/core/dev/scripts/rust-verify-worktree.test.js +574 -0
- package/core/dev/scripts/seh_probe.rs +26 -0
- package/core/dev/scripts/setup_mcp.ps1 +192 -0
- package/core/dev/scripts/setup_mcp.sh +159 -0
- package/core/dev/scripts/setup_rag.ps1 +304 -0
- package/core/dev/scripts/setup_rag.sh +230 -0
- package/core/dev/scripts/start_dev_agent.sh +137 -0
- package/core/dev/scripts/start_multi_agent.sh +41 -0
- package/core/dev/scripts/sync_task_queue.ps1 +505 -0
- package/core/dev/scripts/sync_task_queue.sh +392 -0
- package/core/dev/scripts/task1961/RUNBOOK.md +300 -0
- package/core/dev/scripts/task1961/fixtures/never-listens.server.js +54 -0
- package/core/dev/scripts/task1961/fixtures/slow-serve.server.js +134 -0
- package/core/dev/scripts/task1961/run-fixture.js +659 -0
- package/core/dev/scripts/task1961/selftest.js +247 -0
- package/core/dev/scripts/test-pty-ws-tunnel.js +229 -0
- package/core/dev/scripts/validate_pipeline.js +197 -0
- package/core/dev/scripts/verify-isbar-capture.js +100 -0
- package/core/dev/scripts/verify-target-dir.js +69 -0
- package/core/dev/scripts/verify-task-1839.js +141 -0
- package/core/dev/specs/agent-connect/PROTOCOL.md +177 -0
- package/core/dev/specs/agent-connect/SDK_GUIDE.md +915 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/README.md +137 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/package.json +12 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/public/index.html +116 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/public/install-redirect.js +73 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/server.js +516 -0
- package/core/dev/specs/agent-connect/examples/minimal-site/test/smoke.test.mjs +263 -0
- package/core/dev/specs/agent-connect/history/DEFECT_REPORT_kenaz-agent-hub_2026-09-09_v0.4-empty-prompt-no-first-turn.md +77 -0
- package/core/dev/specs/agent-connect/history/DEFECT_REPORT_kenaz-agent-hub_2026-09-09_v0.4-prompt-mojibake.md +90 -0
- package/core/dev/specs/agent-connect/history/FEATURE_REQUEST_kenaz-agent-hub_2026-09-07.md +61 -0
- package/core/dev/specs/agent-connect/history/FEATURE_REQUEST_kenaz-agent-hub_2026-09-08_relay-v1-conformance.md +76 -0
- package/core/dev/specs/agent-connect/history/FEATURE_REQUEST_kenaz-agent-hub_2026-09-09_v0.4-session-channel.md +87 -0
- package/core/dev/specs/agent-connect/history/FLOWPIX_REPLY_agent-hub_2026-09-08_relay-v1-answers.md +68 -0
- package/core/dev/specs/agent-connect/history/FLOWPIX_bridge_CONTRACT.md +642 -0
- package/core/dev/specs/agent-connect/history/FLOWPIX_spikes_relay_spike_relay.mjs +244 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-07.md +77 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-08_direction-change-v0.3.md +44 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-08_relay-v1-answers-ack.md +37 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-08_relay-v1-conformance.md +56 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-09_annotations-install-coldstart.md +44 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-09_empty-prompt-first-turn.md +56 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-09_prompt-mojibake-fixed.md +48 -0
- package/core/dev/specs/agent-connect/history/KENAZ_RESPONSE_agent-hub_2026-09-09_session-channel.md +57 -0
- package/core/dev/specs/agent-connect/history/PROTOCOL_v0.3_snapshot.md +379 -0
- package/core/dev/specs/agent-connect/history/README.md +47 -0
- package/core/dev/specs/peer/CODEX_INTERACTIVE_PUSH.md +65 -0
- package/core/dev/specs/peer/CODEX_PEER_PULL_SPIKE.md +54 -0
- package/core/dev/specs/peer/MODS_SPIKE.md +133 -0
- package/core/dev/specs/peer/PER_PROJECT_ADDRESSING.md +143 -0
- package/core/dev/specs/peer/SWARM_PROTOCOLS.md +256 -0
- package/core/dev/specs/peer/codex-hook-shim-peer.test.js +101 -0
- package/core/dev/specs/peer/codex-push-launcher.test.js +142 -0
- package/core/dev/specs/peer/setup-codex-hooks.test.js +22 -0
- package/core/dev/specs/peer-ansuz/DELIVERY_SPIKE.md +397 -0
- package/core/dev/specs/peer-ansuz/DESIGN.md +109 -0
- package/core/dev/specs/peer-ansuz/spike/claude_poke.js +129 -0
- package/core/dev/specs/peer-ansuz/spike/claude_session_start_hook.js +37 -0
- package/core/dev/specs/peer-ansuz/spike/claude_settings_hook.json +14 -0
- package/core/dev/specs/peer-ansuz/spike/codex_appserver_client.js +105 -0
- package/core/dev/specs/peer-ansuz/spike/codex_appserver_query.js +29 -0
- package/core/dev/specs/peer-ansuz/spike/extract_timeline.js +26 -0
- package/core/dev/specs/synapse/SYMBOL_IDENTITY.md +305 -0
- package/core/dev/spikes/A4-cypher-varlen.md +176 -0
- package/core/dev/spikes/bloat-rounds.sh +25 -0
- package/core/dev/spikes/mods/clean-claude.js +9 -0
- package/core/dev/spikes/mods/drive-probe.js +29 -0
- package/core/dev/spikes/mods/e2e-peer.js +71 -0
- package/core/dev/spikes/mods/evidence/e2e-peer-control.json +17 -0
- package/core/dev/spikes/mods/evidence/e2e-peer-mod.json +17 -0
- package/core/dev/spikes/mods/evidence/probe-006a6e65-d807-4bc1-b648-fd7d1edfe0b4.jsonl +4 -0
- package/core/dev/spikes/mods/evidence/probe-cebdf1f7-f9c4-47a8-83cd-7c0786177404.jsonl +12 -0
- package/core/dev/spikes/mods/evidence/probe-eb21147d-10ce-4c32-93ed-37ca37d88d5a.jsonl +11 -0
- package/core/dev/spikes/mods/evidence/stream-cebdf1f7.jsonl +18 -0
- package/core/dev/spikes/mods/kenaz-mod-probe/.claude-plugin/plugin.json +1 -0
- package/core/dev/spikes/mods/kenaz-mod-probe/hooks/hooks.json +1 -0
- package/core/dev/spikes/mods/kenaz-mod-probe/hooks/register.ts +65 -0
- package/core/dev/spikes/mods/kenaz-mod-probe/tsconfig.json +3 -0
- package/core/k-cli/README.md +423 -0
- package/core/k-cli/package.json +21 -0
- package/core/k-cli/templates/k-cli.md +91 -0
- package/core/k-cli/test/TEST_SPEC.md +134 -0
- package/core/k-cli/test/run.sh +469 -0
- package/core/plugins/kenaz/.claude-plugin/plugin.json +1 -0
- package/core/plugins/kenaz/.mcp.json +5 -0
- package/core/plugins/kenaz/INVENTORY.md +48 -0
- package/core/plugins/kenaz/README.md +55 -0
- package/core/plugins/kenaz/commands/Amelia.md +5 -0
- package/core/plugins/kenaz/commands/Ansuz.md +38 -0
- package/core/plugins/kenaz/commands/architect.md +24 -0
- package/core/plugins/kenaz/commands/incident.md +15 -0
- package/core/plugins/kenaz/commands/kenaz.md +12 -0
- package/core/plugins/kenaz/commands/review.md +14 -0
- package/core/plugins/kenaz/commands/security.md +15 -0
- package/core/plugins/kenaz/commands/spec.md +22 -0
- package/core/plugins/kenaz/commands/strategy.md +141 -0
- package/core/plugins/kenaz/commands//347/224/242/345/223/201.md +15 -0
- package/core/plugins/kenaz/commands//350/250/255/350/250/210.md +14 -0
- package/core/plugins/kenaz/commands//350/251/225/344/274/260.md +16 -0
- package/core/plugins/kenaz/guidance.md +5 -0
- package/core/plugins/kenaz/hooks/core-resolve.js +230 -0
- package/core/plugins/kenaz/hooks/hooks.json +31 -0
- package/core/plugins/kenaz/hooks/kenaz-hook.js +112 -0
- package/core/plugins/kenaz/hooks/mode.js +39 -0
- package/core/plugins/kenaz/scripts/kenaz-mode.js +46 -0
- package/core/plugins/kenaz/scripts/kenaz.test.js +123 -0
- package/core/plugins/kenaz/scripts/sync.js +45 -0
- package/core/plugins/kenaz/scripts/ygg.js +157 -0
- package/core/plugins/kenaz/skills/adapt/SKILL.md +199 -0
- package/core/plugins/kenaz/skills/animate/SKILL.md +190 -0
- package/core/plugins/kenaz/skills/architect_agent/SKILL.md +408 -0
- package/core/plugins/kenaz/skills/assessment_agent/SKILL.md +289 -0
- package/core/plugins/kenaz/skills/audit/SKILL.md +129 -0
- package/core/plugins/kenaz/skills/backend_agent/SKILL.md +407 -0
- package/core/plugins/kenaz/skills/backend_engineer/SKILL.md +788 -0
- package/core/plugins/kenaz/skills/bolder/SKILL.md +132 -0
- package/core/plugins/kenaz/skills/clarify/SKILL.md +180 -0
- package/core/plugins/kenaz/skills/code_reviewer/SKILL.md +305 -0
- package/core/plugins/kenaz/skills/code_reviewer/patterns.yaml +85 -0
- package/core/plugins/kenaz/skills/colorize/SKILL.md +158 -0
- package/core/plugins/kenaz/skills/critique/SKILL.md +118 -0
- package/core/plugins/kenaz/skills/delight/SKILL.md +317 -0
- package/core/plugins/kenaz/skills/designer/SKILL.md +845 -0
- package/core/plugins/kenaz/skills/dev_agent/SKILL.md +503 -0
- package/core/plugins/kenaz/skills/developer/SKILL.md +792 -0
- package/core/plugins/kenaz/skills/distill/SKILL.md +137 -0
- package/core/plugins/kenaz/skills/extract/SKILL.md +95 -0
- package/core/plugins/kenaz/skills/feature_agent/SKILL.md +303 -0
- package/core/plugins/kenaz/skills/frontend-design/SKILL.md +127 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/color-and-contrast.md +132 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/interaction-design.md +123 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/motion-design.md +99 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/responsive-design.md +114 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/spatial-design.md +100 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/typography.md +131 -0
- package/core/plugins/kenaz/skills/frontend-design/reference/ux-writing.md +107 -0
- package/core/plugins/kenaz/skills/frontend_agent/SKILL.md +327 -0
- package/core/plugins/kenaz/skills/harden/SKILL.md +358 -0
- package/core/plugins/kenaz/skills/incident_response/SKILL.md +315 -0
- package/core/plugins/kenaz/skills/normalize/SKILL.md +67 -0
- package/core/plugins/kenaz/skills/onboard/SKILL.md +243 -0
- package/core/plugins/kenaz/skills/optimize/SKILL.md +269 -0
- package/core/plugins/kenaz/skills/polish/SKILL.md +202 -0
- package/core/plugins/kenaz/skills/product_manager/SKILL.md +1091 -0
- package/core/plugins/kenaz/skills/qa_engineer/SKILL.md +1269 -0
- package/core/plugins/kenaz/skills/quieter/SKILL.md +118 -0
- package/core/plugins/kenaz/skills/security_agent/SKILL.md +312 -0
- package/core/plugins/kenaz/skills/spec_optimizer/SKILL.md +299 -0
- package/core/plugins/kenaz/skills/sre_agent/SKILL.md +1347 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/SKILL.md +377 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/core/plugins/kenaz/skills/ui-ux-pro-max/scripts/search.py +106 -0
- package/core/plugins/kenaz-peer/.claude-plugin/plugin.json +1 -0
- package/core/plugins/kenaz-peer/hooks/hooks.json +1 -0
- package/core/plugins/kenaz-peer/hooks/register.test.ts +62 -0
- package/core/plugins/kenaz-peer/hooks/register.ts +146 -0
- package/core/plugins/kenaz-peer/tsconfig.json +3 -0
- package/lib/cli.js +251 -0
- package/lib/cli.test.js +59 -0
- package/lib/dashboard.js +80 -0
- package/lib/dashboard.test.js +59 -0
- package/package.json +28 -4
- package/vendor/install-kenaz-cli.js +268 -0
- package/README.md +0 -3
|
@@ -0,0 +1,2795 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
4
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// node_modules/js-yaml/lib/common.js
|
|
8
|
+
var require_common = __commonJS({
|
|
9
|
+
"node_modules/js-yaml/lib/common.js"(exports2, module2) {
|
|
10
|
+
"use strict";
|
|
11
|
+
function isNothing(subject) {
|
|
12
|
+
return typeof subject === "undefined" || subject === null;
|
|
13
|
+
}
|
|
14
|
+
function isObject(subject) {
|
|
15
|
+
return typeof subject === "object" && subject !== null;
|
|
16
|
+
}
|
|
17
|
+
function toArray(sequence) {
|
|
18
|
+
if (Array.isArray(sequence)) return sequence;
|
|
19
|
+
else if (isNothing(sequence)) return [];
|
|
20
|
+
return [sequence];
|
|
21
|
+
}
|
|
22
|
+
function extend(target, source) {
|
|
23
|
+
var index, length, key, sourceKeys;
|
|
24
|
+
if (source) {
|
|
25
|
+
sourceKeys = Object.keys(source);
|
|
26
|
+
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
27
|
+
key = sourceKeys[index];
|
|
28
|
+
target[key] = source[key];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
}
|
|
33
|
+
function repeat(string, count) {
|
|
34
|
+
var result = "", cycle;
|
|
35
|
+
for (cycle = 0; cycle < count; cycle += 1) {
|
|
36
|
+
result += string;
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
function isNegativeZero(number) {
|
|
41
|
+
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
42
|
+
}
|
|
43
|
+
module2.exports.isNothing = isNothing;
|
|
44
|
+
module2.exports.isObject = isObject;
|
|
45
|
+
module2.exports.toArray = toArray;
|
|
46
|
+
module2.exports.repeat = repeat;
|
|
47
|
+
module2.exports.isNegativeZero = isNegativeZero;
|
|
48
|
+
module2.exports.extend = extend;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// node_modules/js-yaml/lib/exception.js
|
|
53
|
+
var require_exception = __commonJS({
|
|
54
|
+
"node_modules/js-yaml/lib/exception.js"(exports2, module2) {
|
|
55
|
+
"use strict";
|
|
56
|
+
function formatError(exception, compact) {
|
|
57
|
+
var where = "", message = exception.reason || "(unknown reason)";
|
|
58
|
+
if (!exception.mark) return message;
|
|
59
|
+
if (exception.mark.name) {
|
|
60
|
+
where += 'in "' + exception.mark.name + '" ';
|
|
61
|
+
}
|
|
62
|
+
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
63
|
+
if (!compact && exception.mark.snippet) {
|
|
64
|
+
where += "\n\n" + exception.mark.snippet;
|
|
65
|
+
}
|
|
66
|
+
return message + " " + where;
|
|
67
|
+
}
|
|
68
|
+
function YAMLException(reason, mark) {
|
|
69
|
+
Error.call(this);
|
|
70
|
+
this.name = "YAMLException";
|
|
71
|
+
this.reason = reason;
|
|
72
|
+
this.mark = mark;
|
|
73
|
+
this.message = formatError(this, false);
|
|
74
|
+
if (Error.captureStackTrace) {
|
|
75
|
+
Error.captureStackTrace(this, this.constructor);
|
|
76
|
+
} else {
|
|
77
|
+
this.stack = new Error().stack || "";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
YAMLException.prototype = Object.create(Error.prototype);
|
|
81
|
+
YAMLException.prototype.constructor = YAMLException;
|
|
82
|
+
YAMLException.prototype.toString = function toString(compact) {
|
|
83
|
+
return this.name + ": " + formatError(this, compact);
|
|
84
|
+
};
|
|
85
|
+
module2.exports = YAMLException;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// node_modules/js-yaml/lib/snippet.js
|
|
90
|
+
var require_snippet = __commonJS({
|
|
91
|
+
"node_modules/js-yaml/lib/snippet.js"(exports2, module2) {
|
|
92
|
+
"use strict";
|
|
93
|
+
var common = require_common();
|
|
94
|
+
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
95
|
+
var head = "";
|
|
96
|
+
var tail = "";
|
|
97
|
+
var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
98
|
+
if (position - lineStart > maxHalfLength) {
|
|
99
|
+
head = " ... ";
|
|
100
|
+
lineStart = position - maxHalfLength + head.length;
|
|
101
|
+
}
|
|
102
|
+
if (lineEnd - position > maxHalfLength) {
|
|
103
|
+
tail = " ...";
|
|
104
|
+
lineEnd = position + maxHalfLength - tail.length;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "\u2192") + tail,
|
|
108
|
+
pos: position - lineStart + head.length
|
|
109
|
+
// relative position
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function padStart(string, max) {
|
|
113
|
+
return common.repeat(" ", max - string.length) + string;
|
|
114
|
+
}
|
|
115
|
+
function makeSnippet(mark, options) {
|
|
116
|
+
options = Object.create(options || null);
|
|
117
|
+
if (!mark.buffer) return null;
|
|
118
|
+
if (!options.maxLength) options.maxLength = 79;
|
|
119
|
+
if (typeof options.indent !== "number") options.indent = 1;
|
|
120
|
+
if (typeof options.linesBefore !== "number") options.linesBefore = 3;
|
|
121
|
+
if (typeof options.linesAfter !== "number") options.linesAfter = 2;
|
|
122
|
+
var re = /\r?\n|\r|\0/g;
|
|
123
|
+
var lineStarts = [0];
|
|
124
|
+
var lineEnds = [];
|
|
125
|
+
var match;
|
|
126
|
+
var foundLineNo = -1;
|
|
127
|
+
while (match = re.exec(mark.buffer)) {
|
|
128
|
+
lineEnds.push(match.index);
|
|
129
|
+
lineStarts.push(match.index + match[0].length);
|
|
130
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
131
|
+
foundLineNo = lineStarts.length - 2;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
135
|
+
var result = "", i, line;
|
|
136
|
+
var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
137
|
+
var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
138
|
+
for (i = 1; i <= options.linesBefore; i++) {
|
|
139
|
+
if (foundLineNo - i < 0) break;
|
|
140
|
+
line = getLine(
|
|
141
|
+
mark.buffer,
|
|
142
|
+
lineStarts[foundLineNo - i],
|
|
143
|
+
lineEnds[foundLineNo - i],
|
|
144
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
|
|
145
|
+
maxLineLength
|
|
146
|
+
);
|
|
147
|
+
result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
|
|
148
|
+
}
|
|
149
|
+
line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
150
|
+
result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
151
|
+
result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
152
|
+
for (i = 1; i <= options.linesAfter; i++) {
|
|
153
|
+
if (foundLineNo + i >= lineEnds.length) break;
|
|
154
|
+
line = getLine(
|
|
155
|
+
mark.buffer,
|
|
156
|
+
lineStarts[foundLineNo + i],
|
|
157
|
+
lineEnds[foundLineNo + i],
|
|
158
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
|
|
159
|
+
maxLineLength
|
|
160
|
+
);
|
|
161
|
+
result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
162
|
+
}
|
|
163
|
+
return result.replace(/\n$/, "");
|
|
164
|
+
}
|
|
165
|
+
module2.exports = makeSnippet;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// node_modules/js-yaml/lib/type.js
|
|
170
|
+
var require_type = __commonJS({
|
|
171
|
+
"node_modules/js-yaml/lib/type.js"(exports2, module2) {
|
|
172
|
+
"use strict";
|
|
173
|
+
var YAMLException = require_exception();
|
|
174
|
+
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
175
|
+
"kind",
|
|
176
|
+
"multi",
|
|
177
|
+
"resolve",
|
|
178
|
+
"construct",
|
|
179
|
+
"instanceOf",
|
|
180
|
+
"predicate",
|
|
181
|
+
"represent",
|
|
182
|
+
"representName",
|
|
183
|
+
"defaultStyle",
|
|
184
|
+
"styleAliases"
|
|
185
|
+
];
|
|
186
|
+
var YAML_NODE_KINDS = [
|
|
187
|
+
"scalar",
|
|
188
|
+
"sequence",
|
|
189
|
+
"mapping"
|
|
190
|
+
];
|
|
191
|
+
function compileStyleAliases(map) {
|
|
192
|
+
var result = {};
|
|
193
|
+
if (map !== null) {
|
|
194
|
+
Object.keys(map).forEach(function(style) {
|
|
195
|
+
map[style].forEach(function(alias) {
|
|
196
|
+
result[String(alias)] = style;
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
function Type(tag, options) {
|
|
203
|
+
options = options || {};
|
|
204
|
+
Object.keys(options).forEach(function(name) {
|
|
205
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
206
|
+
throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
this.options = options;
|
|
210
|
+
this.tag = tag;
|
|
211
|
+
this.kind = options["kind"] || null;
|
|
212
|
+
this.resolve = options["resolve"] || function() {
|
|
213
|
+
return true;
|
|
214
|
+
};
|
|
215
|
+
this.construct = options["construct"] || function(data) {
|
|
216
|
+
return data;
|
|
217
|
+
};
|
|
218
|
+
this.instanceOf = options["instanceOf"] || null;
|
|
219
|
+
this.predicate = options["predicate"] || null;
|
|
220
|
+
this.represent = options["represent"] || null;
|
|
221
|
+
this.representName = options["representName"] || null;
|
|
222
|
+
this.defaultStyle = options["defaultStyle"] || null;
|
|
223
|
+
this.multi = options["multi"] || false;
|
|
224
|
+
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
225
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
226
|
+
throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
module2.exports = Type;
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// node_modules/js-yaml/lib/schema.js
|
|
234
|
+
var require_schema = __commonJS({
|
|
235
|
+
"node_modules/js-yaml/lib/schema.js"(exports2, module2) {
|
|
236
|
+
"use strict";
|
|
237
|
+
var YAMLException = require_exception();
|
|
238
|
+
var Type = require_type();
|
|
239
|
+
function compileList(schema, name) {
|
|
240
|
+
var result = [];
|
|
241
|
+
schema[name].forEach(function(currentType) {
|
|
242
|
+
var newIndex = result.length;
|
|
243
|
+
result.forEach(function(previousType, previousIndex) {
|
|
244
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
245
|
+
newIndex = previousIndex;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
result[newIndex] = currentType;
|
|
249
|
+
});
|
|
250
|
+
return result;
|
|
251
|
+
}
|
|
252
|
+
function compileMap() {
|
|
253
|
+
var result = {
|
|
254
|
+
scalar: {},
|
|
255
|
+
sequence: {},
|
|
256
|
+
mapping: {},
|
|
257
|
+
fallback: {},
|
|
258
|
+
multi: {
|
|
259
|
+
scalar: [],
|
|
260
|
+
sequence: [],
|
|
261
|
+
mapping: [],
|
|
262
|
+
fallback: []
|
|
263
|
+
}
|
|
264
|
+
}, index, length;
|
|
265
|
+
function collectType(type) {
|
|
266
|
+
if (type.multi) {
|
|
267
|
+
result.multi[type.kind].push(type);
|
|
268
|
+
result.multi["fallback"].push(type);
|
|
269
|
+
} else {
|
|
270
|
+
result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
for (index = 0, length = arguments.length; index < length; index += 1) {
|
|
274
|
+
arguments[index].forEach(collectType);
|
|
275
|
+
}
|
|
276
|
+
return result;
|
|
277
|
+
}
|
|
278
|
+
function Schema(definition) {
|
|
279
|
+
return this.extend(definition);
|
|
280
|
+
}
|
|
281
|
+
Schema.prototype.extend = function extend(definition) {
|
|
282
|
+
var implicit = [];
|
|
283
|
+
var explicit = [];
|
|
284
|
+
if (definition instanceof Type) {
|
|
285
|
+
explicit.push(definition);
|
|
286
|
+
} else if (Array.isArray(definition)) {
|
|
287
|
+
explicit = explicit.concat(definition);
|
|
288
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
289
|
+
if (definition.implicit) implicit = implicit.concat(definition.implicit);
|
|
290
|
+
if (definition.explicit) explicit = explicit.concat(definition.explicit);
|
|
291
|
+
} else {
|
|
292
|
+
throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
293
|
+
}
|
|
294
|
+
implicit.forEach(function(type) {
|
|
295
|
+
if (!(type instanceof Type)) {
|
|
296
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
297
|
+
}
|
|
298
|
+
if (type.loadKind && type.loadKind !== "scalar") {
|
|
299
|
+
throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
300
|
+
}
|
|
301
|
+
if (type.multi) {
|
|
302
|
+
throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
explicit.forEach(function(type) {
|
|
306
|
+
if (!(type instanceof Type)) {
|
|
307
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
var result = Object.create(Schema.prototype);
|
|
311
|
+
result.implicit = (this.implicit || []).concat(implicit);
|
|
312
|
+
result.explicit = (this.explicit || []).concat(explicit);
|
|
313
|
+
result.compiledImplicit = compileList(result, "implicit");
|
|
314
|
+
result.compiledExplicit = compileList(result, "explicit");
|
|
315
|
+
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
316
|
+
return result;
|
|
317
|
+
};
|
|
318
|
+
module2.exports = Schema;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
// node_modules/js-yaml/lib/type/str.js
|
|
323
|
+
var require_str = __commonJS({
|
|
324
|
+
"node_modules/js-yaml/lib/type/str.js"(exports2, module2) {
|
|
325
|
+
"use strict";
|
|
326
|
+
var Type = require_type();
|
|
327
|
+
module2.exports = new Type("tag:yaml.org,2002:str", {
|
|
328
|
+
kind: "scalar",
|
|
329
|
+
construct: function(data) {
|
|
330
|
+
return data !== null ? data : "";
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// node_modules/js-yaml/lib/type/seq.js
|
|
337
|
+
var require_seq = __commonJS({
|
|
338
|
+
"node_modules/js-yaml/lib/type/seq.js"(exports2, module2) {
|
|
339
|
+
"use strict";
|
|
340
|
+
var Type = require_type();
|
|
341
|
+
module2.exports = new Type("tag:yaml.org,2002:seq", {
|
|
342
|
+
kind: "sequence",
|
|
343
|
+
construct: function(data) {
|
|
344
|
+
return data !== null ? data : [];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
// node_modules/js-yaml/lib/type/map.js
|
|
351
|
+
var require_map = __commonJS({
|
|
352
|
+
"node_modules/js-yaml/lib/type/map.js"(exports2, module2) {
|
|
353
|
+
"use strict";
|
|
354
|
+
var Type = require_type();
|
|
355
|
+
module2.exports = new Type("tag:yaml.org,2002:map", {
|
|
356
|
+
kind: "mapping",
|
|
357
|
+
construct: function(data) {
|
|
358
|
+
return data !== null ? data : {};
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
// node_modules/js-yaml/lib/schema/failsafe.js
|
|
365
|
+
var require_failsafe = __commonJS({
|
|
366
|
+
"node_modules/js-yaml/lib/schema/failsafe.js"(exports2, module2) {
|
|
367
|
+
"use strict";
|
|
368
|
+
var Schema = require_schema();
|
|
369
|
+
module2.exports = new Schema({
|
|
370
|
+
explicit: [
|
|
371
|
+
require_str(),
|
|
372
|
+
require_seq(),
|
|
373
|
+
require_map()
|
|
374
|
+
]
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// node_modules/js-yaml/lib/type/null.js
|
|
380
|
+
var require_null = __commonJS({
|
|
381
|
+
"node_modules/js-yaml/lib/type/null.js"(exports2, module2) {
|
|
382
|
+
"use strict";
|
|
383
|
+
var Type = require_type();
|
|
384
|
+
function resolveYamlNull(data) {
|
|
385
|
+
if (data === null) return true;
|
|
386
|
+
var max = data.length;
|
|
387
|
+
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
388
|
+
}
|
|
389
|
+
function constructYamlNull() {
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
function isNull(object) {
|
|
393
|
+
return object === null;
|
|
394
|
+
}
|
|
395
|
+
module2.exports = new Type("tag:yaml.org,2002:null", {
|
|
396
|
+
kind: "scalar",
|
|
397
|
+
resolve: resolveYamlNull,
|
|
398
|
+
construct: constructYamlNull,
|
|
399
|
+
predicate: isNull,
|
|
400
|
+
represent: {
|
|
401
|
+
canonical: function() {
|
|
402
|
+
return "~";
|
|
403
|
+
},
|
|
404
|
+
lowercase: function() {
|
|
405
|
+
return "null";
|
|
406
|
+
},
|
|
407
|
+
uppercase: function() {
|
|
408
|
+
return "NULL";
|
|
409
|
+
},
|
|
410
|
+
camelcase: function() {
|
|
411
|
+
return "Null";
|
|
412
|
+
},
|
|
413
|
+
empty: function() {
|
|
414
|
+
return "";
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
defaultStyle: "lowercase"
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
// node_modules/js-yaml/lib/type/bool.js
|
|
423
|
+
var require_bool = __commonJS({
|
|
424
|
+
"node_modules/js-yaml/lib/type/bool.js"(exports2, module2) {
|
|
425
|
+
"use strict";
|
|
426
|
+
var Type = require_type();
|
|
427
|
+
function resolveYamlBoolean(data) {
|
|
428
|
+
if (data === null) return false;
|
|
429
|
+
var max = data.length;
|
|
430
|
+
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
431
|
+
}
|
|
432
|
+
function constructYamlBoolean(data) {
|
|
433
|
+
return data === "true" || data === "True" || data === "TRUE";
|
|
434
|
+
}
|
|
435
|
+
function isBoolean(object) {
|
|
436
|
+
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
437
|
+
}
|
|
438
|
+
module2.exports = new Type("tag:yaml.org,2002:bool", {
|
|
439
|
+
kind: "scalar",
|
|
440
|
+
resolve: resolveYamlBoolean,
|
|
441
|
+
construct: constructYamlBoolean,
|
|
442
|
+
predicate: isBoolean,
|
|
443
|
+
represent: {
|
|
444
|
+
lowercase: function(object) {
|
|
445
|
+
return object ? "true" : "false";
|
|
446
|
+
},
|
|
447
|
+
uppercase: function(object) {
|
|
448
|
+
return object ? "TRUE" : "FALSE";
|
|
449
|
+
},
|
|
450
|
+
camelcase: function(object) {
|
|
451
|
+
return object ? "True" : "False";
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
defaultStyle: "lowercase"
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
// node_modules/js-yaml/lib/type/int.js
|
|
460
|
+
var require_int = __commonJS({
|
|
461
|
+
"node_modules/js-yaml/lib/type/int.js"(exports2, module2) {
|
|
462
|
+
"use strict";
|
|
463
|
+
var common = require_common();
|
|
464
|
+
var Type = require_type();
|
|
465
|
+
function isHexCode(c) {
|
|
466
|
+
return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
|
|
467
|
+
}
|
|
468
|
+
function isOctCode(c) {
|
|
469
|
+
return 48 <= c && c <= 55;
|
|
470
|
+
}
|
|
471
|
+
function isDecCode(c) {
|
|
472
|
+
return 48 <= c && c <= 57;
|
|
473
|
+
}
|
|
474
|
+
function resolveYamlInteger(data) {
|
|
475
|
+
if (data === null) return false;
|
|
476
|
+
var max = data.length, index = 0, hasDigits = false, ch;
|
|
477
|
+
if (!max) return false;
|
|
478
|
+
ch = data[index];
|
|
479
|
+
if (ch === "-" || ch === "+") {
|
|
480
|
+
ch = data[++index];
|
|
481
|
+
}
|
|
482
|
+
if (ch === "0") {
|
|
483
|
+
if (index + 1 === max) return true;
|
|
484
|
+
ch = data[++index];
|
|
485
|
+
if (ch === "b") {
|
|
486
|
+
index++;
|
|
487
|
+
for (; index < max; index++) {
|
|
488
|
+
ch = data[index];
|
|
489
|
+
if (ch === "_") continue;
|
|
490
|
+
if (ch !== "0" && ch !== "1") return false;
|
|
491
|
+
hasDigits = true;
|
|
492
|
+
}
|
|
493
|
+
return hasDigits && ch !== "_";
|
|
494
|
+
}
|
|
495
|
+
if (ch === "x") {
|
|
496
|
+
index++;
|
|
497
|
+
for (; index < max; index++) {
|
|
498
|
+
ch = data[index];
|
|
499
|
+
if (ch === "_") continue;
|
|
500
|
+
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
501
|
+
hasDigits = true;
|
|
502
|
+
}
|
|
503
|
+
return hasDigits && ch !== "_";
|
|
504
|
+
}
|
|
505
|
+
if (ch === "o") {
|
|
506
|
+
index++;
|
|
507
|
+
for (; index < max; index++) {
|
|
508
|
+
ch = data[index];
|
|
509
|
+
if (ch === "_") continue;
|
|
510
|
+
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
511
|
+
hasDigits = true;
|
|
512
|
+
}
|
|
513
|
+
return hasDigits && ch !== "_";
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
if (ch === "_") return false;
|
|
517
|
+
for (; index < max; index++) {
|
|
518
|
+
ch = data[index];
|
|
519
|
+
if (ch === "_") continue;
|
|
520
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
521
|
+
return false;
|
|
522
|
+
}
|
|
523
|
+
hasDigits = true;
|
|
524
|
+
}
|
|
525
|
+
if (!hasDigits || ch === "_") return false;
|
|
526
|
+
return true;
|
|
527
|
+
}
|
|
528
|
+
function constructYamlInteger(data) {
|
|
529
|
+
var value = data, sign = 1, ch;
|
|
530
|
+
if (value.indexOf("_") !== -1) {
|
|
531
|
+
value = value.replace(/_/g, "");
|
|
532
|
+
}
|
|
533
|
+
ch = value[0];
|
|
534
|
+
if (ch === "-" || ch === "+") {
|
|
535
|
+
if (ch === "-") sign = -1;
|
|
536
|
+
value = value.slice(1);
|
|
537
|
+
ch = value[0];
|
|
538
|
+
}
|
|
539
|
+
if (value === "0") return 0;
|
|
540
|
+
if (ch === "0") {
|
|
541
|
+
if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
|
|
542
|
+
if (value[1] === "x") return sign * parseInt(value.slice(2), 16);
|
|
543
|
+
if (value[1] === "o") return sign * parseInt(value.slice(2), 8);
|
|
544
|
+
}
|
|
545
|
+
return sign * parseInt(value, 10);
|
|
546
|
+
}
|
|
547
|
+
function isInteger(object) {
|
|
548
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
|
|
549
|
+
}
|
|
550
|
+
module2.exports = new Type("tag:yaml.org,2002:int", {
|
|
551
|
+
kind: "scalar",
|
|
552
|
+
resolve: resolveYamlInteger,
|
|
553
|
+
construct: constructYamlInteger,
|
|
554
|
+
predicate: isInteger,
|
|
555
|
+
represent: {
|
|
556
|
+
binary: function(obj) {
|
|
557
|
+
return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
|
|
558
|
+
},
|
|
559
|
+
octal: function(obj) {
|
|
560
|
+
return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
|
|
561
|
+
},
|
|
562
|
+
decimal: function(obj) {
|
|
563
|
+
return obj.toString(10);
|
|
564
|
+
},
|
|
565
|
+
/* eslint-disable max-len */
|
|
566
|
+
hexadecimal: function(obj) {
|
|
567
|
+
return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
defaultStyle: "decimal",
|
|
571
|
+
styleAliases: {
|
|
572
|
+
binary: [2, "bin"],
|
|
573
|
+
octal: [8, "oct"],
|
|
574
|
+
decimal: [10, "dec"],
|
|
575
|
+
hexadecimal: [16, "hex"]
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
// node_modules/js-yaml/lib/type/float.js
|
|
582
|
+
var require_float = __commonJS({
|
|
583
|
+
"node_modules/js-yaml/lib/type/float.js"(exports2, module2) {
|
|
584
|
+
"use strict";
|
|
585
|
+
var common = require_common();
|
|
586
|
+
var Type = require_type();
|
|
587
|
+
var YAML_FLOAT_PATTERN = new RegExp(
|
|
588
|
+
// 2.5e4, 2.5 and integers
|
|
589
|
+
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
590
|
+
);
|
|
591
|
+
function resolveYamlFloat(data) {
|
|
592
|
+
if (data === null) return false;
|
|
593
|
+
if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
|
|
594
|
+
// Probably should update regexp & check speed
|
|
595
|
+
data[data.length - 1] === "_") {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
return true;
|
|
599
|
+
}
|
|
600
|
+
function constructYamlFloat(data) {
|
|
601
|
+
var value, sign;
|
|
602
|
+
value = data.replace(/_/g, "").toLowerCase();
|
|
603
|
+
sign = value[0] === "-" ? -1 : 1;
|
|
604
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
605
|
+
value = value.slice(1);
|
|
606
|
+
}
|
|
607
|
+
if (value === ".inf") {
|
|
608
|
+
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
609
|
+
} else if (value === ".nan") {
|
|
610
|
+
return NaN;
|
|
611
|
+
}
|
|
612
|
+
return sign * parseFloat(value, 10);
|
|
613
|
+
}
|
|
614
|
+
var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
615
|
+
function representYamlFloat(object, style) {
|
|
616
|
+
var res;
|
|
617
|
+
if (isNaN(object)) {
|
|
618
|
+
switch (style) {
|
|
619
|
+
case "lowercase":
|
|
620
|
+
return ".nan";
|
|
621
|
+
case "uppercase":
|
|
622
|
+
return ".NAN";
|
|
623
|
+
case "camelcase":
|
|
624
|
+
return ".NaN";
|
|
625
|
+
}
|
|
626
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
627
|
+
switch (style) {
|
|
628
|
+
case "lowercase":
|
|
629
|
+
return ".inf";
|
|
630
|
+
case "uppercase":
|
|
631
|
+
return ".INF";
|
|
632
|
+
case "camelcase":
|
|
633
|
+
return ".Inf";
|
|
634
|
+
}
|
|
635
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
636
|
+
switch (style) {
|
|
637
|
+
case "lowercase":
|
|
638
|
+
return "-.inf";
|
|
639
|
+
case "uppercase":
|
|
640
|
+
return "-.INF";
|
|
641
|
+
case "camelcase":
|
|
642
|
+
return "-.Inf";
|
|
643
|
+
}
|
|
644
|
+
} else if (common.isNegativeZero(object)) {
|
|
645
|
+
return "-0.0";
|
|
646
|
+
}
|
|
647
|
+
res = object.toString(10);
|
|
648
|
+
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
649
|
+
}
|
|
650
|
+
function isFloat(object) {
|
|
651
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
|
|
652
|
+
}
|
|
653
|
+
module2.exports = new Type("tag:yaml.org,2002:float", {
|
|
654
|
+
kind: "scalar",
|
|
655
|
+
resolve: resolveYamlFloat,
|
|
656
|
+
construct: constructYamlFloat,
|
|
657
|
+
predicate: isFloat,
|
|
658
|
+
represent: representYamlFloat,
|
|
659
|
+
defaultStyle: "lowercase"
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
|
|
664
|
+
// node_modules/js-yaml/lib/schema/json.js
|
|
665
|
+
var require_json = __commonJS({
|
|
666
|
+
"node_modules/js-yaml/lib/schema/json.js"(exports2, module2) {
|
|
667
|
+
"use strict";
|
|
668
|
+
module2.exports = require_failsafe().extend({
|
|
669
|
+
implicit: [
|
|
670
|
+
require_null(),
|
|
671
|
+
require_bool(),
|
|
672
|
+
require_int(),
|
|
673
|
+
require_float()
|
|
674
|
+
]
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
|
|
679
|
+
// node_modules/js-yaml/lib/schema/core.js
|
|
680
|
+
var require_core = __commonJS({
|
|
681
|
+
"node_modules/js-yaml/lib/schema/core.js"(exports2, module2) {
|
|
682
|
+
"use strict";
|
|
683
|
+
module2.exports = require_json();
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
// node_modules/js-yaml/lib/type/timestamp.js
|
|
688
|
+
var require_timestamp = __commonJS({
|
|
689
|
+
"node_modules/js-yaml/lib/type/timestamp.js"(exports2, module2) {
|
|
690
|
+
"use strict";
|
|
691
|
+
var Type = require_type();
|
|
692
|
+
var YAML_DATE_REGEXP = new RegExp(
|
|
693
|
+
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
694
|
+
);
|
|
695
|
+
var YAML_TIMESTAMP_REGEXP = new RegExp(
|
|
696
|
+
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
697
|
+
);
|
|
698
|
+
function resolveYamlTimestamp(data) {
|
|
699
|
+
if (data === null) return false;
|
|
700
|
+
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
701
|
+
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
|
|
702
|
+
return false;
|
|
703
|
+
}
|
|
704
|
+
function constructYamlTimestamp(data) {
|
|
705
|
+
var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
706
|
+
match = YAML_DATE_REGEXP.exec(data);
|
|
707
|
+
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
708
|
+
if (match === null) throw new Error("Date resolve error");
|
|
709
|
+
year = +match[1];
|
|
710
|
+
month = +match[2] - 1;
|
|
711
|
+
day = +match[3];
|
|
712
|
+
if (!match[4]) {
|
|
713
|
+
return new Date(Date.UTC(year, month, day));
|
|
714
|
+
}
|
|
715
|
+
hour = +match[4];
|
|
716
|
+
minute = +match[5];
|
|
717
|
+
second = +match[6];
|
|
718
|
+
if (match[7]) {
|
|
719
|
+
fraction = match[7].slice(0, 3);
|
|
720
|
+
while (fraction.length < 3) {
|
|
721
|
+
fraction += "0";
|
|
722
|
+
}
|
|
723
|
+
fraction = +fraction;
|
|
724
|
+
}
|
|
725
|
+
if (match[9]) {
|
|
726
|
+
tz_hour = +match[10];
|
|
727
|
+
tz_minute = +(match[11] || 0);
|
|
728
|
+
delta = (tz_hour * 60 + tz_minute) * 6e4;
|
|
729
|
+
if (match[9] === "-") delta = -delta;
|
|
730
|
+
}
|
|
731
|
+
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
732
|
+
if (delta) date.setTime(date.getTime() - delta);
|
|
733
|
+
return date;
|
|
734
|
+
}
|
|
735
|
+
function representYamlTimestamp(object) {
|
|
736
|
+
return object.toISOString();
|
|
737
|
+
}
|
|
738
|
+
module2.exports = new Type("tag:yaml.org,2002:timestamp", {
|
|
739
|
+
kind: "scalar",
|
|
740
|
+
resolve: resolveYamlTimestamp,
|
|
741
|
+
construct: constructYamlTimestamp,
|
|
742
|
+
instanceOf: Date,
|
|
743
|
+
represent: representYamlTimestamp
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
// node_modules/js-yaml/lib/type/merge.js
|
|
749
|
+
var require_merge = __commonJS({
|
|
750
|
+
"node_modules/js-yaml/lib/type/merge.js"(exports2, module2) {
|
|
751
|
+
"use strict";
|
|
752
|
+
var Type = require_type();
|
|
753
|
+
function resolveYamlMerge(data) {
|
|
754
|
+
return data === "<<" || data === null;
|
|
755
|
+
}
|
|
756
|
+
module2.exports = new Type("tag:yaml.org,2002:merge", {
|
|
757
|
+
kind: "scalar",
|
|
758
|
+
resolve: resolveYamlMerge
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
// node_modules/js-yaml/lib/type/binary.js
|
|
764
|
+
var require_binary = __commonJS({
|
|
765
|
+
"node_modules/js-yaml/lib/type/binary.js"(exports2, module2) {
|
|
766
|
+
"use strict";
|
|
767
|
+
var Type = require_type();
|
|
768
|
+
var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
769
|
+
function resolveYamlBinary(data) {
|
|
770
|
+
if (data === null) return false;
|
|
771
|
+
var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
|
|
772
|
+
for (idx = 0; idx < max; idx++) {
|
|
773
|
+
code = map.indexOf(data.charAt(idx));
|
|
774
|
+
if (code > 64) continue;
|
|
775
|
+
if (code < 0) return false;
|
|
776
|
+
bitlen += 6;
|
|
777
|
+
}
|
|
778
|
+
return bitlen % 8 === 0;
|
|
779
|
+
}
|
|
780
|
+
function constructYamlBinary(data) {
|
|
781
|
+
var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
|
|
782
|
+
for (idx = 0; idx < max; idx++) {
|
|
783
|
+
if (idx % 4 === 0 && idx) {
|
|
784
|
+
result.push(bits >> 16 & 255);
|
|
785
|
+
result.push(bits >> 8 & 255);
|
|
786
|
+
result.push(bits & 255);
|
|
787
|
+
}
|
|
788
|
+
bits = bits << 6 | map.indexOf(input.charAt(idx));
|
|
789
|
+
}
|
|
790
|
+
tailbits = max % 4 * 6;
|
|
791
|
+
if (tailbits === 0) {
|
|
792
|
+
result.push(bits >> 16 & 255);
|
|
793
|
+
result.push(bits >> 8 & 255);
|
|
794
|
+
result.push(bits & 255);
|
|
795
|
+
} else if (tailbits === 18) {
|
|
796
|
+
result.push(bits >> 10 & 255);
|
|
797
|
+
result.push(bits >> 2 & 255);
|
|
798
|
+
} else if (tailbits === 12) {
|
|
799
|
+
result.push(bits >> 4 & 255);
|
|
800
|
+
}
|
|
801
|
+
return new Uint8Array(result);
|
|
802
|
+
}
|
|
803
|
+
function representYamlBinary(object) {
|
|
804
|
+
var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
|
|
805
|
+
for (idx = 0; idx < max; idx++) {
|
|
806
|
+
if (idx % 3 === 0 && idx) {
|
|
807
|
+
result += map[bits >> 18 & 63];
|
|
808
|
+
result += map[bits >> 12 & 63];
|
|
809
|
+
result += map[bits >> 6 & 63];
|
|
810
|
+
result += map[bits & 63];
|
|
811
|
+
}
|
|
812
|
+
bits = (bits << 8) + object[idx];
|
|
813
|
+
}
|
|
814
|
+
tail = max % 3;
|
|
815
|
+
if (tail === 0) {
|
|
816
|
+
result += map[bits >> 18 & 63];
|
|
817
|
+
result += map[bits >> 12 & 63];
|
|
818
|
+
result += map[bits >> 6 & 63];
|
|
819
|
+
result += map[bits & 63];
|
|
820
|
+
} else if (tail === 2) {
|
|
821
|
+
result += map[bits >> 10 & 63];
|
|
822
|
+
result += map[bits >> 4 & 63];
|
|
823
|
+
result += map[bits << 2 & 63];
|
|
824
|
+
result += map[64];
|
|
825
|
+
} else if (tail === 1) {
|
|
826
|
+
result += map[bits >> 2 & 63];
|
|
827
|
+
result += map[bits << 4 & 63];
|
|
828
|
+
result += map[64];
|
|
829
|
+
result += map[64];
|
|
830
|
+
}
|
|
831
|
+
return result;
|
|
832
|
+
}
|
|
833
|
+
function isBinary(obj) {
|
|
834
|
+
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
835
|
+
}
|
|
836
|
+
module2.exports = new Type("tag:yaml.org,2002:binary", {
|
|
837
|
+
kind: "scalar",
|
|
838
|
+
resolve: resolveYamlBinary,
|
|
839
|
+
construct: constructYamlBinary,
|
|
840
|
+
predicate: isBinary,
|
|
841
|
+
represent: representYamlBinary
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
// node_modules/js-yaml/lib/type/omap.js
|
|
847
|
+
var require_omap = __commonJS({
|
|
848
|
+
"node_modules/js-yaml/lib/type/omap.js"(exports2, module2) {
|
|
849
|
+
"use strict";
|
|
850
|
+
var Type = require_type();
|
|
851
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
852
|
+
var _toString = Object.prototype.toString;
|
|
853
|
+
function resolveYamlOmap(data) {
|
|
854
|
+
if (data === null) return true;
|
|
855
|
+
var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
|
|
856
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
857
|
+
pair = object[index];
|
|
858
|
+
pairHasKey = false;
|
|
859
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
860
|
+
for (pairKey in pair) {
|
|
861
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
862
|
+
if (!pairHasKey) pairHasKey = true;
|
|
863
|
+
else return false;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
if (!pairHasKey) return false;
|
|
867
|
+
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
868
|
+
else return false;
|
|
869
|
+
}
|
|
870
|
+
return true;
|
|
871
|
+
}
|
|
872
|
+
function constructYamlOmap(data) {
|
|
873
|
+
return data !== null ? data : [];
|
|
874
|
+
}
|
|
875
|
+
module2.exports = new Type("tag:yaml.org,2002:omap", {
|
|
876
|
+
kind: "sequence",
|
|
877
|
+
resolve: resolveYamlOmap,
|
|
878
|
+
construct: constructYamlOmap
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
|
|
883
|
+
// node_modules/js-yaml/lib/type/pairs.js
|
|
884
|
+
var require_pairs = __commonJS({
|
|
885
|
+
"node_modules/js-yaml/lib/type/pairs.js"(exports2, module2) {
|
|
886
|
+
"use strict";
|
|
887
|
+
var Type = require_type();
|
|
888
|
+
var _toString = Object.prototype.toString;
|
|
889
|
+
function resolveYamlPairs(data) {
|
|
890
|
+
if (data === null) return true;
|
|
891
|
+
var index, length, pair, keys, result, object = data;
|
|
892
|
+
result = new Array(object.length);
|
|
893
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
894
|
+
pair = object[index];
|
|
895
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
896
|
+
keys = Object.keys(pair);
|
|
897
|
+
if (keys.length !== 1) return false;
|
|
898
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
899
|
+
}
|
|
900
|
+
return true;
|
|
901
|
+
}
|
|
902
|
+
function constructYamlPairs(data) {
|
|
903
|
+
if (data === null) return [];
|
|
904
|
+
var index, length, pair, keys, result, object = data;
|
|
905
|
+
result = new Array(object.length);
|
|
906
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
907
|
+
pair = object[index];
|
|
908
|
+
keys = Object.keys(pair);
|
|
909
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
910
|
+
}
|
|
911
|
+
return result;
|
|
912
|
+
}
|
|
913
|
+
module2.exports = new Type("tag:yaml.org,2002:pairs", {
|
|
914
|
+
kind: "sequence",
|
|
915
|
+
resolve: resolveYamlPairs,
|
|
916
|
+
construct: constructYamlPairs
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
|
|
921
|
+
// node_modules/js-yaml/lib/type/set.js
|
|
922
|
+
var require_set = __commonJS({
|
|
923
|
+
"node_modules/js-yaml/lib/type/set.js"(exports2, module2) {
|
|
924
|
+
"use strict";
|
|
925
|
+
var Type = require_type();
|
|
926
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
927
|
+
function resolveYamlSet(data) {
|
|
928
|
+
if (data === null) return true;
|
|
929
|
+
var key, object = data;
|
|
930
|
+
for (key in object) {
|
|
931
|
+
if (_hasOwnProperty.call(object, key)) {
|
|
932
|
+
if (object[key] !== null) return false;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
return true;
|
|
936
|
+
}
|
|
937
|
+
function constructYamlSet(data) {
|
|
938
|
+
return data !== null ? data : {};
|
|
939
|
+
}
|
|
940
|
+
module2.exports = new Type("tag:yaml.org,2002:set", {
|
|
941
|
+
kind: "mapping",
|
|
942
|
+
resolve: resolveYamlSet,
|
|
943
|
+
construct: constructYamlSet
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
|
|
948
|
+
// node_modules/js-yaml/lib/schema/default.js
|
|
949
|
+
var require_default = __commonJS({
|
|
950
|
+
"node_modules/js-yaml/lib/schema/default.js"(exports2, module2) {
|
|
951
|
+
"use strict";
|
|
952
|
+
module2.exports = require_core().extend({
|
|
953
|
+
implicit: [
|
|
954
|
+
require_timestamp(),
|
|
955
|
+
require_merge()
|
|
956
|
+
],
|
|
957
|
+
explicit: [
|
|
958
|
+
require_binary(),
|
|
959
|
+
require_omap(),
|
|
960
|
+
require_pairs(),
|
|
961
|
+
require_set()
|
|
962
|
+
]
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
|
|
967
|
+
// node_modules/js-yaml/lib/loader.js
|
|
968
|
+
var require_loader = __commonJS({
|
|
969
|
+
"node_modules/js-yaml/lib/loader.js"(exports2, module2) {
|
|
970
|
+
"use strict";
|
|
971
|
+
var common = require_common();
|
|
972
|
+
var YAMLException = require_exception();
|
|
973
|
+
var makeSnippet = require_snippet();
|
|
974
|
+
var DEFAULT_SCHEMA = require_default();
|
|
975
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
976
|
+
var CONTEXT_FLOW_IN = 1;
|
|
977
|
+
var CONTEXT_FLOW_OUT = 2;
|
|
978
|
+
var CONTEXT_BLOCK_IN = 3;
|
|
979
|
+
var CONTEXT_BLOCK_OUT = 4;
|
|
980
|
+
var CHOMPING_CLIP = 1;
|
|
981
|
+
var CHOMPING_STRIP = 2;
|
|
982
|
+
var CHOMPING_KEEP = 3;
|
|
983
|
+
var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
984
|
+
var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
985
|
+
var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
|
|
986
|
+
var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
987
|
+
var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
988
|
+
function _class(obj) {
|
|
989
|
+
return Object.prototype.toString.call(obj);
|
|
990
|
+
}
|
|
991
|
+
function is_EOL(c) {
|
|
992
|
+
return c === 10 || c === 13;
|
|
993
|
+
}
|
|
994
|
+
function is_WHITE_SPACE(c) {
|
|
995
|
+
return c === 9 || c === 32;
|
|
996
|
+
}
|
|
997
|
+
function is_WS_OR_EOL(c) {
|
|
998
|
+
return c === 9 || c === 32 || c === 10 || c === 13;
|
|
999
|
+
}
|
|
1000
|
+
function is_FLOW_INDICATOR(c) {
|
|
1001
|
+
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
1002
|
+
}
|
|
1003
|
+
function fromHexCode(c) {
|
|
1004
|
+
var lc;
|
|
1005
|
+
if (48 <= c && c <= 57) {
|
|
1006
|
+
return c - 48;
|
|
1007
|
+
}
|
|
1008
|
+
lc = c | 32;
|
|
1009
|
+
if (97 <= lc && lc <= 102) {
|
|
1010
|
+
return lc - 97 + 10;
|
|
1011
|
+
}
|
|
1012
|
+
return -1;
|
|
1013
|
+
}
|
|
1014
|
+
function escapedHexLen(c) {
|
|
1015
|
+
if (c === 120) {
|
|
1016
|
+
return 2;
|
|
1017
|
+
}
|
|
1018
|
+
if (c === 117) {
|
|
1019
|
+
return 4;
|
|
1020
|
+
}
|
|
1021
|
+
if (c === 85) {
|
|
1022
|
+
return 8;
|
|
1023
|
+
}
|
|
1024
|
+
return 0;
|
|
1025
|
+
}
|
|
1026
|
+
function fromDecimalCode(c) {
|
|
1027
|
+
if (48 <= c && c <= 57) {
|
|
1028
|
+
return c - 48;
|
|
1029
|
+
}
|
|
1030
|
+
return -1;
|
|
1031
|
+
}
|
|
1032
|
+
function simpleEscapeSequence(c) {
|
|
1033
|
+
return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? '"' : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "\x85" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
|
|
1034
|
+
}
|
|
1035
|
+
function charFromCodepoint(c) {
|
|
1036
|
+
if (c <= 65535) {
|
|
1037
|
+
return String.fromCharCode(c);
|
|
1038
|
+
}
|
|
1039
|
+
return String.fromCharCode(
|
|
1040
|
+
(c - 65536 >> 10) + 55296,
|
|
1041
|
+
(c - 65536 & 1023) + 56320
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
function setProperty(object, key, value) {
|
|
1045
|
+
if (key === "__proto__") {
|
|
1046
|
+
Object.defineProperty(object, key, {
|
|
1047
|
+
configurable: true,
|
|
1048
|
+
enumerable: true,
|
|
1049
|
+
writable: true,
|
|
1050
|
+
value
|
|
1051
|
+
});
|
|
1052
|
+
} else {
|
|
1053
|
+
object[key] = value;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
var simpleEscapeCheck = new Array(256);
|
|
1057
|
+
var simpleEscapeMap = new Array(256);
|
|
1058
|
+
for (i = 0; i < 256; i++) {
|
|
1059
|
+
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
1060
|
+
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
1061
|
+
}
|
|
1062
|
+
var i;
|
|
1063
|
+
function State(input, options) {
|
|
1064
|
+
this.input = input;
|
|
1065
|
+
this.filename = options["filename"] || null;
|
|
1066
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
1067
|
+
this.onWarning = options["onWarning"] || null;
|
|
1068
|
+
this.legacy = options["legacy"] || false;
|
|
1069
|
+
this.json = options["json"] || false;
|
|
1070
|
+
this.listener = options["listener"] || null;
|
|
1071
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
1072
|
+
this.typeMap = this.schema.compiledTypeMap;
|
|
1073
|
+
this.length = input.length;
|
|
1074
|
+
this.position = 0;
|
|
1075
|
+
this.line = 0;
|
|
1076
|
+
this.lineStart = 0;
|
|
1077
|
+
this.lineIndent = 0;
|
|
1078
|
+
this.firstTabInLine = -1;
|
|
1079
|
+
this.documents = [];
|
|
1080
|
+
}
|
|
1081
|
+
function generateError(state, message) {
|
|
1082
|
+
var mark = {
|
|
1083
|
+
name: state.filename,
|
|
1084
|
+
buffer: state.input.slice(0, -1),
|
|
1085
|
+
// omit trailing \0
|
|
1086
|
+
position: state.position,
|
|
1087
|
+
line: state.line,
|
|
1088
|
+
column: state.position - state.lineStart
|
|
1089
|
+
};
|
|
1090
|
+
mark.snippet = makeSnippet(mark);
|
|
1091
|
+
return new YAMLException(message, mark);
|
|
1092
|
+
}
|
|
1093
|
+
function throwError(state, message) {
|
|
1094
|
+
throw generateError(state, message);
|
|
1095
|
+
}
|
|
1096
|
+
function throwWarning(state, message) {
|
|
1097
|
+
if (state.onWarning) {
|
|
1098
|
+
state.onWarning.call(null, generateError(state, message));
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
var directiveHandlers = {
|
|
1102
|
+
YAML: function handleYamlDirective(state, name, args) {
|
|
1103
|
+
var match, major, minor;
|
|
1104
|
+
if (state.version !== null) {
|
|
1105
|
+
throwError(state, "duplication of %YAML directive");
|
|
1106
|
+
}
|
|
1107
|
+
if (args.length !== 1) {
|
|
1108
|
+
throwError(state, "YAML directive accepts exactly one argument");
|
|
1109
|
+
}
|
|
1110
|
+
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
1111
|
+
if (match === null) {
|
|
1112
|
+
throwError(state, "ill-formed argument of the YAML directive");
|
|
1113
|
+
}
|
|
1114
|
+
major = parseInt(match[1], 10);
|
|
1115
|
+
minor = parseInt(match[2], 10);
|
|
1116
|
+
if (major !== 1) {
|
|
1117
|
+
throwError(state, "unacceptable YAML version of the document");
|
|
1118
|
+
}
|
|
1119
|
+
state.version = args[0];
|
|
1120
|
+
state.checkLineBreaks = minor < 2;
|
|
1121
|
+
if (minor !== 1 && minor !== 2) {
|
|
1122
|
+
throwWarning(state, "unsupported YAML version of the document");
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
TAG: function handleTagDirective(state, name, args) {
|
|
1126
|
+
var handle, prefix;
|
|
1127
|
+
if (args.length !== 2) {
|
|
1128
|
+
throwError(state, "TAG directive accepts exactly two arguments");
|
|
1129
|
+
}
|
|
1130
|
+
handle = args[0];
|
|
1131
|
+
prefix = args[1];
|
|
1132
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
1133
|
+
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
1134
|
+
}
|
|
1135
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
1136
|
+
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
1137
|
+
}
|
|
1138
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
1139
|
+
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1140
|
+
}
|
|
1141
|
+
try {
|
|
1142
|
+
prefix = decodeURIComponent(prefix);
|
|
1143
|
+
} catch (err) {
|
|
1144
|
+
throwError(state, "tag prefix is malformed: " + prefix);
|
|
1145
|
+
}
|
|
1146
|
+
state.tagMap[handle] = prefix;
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
function captureSegment(state, start, end, checkJson) {
|
|
1150
|
+
var _position, _length, _character, _result;
|
|
1151
|
+
if (start < end) {
|
|
1152
|
+
_result = state.input.slice(start, end);
|
|
1153
|
+
if (checkJson) {
|
|
1154
|
+
for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
1155
|
+
_character = _result.charCodeAt(_position);
|
|
1156
|
+
if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
|
|
1157
|
+
throwError(state, "expected valid JSON character");
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
1161
|
+
throwError(state, "the stream contains non-printable characters");
|
|
1162
|
+
}
|
|
1163
|
+
state.result += _result;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
function mergeMappings(state, destination, source, overridableKeys) {
|
|
1167
|
+
var sourceKeys, key, index, quantity;
|
|
1168
|
+
if (!common.isObject(source)) {
|
|
1169
|
+
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
1170
|
+
}
|
|
1171
|
+
sourceKeys = Object.keys(source);
|
|
1172
|
+
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
1173
|
+
key = sourceKeys[index];
|
|
1174
|
+
if (!_hasOwnProperty.call(destination, key)) {
|
|
1175
|
+
setProperty(destination, key, source[key]);
|
|
1176
|
+
overridableKeys[key] = true;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
1181
|
+
var index, quantity;
|
|
1182
|
+
if (Array.isArray(keyNode)) {
|
|
1183
|
+
keyNode = Array.prototype.slice.call(keyNode);
|
|
1184
|
+
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
1185
|
+
if (Array.isArray(keyNode[index])) {
|
|
1186
|
+
throwError(state, "nested arrays are not supported inside keys");
|
|
1187
|
+
}
|
|
1188
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
1189
|
+
keyNode[index] = "[object Object]";
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
1194
|
+
keyNode = "[object Object]";
|
|
1195
|
+
}
|
|
1196
|
+
keyNode = String(keyNode);
|
|
1197
|
+
if (_result === null) {
|
|
1198
|
+
_result = {};
|
|
1199
|
+
}
|
|
1200
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
1201
|
+
if (Array.isArray(valueNode)) {
|
|
1202
|
+
for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
1203
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
1204
|
+
}
|
|
1205
|
+
} else {
|
|
1206
|
+
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
1207
|
+
}
|
|
1208
|
+
} else {
|
|
1209
|
+
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
1210
|
+
state.line = startLine || state.line;
|
|
1211
|
+
state.lineStart = startLineStart || state.lineStart;
|
|
1212
|
+
state.position = startPos || state.position;
|
|
1213
|
+
throwError(state, "duplicated mapping key");
|
|
1214
|
+
}
|
|
1215
|
+
setProperty(_result, keyNode, valueNode);
|
|
1216
|
+
delete overridableKeys[keyNode];
|
|
1217
|
+
}
|
|
1218
|
+
return _result;
|
|
1219
|
+
}
|
|
1220
|
+
function readLineBreak(state) {
|
|
1221
|
+
var ch;
|
|
1222
|
+
ch = state.input.charCodeAt(state.position);
|
|
1223
|
+
if (ch === 10) {
|
|
1224
|
+
state.position++;
|
|
1225
|
+
} else if (ch === 13) {
|
|
1226
|
+
state.position++;
|
|
1227
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
1228
|
+
state.position++;
|
|
1229
|
+
}
|
|
1230
|
+
} else {
|
|
1231
|
+
throwError(state, "a line break is expected");
|
|
1232
|
+
}
|
|
1233
|
+
state.line += 1;
|
|
1234
|
+
state.lineStart = state.position;
|
|
1235
|
+
state.firstTabInLine = -1;
|
|
1236
|
+
}
|
|
1237
|
+
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
1238
|
+
var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
|
|
1239
|
+
while (ch !== 0) {
|
|
1240
|
+
while (is_WHITE_SPACE(ch)) {
|
|
1241
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
1242
|
+
state.firstTabInLine = state.position;
|
|
1243
|
+
}
|
|
1244
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1245
|
+
}
|
|
1246
|
+
if (allowComments && ch === 35) {
|
|
1247
|
+
do {
|
|
1248
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1249
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
1250
|
+
}
|
|
1251
|
+
if (is_EOL(ch)) {
|
|
1252
|
+
readLineBreak(state);
|
|
1253
|
+
ch = state.input.charCodeAt(state.position);
|
|
1254
|
+
lineBreaks++;
|
|
1255
|
+
state.lineIndent = 0;
|
|
1256
|
+
while (ch === 32) {
|
|
1257
|
+
state.lineIndent++;
|
|
1258
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1259
|
+
}
|
|
1260
|
+
} else {
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
1265
|
+
throwWarning(state, "deficient indentation");
|
|
1266
|
+
}
|
|
1267
|
+
return lineBreaks;
|
|
1268
|
+
}
|
|
1269
|
+
function testDocumentSeparator(state) {
|
|
1270
|
+
var _position = state.position, ch;
|
|
1271
|
+
ch = state.input.charCodeAt(_position);
|
|
1272
|
+
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
1273
|
+
_position += 3;
|
|
1274
|
+
ch = state.input.charCodeAt(_position);
|
|
1275
|
+
if (ch === 0 || is_WS_OR_EOL(ch)) {
|
|
1276
|
+
return true;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
return false;
|
|
1280
|
+
}
|
|
1281
|
+
function writeFoldedLines(state, count) {
|
|
1282
|
+
if (count === 1) {
|
|
1283
|
+
state.result += " ";
|
|
1284
|
+
} else if (count > 1) {
|
|
1285
|
+
state.result += common.repeat("\n", count - 1);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
1289
|
+
var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
|
|
1290
|
+
ch = state.input.charCodeAt(state.position);
|
|
1291
|
+
if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
|
|
1292
|
+
return false;
|
|
1293
|
+
}
|
|
1294
|
+
if (ch === 63 || ch === 45) {
|
|
1295
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
1296
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
1297
|
+
return false;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
state.kind = "scalar";
|
|
1301
|
+
state.result = "";
|
|
1302
|
+
captureStart = captureEnd = state.position;
|
|
1303
|
+
hasPendingContent = false;
|
|
1304
|
+
while (ch !== 0) {
|
|
1305
|
+
if (ch === 58) {
|
|
1306
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
1307
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
1308
|
+
break;
|
|
1309
|
+
}
|
|
1310
|
+
} else if (ch === 35) {
|
|
1311
|
+
preceding = state.input.charCodeAt(state.position - 1);
|
|
1312
|
+
if (is_WS_OR_EOL(preceding)) {
|
|
1313
|
+
break;
|
|
1314
|
+
}
|
|
1315
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {
|
|
1316
|
+
break;
|
|
1317
|
+
} else if (is_EOL(ch)) {
|
|
1318
|
+
_line = state.line;
|
|
1319
|
+
_lineStart = state.lineStart;
|
|
1320
|
+
_lineIndent = state.lineIndent;
|
|
1321
|
+
skipSeparationSpace(state, false, -1);
|
|
1322
|
+
if (state.lineIndent >= nodeIndent) {
|
|
1323
|
+
hasPendingContent = true;
|
|
1324
|
+
ch = state.input.charCodeAt(state.position);
|
|
1325
|
+
continue;
|
|
1326
|
+
} else {
|
|
1327
|
+
state.position = captureEnd;
|
|
1328
|
+
state.line = _line;
|
|
1329
|
+
state.lineStart = _lineStart;
|
|
1330
|
+
state.lineIndent = _lineIndent;
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
if (hasPendingContent) {
|
|
1335
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
1336
|
+
writeFoldedLines(state, state.line - _line);
|
|
1337
|
+
captureStart = captureEnd = state.position;
|
|
1338
|
+
hasPendingContent = false;
|
|
1339
|
+
}
|
|
1340
|
+
if (!is_WHITE_SPACE(ch)) {
|
|
1341
|
+
captureEnd = state.position + 1;
|
|
1342
|
+
}
|
|
1343
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1344
|
+
}
|
|
1345
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
1346
|
+
if (state.result) {
|
|
1347
|
+
return true;
|
|
1348
|
+
}
|
|
1349
|
+
state.kind = _kind;
|
|
1350
|
+
state.result = _result;
|
|
1351
|
+
return false;
|
|
1352
|
+
}
|
|
1353
|
+
function readSingleQuotedScalar(state, nodeIndent) {
|
|
1354
|
+
var ch, captureStart, captureEnd;
|
|
1355
|
+
ch = state.input.charCodeAt(state.position);
|
|
1356
|
+
if (ch !== 39) {
|
|
1357
|
+
return false;
|
|
1358
|
+
}
|
|
1359
|
+
state.kind = "scalar";
|
|
1360
|
+
state.result = "";
|
|
1361
|
+
state.position++;
|
|
1362
|
+
captureStart = captureEnd = state.position;
|
|
1363
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
1364
|
+
if (ch === 39) {
|
|
1365
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1366
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1367
|
+
if (ch === 39) {
|
|
1368
|
+
captureStart = state.position;
|
|
1369
|
+
state.position++;
|
|
1370
|
+
captureEnd = state.position;
|
|
1371
|
+
} else {
|
|
1372
|
+
return true;
|
|
1373
|
+
}
|
|
1374
|
+
} else if (is_EOL(ch)) {
|
|
1375
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
1376
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
1377
|
+
captureStart = captureEnd = state.position;
|
|
1378
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
1379
|
+
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
1380
|
+
} else {
|
|
1381
|
+
state.position++;
|
|
1382
|
+
captureEnd = state.position;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
1386
|
+
}
|
|
1387
|
+
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
1388
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
|
|
1389
|
+
ch = state.input.charCodeAt(state.position);
|
|
1390
|
+
if (ch !== 34) {
|
|
1391
|
+
return false;
|
|
1392
|
+
}
|
|
1393
|
+
state.kind = "scalar";
|
|
1394
|
+
state.result = "";
|
|
1395
|
+
state.position++;
|
|
1396
|
+
captureStart = captureEnd = state.position;
|
|
1397
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
1398
|
+
if (ch === 34) {
|
|
1399
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1400
|
+
state.position++;
|
|
1401
|
+
return true;
|
|
1402
|
+
} else if (ch === 92) {
|
|
1403
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1404
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1405
|
+
if (is_EOL(ch)) {
|
|
1406
|
+
skipSeparationSpace(state, false, nodeIndent);
|
|
1407
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
1408
|
+
state.result += simpleEscapeMap[ch];
|
|
1409
|
+
state.position++;
|
|
1410
|
+
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
1411
|
+
hexLength = tmp;
|
|
1412
|
+
hexResult = 0;
|
|
1413
|
+
for (; hexLength > 0; hexLength--) {
|
|
1414
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1415
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
1416
|
+
hexResult = (hexResult << 4) + tmp;
|
|
1417
|
+
} else {
|
|
1418
|
+
throwError(state, "expected hexadecimal character");
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
state.result += charFromCodepoint(hexResult);
|
|
1422
|
+
state.position++;
|
|
1423
|
+
} else {
|
|
1424
|
+
throwError(state, "unknown escape sequence");
|
|
1425
|
+
}
|
|
1426
|
+
captureStart = captureEnd = state.position;
|
|
1427
|
+
} else if (is_EOL(ch)) {
|
|
1428
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
1429
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
1430
|
+
captureStart = captureEnd = state.position;
|
|
1431
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
1432
|
+
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
1433
|
+
} else {
|
|
1434
|
+
state.position++;
|
|
1435
|
+
captureEnd = state.position;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
1439
|
+
}
|
|
1440
|
+
function readFlowCollection(state, nodeIndent) {
|
|
1441
|
+
var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch;
|
|
1442
|
+
ch = state.input.charCodeAt(state.position);
|
|
1443
|
+
if (ch === 91) {
|
|
1444
|
+
terminator = 93;
|
|
1445
|
+
isMapping = false;
|
|
1446
|
+
_result = [];
|
|
1447
|
+
} else if (ch === 123) {
|
|
1448
|
+
terminator = 125;
|
|
1449
|
+
isMapping = true;
|
|
1450
|
+
_result = {};
|
|
1451
|
+
} else {
|
|
1452
|
+
return false;
|
|
1453
|
+
}
|
|
1454
|
+
if (state.anchor !== null) {
|
|
1455
|
+
state.anchorMap[state.anchor] = _result;
|
|
1456
|
+
}
|
|
1457
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1458
|
+
while (ch !== 0) {
|
|
1459
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1460
|
+
ch = state.input.charCodeAt(state.position);
|
|
1461
|
+
if (ch === terminator) {
|
|
1462
|
+
state.position++;
|
|
1463
|
+
state.tag = _tag;
|
|
1464
|
+
state.anchor = _anchor;
|
|
1465
|
+
state.kind = isMapping ? "mapping" : "sequence";
|
|
1466
|
+
state.result = _result;
|
|
1467
|
+
return true;
|
|
1468
|
+
} else if (!readNext) {
|
|
1469
|
+
throwError(state, "missed comma between flow collection entries");
|
|
1470
|
+
} else if (ch === 44) {
|
|
1471
|
+
throwError(state, "expected the node content, but found ','");
|
|
1472
|
+
}
|
|
1473
|
+
keyTag = keyNode = valueNode = null;
|
|
1474
|
+
isPair = isExplicitPair = false;
|
|
1475
|
+
if (ch === 63) {
|
|
1476
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
1477
|
+
if (is_WS_OR_EOL(following)) {
|
|
1478
|
+
isPair = isExplicitPair = true;
|
|
1479
|
+
state.position++;
|
|
1480
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
_line = state.line;
|
|
1484
|
+
_lineStart = state.lineStart;
|
|
1485
|
+
_pos = state.position;
|
|
1486
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
1487
|
+
keyTag = state.tag;
|
|
1488
|
+
keyNode = state.result;
|
|
1489
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1490
|
+
ch = state.input.charCodeAt(state.position);
|
|
1491
|
+
if ((isExplicitPair || state.line === _line) && ch === 58) {
|
|
1492
|
+
isPair = true;
|
|
1493
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1494
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1495
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
1496
|
+
valueNode = state.result;
|
|
1497
|
+
}
|
|
1498
|
+
if (isMapping) {
|
|
1499
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
1500
|
+
} else if (isPair) {
|
|
1501
|
+
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
1502
|
+
} else {
|
|
1503
|
+
_result.push(keyNode);
|
|
1504
|
+
}
|
|
1505
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1506
|
+
ch = state.input.charCodeAt(state.position);
|
|
1507
|
+
if (ch === 44) {
|
|
1508
|
+
readNext = true;
|
|
1509
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1510
|
+
} else {
|
|
1511
|
+
readNext = false;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
throwError(state, "unexpected end of the stream within a flow collection");
|
|
1515
|
+
}
|
|
1516
|
+
function readBlockScalar(state, nodeIndent) {
|
|
1517
|
+
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
|
|
1518
|
+
ch = state.input.charCodeAt(state.position);
|
|
1519
|
+
if (ch === 124) {
|
|
1520
|
+
folding = false;
|
|
1521
|
+
} else if (ch === 62) {
|
|
1522
|
+
folding = true;
|
|
1523
|
+
} else {
|
|
1524
|
+
return false;
|
|
1525
|
+
}
|
|
1526
|
+
state.kind = "scalar";
|
|
1527
|
+
state.result = "";
|
|
1528
|
+
while (ch !== 0) {
|
|
1529
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1530
|
+
if (ch === 43 || ch === 45) {
|
|
1531
|
+
if (CHOMPING_CLIP === chomping) {
|
|
1532
|
+
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
1533
|
+
} else {
|
|
1534
|
+
throwError(state, "repeat of a chomping mode identifier");
|
|
1535
|
+
}
|
|
1536
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
1537
|
+
if (tmp === 0) {
|
|
1538
|
+
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
1539
|
+
} else if (!detectedIndent) {
|
|
1540
|
+
textIndent = nodeIndent + tmp - 1;
|
|
1541
|
+
detectedIndent = true;
|
|
1542
|
+
} else {
|
|
1543
|
+
throwError(state, "repeat of an indentation width identifier");
|
|
1544
|
+
}
|
|
1545
|
+
} else {
|
|
1546
|
+
break;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
if (is_WHITE_SPACE(ch)) {
|
|
1550
|
+
do {
|
|
1551
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1552
|
+
} while (is_WHITE_SPACE(ch));
|
|
1553
|
+
if (ch === 35) {
|
|
1554
|
+
do {
|
|
1555
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1556
|
+
} while (!is_EOL(ch) && ch !== 0);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
while (ch !== 0) {
|
|
1560
|
+
readLineBreak(state);
|
|
1561
|
+
state.lineIndent = 0;
|
|
1562
|
+
ch = state.input.charCodeAt(state.position);
|
|
1563
|
+
while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
|
|
1564
|
+
state.lineIndent++;
|
|
1565
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1566
|
+
}
|
|
1567
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
1568
|
+
textIndent = state.lineIndent;
|
|
1569
|
+
}
|
|
1570
|
+
if (is_EOL(ch)) {
|
|
1571
|
+
emptyLines++;
|
|
1572
|
+
continue;
|
|
1573
|
+
}
|
|
1574
|
+
if (state.lineIndent < textIndent) {
|
|
1575
|
+
if (chomping === CHOMPING_KEEP) {
|
|
1576
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1577
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
1578
|
+
if (didReadContent) {
|
|
1579
|
+
state.result += "\n";
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
if (folding) {
|
|
1585
|
+
if (is_WHITE_SPACE(ch)) {
|
|
1586
|
+
atMoreIndented = true;
|
|
1587
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1588
|
+
} else if (atMoreIndented) {
|
|
1589
|
+
atMoreIndented = false;
|
|
1590
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
1591
|
+
} else if (emptyLines === 0) {
|
|
1592
|
+
if (didReadContent) {
|
|
1593
|
+
state.result += " ";
|
|
1594
|
+
}
|
|
1595
|
+
} else {
|
|
1596
|
+
state.result += common.repeat("\n", emptyLines);
|
|
1597
|
+
}
|
|
1598
|
+
} else {
|
|
1599
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1600
|
+
}
|
|
1601
|
+
didReadContent = true;
|
|
1602
|
+
detectedIndent = true;
|
|
1603
|
+
emptyLines = 0;
|
|
1604
|
+
captureStart = state.position;
|
|
1605
|
+
while (!is_EOL(ch) && ch !== 0) {
|
|
1606
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1607
|
+
}
|
|
1608
|
+
captureSegment(state, captureStart, state.position, false);
|
|
1609
|
+
}
|
|
1610
|
+
return true;
|
|
1611
|
+
}
|
|
1612
|
+
function readBlockSequence(state, nodeIndent) {
|
|
1613
|
+
var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
|
|
1614
|
+
if (state.firstTabInLine !== -1) return false;
|
|
1615
|
+
if (state.anchor !== null) {
|
|
1616
|
+
state.anchorMap[state.anchor] = _result;
|
|
1617
|
+
}
|
|
1618
|
+
ch = state.input.charCodeAt(state.position);
|
|
1619
|
+
while (ch !== 0) {
|
|
1620
|
+
if (state.firstTabInLine !== -1) {
|
|
1621
|
+
state.position = state.firstTabInLine;
|
|
1622
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
1623
|
+
}
|
|
1624
|
+
if (ch !== 45) {
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
1628
|
+
if (!is_WS_OR_EOL(following)) {
|
|
1629
|
+
break;
|
|
1630
|
+
}
|
|
1631
|
+
detected = true;
|
|
1632
|
+
state.position++;
|
|
1633
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1634
|
+
if (state.lineIndent <= nodeIndent) {
|
|
1635
|
+
_result.push(null);
|
|
1636
|
+
ch = state.input.charCodeAt(state.position);
|
|
1637
|
+
continue;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
_line = state.line;
|
|
1641
|
+
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
1642
|
+
_result.push(state.result);
|
|
1643
|
+
skipSeparationSpace(state, true, -1);
|
|
1644
|
+
ch = state.input.charCodeAt(state.position);
|
|
1645
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
1646
|
+
throwError(state, "bad indentation of a sequence entry");
|
|
1647
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
1648
|
+
break;
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
if (detected) {
|
|
1652
|
+
state.tag = _tag;
|
|
1653
|
+
state.anchor = _anchor;
|
|
1654
|
+
state.kind = "sequence";
|
|
1655
|
+
state.result = _result;
|
|
1656
|
+
return true;
|
|
1657
|
+
}
|
|
1658
|
+
return false;
|
|
1659
|
+
}
|
|
1660
|
+
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
1661
|
+
var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
|
|
1662
|
+
if (state.firstTabInLine !== -1) return false;
|
|
1663
|
+
if (state.anchor !== null) {
|
|
1664
|
+
state.anchorMap[state.anchor] = _result;
|
|
1665
|
+
}
|
|
1666
|
+
ch = state.input.charCodeAt(state.position);
|
|
1667
|
+
while (ch !== 0) {
|
|
1668
|
+
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
1669
|
+
state.position = state.firstTabInLine;
|
|
1670
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
1671
|
+
}
|
|
1672
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
1673
|
+
_line = state.line;
|
|
1674
|
+
if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
|
|
1675
|
+
if (ch === 63) {
|
|
1676
|
+
if (atExplicitKey) {
|
|
1677
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1678
|
+
keyTag = keyNode = valueNode = null;
|
|
1679
|
+
}
|
|
1680
|
+
detected = true;
|
|
1681
|
+
atExplicitKey = true;
|
|
1682
|
+
allowCompact = true;
|
|
1683
|
+
} else if (atExplicitKey) {
|
|
1684
|
+
atExplicitKey = false;
|
|
1685
|
+
allowCompact = true;
|
|
1686
|
+
} else {
|
|
1687
|
+
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
1688
|
+
}
|
|
1689
|
+
state.position += 1;
|
|
1690
|
+
ch = following;
|
|
1691
|
+
} else {
|
|
1692
|
+
_keyLine = state.line;
|
|
1693
|
+
_keyLineStart = state.lineStart;
|
|
1694
|
+
_keyPos = state.position;
|
|
1695
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
1696
|
+
break;
|
|
1697
|
+
}
|
|
1698
|
+
if (state.line === _line) {
|
|
1699
|
+
ch = state.input.charCodeAt(state.position);
|
|
1700
|
+
while (is_WHITE_SPACE(ch)) {
|
|
1701
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1702
|
+
}
|
|
1703
|
+
if (ch === 58) {
|
|
1704
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1705
|
+
if (!is_WS_OR_EOL(ch)) {
|
|
1706
|
+
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
1707
|
+
}
|
|
1708
|
+
if (atExplicitKey) {
|
|
1709
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1710
|
+
keyTag = keyNode = valueNode = null;
|
|
1711
|
+
}
|
|
1712
|
+
detected = true;
|
|
1713
|
+
atExplicitKey = false;
|
|
1714
|
+
allowCompact = false;
|
|
1715
|
+
keyTag = state.tag;
|
|
1716
|
+
keyNode = state.result;
|
|
1717
|
+
} else if (detected) {
|
|
1718
|
+
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
1719
|
+
} else {
|
|
1720
|
+
state.tag = _tag;
|
|
1721
|
+
state.anchor = _anchor;
|
|
1722
|
+
return true;
|
|
1723
|
+
}
|
|
1724
|
+
} else if (detected) {
|
|
1725
|
+
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1726
|
+
} else {
|
|
1727
|
+
state.tag = _tag;
|
|
1728
|
+
state.anchor = _anchor;
|
|
1729
|
+
return true;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
if (state.line === _line || state.lineIndent > nodeIndent) {
|
|
1733
|
+
if (atExplicitKey) {
|
|
1734
|
+
_keyLine = state.line;
|
|
1735
|
+
_keyLineStart = state.lineStart;
|
|
1736
|
+
_keyPos = state.position;
|
|
1737
|
+
}
|
|
1738
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
1739
|
+
if (atExplicitKey) {
|
|
1740
|
+
keyNode = state.result;
|
|
1741
|
+
} else {
|
|
1742
|
+
valueNode = state.result;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
if (!atExplicitKey) {
|
|
1746
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
1747
|
+
keyTag = keyNode = valueNode = null;
|
|
1748
|
+
}
|
|
1749
|
+
skipSeparationSpace(state, true, -1);
|
|
1750
|
+
ch = state.input.charCodeAt(state.position);
|
|
1751
|
+
}
|
|
1752
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
1753
|
+
throwError(state, "bad indentation of a mapping entry");
|
|
1754
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
1755
|
+
break;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
if (atExplicitKey) {
|
|
1759
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1760
|
+
}
|
|
1761
|
+
if (detected) {
|
|
1762
|
+
state.tag = _tag;
|
|
1763
|
+
state.anchor = _anchor;
|
|
1764
|
+
state.kind = "mapping";
|
|
1765
|
+
state.result = _result;
|
|
1766
|
+
}
|
|
1767
|
+
return detected;
|
|
1768
|
+
}
|
|
1769
|
+
function readTagProperty(state) {
|
|
1770
|
+
var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
|
|
1771
|
+
ch = state.input.charCodeAt(state.position);
|
|
1772
|
+
if (ch !== 33) return false;
|
|
1773
|
+
if (state.tag !== null) {
|
|
1774
|
+
throwError(state, "duplication of a tag property");
|
|
1775
|
+
}
|
|
1776
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1777
|
+
if (ch === 60) {
|
|
1778
|
+
isVerbatim = true;
|
|
1779
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1780
|
+
} else if (ch === 33) {
|
|
1781
|
+
isNamed = true;
|
|
1782
|
+
tagHandle = "!!";
|
|
1783
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1784
|
+
} else {
|
|
1785
|
+
tagHandle = "!";
|
|
1786
|
+
}
|
|
1787
|
+
_position = state.position;
|
|
1788
|
+
if (isVerbatim) {
|
|
1789
|
+
do {
|
|
1790
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1791
|
+
} while (ch !== 0 && ch !== 62);
|
|
1792
|
+
if (state.position < state.length) {
|
|
1793
|
+
tagName = state.input.slice(_position, state.position);
|
|
1794
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1795
|
+
} else {
|
|
1796
|
+
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
1797
|
+
}
|
|
1798
|
+
} else {
|
|
1799
|
+
while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
|
1800
|
+
if (ch === 33) {
|
|
1801
|
+
if (!isNamed) {
|
|
1802
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
1803
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
1804
|
+
throwError(state, "named tag handle cannot contain such characters");
|
|
1805
|
+
}
|
|
1806
|
+
isNamed = true;
|
|
1807
|
+
_position = state.position + 1;
|
|
1808
|
+
} else {
|
|
1809
|
+
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1813
|
+
}
|
|
1814
|
+
tagName = state.input.slice(_position, state.position);
|
|
1815
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
1816
|
+
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
1820
|
+
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
1821
|
+
}
|
|
1822
|
+
try {
|
|
1823
|
+
tagName = decodeURIComponent(tagName);
|
|
1824
|
+
} catch (err) {
|
|
1825
|
+
throwError(state, "tag name is malformed: " + tagName);
|
|
1826
|
+
}
|
|
1827
|
+
if (isVerbatim) {
|
|
1828
|
+
state.tag = tagName;
|
|
1829
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
1830
|
+
state.tag = state.tagMap[tagHandle] + tagName;
|
|
1831
|
+
} else if (tagHandle === "!") {
|
|
1832
|
+
state.tag = "!" + tagName;
|
|
1833
|
+
} else if (tagHandle === "!!") {
|
|
1834
|
+
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
1835
|
+
} else {
|
|
1836
|
+
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
1837
|
+
}
|
|
1838
|
+
return true;
|
|
1839
|
+
}
|
|
1840
|
+
function readAnchorProperty(state) {
|
|
1841
|
+
var _position, ch;
|
|
1842
|
+
ch = state.input.charCodeAt(state.position);
|
|
1843
|
+
if (ch !== 38) return false;
|
|
1844
|
+
if (state.anchor !== null) {
|
|
1845
|
+
throwError(state, "duplication of an anchor property");
|
|
1846
|
+
}
|
|
1847
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1848
|
+
_position = state.position;
|
|
1849
|
+
while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
|
|
1850
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1851
|
+
}
|
|
1852
|
+
if (state.position === _position) {
|
|
1853
|
+
throwError(state, "name of an anchor node must contain at least one character");
|
|
1854
|
+
}
|
|
1855
|
+
state.anchor = state.input.slice(_position, state.position);
|
|
1856
|
+
return true;
|
|
1857
|
+
}
|
|
1858
|
+
function readAlias(state) {
|
|
1859
|
+
var _position, alias, ch;
|
|
1860
|
+
ch = state.input.charCodeAt(state.position);
|
|
1861
|
+
if (ch !== 42) return false;
|
|
1862
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1863
|
+
_position = state.position;
|
|
1864
|
+
while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
|
|
1865
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1866
|
+
}
|
|
1867
|
+
if (state.position === _position) {
|
|
1868
|
+
throwError(state, "name of an alias node must contain at least one character");
|
|
1869
|
+
}
|
|
1870
|
+
alias = state.input.slice(_position, state.position);
|
|
1871
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
1872
|
+
throwError(state, 'unidentified alias "' + alias + '"');
|
|
1873
|
+
}
|
|
1874
|
+
state.result = state.anchorMap[alias];
|
|
1875
|
+
skipSeparationSpace(state, true, -1);
|
|
1876
|
+
return true;
|
|
1877
|
+
}
|
|
1878
|
+
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
1879
|
+
var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
|
|
1880
|
+
if (state.listener !== null) {
|
|
1881
|
+
state.listener("open", state);
|
|
1882
|
+
}
|
|
1883
|
+
state.tag = null;
|
|
1884
|
+
state.anchor = null;
|
|
1885
|
+
state.kind = null;
|
|
1886
|
+
state.result = null;
|
|
1887
|
+
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
1888
|
+
if (allowToSeek) {
|
|
1889
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1890
|
+
atNewLine = true;
|
|
1891
|
+
if (state.lineIndent > parentIndent) {
|
|
1892
|
+
indentStatus = 1;
|
|
1893
|
+
} else if (state.lineIndent === parentIndent) {
|
|
1894
|
+
indentStatus = 0;
|
|
1895
|
+
} else if (state.lineIndent < parentIndent) {
|
|
1896
|
+
indentStatus = -1;
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
if (indentStatus === 1) {
|
|
1901
|
+
while (readTagProperty(state) || readAnchorProperty(state)) {
|
|
1902
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1903
|
+
atNewLine = true;
|
|
1904
|
+
allowBlockCollections = allowBlockStyles;
|
|
1905
|
+
if (state.lineIndent > parentIndent) {
|
|
1906
|
+
indentStatus = 1;
|
|
1907
|
+
} else if (state.lineIndent === parentIndent) {
|
|
1908
|
+
indentStatus = 0;
|
|
1909
|
+
} else if (state.lineIndent < parentIndent) {
|
|
1910
|
+
indentStatus = -1;
|
|
1911
|
+
}
|
|
1912
|
+
} else {
|
|
1913
|
+
allowBlockCollections = false;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if (allowBlockCollections) {
|
|
1918
|
+
allowBlockCollections = atNewLine || allowCompact;
|
|
1919
|
+
}
|
|
1920
|
+
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
1921
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
1922
|
+
flowIndent = parentIndent;
|
|
1923
|
+
} else {
|
|
1924
|
+
flowIndent = parentIndent + 1;
|
|
1925
|
+
}
|
|
1926
|
+
blockIndent = state.position - state.lineStart;
|
|
1927
|
+
if (indentStatus === 1) {
|
|
1928
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
1929
|
+
hasContent = true;
|
|
1930
|
+
} else {
|
|
1931
|
+
if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
1932
|
+
hasContent = true;
|
|
1933
|
+
} else if (readAlias(state)) {
|
|
1934
|
+
hasContent = true;
|
|
1935
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
1936
|
+
throwError(state, "alias node should not have any properties");
|
|
1937
|
+
}
|
|
1938
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
1939
|
+
hasContent = true;
|
|
1940
|
+
if (state.tag === null) {
|
|
1941
|
+
state.tag = "?";
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
if (state.anchor !== null) {
|
|
1945
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
} else if (indentStatus === 0) {
|
|
1949
|
+
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
if (state.tag === null) {
|
|
1953
|
+
if (state.anchor !== null) {
|
|
1954
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1955
|
+
}
|
|
1956
|
+
} else if (state.tag === "?") {
|
|
1957
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
1958
|
+
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
1959
|
+
}
|
|
1960
|
+
for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
1961
|
+
type = state.implicitTypes[typeIndex];
|
|
1962
|
+
if (type.resolve(state.result)) {
|
|
1963
|
+
state.result = type.construct(state.result);
|
|
1964
|
+
state.tag = type.tag;
|
|
1965
|
+
if (state.anchor !== null) {
|
|
1966
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1967
|
+
}
|
|
1968
|
+
break;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
} else if (state.tag !== "!") {
|
|
1972
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
1973
|
+
type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
1974
|
+
} else {
|
|
1975
|
+
type = null;
|
|
1976
|
+
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
1977
|
+
for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
1978
|
+
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
1979
|
+
type = typeList[typeIndex];
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
if (!type) {
|
|
1985
|
+
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
1986
|
+
}
|
|
1987
|
+
if (state.result !== null && type.kind !== state.kind) {
|
|
1988
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
|
|
1989
|
+
}
|
|
1990
|
+
if (!type.resolve(state.result, state.tag)) {
|
|
1991
|
+
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
1992
|
+
} else {
|
|
1993
|
+
state.result = type.construct(state.result, state.tag);
|
|
1994
|
+
if (state.anchor !== null) {
|
|
1995
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
if (state.listener !== null) {
|
|
2000
|
+
state.listener("close", state);
|
|
2001
|
+
}
|
|
2002
|
+
return state.tag !== null || state.anchor !== null || hasContent;
|
|
2003
|
+
}
|
|
2004
|
+
function readDocument(state) {
|
|
2005
|
+
var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
|
|
2006
|
+
state.version = null;
|
|
2007
|
+
state.checkLineBreaks = state.legacy;
|
|
2008
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
2009
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
2010
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
2011
|
+
skipSeparationSpace(state, true, -1);
|
|
2012
|
+
ch = state.input.charCodeAt(state.position);
|
|
2013
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
2014
|
+
break;
|
|
2015
|
+
}
|
|
2016
|
+
hasDirectives = true;
|
|
2017
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2018
|
+
_position = state.position;
|
|
2019
|
+
while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
|
2020
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2021
|
+
}
|
|
2022
|
+
directiveName = state.input.slice(_position, state.position);
|
|
2023
|
+
directiveArgs = [];
|
|
2024
|
+
if (directiveName.length < 1) {
|
|
2025
|
+
throwError(state, "directive name must not be less than one character in length");
|
|
2026
|
+
}
|
|
2027
|
+
while (ch !== 0) {
|
|
2028
|
+
while (is_WHITE_SPACE(ch)) {
|
|
2029
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2030
|
+
}
|
|
2031
|
+
if (ch === 35) {
|
|
2032
|
+
do {
|
|
2033
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2034
|
+
} while (ch !== 0 && !is_EOL(ch));
|
|
2035
|
+
break;
|
|
2036
|
+
}
|
|
2037
|
+
if (is_EOL(ch)) break;
|
|
2038
|
+
_position = state.position;
|
|
2039
|
+
while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
|
2040
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2041
|
+
}
|
|
2042
|
+
directiveArgs.push(state.input.slice(_position, state.position));
|
|
2043
|
+
}
|
|
2044
|
+
if (ch !== 0) readLineBreak(state);
|
|
2045
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
2046
|
+
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
2047
|
+
} else {
|
|
2048
|
+
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
skipSeparationSpace(state, true, -1);
|
|
2052
|
+
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
2053
|
+
state.position += 3;
|
|
2054
|
+
skipSeparationSpace(state, true, -1);
|
|
2055
|
+
} else if (hasDirectives) {
|
|
2056
|
+
throwError(state, "directives end mark is expected");
|
|
2057
|
+
}
|
|
2058
|
+
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
2059
|
+
skipSeparationSpace(state, true, -1);
|
|
2060
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
2061
|
+
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
2062
|
+
}
|
|
2063
|
+
state.documents.push(state.result);
|
|
2064
|
+
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
2065
|
+
if (state.input.charCodeAt(state.position) === 46) {
|
|
2066
|
+
state.position += 3;
|
|
2067
|
+
skipSeparationSpace(state, true, -1);
|
|
2068
|
+
}
|
|
2069
|
+
return;
|
|
2070
|
+
}
|
|
2071
|
+
if (state.position < state.length - 1) {
|
|
2072
|
+
throwError(state, "end of the stream or a document separator is expected");
|
|
2073
|
+
} else {
|
|
2074
|
+
return;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
function loadDocuments(input, options) {
|
|
2078
|
+
input = String(input);
|
|
2079
|
+
options = options || {};
|
|
2080
|
+
if (input.length !== 0) {
|
|
2081
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
2082
|
+
input += "\n";
|
|
2083
|
+
}
|
|
2084
|
+
if (input.charCodeAt(0) === 65279) {
|
|
2085
|
+
input = input.slice(1);
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
var state = new State(input, options);
|
|
2089
|
+
var nullpos = input.indexOf("\0");
|
|
2090
|
+
if (nullpos !== -1) {
|
|
2091
|
+
state.position = nullpos;
|
|
2092
|
+
throwError(state, "null byte is not allowed in input");
|
|
2093
|
+
}
|
|
2094
|
+
state.input += "\0";
|
|
2095
|
+
while (state.input.charCodeAt(state.position) === 32) {
|
|
2096
|
+
state.lineIndent += 1;
|
|
2097
|
+
state.position += 1;
|
|
2098
|
+
}
|
|
2099
|
+
while (state.position < state.length - 1) {
|
|
2100
|
+
readDocument(state);
|
|
2101
|
+
}
|
|
2102
|
+
return state.documents;
|
|
2103
|
+
}
|
|
2104
|
+
function loadAll(input, iterator, options) {
|
|
2105
|
+
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
2106
|
+
options = iterator;
|
|
2107
|
+
iterator = null;
|
|
2108
|
+
}
|
|
2109
|
+
var documents = loadDocuments(input, options);
|
|
2110
|
+
if (typeof iterator !== "function") {
|
|
2111
|
+
return documents;
|
|
2112
|
+
}
|
|
2113
|
+
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
2114
|
+
iterator(documents[index]);
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
function load(input, options) {
|
|
2118
|
+
var documents = loadDocuments(input, options);
|
|
2119
|
+
if (documents.length === 0) {
|
|
2120
|
+
return void 0;
|
|
2121
|
+
} else if (documents.length === 1) {
|
|
2122
|
+
return documents[0];
|
|
2123
|
+
}
|
|
2124
|
+
throw new YAMLException("expected a single document in the stream, but found more");
|
|
2125
|
+
}
|
|
2126
|
+
module2.exports.loadAll = loadAll;
|
|
2127
|
+
module2.exports.load = load;
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2130
|
+
|
|
2131
|
+
// node_modules/js-yaml/lib/dumper.js
|
|
2132
|
+
var require_dumper = __commonJS({
|
|
2133
|
+
"node_modules/js-yaml/lib/dumper.js"(exports2, module2) {
|
|
2134
|
+
"use strict";
|
|
2135
|
+
var common = require_common();
|
|
2136
|
+
var YAMLException = require_exception();
|
|
2137
|
+
var DEFAULT_SCHEMA = require_default();
|
|
2138
|
+
var _toString = Object.prototype.toString;
|
|
2139
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2140
|
+
var CHAR_BOM = 65279;
|
|
2141
|
+
var CHAR_TAB = 9;
|
|
2142
|
+
var CHAR_LINE_FEED = 10;
|
|
2143
|
+
var CHAR_CARRIAGE_RETURN = 13;
|
|
2144
|
+
var CHAR_SPACE = 32;
|
|
2145
|
+
var CHAR_EXCLAMATION = 33;
|
|
2146
|
+
var CHAR_DOUBLE_QUOTE = 34;
|
|
2147
|
+
var CHAR_SHARP = 35;
|
|
2148
|
+
var CHAR_PERCENT = 37;
|
|
2149
|
+
var CHAR_AMPERSAND = 38;
|
|
2150
|
+
var CHAR_SINGLE_QUOTE = 39;
|
|
2151
|
+
var CHAR_ASTERISK = 42;
|
|
2152
|
+
var CHAR_COMMA = 44;
|
|
2153
|
+
var CHAR_MINUS = 45;
|
|
2154
|
+
var CHAR_COLON = 58;
|
|
2155
|
+
var CHAR_EQUALS = 61;
|
|
2156
|
+
var CHAR_GREATER_THAN = 62;
|
|
2157
|
+
var CHAR_QUESTION = 63;
|
|
2158
|
+
var CHAR_COMMERCIAL_AT = 64;
|
|
2159
|
+
var CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
2160
|
+
var CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
2161
|
+
var CHAR_GRAVE_ACCENT = 96;
|
|
2162
|
+
var CHAR_LEFT_CURLY_BRACKET = 123;
|
|
2163
|
+
var CHAR_VERTICAL_LINE = 124;
|
|
2164
|
+
var CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
2165
|
+
var ESCAPE_SEQUENCES = {};
|
|
2166
|
+
ESCAPE_SEQUENCES[0] = "\\0";
|
|
2167
|
+
ESCAPE_SEQUENCES[7] = "\\a";
|
|
2168
|
+
ESCAPE_SEQUENCES[8] = "\\b";
|
|
2169
|
+
ESCAPE_SEQUENCES[9] = "\\t";
|
|
2170
|
+
ESCAPE_SEQUENCES[10] = "\\n";
|
|
2171
|
+
ESCAPE_SEQUENCES[11] = "\\v";
|
|
2172
|
+
ESCAPE_SEQUENCES[12] = "\\f";
|
|
2173
|
+
ESCAPE_SEQUENCES[13] = "\\r";
|
|
2174
|
+
ESCAPE_SEQUENCES[27] = "\\e";
|
|
2175
|
+
ESCAPE_SEQUENCES[34] = '\\"';
|
|
2176
|
+
ESCAPE_SEQUENCES[92] = "\\\\";
|
|
2177
|
+
ESCAPE_SEQUENCES[133] = "\\N";
|
|
2178
|
+
ESCAPE_SEQUENCES[160] = "\\_";
|
|
2179
|
+
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
2180
|
+
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
2181
|
+
var DEPRECATED_BOOLEANS_SYNTAX = [
|
|
2182
|
+
"y",
|
|
2183
|
+
"Y",
|
|
2184
|
+
"yes",
|
|
2185
|
+
"Yes",
|
|
2186
|
+
"YES",
|
|
2187
|
+
"on",
|
|
2188
|
+
"On",
|
|
2189
|
+
"ON",
|
|
2190
|
+
"n",
|
|
2191
|
+
"N",
|
|
2192
|
+
"no",
|
|
2193
|
+
"No",
|
|
2194
|
+
"NO",
|
|
2195
|
+
"off",
|
|
2196
|
+
"Off",
|
|
2197
|
+
"OFF"
|
|
2198
|
+
];
|
|
2199
|
+
var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2200
|
+
function compileStyleMap(schema, map) {
|
|
2201
|
+
var result, keys, index, length, tag, style, type;
|
|
2202
|
+
if (map === null) return {};
|
|
2203
|
+
result = {};
|
|
2204
|
+
keys = Object.keys(map);
|
|
2205
|
+
for (index = 0, length = keys.length; index < length; index += 1) {
|
|
2206
|
+
tag = keys[index];
|
|
2207
|
+
style = String(map[tag]);
|
|
2208
|
+
if (tag.slice(0, 2) === "!!") {
|
|
2209
|
+
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
2210
|
+
}
|
|
2211
|
+
type = schema.compiledTypeMap["fallback"][tag];
|
|
2212
|
+
if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
|
2213
|
+
style = type.styleAliases[style];
|
|
2214
|
+
}
|
|
2215
|
+
result[tag] = style;
|
|
2216
|
+
}
|
|
2217
|
+
return result;
|
|
2218
|
+
}
|
|
2219
|
+
function encodeHex(character) {
|
|
2220
|
+
var string, handle, length;
|
|
2221
|
+
string = character.toString(16).toUpperCase();
|
|
2222
|
+
if (character <= 255) {
|
|
2223
|
+
handle = "x";
|
|
2224
|
+
length = 2;
|
|
2225
|
+
} else if (character <= 65535) {
|
|
2226
|
+
handle = "u";
|
|
2227
|
+
length = 4;
|
|
2228
|
+
} else if (character <= 4294967295) {
|
|
2229
|
+
handle = "U";
|
|
2230
|
+
length = 8;
|
|
2231
|
+
} else {
|
|
2232
|
+
throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2233
|
+
}
|
|
2234
|
+
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
2235
|
+
}
|
|
2236
|
+
var QUOTING_TYPE_SINGLE = 1;
|
|
2237
|
+
var QUOTING_TYPE_DOUBLE = 2;
|
|
2238
|
+
function State(options) {
|
|
2239
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
2240
|
+
this.indent = Math.max(1, options["indent"] || 2);
|
|
2241
|
+
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
2242
|
+
this.skipInvalid = options["skipInvalid"] || false;
|
|
2243
|
+
this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
2244
|
+
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
2245
|
+
this.sortKeys = options["sortKeys"] || false;
|
|
2246
|
+
this.lineWidth = options["lineWidth"] || 80;
|
|
2247
|
+
this.noRefs = options["noRefs"] || false;
|
|
2248
|
+
this.noCompatMode = options["noCompatMode"] || false;
|
|
2249
|
+
this.condenseFlow = options["condenseFlow"] || false;
|
|
2250
|
+
this.quotingType = options["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
|
|
2251
|
+
this.forceQuotes = options["forceQuotes"] || false;
|
|
2252
|
+
this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null;
|
|
2253
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
2254
|
+
this.explicitTypes = this.schema.compiledExplicit;
|
|
2255
|
+
this.tag = null;
|
|
2256
|
+
this.result = "";
|
|
2257
|
+
this.duplicates = [];
|
|
2258
|
+
this.usedDuplicates = null;
|
|
2259
|
+
}
|
|
2260
|
+
function indentString(string, spaces) {
|
|
2261
|
+
var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
|
|
2262
|
+
while (position < length) {
|
|
2263
|
+
next = string.indexOf("\n", position);
|
|
2264
|
+
if (next === -1) {
|
|
2265
|
+
line = string.slice(position);
|
|
2266
|
+
position = length;
|
|
2267
|
+
} else {
|
|
2268
|
+
line = string.slice(position, next + 1);
|
|
2269
|
+
position = next + 1;
|
|
2270
|
+
}
|
|
2271
|
+
if (line.length && line !== "\n") result += ind;
|
|
2272
|
+
result += line;
|
|
2273
|
+
}
|
|
2274
|
+
return result;
|
|
2275
|
+
}
|
|
2276
|
+
function generateNextLine(state, level) {
|
|
2277
|
+
return "\n" + common.repeat(" ", state.indent * level);
|
|
2278
|
+
}
|
|
2279
|
+
function testImplicitResolving(state, str) {
|
|
2280
|
+
var index, length, type;
|
|
2281
|
+
for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
2282
|
+
type = state.implicitTypes[index];
|
|
2283
|
+
if (type.resolve(str)) {
|
|
2284
|
+
return true;
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
return false;
|
|
2288
|
+
}
|
|
2289
|
+
function isWhitespace(c) {
|
|
2290
|
+
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
2291
|
+
}
|
|
2292
|
+
function isPrintable(c) {
|
|
2293
|
+
return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
|
|
2294
|
+
}
|
|
2295
|
+
function isNsCharOrWhitespace(c) {
|
|
2296
|
+
return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
2297
|
+
}
|
|
2298
|
+
function isPlainSafe(c, prev, inblock) {
|
|
2299
|
+
var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
2300
|
+
var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
2301
|
+
return (
|
|
2302
|
+
// ns-plain-safe
|
|
2303
|
+
(inblock ? (
|
|
2304
|
+
// c = flow-in
|
|
2305
|
+
cIsNsCharOrWhitespace
|
|
2306
|
+
) : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
function isPlainSafeFirst(c) {
|
|
2310
|
+
return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
|
|
2311
|
+
}
|
|
2312
|
+
function isPlainSafeLast(c) {
|
|
2313
|
+
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
2314
|
+
}
|
|
2315
|
+
function codePointAt(string, pos) {
|
|
2316
|
+
var first = string.charCodeAt(pos), second;
|
|
2317
|
+
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
2318
|
+
second = string.charCodeAt(pos + 1);
|
|
2319
|
+
if (second >= 56320 && second <= 57343) {
|
|
2320
|
+
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
return first;
|
|
2324
|
+
}
|
|
2325
|
+
function needIndentIndicator(string) {
|
|
2326
|
+
var leadingSpaceRe = /^\n* /;
|
|
2327
|
+
return leadingSpaceRe.test(string);
|
|
2328
|
+
}
|
|
2329
|
+
var STYLE_PLAIN = 1;
|
|
2330
|
+
var STYLE_SINGLE = 2;
|
|
2331
|
+
var STYLE_LITERAL = 3;
|
|
2332
|
+
var STYLE_FOLDED = 4;
|
|
2333
|
+
var STYLE_DOUBLE = 5;
|
|
2334
|
+
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
2335
|
+
var i;
|
|
2336
|
+
var char = 0;
|
|
2337
|
+
var prevChar = null;
|
|
2338
|
+
var hasLineBreak = false;
|
|
2339
|
+
var hasFoldableLine = false;
|
|
2340
|
+
var shouldTrackWidth = lineWidth !== -1;
|
|
2341
|
+
var previousLineBreak = -1;
|
|
2342
|
+
var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
2343
|
+
if (singleLineOnly || forceQuotes) {
|
|
2344
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2345
|
+
char = codePointAt(string, i);
|
|
2346
|
+
if (!isPrintable(char)) {
|
|
2347
|
+
return STYLE_DOUBLE;
|
|
2348
|
+
}
|
|
2349
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
2350
|
+
prevChar = char;
|
|
2351
|
+
}
|
|
2352
|
+
} else {
|
|
2353
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2354
|
+
char = codePointAt(string, i);
|
|
2355
|
+
if (char === CHAR_LINE_FEED) {
|
|
2356
|
+
hasLineBreak = true;
|
|
2357
|
+
if (shouldTrackWidth) {
|
|
2358
|
+
hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
|
|
2359
|
+
i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
2360
|
+
previousLineBreak = i;
|
|
2361
|
+
}
|
|
2362
|
+
} else if (!isPrintable(char)) {
|
|
2363
|
+
return STYLE_DOUBLE;
|
|
2364
|
+
}
|
|
2365
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
2366
|
+
prevChar = char;
|
|
2367
|
+
}
|
|
2368
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
2369
|
+
}
|
|
2370
|
+
if (!hasLineBreak && !hasFoldableLine) {
|
|
2371
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
2372
|
+
return STYLE_PLAIN;
|
|
2373
|
+
}
|
|
2374
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
2375
|
+
}
|
|
2376
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
2377
|
+
return STYLE_DOUBLE;
|
|
2378
|
+
}
|
|
2379
|
+
if (!forceQuotes) {
|
|
2380
|
+
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
2381
|
+
}
|
|
2382
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
2383
|
+
}
|
|
2384
|
+
function writeScalar(state, string, level, iskey, inblock) {
|
|
2385
|
+
state.dump = (function() {
|
|
2386
|
+
if (string.length === 0) {
|
|
2387
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
2388
|
+
}
|
|
2389
|
+
if (!state.noCompatMode) {
|
|
2390
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
2391
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
var indent = state.indent * Math.max(1, level);
|
|
2395
|
+
var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
2396
|
+
var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
2397
|
+
function testAmbiguity(string2) {
|
|
2398
|
+
return testImplicitResolving(state, string2);
|
|
2399
|
+
}
|
|
2400
|
+
switch (chooseScalarStyle(
|
|
2401
|
+
string,
|
|
2402
|
+
singleLineOnly,
|
|
2403
|
+
state.indent,
|
|
2404
|
+
lineWidth,
|
|
2405
|
+
testAmbiguity,
|
|
2406
|
+
state.quotingType,
|
|
2407
|
+
state.forceQuotes && !iskey,
|
|
2408
|
+
inblock
|
|
2409
|
+
)) {
|
|
2410
|
+
case STYLE_PLAIN:
|
|
2411
|
+
return string;
|
|
2412
|
+
case STYLE_SINGLE:
|
|
2413
|
+
return "'" + string.replace(/'/g, "''") + "'";
|
|
2414
|
+
case STYLE_LITERAL:
|
|
2415
|
+
return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
|
|
2416
|
+
case STYLE_FOLDED:
|
|
2417
|
+
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
2418
|
+
case STYLE_DOUBLE:
|
|
2419
|
+
return '"' + escapeString(string, lineWidth) + '"';
|
|
2420
|
+
default:
|
|
2421
|
+
throw new YAMLException("impossible error: invalid scalar style");
|
|
2422
|
+
}
|
|
2423
|
+
})();
|
|
2424
|
+
}
|
|
2425
|
+
function blockHeader(string, indentPerLevel) {
|
|
2426
|
+
var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
2427
|
+
var clip = string[string.length - 1] === "\n";
|
|
2428
|
+
var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
|
|
2429
|
+
var chomp = keep ? "+" : clip ? "" : "-";
|
|
2430
|
+
return indentIndicator + chomp + "\n";
|
|
2431
|
+
}
|
|
2432
|
+
function dropEndingNewline(string) {
|
|
2433
|
+
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
2434
|
+
}
|
|
2435
|
+
function foldString(string, width) {
|
|
2436
|
+
var lineRe = /(\n+)([^\n]*)/g;
|
|
2437
|
+
var result = (function() {
|
|
2438
|
+
var nextLF = string.indexOf("\n");
|
|
2439
|
+
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
2440
|
+
lineRe.lastIndex = nextLF;
|
|
2441
|
+
return foldLine(string.slice(0, nextLF), width);
|
|
2442
|
+
})();
|
|
2443
|
+
var prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
2444
|
+
var moreIndented;
|
|
2445
|
+
var match;
|
|
2446
|
+
while (match = lineRe.exec(string)) {
|
|
2447
|
+
var prefix = match[1], line = match[2];
|
|
2448
|
+
moreIndented = line[0] === " ";
|
|
2449
|
+
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
2450
|
+
prevMoreIndented = moreIndented;
|
|
2451
|
+
}
|
|
2452
|
+
return result;
|
|
2453
|
+
}
|
|
2454
|
+
function foldLine(line, width) {
|
|
2455
|
+
if (line === "" || line[0] === " ") return line;
|
|
2456
|
+
var breakRe = / [^ ]/g;
|
|
2457
|
+
var match;
|
|
2458
|
+
var start = 0, end, curr = 0, next = 0;
|
|
2459
|
+
var result = "";
|
|
2460
|
+
while (match = breakRe.exec(line)) {
|
|
2461
|
+
next = match.index;
|
|
2462
|
+
if (next - start > width) {
|
|
2463
|
+
end = curr > start ? curr : next;
|
|
2464
|
+
result += "\n" + line.slice(start, end);
|
|
2465
|
+
start = end + 1;
|
|
2466
|
+
}
|
|
2467
|
+
curr = next;
|
|
2468
|
+
}
|
|
2469
|
+
result += "\n";
|
|
2470
|
+
if (line.length - start > width && curr > start) {
|
|
2471
|
+
result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
|
|
2472
|
+
} else {
|
|
2473
|
+
result += line.slice(start);
|
|
2474
|
+
}
|
|
2475
|
+
return result.slice(1);
|
|
2476
|
+
}
|
|
2477
|
+
function escapeString(string) {
|
|
2478
|
+
var result = "";
|
|
2479
|
+
var char = 0;
|
|
2480
|
+
var escapeSeq;
|
|
2481
|
+
for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2482
|
+
char = codePointAt(string, i);
|
|
2483
|
+
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
2484
|
+
if (!escapeSeq && isPrintable(char)) {
|
|
2485
|
+
result += string[i];
|
|
2486
|
+
if (char >= 65536) result += string[i + 1];
|
|
2487
|
+
} else {
|
|
2488
|
+
result += escapeSeq || encodeHex(char);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
return result;
|
|
2492
|
+
}
|
|
2493
|
+
function writeFlowSequence(state, level, object) {
|
|
2494
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
2495
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
2496
|
+
value = object[index];
|
|
2497
|
+
if (state.replacer) {
|
|
2498
|
+
value = state.replacer.call(object, String(index), value);
|
|
2499
|
+
}
|
|
2500
|
+
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
2501
|
+
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
2502
|
+
_result += state.dump;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
state.tag = _tag;
|
|
2506
|
+
state.dump = "[" + _result + "]";
|
|
2507
|
+
}
|
|
2508
|
+
function writeBlockSequence(state, level, object, compact) {
|
|
2509
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
2510
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
2511
|
+
value = object[index];
|
|
2512
|
+
if (state.replacer) {
|
|
2513
|
+
value = state.replacer.call(object, String(index), value);
|
|
2514
|
+
}
|
|
2515
|
+
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
2516
|
+
if (!compact || _result !== "") {
|
|
2517
|
+
_result += generateNextLine(state, level);
|
|
2518
|
+
}
|
|
2519
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2520
|
+
_result += "-";
|
|
2521
|
+
} else {
|
|
2522
|
+
_result += "- ";
|
|
2523
|
+
}
|
|
2524
|
+
_result += state.dump;
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
state.tag = _tag;
|
|
2528
|
+
state.dump = _result || "[]";
|
|
2529
|
+
}
|
|
2530
|
+
function writeFlowMapping(state, level, object) {
|
|
2531
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
|
|
2532
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
2533
|
+
pairBuffer = "";
|
|
2534
|
+
if (_result !== "") pairBuffer += ", ";
|
|
2535
|
+
if (state.condenseFlow) pairBuffer += '"';
|
|
2536
|
+
objectKey = objectKeyList[index];
|
|
2537
|
+
objectValue = object[objectKey];
|
|
2538
|
+
if (state.replacer) {
|
|
2539
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
2540
|
+
}
|
|
2541
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
2542
|
+
continue;
|
|
2543
|
+
}
|
|
2544
|
+
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
2545
|
+
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
2546
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
2547
|
+
continue;
|
|
2548
|
+
}
|
|
2549
|
+
pairBuffer += state.dump;
|
|
2550
|
+
_result += pairBuffer;
|
|
2551
|
+
}
|
|
2552
|
+
state.tag = _tag;
|
|
2553
|
+
state.dump = "{" + _result + "}";
|
|
2554
|
+
}
|
|
2555
|
+
function writeBlockMapping(state, level, object, compact) {
|
|
2556
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
|
|
2557
|
+
if (state.sortKeys === true) {
|
|
2558
|
+
objectKeyList.sort();
|
|
2559
|
+
} else if (typeof state.sortKeys === "function") {
|
|
2560
|
+
objectKeyList.sort(state.sortKeys);
|
|
2561
|
+
} else if (state.sortKeys) {
|
|
2562
|
+
throw new YAMLException("sortKeys must be a boolean or a function");
|
|
2563
|
+
}
|
|
2564
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
2565
|
+
pairBuffer = "";
|
|
2566
|
+
if (!compact || _result !== "") {
|
|
2567
|
+
pairBuffer += generateNextLine(state, level);
|
|
2568
|
+
}
|
|
2569
|
+
objectKey = objectKeyList[index];
|
|
2570
|
+
objectValue = object[objectKey];
|
|
2571
|
+
if (state.replacer) {
|
|
2572
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
2573
|
+
}
|
|
2574
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
2575
|
+
continue;
|
|
2576
|
+
}
|
|
2577
|
+
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
2578
|
+
if (explicitPair) {
|
|
2579
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2580
|
+
pairBuffer += "?";
|
|
2581
|
+
} else {
|
|
2582
|
+
pairBuffer += "? ";
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
pairBuffer += state.dump;
|
|
2586
|
+
if (explicitPair) {
|
|
2587
|
+
pairBuffer += generateNextLine(state, level);
|
|
2588
|
+
}
|
|
2589
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
2590
|
+
continue;
|
|
2591
|
+
}
|
|
2592
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2593
|
+
pairBuffer += ":";
|
|
2594
|
+
} else {
|
|
2595
|
+
pairBuffer += ": ";
|
|
2596
|
+
}
|
|
2597
|
+
pairBuffer += state.dump;
|
|
2598
|
+
_result += pairBuffer;
|
|
2599
|
+
}
|
|
2600
|
+
state.tag = _tag;
|
|
2601
|
+
state.dump = _result || "{}";
|
|
2602
|
+
}
|
|
2603
|
+
function detectType(state, object, explicit) {
|
|
2604
|
+
var _result, typeList, index, length, type, style;
|
|
2605
|
+
typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
2606
|
+
for (index = 0, length = typeList.length; index < length; index += 1) {
|
|
2607
|
+
type = typeList[index];
|
|
2608
|
+
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
2609
|
+
if (explicit) {
|
|
2610
|
+
if (type.multi && type.representName) {
|
|
2611
|
+
state.tag = type.representName(object);
|
|
2612
|
+
} else {
|
|
2613
|
+
state.tag = type.tag;
|
|
2614
|
+
}
|
|
2615
|
+
} else {
|
|
2616
|
+
state.tag = "?";
|
|
2617
|
+
}
|
|
2618
|
+
if (type.represent) {
|
|
2619
|
+
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
2620
|
+
if (_toString.call(type.represent) === "[object Function]") {
|
|
2621
|
+
_result = type.represent(object, style);
|
|
2622
|
+
} else if (_hasOwnProperty.call(type.represent, style)) {
|
|
2623
|
+
_result = type.represent[style](object, style);
|
|
2624
|
+
} else {
|
|
2625
|
+
throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
|
|
2626
|
+
}
|
|
2627
|
+
state.dump = _result;
|
|
2628
|
+
}
|
|
2629
|
+
return true;
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
return false;
|
|
2633
|
+
}
|
|
2634
|
+
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
2635
|
+
state.tag = null;
|
|
2636
|
+
state.dump = object;
|
|
2637
|
+
if (!detectType(state, object, false)) {
|
|
2638
|
+
detectType(state, object, true);
|
|
2639
|
+
}
|
|
2640
|
+
var type = _toString.call(state.dump);
|
|
2641
|
+
var inblock = block;
|
|
2642
|
+
var tagStr;
|
|
2643
|
+
if (block) {
|
|
2644
|
+
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
2645
|
+
}
|
|
2646
|
+
var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
|
|
2647
|
+
if (objectOrArray) {
|
|
2648
|
+
duplicateIndex = state.duplicates.indexOf(object);
|
|
2649
|
+
duplicate = duplicateIndex !== -1;
|
|
2650
|
+
}
|
|
2651
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
2652
|
+
compact = false;
|
|
2653
|
+
}
|
|
2654
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
2655
|
+
state.dump = "*ref_" + duplicateIndex;
|
|
2656
|
+
} else {
|
|
2657
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
2658
|
+
state.usedDuplicates[duplicateIndex] = true;
|
|
2659
|
+
}
|
|
2660
|
+
if (type === "[object Object]") {
|
|
2661
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
2662
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
2663
|
+
if (duplicate) {
|
|
2664
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2665
|
+
}
|
|
2666
|
+
} else {
|
|
2667
|
+
writeFlowMapping(state, level, state.dump);
|
|
2668
|
+
if (duplicate) {
|
|
2669
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
} else if (type === "[object Array]") {
|
|
2673
|
+
if (block && state.dump.length !== 0) {
|
|
2674
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
2675
|
+
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
2676
|
+
} else {
|
|
2677
|
+
writeBlockSequence(state, level, state.dump, compact);
|
|
2678
|
+
}
|
|
2679
|
+
if (duplicate) {
|
|
2680
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2681
|
+
}
|
|
2682
|
+
} else {
|
|
2683
|
+
writeFlowSequence(state, level, state.dump);
|
|
2684
|
+
if (duplicate) {
|
|
2685
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
} else if (type === "[object String]") {
|
|
2689
|
+
if (state.tag !== "?") {
|
|
2690
|
+
writeScalar(state, state.dump, level, iskey, inblock);
|
|
2691
|
+
}
|
|
2692
|
+
} else if (type === "[object Undefined]") {
|
|
2693
|
+
return false;
|
|
2694
|
+
} else {
|
|
2695
|
+
if (state.skipInvalid) return false;
|
|
2696
|
+
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
2697
|
+
}
|
|
2698
|
+
if (state.tag !== null && state.tag !== "?") {
|
|
2699
|
+
tagStr = encodeURI(
|
|
2700
|
+
state.tag[0] === "!" ? state.tag.slice(1) : state.tag
|
|
2701
|
+
).replace(/!/g, "%21");
|
|
2702
|
+
if (state.tag[0] === "!") {
|
|
2703
|
+
tagStr = "!" + tagStr;
|
|
2704
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
2705
|
+
tagStr = "!!" + tagStr.slice(18);
|
|
2706
|
+
} else {
|
|
2707
|
+
tagStr = "!<" + tagStr + ">";
|
|
2708
|
+
}
|
|
2709
|
+
state.dump = tagStr + " " + state.dump;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
return true;
|
|
2713
|
+
}
|
|
2714
|
+
function getDuplicateReferences(object, state) {
|
|
2715
|
+
var objects = [], duplicatesIndexes = [], index, length;
|
|
2716
|
+
inspectNode(object, objects, duplicatesIndexes);
|
|
2717
|
+
for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
|
|
2718
|
+
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
2719
|
+
}
|
|
2720
|
+
state.usedDuplicates = new Array(length);
|
|
2721
|
+
}
|
|
2722
|
+
function inspectNode(object, objects, duplicatesIndexes) {
|
|
2723
|
+
var objectKeyList, index, length;
|
|
2724
|
+
if (object !== null && typeof object === "object") {
|
|
2725
|
+
index = objects.indexOf(object);
|
|
2726
|
+
if (index !== -1) {
|
|
2727
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
2728
|
+
duplicatesIndexes.push(index);
|
|
2729
|
+
}
|
|
2730
|
+
} else {
|
|
2731
|
+
objects.push(object);
|
|
2732
|
+
if (Array.isArray(object)) {
|
|
2733
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
2734
|
+
inspectNode(object[index], objects, duplicatesIndexes);
|
|
2735
|
+
}
|
|
2736
|
+
} else {
|
|
2737
|
+
objectKeyList = Object.keys(object);
|
|
2738
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
2739
|
+
inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
function dump(input, options) {
|
|
2746
|
+
options = options || {};
|
|
2747
|
+
var state = new State(options);
|
|
2748
|
+
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
2749
|
+
var value = input;
|
|
2750
|
+
if (state.replacer) {
|
|
2751
|
+
value = state.replacer.call({ "": value }, "", value);
|
|
2752
|
+
}
|
|
2753
|
+
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
2754
|
+
return "";
|
|
2755
|
+
}
|
|
2756
|
+
module2.exports.dump = dump;
|
|
2757
|
+
}
|
|
2758
|
+
});
|
|
2759
|
+
|
|
2760
|
+
// node_modules/js-yaml/index.js
|
|
2761
|
+
var loader = require_loader();
|
|
2762
|
+
var dumper = require_dumper();
|
|
2763
|
+
function renamed(from, to) {
|
|
2764
|
+
return function() {
|
|
2765
|
+
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
2766
|
+
};
|
|
2767
|
+
}
|
|
2768
|
+
module.exports.Type = require_type();
|
|
2769
|
+
module.exports.Schema = require_schema();
|
|
2770
|
+
module.exports.FAILSAFE_SCHEMA = require_failsafe();
|
|
2771
|
+
module.exports.JSON_SCHEMA = require_json();
|
|
2772
|
+
module.exports.CORE_SCHEMA = require_core();
|
|
2773
|
+
module.exports.DEFAULT_SCHEMA = require_default();
|
|
2774
|
+
module.exports.load = loader.load;
|
|
2775
|
+
module.exports.loadAll = loader.loadAll;
|
|
2776
|
+
module.exports.dump = dumper.dump;
|
|
2777
|
+
module.exports.YAMLException = require_exception();
|
|
2778
|
+
module.exports.types = {
|
|
2779
|
+
binary: require_binary(),
|
|
2780
|
+
float: require_float(),
|
|
2781
|
+
map: require_map(),
|
|
2782
|
+
null: require_null(),
|
|
2783
|
+
pairs: require_pairs(),
|
|
2784
|
+
set: require_set(),
|
|
2785
|
+
timestamp: require_timestamp(),
|
|
2786
|
+
bool: require_bool(),
|
|
2787
|
+
int: require_int(),
|
|
2788
|
+
merge: require_merge(),
|
|
2789
|
+
omap: require_omap(),
|
|
2790
|
+
seq: require_seq(),
|
|
2791
|
+
str: require_str()
|
|
2792
|
+
};
|
|
2793
|
+
module.exports.safeLoad = renamed("safeLoad", "load");
|
|
2794
|
+
module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
2795
|
+
module.exports.safeDump = renamed("safeDump", "dump");
|