agentic-flow 1.10.1 → 2.0.0-alpha

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.
Files changed (2395) hide show
  1. package/CHANGELOG.md +97 -1302
  2. package/README.md +835 -494
  3. package/agentic-flow/CHANGELOG.md +42 -0
  4. package/agentic-flow/README.md +874 -0
  5. package/agentic-flow/dist/agentdb/index.d.ts.map +1 -0
  6. package/agentic-flow/dist/agentdb/index.js +33 -0
  7. package/agentic-flow/dist/agentdb/index.js.map +1 -0
  8. package/agentic-flow/dist/agentdb/validate-frontier.cjs +416 -0
  9. package/agentic-flow/dist/agentdb/validate-frontier.cjs.map +1 -0
  10. package/agentic-flow/dist/agentdb/validate-frontier.d.cts +2 -0
  11. package/agentic-flow/dist/agentdb/validate-frontier.d.cts.map +1 -0
  12. package/agentic-flow/dist/agents/claudeAgent.d.ts.map +1 -0
  13. package/agentic-flow/dist/agents/claudeAgent.js +336 -0
  14. package/agentic-flow/dist/agents/claudeAgent.js.map +1 -0
  15. package/agentic-flow/dist/agents/claudeAgentDirect.d.ts.map +1 -0
  16. package/agentic-flow/dist/agents/claudeAgentDirect.js +171 -0
  17. package/agentic-flow/dist/agents/claudeAgentDirect.js.map +1 -0
  18. package/agentic-flow/dist/agents/claudeFlowAgent.d.ts.map +1 -0
  19. package/agentic-flow/dist/agents/claudeFlowAgent.js +116 -0
  20. package/agentic-flow/dist/agents/claudeFlowAgent.js.map +1 -0
  21. package/agentic-flow/dist/agents/codeReviewAgent.d.ts.map +1 -0
  22. package/agentic-flow/dist/agents/codeReviewAgent.js +35 -0
  23. package/agentic-flow/dist/agents/codeReviewAgent.js.map +1 -0
  24. package/agentic-flow/dist/agents/dataAgent.d.ts.map +1 -0
  25. package/agentic-flow/dist/agents/dataAgent.js +35 -0
  26. package/agentic-flow/dist/agents/dataAgent.js.map +1 -0
  27. package/agentic-flow/dist/agents/directApiAgent.d.ts.map +1 -0
  28. package/agentic-flow/dist/agents/directApiAgent.js +383 -0
  29. package/agentic-flow/dist/agents/directApiAgent.js.map +1 -0
  30. package/agentic-flow/dist/agents/webResearchAgent.d.ts.map +1 -0
  31. package/agentic-flow/dist/agents/webResearchAgent.js +36 -0
  32. package/agentic-flow/dist/agents/webResearchAgent.js.map +1 -0
  33. package/agentic-flow/dist/billing/cli.d.ts.map +1 -0
  34. package/agentic-flow/dist/billing/cli.js +350 -0
  35. package/agentic-flow/dist/billing/cli.js.map +1 -0
  36. package/agentic-flow/dist/billing/coupons/manager.d.ts.map +1 -0
  37. package/agentic-flow/dist/billing/coupons/manager.js +171 -0
  38. package/agentic-flow/dist/billing/coupons/manager.js.map +1 -0
  39. package/agentic-flow/dist/billing/index.d.ts.map +1 -0
  40. package/agentic-flow/dist/billing/index.js +205 -0
  41. package/agentic-flow/dist/billing/index.js.map +1 -0
  42. package/agentic-flow/dist/billing/mcp/tools.d.ts.map +1 -0
  43. package/agentic-flow/dist/billing/mcp/tools.js +238 -0
  44. package/agentic-flow/dist/billing/mcp/tools.js.map +1 -0
  45. package/agentic-flow/dist/billing/metering/engine.d.ts.map +1 -0
  46. package/agentic-flow/dist/billing/metering/engine.js +260 -0
  47. package/agentic-flow/dist/billing/metering/engine.js.map +1 -0
  48. package/agentic-flow/dist/billing/payments/processor.d.ts.map +1 -0
  49. package/agentic-flow/dist/billing/payments/processor.js +158 -0
  50. package/agentic-flow/dist/billing/payments/processor.js.map +1 -0
  51. package/agentic-flow/dist/billing/pricing/tiers.d.ts.map +1 -0
  52. package/agentic-flow/dist/billing/pricing/tiers.js +252 -0
  53. package/agentic-flow/dist/billing/pricing/tiers.js.map +1 -0
  54. package/agentic-flow/dist/billing/storage/adapters.d.ts.map +1 -0
  55. package/agentic-flow/dist/billing/storage/adapters.js +351 -0
  56. package/agentic-flow/dist/billing/storage/adapters.js.map +1 -0
  57. package/agentic-flow/dist/billing/subscriptions/manager.d.ts.map +1 -0
  58. package/agentic-flow/dist/billing/subscriptions/manager.js +273 -0
  59. package/agentic-flow/dist/billing/subscriptions/manager.js.map +1 -0
  60. package/agentic-flow/dist/billing/types.d.ts.map +1 -0
  61. package/agentic-flow/dist/billing/types.js +78 -0
  62. package/agentic-flow/dist/billing/types.js.map +1 -0
  63. package/agentic-flow/dist/cli/agent-manager.d.ts.map +1 -0
  64. package/agentic-flow/dist/cli/agent-manager.js +452 -0
  65. package/agentic-flow/dist/cli/agent-manager.js.map +1 -0
  66. package/agentic-flow/dist/cli/claude-code-wrapper.d.ts.map +1 -0
  67. package/agentic-flow/dist/cli/claude-code-wrapper.js +351 -0
  68. package/agentic-flow/dist/cli/claude-code-wrapper.js.map +1 -0
  69. package/agentic-flow/dist/cli/config-wizard.d.ts.map +1 -0
  70. package/agentic-flow/dist/cli/config-wizard.js +369 -0
  71. package/agentic-flow/dist/cli/config-wizard.js.map +1 -0
  72. package/agentic-flow/dist/cli/federation-cli.d.ts.map +1 -0
  73. package/agentic-flow/dist/cli/federation-cli.js +432 -0
  74. package/agentic-flow/dist/cli/federation-cli.js.map +1 -0
  75. package/agentic-flow/dist/cli/mcp-manager.d.ts.map +1 -0
  76. package/agentic-flow/dist/cli/mcp-manager.js +475 -0
  77. package/agentic-flow/dist/cli/mcp-manager.js.map +1 -0
  78. package/agentic-flow/dist/cli/mcp.d.ts.map +1 -0
  79. package/agentic-flow/dist/cli/mcp.js +136 -0
  80. package/agentic-flow/dist/cli/mcp.js.map +1 -0
  81. package/agentic-flow/dist/cli-proxy.d.ts.map +1 -0
  82. package/agentic-flow/dist/cli-proxy.js +1175 -0
  83. package/agentic-flow/dist/cli-proxy.js.map +1 -0
  84. package/agentic-flow/dist/cli-standalone-proxy.d.ts.map +1 -0
  85. package/agentic-flow/dist/cli-standalone-proxy.js +198 -0
  86. package/agentic-flow/dist/cli-standalone-proxy.js.map +1 -0
  87. package/agentic-flow/dist/config/claudeFlow.d.ts.map +1 -0
  88. package/agentic-flow/dist/config/claudeFlow.js +68 -0
  89. package/agentic-flow/dist/config/claudeFlow.js.map +1 -0
  90. package/agentic-flow/dist/config/quic.d.ts.map +1 -0
  91. package/agentic-flow/dist/config/quic.js +207 -0
  92. package/agentic-flow/dist/config/quic.js.map +1 -0
  93. package/agentic-flow/dist/config/tools.d.ts.map +1 -0
  94. package/agentic-flow/dist/config/tools.js +34 -0
  95. package/agentic-flow/dist/config/tools.js.map +1 -0
  96. package/agentic-flow/dist/coordination/attention-coordinator.d.ts.map +1 -0
  97. package/agentic-flow/dist/coordination/attention-coordinator.js +361 -0
  98. package/agentic-flow/dist/coordination/attention-coordinator.js.map +1 -0
  99. package/agentic-flow/dist/coordination/index.d.ts.map +1 -0
  100. package/agentic-flow/dist/coordination/index.js +5 -0
  101. package/agentic-flow/dist/coordination/index.js.map +1 -0
  102. package/agentic-flow/dist/core/agentdb-wrapper-enhanced.d.ts.map +1 -0
  103. package/agentic-flow/dist/core/agentdb-wrapper-enhanced.js +717 -0
  104. package/agentic-flow/dist/core/agentdb-wrapper-enhanced.js.map +1 -0
  105. package/agentic-flow/dist/core/agentdb-wrapper.d.ts.map +1 -0
  106. package/agentic-flow/dist/core/agentdb-wrapper.js +380 -0
  107. package/agentic-flow/dist/core/agentdb-wrapper.js.map +1 -0
  108. package/agentic-flow/dist/core/index.d.ts.map +1 -0
  109. package/agentic-flow/dist/core/index.js +6 -0
  110. package/agentic-flow/dist/core/index.js.map +1 -0
  111. package/agentic-flow/dist/core/long-running-agent.d.ts.map +1 -0
  112. package/agentic-flow/dist/core/long-running-agent.js +220 -0
  113. package/agentic-flow/dist/core/long-running-agent.js.map +1 -0
  114. package/agentic-flow/dist/core/provider-manager.d.ts.map +1 -0
  115. package/agentic-flow/dist/core/provider-manager.js +435 -0
  116. package/agentic-flow/dist/core/provider-manager.js.map +1 -0
  117. package/agentic-flow/dist/examples/multi-agent-orchestration.d.ts.map +1 -0
  118. package/agentic-flow/dist/examples/multi-agent-orchestration.js +46 -0
  119. package/agentic-flow/dist/examples/multi-agent-orchestration.js.map +1 -0
  120. package/agentic-flow/dist/examples/use-goal-planner.d.ts.map +1 -0
  121. package/agentic-flow/dist/examples/use-goal-planner.js +53 -0
  122. package/agentic-flow/dist/examples/use-goal-planner.js.map +1 -0
  123. package/agentic-flow/dist/examples/use-provider-fallback.d.ts.map +1 -0
  124. package/agentic-flow/dist/examples/use-provider-fallback.js +177 -0
  125. package/agentic-flow/dist/examples/use-provider-fallback.js.map +1 -0
  126. package/agentic-flow/dist/federation/EphemeralAgent.d.ts.map +1 -0
  127. package/agentic-flow/dist/federation/EphemeralAgent.js +259 -0
  128. package/agentic-flow/dist/federation/EphemeralAgent.js.map +1 -0
  129. package/agentic-flow/dist/federation/FederationHub.d.ts.map +1 -0
  130. package/agentic-flow/dist/federation/FederationHub.js +284 -0
  131. package/agentic-flow/dist/federation/FederationHub.js.map +1 -0
  132. package/agentic-flow/dist/federation/FederationHubClient.d.ts.map +1 -0
  133. package/agentic-flow/dist/federation/FederationHubClient.js +213 -0
  134. package/agentic-flow/dist/federation/FederationHubClient.js.map +1 -0
  135. package/agentic-flow/dist/federation/FederationHubServer.d.ts.map +1 -0
  136. package/agentic-flow/dist/federation/FederationHubServer.js +437 -0
  137. package/agentic-flow/dist/federation/FederationHubServer.js.map +1 -0
  138. package/agentic-flow/dist/federation/SecurityManager.d.ts.map +1 -0
  139. package/agentic-flow/dist/federation/SecurityManager.js +192 -0
  140. package/agentic-flow/dist/federation/SecurityManager.js.map +1 -0
  141. package/agentic-flow/dist/federation/debug/agent-debug-stream.d.ts.map +1 -0
  142. package/agentic-flow/dist/federation/debug/agent-debug-stream.js +475 -0
  143. package/agentic-flow/dist/federation/debug/agent-debug-stream.js.map +1 -0
  144. package/agentic-flow/dist/federation/debug/debug-stream.d.ts.map +1 -0
  145. package/agentic-flow/dist/federation/debug/debug-stream.js +420 -0
  146. package/agentic-flow/dist/federation/debug/debug-stream.js.map +1 -0
  147. package/agentic-flow/dist/federation/index.d.ts.map +1 -0
  148. package/agentic-flow/dist/federation/index.js +13 -0
  149. package/agentic-flow/dist/federation/index.js.map +1 -0
  150. package/agentic-flow/dist/federation/integrations/realtime-federation.d.ts.map +1 -0
  151. package/agentic-flow/dist/federation/integrations/realtime-federation.js +405 -0
  152. package/agentic-flow/dist/federation/integrations/realtime-federation.js.map +1 -0
  153. package/agentic-flow/dist/federation/integrations/supabase-adapter-debug.d.ts.map +1 -0
  154. package/agentic-flow/dist/federation/integrations/supabase-adapter-debug.js +401 -0
  155. package/agentic-flow/dist/federation/integrations/supabase-adapter-debug.js.map +1 -0
  156. package/agentic-flow/dist/federation/integrations/supabase-adapter.d.ts.map +1 -0
  157. package/agentic-flow/dist/federation/integrations/supabase-adapter.js +259 -0
  158. package/agentic-flow/dist/federation/integrations/supabase-adapter.js.map +1 -0
  159. package/agentic-flow/dist/health.d.ts.map +1 -0
  160. package/agentic-flow/dist/health.js +112 -0
  161. package/agentic-flow/dist/health.js.map +1 -0
  162. package/agentic-flow/dist/hooks/parallel-validation.d.ts.map +1 -0
  163. package/agentic-flow/dist/hooks/parallel-validation.js +167 -0
  164. package/agentic-flow/dist/hooks/parallel-validation.js.map +1 -0
  165. package/agentic-flow/dist/hooks/swarm-learning-optimizer.d.ts.map +1 -0
  166. package/agentic-flow/dist/hooks/swarm-learning-optimizer.js +351 -0
  167. package/agentic-flow/dist/hooks/swarm-learning-optimizer.js.map +1 -0
  168. package/agentic-flow/dist/index.d.ts.map +1 -0
  169. package/agentic-flow/dist/index.js +210 -0
  170. package/agentic-flow/dist/index.js.map +1 -0
  171. package/agentic-flow/dist/mcp/claudeFlowSdkServer.d.ts.map +1 -0
  172. package/agentic-flow/dist/mcp/claudeFlowSdkServer.js +203 -0
  173. package/agentic-flow/dist/mcp/claudeFlowSdkServer.js.map +1 -0
  174. package/agentic-flow/dist/mcp/fastmcp/servers/claude-flow-sdk.d.ts.map +1 -0
  175. package/agentic-flow/dist/mcp/fastmcp/servers/claude-flow-sdk.js +199 -0
  176. package/agentic-flow/dist/mcp/fastmcp/servers/claude-flow-sdk.js.map +1 -0
  177. package/agentic-flow/dist/mcp/fastmcp/servers/http-sse.d.ts.map +1 -0
  178. package/agentic-flow/dist/mcp/fastmcp/servers/http-sse.js +382 -0
  179. package/agentic-flow/dist/mcp/fastmcp/servers/http-sse.js.map +1 -0
  180. package/agentic-flow/dist/mcp/fastmcp/servers/http-streaming-updated.d.ts.map +1 -0
  181. package/agentic-flow/dist/mcp/fastmcp/servers/http-streaming-updated.js +422 -0
  182. package/agentic-flow/dist/mcp/fastmcp/servers/http-streaming-updated.js.map +1 -0
  183. package/agentic-flow/dist/mcp/fastmcp/servers/poc-stdio.d.ts.map +1 -0
  184. package/agentic-flow/dist/mcp/fastmcp/servers/poc-stdio.js +83 -0
  185. package/agentic-flow/dist/mcp/fastmcp/servers/poc-stdio.js.map +1 -0
  186. package/agentic-flow/dist/mcp/fastmcp/servers/stdio-full.d.ts.map +1 -0
  187. package/agentic-flow/dist/mcp/fastmcp/servers/stdio-full.js +422 -0
  188. package/agentic-flow/dist/mcp/fastmcp/servers/stdio-full.js.map +1 -0
  189. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-agent.d.ts.map +1 -0
  190. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-agent.js +108 -0
  191. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-agent.js.map +1 -0
  192. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-command.d.ts.map +1 -0
  193. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-command.js +118 -0
  194. package/agentic-flow/dist/mcp/fastmcp/tools/agent/add-command.js.map +1 -0
  195. package/agentic-flow/dist/mcp/fastmcp/tools/agent/execute.d.ts.map +1 -0
  196. package/agentic-flow/dist/mcp/fastmcp/tools/agent/execute.js +57 -0
  197. package/agentic-flow/dist/mcp/fastmcp/tools/agent/execute.js.map +1 -0
  198. package/agentic-flow/dist/mcp/fastmcp/tools/agent/list.d.ts.map +1 -0
  199. package/agentic-flow/dist/mcp/fastmcp/tools/agent/list.js +83 -0
  200. package/agentic-flow/dist/mcp/fastmcp/tools/agent/list.js.map +1 -0
  201. package/agentic-flow/dist/mcp/fastmcp/tools/agent/parallel.d.ts.map +1 -0
  202. package/agentic-flow/dist/mcp/fastmcp/tools/agent/parallel.js +64 -0
  203. package/agentic-flow/dist/mcp/fastmcp/tools/agent/parallel.js.map +1 -0
  204. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/init.d.ts.map +1 -0
  205. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/init.js +42 -0
  206. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/init.js.map +1 -0
  207. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/orchestrate.d.ts.map +1 -0
  208. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/orchestrate.js +48 -0
  209. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/orchestrate.js.map +1 -0
  210. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/spawn.d.ts.map +1 -0
  211. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/spawn.js +41 -0
  212. package/agentic-flow/dist/mcp/fastmcp/tools/swarm/spawn.js.map +1 -0
  213. package/agentic-flow/dist/mcp/fastmcp/types/index.d.ts.map +1 -0
  214. package/agentic-flow/dist/mcp/fastmcp/types/index.js +3 -0
  215. package/agentic-flow/dist/mcp/fastmcp/types/index.js.map +1 -0
  216. package/agentic-flow/dist/mcp/standalone-stdio.d.ts.map +1 -0
  217. package/agentic-flow/dist/mcp/standalone-stdio.js +751 -0
  218. package/agentic-flow/dist/mcp/standalone-stdio.js.map +1 -0
  219. package/agentic-flow/dist/memory/SharedMemoryPool.d.ts.map +1 -0
  220. package/agentic-flow/dist/memory/SharedMemoryPool.js +211 -0
  221. package/agentic-flow/dist/memory/SharedMemoryPool.js.map +1 -0
  222. package/agentic-flow/dist/memory/index.d.ts.map +1 -0
  223. package/agentic-flow/dist/memory/index.js +7 -0
  224. package/agentic-flow/dist/memory/index.js.map +1 -0
  225. package/agentic-flow/dist/proxy/adaptive-proxy.d.ts.map +1 -0
  226. package/agentic-flow/dist/proxy/adaptive-proxy.js +225 -0
  227. package/agentic-flow/dist/proxy/adaptive-proxy.js.map +1 -0
  228. package/agentic-flow/dist/proxy/anthropic-to-gemini.d.ts.map +1 -0
  229. package/agentic-flow/dist/proxy/anthropic-to-gemini.js +446 -0
  230. package/agentic-flow/dist/proxy/anthropic-to-gemini.js.map +1 -0
  231. package/agentic-flow/dist/proxy/anthropic-to-onnx.d.ts.map +1 -0
  232. package/agentic-flow/dist/proxy/anthropic-to-onnx.js +214 -0
  233. package/agentic-flow/dist/proxy/anthropic-to-onnx.js.map +1 -0
  234. package/agentic-flow/dist/proxy/anthropic-to-openrouter.d.ts.map +1 -0
  235. package/agentic-flow/dist/proxy/anthropic-to-openrouter.js +619 -0
  236. package/agentic-flow/dist/proxy/anthropic-to-openrouter.js.map +1 -0
  237. package/agentic-flow/dist/proxy/anthropic-to-requesty.d.ts.map +1 -0
  238. package/agentic-flow/dist/proxy/anthropic-to-requesty.js +708 -0
  239. package/agentic-flow/dist/proxy/anthropic-to-requesty.js.map +1 -0
  240. package/agentic-flow/dist/proxy/http2-proxy-optimized.d.ts.map +1 -0
  241. package/agentic-flow/dist/proxy/http2-proxy-optimized.js +192 -0
  242. package/agentic-flow/dist/proxy/http2-proxy-optimized.js.map +1 -0
  243. package/agentic-flow/dist/proxy/http2-proxy.d.ts.map +1 -0
  244. package/agentic-flow/dist/proxy/http2-proxy.js +382 -0
  245. package/agentic-flow/dist/proxy/http2-proxy.js.map +1 -0
  246. package/agentic-flow/dist/proxy/http3-proxy.d.ts.map +1 -0
  247. package/agentic-flow/dist/proxy/http3-proxy.js +52 -0
  248. package/agentic-flow/dist/proxy/http3-proxy.js.map +1 -0
  249. package/agentic-flow/dist/proxy/provider-instructions.d.ts.map +1 -0
  250. package/agentic-flow/dist/proxy/provider-instructions.js +347 -0
  251. package/agentic-flow/dist/proxy/provider-instructions.js.map +1 -0
  252. package/agentic-flow/dist/proxy/quic-proxy.d.ts.map +1 -0
  253. package/agentic-flow/dist/proxy/quic-proxy.js +228 -0
  254. package/agentic-flow/dist/proxy/quic-proxy.js.map +1 -0
  255. package/agentic-flow/dist/proxy/tool-emulation.d.ts.map +1 -0
  256. package/agentic-flow/dist/proxy/tool-emulation.js +366 -0
  257. package/agentic-flow/dist/proxy/tool-emulation.js.map +1 -0
  258. package/agentic-flow/dist/proxy/websocket-proxy.d.ts.map +1 -0
  259. package/agentic-flow/dist/proxy/websocket-proxy.js +407 -0
  260. package/agentic-flow/dist/proxy/websocket-proxy.js.map +1 -0
  261. package/agentic-flow/dist/reasoningbank/AdvancedMemory.d.ts.map +1 -0
  262. package/agentic-flow/dist/reasoningbank/AdvancedMemory.js +240 -0
  263. package/agentic-flow/dist/reasoningbank/AdvancedMemory.js.map +1 -0
  264. package/agentic-flow/dist/reasoningbank/HybridBackend.d.ts.map +1 -0
  265. package/agentic-flow/dist/reasoningbank/HybridBackend.js +306 -0
  266. package/agentic-flow/dist/reasoningbank/HybridBackend.js.map +1 -0
  267. package/agentic-flow/dist/reasoningbank/backend-selector.d.ts.map +1 -0
  268. package/agentic-flow/dist/reasoningbank/backend-selector.js +146 -0
  269. package/agentic-flow/dist/reasoningbank/backend-selector.js.map +1 -0
  270. package/agentic-flow/dist/reasoningbank/benchmark.d.ts.map +1 -0
  271. package/agentic-flow/dist/reasoningbank/benchmark.js +334 -0
  272. package/agentic-flow/dist/reasoningbank/benchmark.js.map +1 -0
  273. package/agentic-flow/dist/reasoningbank/config/reasoningbank-types.d.ts.map +1 -0
  274. package/agentic-flow/dist/reasoningbank/config/reasoningbank-types.js +5 -0
  275. package/agentic-flow/dist/reasoningbank/config/reasoningbank-types.js.map +1 -0
  276. package/agentic-flow/dist/reasoningbank/core/consolidate.d.ts.map +1 -0
  277. package/agentic-flow/dist/reasoningbank/core/consolidate.js +140 -0
  278. package/agentic-flow/dist/reasoningbank/core/consolidate.js.map +1 -0
  279. package/agentic-flow/dist/reasoningbank/core/distill.d.ts.map +1 -0
  280. package/agentic-flow/dist/reasoningbank/core/distill.js +169 -0
  281. package/agentic-flow/dist/reasoningbank/core/distill.js.map +1 -0
  282. package/agentic-flow/dist/reasoningbank/core/judge.d.ts.map +1 -0
  283. package/agentic-flow/dist/reasoningbank/core/judge.js +138 -0
  284. package/agentic-flow/dist/reasoningbank/core/judge.js.map +1 -0
  285. package/agentic-flow/dist/reasoningbank/core/matts.d.ts.map +1 -0
  286. package/agentic-flow/dist/reasoningbank/core/matts.js +237 -0
  287. package/agentic-flow/dist/reasoningbank/core/matts.js.map +1 -0
  288. package/agentic-flow/dist/reasoningbank/core/retrieve.d.ts.map +1 -0
  289. package/agentic-flow/dist/reasoningbank/core/retrieve.js +87 -0
  290. package/agentic-flow/dist/reasoningbank/core/retrieve.js.map +1 -0
  291. package/agentic-flow/dist/reasoningbank/db/queries.d.ts.map +1 -0
  292. package/agentic-flow/dist/reasoningbank/db/queries.js +340 -0
  293. package/agentic-flow/dist/reasoningbank/db/queries.js.map +1 -0
  294. package/agentic-flow/dist/reasoningbank/db/schema.d.ts.map +1 -0
  295. package/agentic-flow/dist/reasoningbank/db/schema.js +5 -0
  296. package/agentic-flow/dist/reasoningbank/db/schema.js.map +1 -0
  297. package/agentic-flow/dist/reasoningbank/demo-comparison.d.ts.map +1 -0
  298. package/agentic-flow/dist/reasoningbank/demo-comparison.js +502 -0
  299. package/agentic-flow/dist/reasoningbank/demo-comparison.js.map +1 -0
  300. package/agentic-flow/dist/reasoningbank/hooks/post-task.d.ts.map +1 -0
  301. package/agentic-flow/dist/reasoningbank/hooks/post-task.js +110 -0
  302. package/agentic-flow/dist/reasoningbank/hooks/post-task.js.map +1 -0
  303. package/agentic-flow/dist/reasoningbank/hooks/pre-task.d.ts.map +1 -0
  304. package/agentic-flow/dist/reasoningbank/hooks/pre-task.js +69 -0
  305. package/agentic-flow/dist/reasoningbank/hooks/pre-task.js.map +1 -0
  306. package/agentic-flow/dist/reasoningbank/index-new.d.ts.map +1 -0
  307. package/agentic-flow/dist/reasoningbank/index-new.js +88 -0
  308. package/agentic-flow/dist/reasoningbank/index-new.js.map +1 -0
  309. package/agentic-flow/dist/reasoningbank/index.d.ts.map +1 -0
  310. package/agentic-flow/dist/reasoningbank/index.js +90 -0
  311. package/agentic-flow/dist/reasoningbank/index.js.map +1 -0
  312. package/agentic-flow/dist/reasoningbank/test-integration.d.ts.map +1 -0
  313. package/agentic-flow/dist/reasoningbank/test-integration.js +91 -0
  314. package/agentic-flow/dist/reasoningbank/test-integration.js.map +1 -0
  315. package/agentic-flow/dist/reasoningbank/test-retrieval.d.ts.map +1 -0
  316. package/agentic-flow/dist/reasoningbank/test-retrieval.js +177 -0
  317. package/agentic-flow/dist/reasoningbank/test-retrieval.js.map +1 -0
  318. package/agentic-flow/dist/reasoningbank/test-validation.d.ts.map +1 -0
  319. package/agentic-flow/dist/reasoningbank/test-validation.js +173 -0
  320. package/agentic-flow/dist/reasoningbank/test-validation.js.map +1 -0
  321. package/agentic-flow/dist/reasoningbank/types/index.d.ts.map +1 -0
  322. package/agentic-flow/dist/reasoningbank/types/index.js +6 -0
  323. package/agentic-flow/dist/reasoningbank/types/index.js.map +1 -0
  324. package/agentic-flow/dist/reasoningbank/utils/config.d.ts.map +1 -0
  325. package/agentic-flow/dist/reasoningbank/utils/config.js +170 -0
  326. package/agentic-flow/dist/reasoningbank/utils/config.js.map +1 -0
  327. package/agentic-flow/dist/reasoningbank/utils/embeddings.d.ts.map +1 -0
  328. package/agentic-flow/dist/reasoningbank/utils/embeddings.js +156 -0
  329. package/agentic-flow/dist/reasoningbank/utils/embeddings.js.map +1 -0
  330. package/agentic-flow/dist/reasoningbank/utils/mmr.d.ts.map +1 -0
  331. package/agentic-flow/dist/reasoningbank/utils/mmr.js +65 -0
  332. package/agentic-flow/dist/reasoningbank/utils/mmr.js.map +1 -0
  333. package/agentic-flow/dist/reasoningbank/utils/pii-scrubber.d.ts.map +1 -0
  334. package/agentic-flow/dist/reasoningbank/utils/pii-scrubber.js +99 -0
  335. package/agentic-flow/dist/reasoningbank/utils/pii-scrubber.js.map +1 -0
  336. package/agentic-flow/dist/reasoningbank/wasm-adapter.d.ts.map +1 -0
  337. package/agentic-flow/dist/reasoningbank/wasm-adapter.js +125 -0
  338. package/agentic-flow/dist/reasoningbank/wasm-adapter.js.map +1 -0
  339. package/agentic-flow/dist/router/model-mapping.d.ts.map +1 -0
  340. package/agentic-flow/dist/router/model-mapping.js +132 -0
  341. package/agentic-flow/dist/router/model-mapping.js.map +1 -0
  342. package/agentic-flow/dist/router/providers/anthropic.d.ts.map +1 -0
  343. package/agentic-flow/dist/router/providers/anthropic.js +98 -0
  344. package/agentic-flow/dist/router/providers/anthropic.js.map +1 -0
  345. package/agentic-flow/dist/router/providers/gemini.d.ts.map +1 -0
  346. package/agentic-flow/dist/router/providers/gemini.js +103 -0
  347. package/agentic-flow/dist/router/providers/gemini.js.map +1 -0
  348. package/agentic-flow/dist/router/providers/onnx-local-optimized.d.ts.map +1 -0
  349. package/agentic-flow/dist/router/providers/onnx-local-optimized.js +168 -0
  350. package/agentic-flow/dist/router/providers/onnx-local-optimized.js.map +1 -0
  351. package/agentic-flow/dist/router/providers/onnx-local.d.ts.map +1 -0
  352. package/agentic-flow/dist/router/providers/onnx-local.js +295 -0
  353. package/agentic-flow/dist/router/providers/onnx-local.js.map +1 -0
  354. package/agentic-flow/dist/router/providers/onnx-phi4.d.ts.map +1 -0
  355. package/agentic-flow/dist/router/providers/onnx-phi4.js +191 -0
  356. package/agentic-flow/dist/router/providers/onnx-phi4.js.map +1 -0
  357. package/agentic-flow/dist/router/providers/onnx.d.ts.map +1 -0
  358. package/agentic-flow/dist/router/providers/onnx.js +265 -0
  359. package/agentic-flow/dist/router/providers/onnx.js.map +1 -0
  360. package/agentic-flow/dist/router/providers/openrouter.d.ts.map +1 -0
  361. package/agentic-flow/dist/router/providers/openrouter.js +246 -0
  362. package/agentic-flow/dist/router/providers/openrouter.js.map +1 -0
  363. package/agentic-flow/dist/router/router.d.ts.map +1 -0
  364. package/agentic-flow/dist/router/router.js +350 -0
  365. package/agentic-flow/dist/router/router.js.map +1 -0
  366. package/agentic-flow/dist/router/test-integration.d.ts.map +1 -0
  367. package/agentic-flow/dist/router/test-integration.js +141 -0
  368. package/agentic-flow/dist/router/test-integration.js.map +1 -0
  369. package/agentic-flow/dist/router/test-onnx-benchmark.d.ts.map +1 -0
  370. package/agentic-flow/dist/router/test-onnx-benchmark.js +146 -0
  371. package/agentic-flow/dist/router/test-onnx-benchmark.js.map +1 -0
  372. package/agentic-flow/dist/router/test-onnx-integration.d.ts.map +1 -0
  373. package/agentic-flow/dist/router/test-onnx-integration.js +129 -0
  374. package/agentic-flow/dist/router/test-onnx-integration.js.map +1 -0
  375. package/agentic-flow/dist/router/test-onnx-local.d.ts.map +1 -0
  376. package/agentic-flow/dist/router/test-onnx-local.js +38 -0
  377. package/agentic-flow/dist/router/test-onnx-local.js.map +1 -0
  378. package/agentic-flow/dist/router/test-onnx.d.ts.map +1 -0
  379. package/agentic-flow/dist/router/test-onnx.js +149 -0
  380. package/agentic-flow/dist/router/test-onnx.js.map +1 -0
  381. package/agentic-flow/dist/router/test-openrouter.d.ts.map +1 -0
  382. package/agentic-flow/dist/router/test-openrouter.js +122 -0
  383. package/agentic-flow/dist/router/test-openrouter.js.map +1 -0
  384. package/agentic-flow/dist/router/test-phi4.d.ts.map +1 -0
  385. package/agentic-flow/dist/router/test-phi4.js +138 -0
  386. package/agentic-flow/dist/router/test-phi4.js.map +1 -0
  387. package/agentic-flow/dist/router/types.d.ts.map +1 -0
  388. package/agentic-flow/dist/router/types.js +3 -0
  389. package/agentic-flow/dist/router/types.js.map +1 -0
  390. package/agentic-flow/dist/swarm/index.d.ts.map +1 -0
  391. package/agentic-flow/dist/swarm/index.js +134 -0
  392. package/agentic-flow/dist/swarm/index.js.map +1 -0
  393. package/agentic-flow/dist/swarm/quic-coordinator.d.ts.map +1 -0
  394. package/agentic-flow/dist/swarm/quic-coordinator.js +461 -0
  395. package/agentic-flow/dist/swarm/quic-coordinator.js.map +1 -0
  396. package/agentic-flow/dist/swarm/transport-router.d.ts.map +1 -0
  397. package/agentic-flow/dist/swarm/transport-router.js +375 -0
  398. package/agentic-flow/dist/swarm/transport-router.js.map +1 -0
  399. package/agentic-flow/dist/transport/index.d.ts.map +1 -0
  400. package/agentic-flow/dist/transport/index.js +3 -0
  401. package/agentic-flow/dist/transport/index.js.map +1 -0
  402. package/agentic-flow/dist/transport/quic-handshake.d.ts.map +1 -0
  403. package/agentic-flow/dist/transport/quic-handshake.js +199 -0
  404. package/agentic-flow/dist/transport/quic-handshake.js.map +1 -0
  405. package/agentic-flow/dist/transport/quic.d.ts.map +1 -0
  406. package/agentic-flow/dist/transport/quic.js +454 -0
  407. package/agentic-flow/dist/transport/quic.js.map +1 -0
  408. package/agentic-flow/dist/types/agentdb.d.ts.map +1 -0
  409. package/agentic-flow/dist/types/agentdb.js +49 -0
  410. package/agentic-flow/dist/types/agentdb.js.map +1 -0
  411. package/agentic-flow/dist/utils/agentBoosterPreprocessor.d.ts.map +1 -0
  412. package/agentic-flow/dist/utils/agentBoosterPreprocessor.js +271 -0
  413. package/agentic-flow/dist/utils/agentBoosterPreprocessor.js.map +1 -0
  414. package/agentic-flow/dist/utils/agentLoader.d.ts.map +1 -0
  415. package/agentic-flow/dist/utils/agentLoader.js +162 -0
  416. package/agentic-flow/dist/utils/agentLoader.js.map +1 -0
  417. package/agentic-flow/dist/utils/agentdb-runtime-patch.d.ts.map +1 -0
  418. package/agentic-flow/dist/utils/agentdb-runtime-patch.js +174 -0
  419. package/agentic-flow/dist/utils/agentdb-runtime-patch.js.map +1 -0
  420. package/agentic-flow/dist/utils/auth.d.ts.map +1 -0
  421. package/agentic-flow/dist/utils/auth.js +53 -0
  422. package/agentic-flow/dist/utils/auth.js.map +1 -0
  423. package/agentic-flow/dist/utils/cli.d.ts.map +1 -0
  424. package/agentic-flow/dist/utils/cli.js +344 -0
  425. package/agentic-flow/dist/utils/cli.js.map +1 -0
  426. package/agentic-flow/dist/utils/compression-middleware.d.ts.map +1 -0
  427. package/agentic-flow/dist/utils/compression-middleware.js +150 -0
  428. package/agentic-flow/dist/utils/compression-middleware.js.map +1 -0
  429. package/agentic-flow/dist/utils/connection-pool.d.ts.map +1 -0
  430. package/agentic-flow/dist/utils/connection-pool.js +185 -0
  431. package/agentic-flow/dist/utils/connection-pool.js.map +1 -0
  432. package/agentic-flow/dist/utils/logger.d.ts.map +1 -0
  433. package/agentic-flow/dist/utils/logger.js +58 -0
  434. package/agentic-flow/dist/utils/logger.js.map +1 -0
  435. package/agentic-flow/dist/utils/math.d.ts.map +1 -0
  436. package/agentic-flow/dist/utils/math.js +14 -0
  437. package/agentic-flow/dist/utils/math.js.map +1 -0
  438. package/agentic-flow/dist/utils/mcpCommands.d.ts.map +1 -0
  439. package/agentic-flow/dist/utils/mcpCommands.js +215 -0
  440. package/agentic-flow/dist/utils/mcpCommands.js.map +1 -0
  441. package/agentic-flow/dist/utils/model-downloader.d.ts.map +1 -0
  442. package/agentic-flow/dist/utils/model-downloader.js +183 -0
  443. package/agentic-flow/dist/utils/model-downloader.js.map +1 -0
  444. package/agentic-flow/dist/utils/modelCapabilities.d.ts.map +1 -0
  445. package/agentic-flow/dist/utils/modelCapabilities.js +277 -0
  446. package/agentic-flow/dist/utils/modelCapabilities.js.map +1 -0
  447. package/agentic-flow/dist/utils/modelOptimizer.d.ts.map +1 -0
  448. package/agentic-flow/dist/utils/modelOptimizer.js +415 -0
  449. package/agentic-flow/dist/utils/modelOptimizer.js.map +1 -0
  450. package/agentic-flow/dist/utils/rate-limiter.d.ts.map +1 -0
  451. package/agentic-flow/dist/utils/rate-limiter.js +49 -0
  452. package/agentic-flow/dist/utils/rate-limiter.js.map +1 -0
  453. package/agentic-flow/dist/utils/reasoningbankCommands.d.ts.map +1 -0
  454. package/agentic-flow/dist/utils/reasoningbankCommands.js +205 -0
  455. package/agentic-flow/dist/utils/reasoningbankCommands.js.map +1 -0
  456. package/agentic-flow/dist/utils/response-cache.d.ts.map +1 -0
  457. package/agentic-flow/dist/utils/response-cache.js +212 -0
  458. package/agentic-flow/dist/utils/response-cache.js.map +1 -0
  459. package/agentic-flow/dist/utils/retry.d.ts.map +1 -0
  460. package/agentic-flow/dist/utils/retry.js +55 -0
  461. package/agentic-flow/dist/utils/retry.js.map +1 -0
  462. package/agentic-flow/dist/utils/streaming-optimizer.d.ts.map +1 -0
  463. package/agentic-flow/dist/utils/streaming-optimizer.js +142 -0
  464. package/agentic-flow/dist/utils/streaming-optimizer.js.map +1 -0
  465. package/agentic-flow/docs/LICENSE +21 -0
  466. package/agentic-flow/docs/README.md +217 -0
  467. package/docs/AGENTIC_JUJUTSU_QUICKSTART.md +491 -0
  468. package/docs/README.md +84 -209
  469. package/package.json +141 -63
  470. package/packages/agentic-jujutsu/.cargo/config.toml +14 -0
  471. package/packages/agentic-jujutsu/.claude-flow/metrics/agent-metrics.json +1 -0
  472. package/packages/agentic-jujutsu/.claude-flow/metrics/performance.json +87 -0
  473. package/packages/agentic-jujutsu/.claude-flow/metrics/task-metrics.json +10 -0
  474. package/packages/agentic-jujutsu/BUILD.md +292 -0
  475. package/packages/agentic-jujutsu/CHANGELOG.md +143 -0
  476. package/packages/agentic-jujutsu/CHANGELOG_v2.2.0.md +203 -0
  477. package/packages/agentic-jujutsu/CRATE_README.md +269 -0
  478. package/packages/agentic-jujutsu/Dockerfile +8 -0
  479. package/packages/agentic-jujutsu/Dockerfile.test +81 -0
  480. package/packages/agentic-jujutsu/FUNCTIONALITY_VERIFICATION.md +377 -0
  481. package/packages/agentic-jujutsu/LICENSE +21 -0
  482. package/packages/agentic-jujutsu/NAPI_CI_CD_FILES.txt +162 -0
  483. package/packages/agentic-jujutsu/QUANTUM_INTEGRATION_SUMMARY.txt +67 -0
  484. package/packages/agentic-jujutsu/README.md +2248 -0
  485. package/packages/agentic-jujutsu/README_QUANTUM_INTEGRATION.md +195 -0
  486. package/packages/agentic-jujutsu/agentic-jujutsu-2.0.0.tgz +0 -0
  487. package/packages/agentic-jujutsu/agentic-jujutsu-2.0.1.tgz +0 -0
  488. package/packages/agentic-jujutsu/agentic-jujutsu-2.0.2.tgz +0 -0
  489. package/packages/agentic-jujutsu/agentic-jujutsu-2.0.3.tgz +0 -0
  490. package/packages/agentic-jujutsu/agentic-jujutsu-2.2.0.tgz +0 -0
  491. package/packages/agentic-jujutsu/agentic-jujutsu-2.3.4.tgz +0 -0
  492. package/packages/agentic-jujutsu/agentic-jujutsu.linux-x64-gnu.node +0 -0
  493. package/packages/agentic-jujutsu/benchmarks/README.md +403 -0
  494. package/packages/agentic-jujutsu/benchmarks/docker/.env.example +24 -0
  495. package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.git +55 -0
  496. package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.jujutsu +67 -0
  497. package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.swarm-coordinator +45 -0
  498. package/packages/agentic-jujutsu/benchmarks/docker/config/prometheus.yml +20 -0
  499. package/packages/agentic-jujutsu/benchmarks/docker/docker-compose.yml +152 -0
  500. package/packages/agentic-jujutsu/benchmarks/docker/scripts/collect-metrics.sh +143 -0
  501. package/packages/agentic-jujutsu/benchmarks/docker/scripts/generate-reports.sh +150 -0
  502. package/packages/agentic-jujutsu/benchmarks/docker/scripts/run-benchmarks.sh +80 -0
  503. package/packages/agentic-jujutsu/benchmarks/docker/scripts/setup-repos.sh +88 -0
  504. package/packages/agentic-jujutsu/benchmarks/docker/tests/concurrent-commits.sh +111 -0
  505. package/packages/agentic-jujutsu/benchmarks/docker/tests/conflict-resolution.sh +239 -0
  506. package/packages/agentic-jujutsu/bin/cli.js +286 -0
  507. package/packages/agentic-jujutsu/bin/mcp-server.js +20 -0
  508. package/packages/agentic-jujutsu/build.rs +134 -0
  509. package/packages/agentic-jujutsu/check-methods.js +26 -0
  510. package/packages/agentic-jujutsu/helpers/encryption.js +234 -0
  511. package/packages/agentic-jujutsu/index.d.ts +853 -0
  512. package/packages/agentic-jujutsu/index.js +321 -0
  513. package/packages/agentic-jujutsu/node_modules/.package-lock.json +1135 -0
  514. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
  515. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/README.md +143 -0
  516. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/build/index.cjs +317 -0
  517. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
  518. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
  519. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/index.mjs +14 -0
  520. package/packages/agentic-jujutsu/node_modules/@isaacs/cliui/package.json +86 -0
  521. package/packages/agentic-jujutsu/node_modules/@napi-rs/cli/LICENSE +21 -0
  522. package/packages/agentic-jujutsu/node_modules/@napi-rs/cli/README.md +96 -0
  523. package/packages/agentic-jujutsu/node_modules/@napi-rs/cli/package.json +65 -0
  524. package/packages/agentic-jujutsu/node_modules/@napi-rs/cli/scripts/index.js +51371 -0
  525. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/.editorconfig +14 -0
  526. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/CHANGELOG.md +147 -0
  527. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/LICENSE +201 -0
  528. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/README.md +413 -0
  529. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/is-default-value.js +25 -0
  530. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +35 -0
  531. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/negate.js +43 -0
  532. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +31 -0
  533. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +41 -0
  534. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +26 -0
  535. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/index.js +396 -0
  536. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
  537. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
  538. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
  539. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
  540. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/package.json +36 -0
  541. package/packages/agentic-jujutsu/node_modules/@pkgjs/parseargs/utils.js +198 -0
  542. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/README.md +209 -0
  543. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/index.d.ts +545 -0
  544. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/index.js +328 -0
  545. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/package.json +58 -0
  546. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/qudag-napi-core.linux-x64-gnu.node +0 -0
  547. package/packages/agentic-jujutsu/node_modules/@qudag/napi-core/test-napi.js +38 -0
  548. package/packages/agentic-jujutsu/node_modules/@types/node/LICENSE +21 -0
  549. package/packages/agentic-jujutsu/node_modules/@types/node/README.md +15 -0
  550. package/packages/agentic-jujutsu/node_modules/@types/node/assert/strict.d.ts +8 -0
  551. package/packages/agentic-jujutsu/node_modules/@types/node/assert.d.ts +1062 -0
  552. package/packages/agentic-jujutsu/node_modules/@types/node/async_hooks.d.ts +605 -0
  553. package/packages/agentic-jujutsu/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  554. package/packages/agentic-jujutsu/node_modules/@types/node/buffer.d.ts +1936 -0
  555. package/packages/agentic-jujutsu/node_modules/@types/node/child_process.d.ts +1475 -0
  556. package/packages/agentic-jujutsu/node_modules/@types/node/cluster.d.ts +577 -0
  557. package/packages/agentic-jujutsu/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  558. package/packages/agentic-jujutsu/node_modules/@types/node/compatibility/index.d.ts +9 -0
  559. package/packages/agentic-jujutsu/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  560. package/packages/agentic-jujutsu/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  561. package/packages/agentic-jujutsu/node_modules/@types/node/console.d.ts +452 -0
  562. package/packages/agentic-jujutsu/node_modules/@types/node/constants.d.ts +21 -0
  563. package/packages/agentic-jujutsu/node_modules/@types/node/crypto.d.ts +4590 -0
  564. package/packages/agentic-jujutsu/node_modules/@types/node/dgram.d.ts +597 -0
  565. package/packages/agentic-jujutsu/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  566. package/packages/agentic-jujutsu/node_modules/@types/node/dns/promises.d.ts +479 -0
  567. package/packages/agentic-jujutsu/node_modules/@types/node/dns.d.ts +871 -0
  568. package/packages/agentic-jujutsu/node_modules/@types/node/domain.d.ts +170 -0
  569. package/packages/agentic-jujutsu/node_modules/@types/node/events.d.ts +977 -0
  570. package/packages/agentic-jujutsu/node_modules/@types/node/fs/promises.d.ts +1270 -0
  571. package/packages/agentic-jujutsu/node_modules/@types/node/fs.d.ts +4375 -0
  572. package/packages/agentic-jujutsu/node_modules/@types/node/globals.d.ts +172 -0
  573. package/packages/agentic-jujutsu/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  574. package/packages/agentic-jujutsu/node_modules/@types/node/http.d.ts +2049 -0
  575. package/packages/agentic-jujutsu/node_modules/@types/node/http2.d.ts +2631 -0
  576. package/packages/agentic-jujutsu/node_modules/@types/node/https.d.ts +578 -0
  577. package/packages/agentic-jujutsu/node_modules/@types/node/index.d.ts +93 -0
  578. package/packages/agentic-jujutsu/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  579. package/packages/agentic-jujutsu/node_modules/@types/node/module.d.ts +539 -0
  580. package/packages/agentic-jujutsu/node_modules/@types/node/net.d.ts +1012 -0
  581. package/packages/agentic-jujutsu/node_modules/@types/node/os.d.ts +506 -0
  582. package/packages/agentic-jujutsu/node_modules/@types/node/package.json +140 -0
  583. package/packages/agentic-jujutsu/node_modules/@types/node/path.d.ts +200 -0
  584. package/packages/agentic-jujutsu/node_modules/@types/node/perf_hooks.d.ts +961 -0
  585. package/packages/agentic-jujutsu/node_modules/@types/node/process.d.ts +1945 -0
  586. package/packages/agentic-jujutsu/node_modules/@types/node/punycode.d.ts +117 -0
  587. package/packages/agentic-jujutsu/node_modules/@types/node/querystring.d.ts +152 -0
  588. package/packages/agentic-jujutsu/node_modules/@types/node/readline/promises.d.ts +162 -0
  589. package/packages/agentic-jujutsu/node_modules/@types/node/readline.d.ts +589 -0
  590. package/packages/agentic-jujutsu/node_modules/@types/node/repl.d.ts +430 -0
  591. package/packages/agentic-jujutsu/node_modules/@types/node/sea.d.ts +153 -0
  592. package/packages/agentic-jujutsu/node_modules/@types/node/stream/consumers.d.ts +38 -0
  593. package/packages/agentic-jujutsu/node_modules/@types/node/stream/promises.d.ts +90 -0
  594. package/packages/agentic-jujutsu/node_modules/@types/node/stream/web.d.ts +533 -0
  595. package/packages/agentic-jujutsu/node_modules/@types/node/stream.d.ts +1675 -0
  596. package/packages/agentic-jujutsu/node_modules/@types/node/string_decoder.d.ts +67 -0
  597. package/packages/agentic-jujutsu/node_modules/@types/node/test.d.ts +1787 -0
  598. package/packages/agentic-jujutsu/node_modules/@types/node/timers/promises.d.ts +108 -0
  599. package/packages/agentic-jujutsu/node_modules/@types/node/timers.d.ts +286 -0
  600. package/packages/agentic-jujutsu/node_modules/@types/node/tls.d.ts +1255 -0
  601. package/packages/agentic-jujutsu/node_modules/@types/node/trace_events.d.ts +197 -0
  602. package/packages/agentic-jujutsu/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  603. package/packages/agentic-jujutsu/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  604. package/packages/agentic-jujutsu/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  605. package/packages/agentic-jujutsu/node_modules/@types/node/tty.d.ts +208 -0
  606. package/packages/agentic-jujutsu/node_modules/@types/node/url.d.ts +964 -0
  607. package/packages/agentic-jujutsu/node_modules/@types/node/util.d.ts +2331 -0
  608. package/packages/agentic-jujutsu/node_modules/@types/node/v8.d.ts +809 -0
  609. package/packages/agentic-jujutsu/node_modules/@types/node/vm.d.ts +1001 -0
  610. package/packages/agentic-jujutsu/node_modules/@types/node/wasi.d.ts +181 -0
  611. package/packages/agentic-jujutsu/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  612. package/packages/agentic-jujutsu/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  613. package/packages/agentic-jujutsu/node_modules/@types/node/web-globals/events.d.ts +97 -0
  614. package/packages/agentic-jujutsu/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  615. package/packages/agentic-jujutsu/node_modules/@types/node/worker_threads.d.ts +715 -0
  616. package/packages/agentic-jujutsu/node_modules/@types/node/zlib.d.ts +540 -0
  617. package/packages/agentic-jujutsu/node_modules/ansi-regex/index.d.ts +33 -0
  618. package/packages/agentic-jujutsu/node_modules/ansi-regex/index.js +14 -0
  619. package/packages/agentic-jujutsu/node_modules/ansi-regex/license +9 -0
  620. package/packages/agentic-jujutsu/node_modules/ansi-regex/package.json +61 -0
  621. package/packages/agentic-jujutsu/node_modules/ansi-regex/readme.md +66 -0
  622. package/packages/agentic-jujutsu/node_modules/ansi-styles/index.d.ts +345 -0
  623. package/packages/agentic-jujutsu/node_modules/ansi-styles/index.js +163 -0
  624. package/packages/agentic-jujutsu/node_modules/ansi-styles/license +9 -0
  625. package/packages/agentic-jujutsu/node_modules/ansi-styles/package.json +56 -0
  626. package/packages/agentic-jujutsu/node_modules/ansi-styles/readme.md +152 -0
  627. package/packages/agentic-jujutsu/node_modules/argparse/CHANGELOG.md +216 -0
  628. package/packages/agentic-jujutsu/node_modules/argparse/LICENSE +254 -0
  629. package/packages/agentic-jujutsu/node_modules/argparse/README.md +84 -0
  630. package/packages/agentic-jujutsu/node_modules/argparse/argparse.js +3707 -0
  631. package/packages/agentic-jujutsu/node_modules/argparse/lib/sub.js +67 -0
  632. package/packages/agentic-jujutsu/node_modules/argparse/lib/textwrap.js +440 -0
  633. package/packages/agentic-jujutsu/node_modules/argparse/package.json +31 -0
  634. package/packages/agentic-jujutsu/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  635. package/packages/agentic-jujutsu/node_modules/balanced-match/LICENSE.md +21 -0
  636. package/packages/agentic-jujutsu/node_modules/balanced-match/README.md +97 -0
  637. package/packages/agentic-jujutsu/node_modules/balanced-match/index.js +62 -0
  638. package/packages/agentic-jujutsu/node_modules/balanced-match/package.json +48 -0
  639. package/packages/agentic-jujutsu/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  640. package/packages/agentic-jujutsu/node_modules/brace-expansion/LICENSE +21 -0
  641. package/packages/agentic-jujutsu/node_modules/brace-expansion/README.md +135 -0
  642. package/packages/agentic-jujutsu/node_modules/brace-expansion/index.js +203 -0
  643. package/packages/agentic-jujutsu/node_modules/brace-expansion/package.json +49 -0
  644. package/packages/agentic-jujutsu/node_modules/browser-stdout/LICENSE +5 -0
  645. package/packages/agentic-jujutsu/node_modules/browser-stdout/README.md +40 -0
  646. package/packages/agentic-jujutsu/node_modules/browser-stdout/index.js +25 -0
  647. package/packages/agentic-jujutsu/node_modules/browser-stdout/package.json +15 -0
  648. package/packages/agentic-jujutsu/node_modules/camelcase/index.d.ts +103 -0
  649. package/packages/agentic-jujutsu/node_modules/camelcase/index.js +113 -0
  650. package/packages/agentic-jujutsu/node_modules/camelcase/license +9 -0
  651. package/packages/agentic-jujutsu/node_modules/camelcase/package.json +44 -0
  652. package/packages/agentic-jujutsu/node_modules/camelcase/readme.md +144 -0
  653. package/packages/agentic-jujutsu/node_modules/chalk/index.d.ts +415 -0
  654. package/packages/agentic-jujutsu/node_modules/chalk/license +9 -0
  655. package/packages/agentic-jujutsu/node_modules/chalk/node_modules/supports-color/browser.js +5 -0
  656. package/packages/agentic-jujutsu/node_modules/chalk/node_modules/supports-color/index.js +135 -0
  657. package/packages/agentic-jujutsu/node_modules/chalk/node_modules/supports-color/license +9 -0
  658. package/packages/agentic-jujutsu/node_modules/chalk/node_modules/supports-color/package.json +53 -0
  659. package/packages/agentic-jujutsu/node_modules/chalk/node_modules/supports-color/readme.md +76 -0
  660. package/packages/agentic-jujutsu/node_modules/chalk/package.json +68 -0
  661. package/packages/agentic-jujutsu/node_modules/chalk/readme.md +341 -0
  662. package/packages/agentic-jujutsu/node_modules/chalk/source/index.js +229 -0
  663. package/packages/agentic-jujutsu/node_modules/chalk/source/templates.js +134 -0
  664. package/packages/agentic-jujutsu/node_modules/chalk/source/util.js +39 -0
  665. package/packages/agentic-jujutsu/node_modules/chokidar/LICENSE +21 -0
  666. package/packages/agentic-jujutsu/node_modules/chokidar/README.md +305 -0
  667. package/packages/agentic-jujutsu/node_modules/chokidar/esm/handler.d.ts +90 -0
  668. package/packages/agentic-jujutsu/node_modules/chokidar/esm/handler.js +629 -0
  669. package/packages/agentic-jujutsu/node_modules/chokidar/esm/index.d.ts +215 -0
  670. package/packages/agentic-jujutsu/node_modules/chokidar/esm/index.js +798 -0
  671. package/packages/agentic-jujutsu/node_modules/chokidar/esm/package.json +1 -0
  672. package/packages/agentic-jujutsu/node_modules/chokidar/handler.d.ts +90 -0
  673. package/packages/agentic-jujutsu/node_modules/chokidar/handler.js +635 -0
  674. package/packages/agentic-jujutsu/node_modules/chokidar/index.d.ts +215 -0
  675. package/packages/agentic-jujutsu/node_modules/chokidar/index.js +804 -0
  676. package/packages/agentic-jujutsu/node_modules/chokidar/package.json +69 -0
  677. package/packages/agentic-jujutsu/node_modules/cliui/CHANGELOG.md +139 -0
  678. package/packages/agentic-jujutsu/node_modules/cliui/LICENSE.txt +14 -0
  679. package/packages/agentic-jujutsu/node_modules/cliui/README.md +141 -0
  680. package/packages/agentic-jujutsu/node_modules/cliui/build/index.cjs +302 -0
  681. package/packages/agentic-jujutsu/node_modules/cliui/build/index.d.cts +43 -0
  682. package/packages/agentic-jujutsu/node_modules/cliui/build/lib/index.js +287 -0
  683. package/packages/agentic-jujutsu/node_modules/cliui/build/lib/string-utils.js +27 -0
  684. package/packages/agentic-jujutsu/node_modules/cliui/index.mjs +13 -0
  685. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/ansi-regex/index.d.ts +37 -0
  686. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/ansi-regex/index.js +10 -0
  687. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/ansi-regex/license +9 -0
  688. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/ansi-regex/package.json +55 -0
  689. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/ansi-regex/readme.md +78 -0
  690. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  691. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/README.md +73 -0
  692. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/es2015/index.js +6 -0
  693. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/es2015/text.js +6 -0
  694. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/index.d.ts +23 -0
  695. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/index.js +6 -0
  696. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/package.json +50 -0
  697. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/emoji-regex/text.js +6 -0
  698. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/string-width/index.d.ts +29 -0
  699. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/string-width/index.js +47 -0
  700. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/string-width/license +9 -0
  701. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/string-width/package.json +56 -0
  702. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/string-width/readme.md +50 -0
  703. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/strip-ansi/index.d.ts +17 -0
  704. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/strip-ansi/index.js +4 -0
  705. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/strip-ansi/license +9 -0
  706. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/strip-ansi/package.json +54 -0
  707. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/strip-ansi/readme.md +46 -0
  708. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/wrap-ansi/index.js +216 -0
  709. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/wrap-ansi/license +9 -0
  710. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/wrap-ansi/package.json +62 -0
  711. package/packages/agentic-jujutsu/node_modules/cliui/node_modules/wrap-ansi/readme.md +91 -0
  712. package/packages/agentic-jujutsu/node_modules/cliui/package.json +83 -0
  713. package/packages/agentic-jujutsu/node_modules/color-convert/CHANGELOG.md +54 -0
  714. package/packages/agentic-jujutsu/node_modules/color-convert/LICENSE +21 -0
  715. package/packages/agentic-jujutsu/node_modules/color-convert/README.md +68 -0
  716. package/packages/agentic-jujutsu/node_modules/color-convert/conversions.js +839 -0
  717. package/packages/agentic-jujutsu/node_modules/color-convert/index.js +81 -0
  718. package/packages/agentic-jujutsu/node_modules/color-convert/package.json +48 -0
  719. package/packages/agentic-jujutsu/node_modules/color-convert/route.js +97 -0
  720. package/packages/agentic-jujutsu/node_modules/color-name/LICENSE +8 -0
  721. package/packages/agentic-jujutsu/node_modules/color-name/README.md +11 -0
  722. package/packages/agentic-jujutsu/node_modules/color-name/index.js +152 -0
  723. package/packages/agentic-jujutsu/node_modules/color-name/package.json +28 -0
  724. package/packages/agentic-jujutsu/node_modules/cross-spawn/LICENSE +21 -0
  725. package/packages/agentic-jujutsu/node_modules/cross-spawn/README.md +89 -0
  726. package/packages/agentic-jujutsu/node_modules/cross-spawn/index.js +39 -0
  727. package/packages/agentic-jujutsu/node_modules/cross-spawn/lib/enoent.js +59 -0
  728. package/packages/agentic-jujutsu/node_modules/cross-spawn/lib/parse.js +91 -0
  729. package/packages/agentic-jujutsu/node_modules/cross-spawn/lib/util/escape.js +47 -0
  730. package/packages/agentic-jujutsu/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  731. package/packages/agentic-jujutsu/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  732. package/packages/agentic-jujutsu/node_modules/cross-spawn/package.json +73 -0
  733. package/packages/agentic-jujutsu/node_modules/debug/LICENSE +20 -0
  734. package/packages/agentic-jujutsu/node_modules/debug/README.md +481 -0
  735. package/packages/agentic-jujutsu/node_modules/debug/package.json +64 -0
  736. package/packages/agentic-jujutsu/node_modules/debug/src/browser.js +272 -0
  737. package/packages/agentic-jujutsu/node_modules/debug/src/common.js +292 -0
  738. package/packages/agentic-jujutsu/node_modules/debug/src/index.js +10 -0
  739. package/packages/agentic-jujutsu/node_modules/debug/src/node.js +263 -0
  740. package/packages/agentic-jujutsu/node_modules/decamelize/index.d.ts +20 -0
  741. package/packages/agentic-jujutsu/node_modules/decamelize/index.js +12 -0
  742. package/packages/agentic-jujutsu/node_modules/decamelize/license +9 -0
  743. package/packages/agentic-jujutsu/node_modules/decamelize/package.json +40 -0
  744. package/packages/agentic-jujutsu/node_modules/decamelize/readme.md +51 -0
  745. package/packages/agentic-jujutsu/node_modules/diff/CONTRIBUTING.md +40 -0
  746. package/packages/agentic-jujutsu/node_modules/diff/LICENSE +29 -0
  747. package/packages/agentic-jujutsu/node_modules/diff/README.md +346 -0
  748. package/packages/agentic-jujutsu/node_modules/diff/dist/diff.js +2106 -0
  749. package/packages/agentic-jujutsu/node_modules/diff/dist/diff.min.js +37 -0
  750. package/packages/agentic-jujutsu/node_modules/diff/lib/convert/dmp.js +27 -0
  751. package/packages/agentic-jujutsu/node_modules/diff/lib/convert/xml.js +35 -0
  752. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/array.js +39 -0
  753. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/base.js +304 -0
  754. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/character.js +33 -0
  755. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/css.js +36 -0
  756. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/json.js +143 -0
  757. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/line.js +121 -0
  758. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/sentence.js +36 -0
  759. package/packages/agentic-jujutsu/node_modules/diff/lib/diff/word.js +543 -0
  760. package/packages/agentic-jujutsu/node_modules/diff/lib/index.es6.js +2041 -0
  761. package/packages/agentic-jujutsu/node_modules/diff/lib/index.js +217 -0
  762. package/packages/agentic-jujutsu/node_modules/diff/lib/index.mjs +2041 -0
  763. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/apply.js +393 -0
  764. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/create.js +369 -0
  765. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/line-endings.js +176 -0
  766. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/merge.js +535 -0
  767. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/parse.js +151 -0
  768. package/packages/agentic-jujutsu/node_modules/diff/lib/patch/reverse.js +58 -0
  769. package/packages/agentic-jujutsu/node_modules/diff/lib/util/array.js +27 -0
  770. package/packages/agentic-jujutsu/node_modules/diff/lib/util/distance-iterator.js +54 -0
  771. package/packages/agentic-jujutsu/node_modules/diff/lib/util/params.js +22 -0
  772. package/packages/agentic-jujutsu/node_modules/diff/lib/util/string.js +131 -0
  773. package/packages/agentic-jujutsu/node_modules/diff/package.json +88 -0
  774. package/packages/agentic-jujutsu/node_modules/diff/release-notes.md +361 -0
  775. package/packages/agentic-jujutsu/node_modules/diff/runtime.js +3 -0
  776. package/packages/agentic-jujutsu/node_modules/eastasianwidth/README.md +32 -0
  777. package/packages/agentic-jujutsu/node_modules/eastasianwidth/eastasianwidth.js +311 -0
  778. package/packages/agentic-jujutsu/node_modules/eastasianwidth/package.json +18 -0
  779. package/packages/agentic-jujutsu/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  780. package/packages/agentic-jujutsu/node_modules/emoji-regex/README.md +137 -0
  781. package/packages/agentic-jujutsu/node_modules/emoji-regex/RGI_Emoji.d.ts +5 -0
  782. package/packages/agentic-jujutsu/node_modules/emoji-regex/RGI_Emoji.js +6 -0
  783. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +5 -0
  784. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
  785. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/index.d.ts +5 -0
  786. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/index.js +6 -0
  787. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/text.d.ts +5 -0
  788. package/packages/agentic-jujutsu/node_modules/emoji-regex/es2015/text.js +6 -0
  789. package/packages/agentic-jujutsu/node_modules/emoji-regex/index.d.ts +5 -0
  790. package/packages/agentic-jujutsu/node_modules/emoji-regex/index.js +6 -0
  791. package/packages/agentic-jujutsu/node_modules/emoji-regex/package.json +52 -0
  792. package/packages/agentic-jujutsu/node_modules/emoji-regex/text.d.ts +5 -0
  793. package/packages/agentic-jujutsu/node_modules/emoji-regex/text.js +6 -0
  794. package/packages/agentic-jujutsu/node_modules/escalade/dist/index.js +22 -0
  795. package/packages/agentic-jujutsu/node_modules/escalade/dist/index.mjs +22 -0
  796. package/packages/agentic-jujutsu/node_modules/escalade/index.d.mts +11 -0
  797. package/packages/agentic-jujutsu/node_modules/escalade/index.d.ts +15 -0
  798. package/packages/agentic-jujutsu/node_modules/escalade/license +9 -0
  799. package/packages/agentic-jujutsu/node_modules/escalade/package.json +74 -0
  800. package/packages/agentic-jujutsu/node_modules/escalade/readme.md +211 -0
  801. package/packages/agentic-jujutsu/node_modules/escalade/sync/index.d.mts +9 -0
  802. package/packages/agentic-jujutsu/node_modules/escalade/sync/index.d.ts +13 -0
  803. package/packages/agentic-jujutsu/node_modules/escalade/sync/index.js +18 -0
  804. package/packages/agentic-jujutsu/node_modules/escalade/sync/index.mjs +18 -0
  805. package/packages/agentic-jujutsu/node_modules/escape-string-regexp/index.d.ts +18 -0
  806. package/packages/agentic-jujutsu/node_modules/escape-string-regexp/index.js +13 -0
  807. package/packages/agentic-jujutsu/node_modules/escape-string-regexp/license +9 -0
  808. package/packages/agentic-jujutsu/node_modules/escape-string-regexp/package.json +38 -0
  809. package/packages/agentic-jujutsu/node_modules/escape-string-regexp/readme.md +34 -0
  810. package/packages/agentic-jujutsu/node_modules/find-up/index.d.ts +138 -0
  811. package/packages/agentic-jujutsu/node_modules/find-up/index.js +89 -0
  812. package/packages/agentic-jujutsu/node_modules/find-up/license +9 -0
  813. package/packages/agentic-jujutsu/node_modules/find-up/package.json +54 -0
  814. package/packages/agentic-jujutsu/node_modules/find-up/readme.md +151 -0
  815. package/packages/agentic-jujutsu/node_modules/flat/LICENSE +12 -0
  816. package/packages/agentic-jujutsu/node_modules/flat/README.md +236 -0
  817. package/packages/agentic-jujutsu/node_modules/flat/cli.js +42 -0
  818. package/packages/agentic-jujutsu/node_modules/flat/index.js +158 -0
  819. package/packages/agentic-jujutsu/node_modules/flat/package.json +37 -0
  820. package/packages/agentic-jujutsu/node_modules/flat/test/test.js +643 -0
  821. package/packages/agentic-jujutsu/node_modules/foreground-child/LICENSE +15 -0
  822. package/packages/agentic-jujutsu/node_modules/foreground-child/README.md +128 -0
  823. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +2 -0
  824. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
  825. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
  826. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
  827. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/index.d.ts +58 -0
  828. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
  829. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/index.js +123 -0
  830. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
  831. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/package.json +3 -0
  832. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +6 -0
  833. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
  834. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
  835. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
  836. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +10 -0
  837. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
  838. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
  839. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
  840. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/all-signals.d.ts +2 -0
  841. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
  842. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
  843. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
  844. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/index.d.ts +58 -0
  845. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
  846. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/index.js +115 -0
  847. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/index.js.map +1 -0
  848. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/package.json +3 -0
  849. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +6 -0
  850. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
  851. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
  852. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
  853. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/watchdog.d.ts +10 -0
  854. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
  855. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
  856. package/packages/agentic-jujutsu/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
  857. package/packages/agentic-jujutsu/node_modules/foreground-child/package.json +106 -0
  858. package/packages/agentic-jujutsu/node_modules/get-caller-file/LICENSE.md +6 -0
  859. package/packages/agentic-jujutsu/node_modules/get-caller-file/README.md +41 -0
  860. package/packages/agentic-jujutsu/node_modules/get-caller-file/index.d.ts +2 -0
  861. package/packages/agentic-jujutsu/node_modules/get-caller-file/index.js +22 -0
  862. package/packages/agentic-jujutsu/node_modules/get-caller-file/index.js.map +1 -0
  863. package/packages/agentic-jujutsu/node_modules/get-caller-file/package.json +42 -0
  864. package/packages/agentic-jujutsu/node_modules/glob/LICENSE +15 -0
  865. package/packages/agentic-jujutsu/node_modules/glob/README.md +1265 -0
  866. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
  867. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  868. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/glob.js +247 -0
  869. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  870. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  871. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  872. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  873. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  874. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
  875. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  876. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/ignore.js +119 -0
  877. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  878. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/index.d.ts +97 -0
  879. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  880. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/index.js +68 -0
  881. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/index.js.map +1 -0
  882. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/package.json +3 -0
  883. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
  884. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  885. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/pattern.js +219 -0
  886. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  887. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
  888. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  889. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/processor.js +301 -0
  890. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  891. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
  892. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  893. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/walker.js +387 -0
  894. package/packages/agentic-jujutsu/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  895. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/bin.d.mts +3 -0
  896. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
  897. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/bin.mjs +270 -0
  898. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/bin.mjs.map +1 -0
  899. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/glob.d.ts +388 -0
  900. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  901. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/glob.js +243 -0
  902. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/glob.js.map +1 -0
  903. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  904. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  905. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/has-magic.js +23 -0
  906. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  907. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/ignore.d.ts +24 -0
  908. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  909. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/ignore.js +115 -0
  910. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/ignore.js.map +1 -0
  911. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/index.d.ts +97 -0
  912. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  913. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/index.js +55 -0
  914. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/index.js.map +1 -0
  915. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/package.json +3 -0
  916. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/pattern.d.ts +76 -0
  917. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  918. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/pattern.js +215 -0
  919. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/pattern.js.map +1 -0
  920. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/processor.d.ts +59 -0
  921. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  922. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/processor.js +294 -0
  923. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/processor.js.map +1 -0
  924. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/walker.d.ts +97 -0
  925. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  926. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/walker.js +381 -0
  927. package/packages/agentic-jujutsu/node_modules/glob/dist/esm/walker.js.map +1 -0
  928. package/packages/agentic-jujutsu/node_modules/glob/package.json +99 -0
  929. package/packages/agentic-jujutsu/node_modules/has-flag/index.d.ts +39 -0
  930. package/packages/agentic-jujutsu/node_modules/has-flag/index.js +8 -0
  931. package/packages/agentic-jujutsu/node_modules/has-flag/license +9 -0
  932. package/packages/agentic-jujutsu/node_modules/has-flag/package.json +46 -0
  933. package/packages/agentic-jujutsu/node_modules/has-flag/readme.md +89 -0
  934. package/packages/agentic-jujutsu/node_modules/he/LICENSE-MIT.txt +20 -0
  935. package/packages/agentic-jujutsu/node_modules/he/README.md +379 -0
  936. package/packages/agentic-jujutsu/node_modules/he/bin/he +148 -0
  937. package/packages/agentic-jujutsu/node_modules/he/he.js +345 -0
  938. package/packages/agentic-jujutsu/node_modules/he/man/he.1 +78 -0
  939. package/packages/agentic-jujutsu/node_modules/he/package.json +58 -0
  940. package/packages/agentic-jujutsu/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  941. package/packages/agentic-jujutsu/node_modules/is-fullwidth-code-point/index.js +50 -0
  942. package/packages/agentic-jujutsu/node_modules/is-fullwidth-code-point/license +9 -0
  943. package/packages/agentic-jujutsu/node_modules/is-fullwidth-code-point/package.json +42 -0
  944. package/packages/agentic-jujutsu/node_modules/is-fullwidth-code-point/readme.md +39 -0
  945. package/packages/agentic-jujutsu/node_modules/is-path-inside/index.d.ts +27 -0
  946. package/packages/agentic-jujutsu/node_modules/is-path-inside/index.js +12 -0
  947. package/packages/agentic-jujutsu/node_modules/is-path-inside/license +9 -0
  948. package/packages/agentic-jujutsu/node_modules/is-path-inside/package.json +36 -0
  949. package/packages/agentic-jujutsu/node_modules/is-path-inside/readme.md +63 -0
  950. package/packages/agentic-jujutsu/node_modules/is-plain-obj/index.d.ts +29 -0
  951. package/packages/agentic-jujutsu/node_modules/is-plain-obj/index.js +10 -0
  952. package/packages/agentic-jujutsu/node_modules/is-plain-obj/license +9 -0
  953. package/packages/agentic-jujutsu/node_modules/is-plain-obj/package.json +38 -0
  954. package/packages/agentic-jujutsu/node_modules/is-plain-obj/readme.md +54 -0
  955. package/packages/agentic-jujutsu/node_modules/is-unicode-supported/index.d.ts +14 -0
  956. package/packages/agentic-jujutsu/node_modules/is-unicode-supported/index.js +13 -0
  957. package/packages/agentic-jujutsu/node_modules/is-unicode-supported/license +9 -0
  958. package/packages/agentic-jujutsu/node_modules/is-unicode-supported/package.json +41 -0
  959. package/packages/agentic-jujutsu/node_modules/is-unicode-supported/readme.md +35 -0
  960. package/packages/agentic-jujutsu/node_modules/isexe/LICENSE +15 -0
  961. package/packages/agentic-jujutsu/node_modules/isexe/README.md +51 -0
  962. package/packages/agentic-jujutsu/node_modules/isexe/index.js +57 -0
  963. package/packages/agentic-jujutsu/node_modules/isexe/mode.js +41 -0
  964. package/packages/agentic-jujutsu/node_modules/isexe/package.json +31 -0
  965. package/packages/agentic-jujutsu/node_modules/isexe/test/basic.js +221 -0
  966. package/packages/agentic-jujutsu/node_modules/isexe/windows.js +42 -0
  967. package/packages/agentic-jujutsu/node_modules/jackspeak/LICENSE.md +55 -0
  968. package/packages/agentic-jujutsu/node_modules/jackspeak/README.md +357 -0
  969. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/index.d.ts +315 -0
  970. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
  971. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
  972. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
  973. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/package.json +3 -0
  974. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
  975. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
  976. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +4 -0
  977. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
  978. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/index.d.ts +315 -0
  979. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
  980. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/index.js +1000 -0
  981. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/index.js.map +1 -0
  982. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/package.json +3 -0
  983. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/parse-args.d.ts +4 -0
  984. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
  985. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
  986. package/packages/agentic-jujutsu/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
  987. package/packages/agentic-jujutsu/node_modules/jackspeak/package.json +95 -0
  988. package/packages/agentic-jujutsu/node_modules/js-yaml/CHANGELOG.md +616 -0
  989. package/packages/agentic-jujutsu/node_modules/js-yaml/LICENSE +21 -0
  990. package/packages/agentic-jujutsu/node_modules/js-yaml/README.md +246 -0
  991. package/packages/agentic-jujutsu/node_modules/js-yaml/bin/js-yaml.js +126 -0
  992. package/packages/agentic-jujutsu/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  993. package/packages/agentic-jujutsu/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  994. package/packages/agentic-jujutsu/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  995. package/packages/agentic-jujutsu/node_modules/js-yaml/index.js +47 -0
  996. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/common.js +59 -0
  997. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/dumper.js +965 -0
  998. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/exception.js +55 -0
  999. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/loader.js +1727 -0
  1000. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/schema/core.js +11 -0
  1001. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/schema/default.js +22 -0
  1002. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  1003. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/schema/json.js +19 -0
  1004. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/schema.js +121 -0
  1005. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/snippet.js +101 -0
  1006. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/binary.js +125 -0
  1007. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/bool.js +35 -0
  1008. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/float.js +97 -0
  1009. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/int.js +156 -0
  1010. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/map.js +8 -0
  1011. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/merge.js +12 -0
  1012. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/null.js +35 -0
  1013. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/omap.js +44 -0
  1014. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/pairs.js +53 -0
  1015. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/seq.js +8 -0
  1016. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/set.js +29 -0
  1017. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/str.js +8 -0
  1018. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  1019. package/packages/agentic-jujutsu/node_modules/js-yaml/lib/type.js +66 -0
  1020. package/packages/agentic-jujutsu/node_modules/js-yaml/package.json +66 -0
  1021. package/packages/agentic-jujutsu/node_modules/locate-path/index.d.ts +83 -0
  1022. package/packages/agentic-jujutsu/node_modules/locate-path/index.js +68 -0
  1023. package/packages/agentic-jujutsu/node_modules/locate-path/license +9 -0
  1024. package/packages/agentic-jujutsu/node_modules/locate-path/package.json +46 -0
  1025. package/packages/agentic-jujutsu/node_modules/locate-path/readme.md +125 -0
  1026. package/packages/agentic-jujutsu/node_modules/log-symbols/browser.js +8 -0
  1027. package/packages/agentic-jujutsu/node_modules/log-symbols/index.d.ts +25 -0
  1028. package/packages/agentic-jujutsu/node_modules/log-symbols/index.js +19 -0
  1029. package/packages/agentic-jujutsu/node_modules/log-symbols/license +9 -0
  1030. package/packages/agentic-jujutsu/node_modules/log-symbols/package.json +52 -0
  1031. package/packages/agentic-jujutsu/node_modules/log-symbols/readme.md +51 -0
  1032. package/packages/agentic-jujutsu/node_modules/lru-cache/LICENSE +15 -0
  1033. package/packages/agentic-jujutsu/node_modules/lru-cache/README.md +331 -0
  1034. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.d.ts +1277 -0
  1035. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  1036. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  1037. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  1038. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  1039. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  1040. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  1041. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.d.ts +1277 -0
  1042. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  1043. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.js +1542 -0
  1044. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  1045. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  1046. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  1047. package/packages/agentic-jujutsu/node_modules/lru-cache/dist/esm/package.json +3 -0
  1048. package/packages/agentic-jujutsu/node_modules/lru-cache/package.json +116 -0
  1049. package/packages/agentic-jujutsu/node_modules/minimatch/LICENSE +15 -0
  1050. package/packages/agentic-jujutsu/node_modules/minimatch/README.md +454 -0
  1051. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  1052. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  1053. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  1054. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  1055. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  1056. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  1057. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/ast.js +592 -0
  1058. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  1059. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  1060. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  1061. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  1062. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  1063. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  1064. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  1065. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  1066. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  1067. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  1068. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  1069. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/index.js +1017 -0
  1070. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  1071. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/package.json +3 -0
  1072. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  1073. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  1074. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  1075. package/packages/agentic-jujutsu/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  1076. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  1077. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  1078. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  1079. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  1080. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  1081. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  1082. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/ast.js +588 -0
  1083. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  1084. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  1085. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  1086. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  1087. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  1088. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  1089. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  1090. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/escape.js +18 -0
  1091. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  1092. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  1093. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  1094. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/index.js +1001 -0
  1095. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/index.js.map +1 -0
  1096. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/package.json +3 -0
  1097. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  1098. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  1099. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/unescape.js +20 -0
  1100. package/packages/agentic-jujutsu/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  1101. package/packages/agentic-jujutsu/node_modules/minimatch/package.json +82 -0
  1102. package/packages/agentic-jujutsu/node_modules/minipass/LICENSE +15 -0
  1103. package/packages/agentic-jujutsu/node_modules/minipass/README.md +825 -0
  1104. package/packages/agentic-jujutsu/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
  1105. package/packages/agentic-jujutsu/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  1106. package/packages/agentic-jujutsu/node_modules/minipass/dist/commonjs/index.js +1028 -0
  1107. package/packages/agentic-jujutsu/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  1108. package/packages/agentic-jujutsu/node_modules/minipass/dist/commonjs/package.json +3 -0
  1109. package/packages/agentic-jujutsu/node_modules/minipass/dist/esm/index.d.ts +549 -0
  1110. package/packages/agentic-jujutsu/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  1111. package/packages/agentic-jujutsu/node_modules/minipass/dist/esm/index.js +1018 -0
  1112. package/packages/agentic-jujutsu/node_modules/minipass/dist/esm/index.js.map +1 -0
  1113. package/packages/agentic-jujutsu/node_modules/minipass/dist/esm/package.json +3 -0
  1114. package/packages/agentic-jujutsu/node_modules/minipass/package.json +82 -0
  1115. package/packages/agentic-jujutsu/node_modules/mocha/LICENSE +22 -0
  1116. package/packages/agentic-jujutsu/node_modules/mocha/README.md +74 -0
  1117. package/packages/agentic-jujutsu/node_modules/mocha/bin/_mocha +10 -0
  1118. package/packages/agentic-jujutsu/node_modules/mocha/bin/mocha.js +148 -0
  1119. package/packages/agentic-jujutsu/node_modules/mocha/browser-entry.js +226 -0
  1120. package/packages/agentic-jujutsu/node_modules/mocha/index.js +3 -0
  1121. package/packages/agentic-jujutsu/node_modules/mocha/lib/browser/highlight-tags.js +39 -0
  1122. package/packages/agentic-jujutsu/node_modules/mocha/lib/browser/parse-query.js +24 -0
  1123. package/packages/agentic-jujutsu/node_modules/mocha/lib/browser/template.html +20 -0
  1124. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/cli.js +91 -0
  1125. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/collect-files.js +114 -0
  1126. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/commands.js +14 -0
  1127. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/config.js +100 -0
  1128. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/index.js +3 -0
  1129. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/init.js +36 -0
  1130. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/lookup-files.js +155 -0
  1131. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/node-flags.js +85 -0
  1132. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/one-and-dones.js +69 -0
  1133. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/options.js +337 -0
  1134. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/run-helpers.js +310 -0
  1135. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/run-option-metadata.js +138 -0
  1136. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/run.js +384 -0
  1137. package/packages/agentic-jujutsu/node_modules/mocha/lib/cli/watch-run.js +626 -0
  1138. package/packages/agentic-jujutsu/node_modules/mocha/lib/context.js +91 -0
  1139. package/packages/agentic-jujutsu/node_modules/mocha/lib/error-constants.js +123 -0
  1140. package/packages/agentic-jujutsu/node_modules/mocha/lib/errors.js +440 -0
  1141. package/packages/agentic-jujutsu/node_modules/mocha/lib/hook.js +89 -0
  1142. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/bdd.js +118 -0
  1143. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/common.js +198 -0
  1144. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/exports.js +60 -0
  1145. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/index.js +6 -0
  1146. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/qunit.js +101 -0
  1147. package/packages/agentic-jujutsu/node_modules/mocha/lib/interfaces/tdd.js +110 -0
  1148. package/packages/agentic-jujutsu/node_modules/mocha/lib/mocha.js +1255 -0
  1149. package/packages/agentic-jujutsu/node_modules/mocha/lib/mocharc.json +10 -0
  1150. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +194 -0
  1151. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/esm-utils.js +158 -0
  1152. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/file-unloader.js +15 -0
  1153. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js +423 -0
  1154. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js +161 -0
  1155. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/serializer.js +400 -0
  1156. package/packages/agentic-jujutsu/node_modules/mocha/lib/nodejs/worker.js +156 -0
  1157. package/packages/agentic-jujutsu/node_modules/mocha/lib/pending.js +16 -0
  1158. package/packages/agentic-jujutsu/node_modules/mocha/lib/plugin-loader.js +287 -0
  1159. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/base.js +589 -0
  1160. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/doc.js +100 -0
  1161. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/dot.js +86 -0
  1162. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/html.js +423 -0
  1163. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/index.js +19 -0
  1164. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/json-stream.js +93 -0
  1165. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/json.js +167 -0
  1166. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/landing.js +121 -0
  1167. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/list.js +83 -0
  1168. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/markdown.js +117 -0
  1169. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/min.js +57 -0
  1170. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/nyan.js +272 -0
  1171. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/progress.js +109 -0
  1172. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/spec.js +105 -0
  1173. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/tap.js +298 -0
  1174. package/packages/agentic-jujutsu/node_modules/mocha/lib/reporters/xunit.js +232 -0
  1175. package/packages/agentic-jujutsu/node_modules/mocha/lib/runnable.js +476 -0
  1176. package/packages/agentic-jujutsu/node_modules/mocha/lib/runner.js +1307 -0
  1177. package/packages/agentic-jujutsu/node_modules/mocha/lib/stats-collector.js +73 -0
  1178. package/packages/agentic-jujutsu/node_modules/mocha/lib/suite.js +670 -0
  1179. package/packages/agentic-jujutsu/node_modules/mocha/lib/test.js +113 -0
  1180. package/packages/agentic-jujutsu/node_modules/mocha/lib/utils.js +698 -0
  1181. package/packages/agentic-jujutsu/node_modules/mocha/mocha.css +455 -0
  1182. package/packages/agentic-jujutsu/node_modules/mocha/mocha.js +21606 -0
  1183. package/packages/agentic-jujutsu/node_modules/mocha/mocha.js.map +1 -0
  1184. package/packages/agentic-jujutsu/node_modules/mocha/package.json +223 -0
  1185. package/packages/agentic-jujutsu/node_modules/ms/index.js +162 -0
  1186. package/packages/agentic-jujutsu/node_modules/ms/license.md +21 -0
  1187. package/packages/agentic-jujutsu/node_modules/ms/package.json +38 -0
  1188. package/packages/agentic-jujutsu/node_modules/ms/readme.md +59 -0
  1189. package/packages/agentic-jujutsu/node_modules/p-limit/index.d.ts +42 -0
  1190. package/packages/agentic-jujutsu/node_modules/p-limit/index.js +71 -0
  1191. package/packages/agentic-jujutsu/node_modules/p-limit/license +9 -0
  1192. package/packages/agentic-jujutsu/node_modules/p-limit/package.json +52 -0
  1193. package/packages/agentic-jujutsu/node_modules/p-limit/readme.md +101 -0
  1194. package/packages/agentic-jujutsu/node_modules/p-locate/index.d.ts +53 -0
  1195. package/packages/agentic-jujutsu/node_modules/p-locate/index.js +50 -0
  1196. package/packages/agentic-jujutsu/node_modules/p-locate/license +9 -0
  1197. package/packages/agentic-jujutsu/node_modules/p-locate/package.json +54 -0
  1198. package/packages/agentic-jujutsu/node_modules/p-locate/readme.md +93 -0
  1199. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/LICENSE.md +63 -0
  1200. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/README.md +110 -0
  1201. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
  1202. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
  1203. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
  1204. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
  1205. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
  1206. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
  1207. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
  1208. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
  1209. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
  1210. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
  1211. package/packages/agentic-jujutsu/node_modules/package-json-from-dist/package.json +68 -0
  1212. package/packages/agentic-jujutsu/node_modules/path-exists/index.d.ts +28 -0
  1213. package/packages/agentic-jujutsu/node_modules/path-exists/index.js +23 -0
  1214. package/packages/agentic-jujutsu/node_modules/path-exists/license +9 -0
  1215. package/packages/agentic-jujutsu/node_modules/path-exists/package.json +39 -0
  1216. package/packages/agentic-jujutsu/node_modules/path-exists/readme.md +52 -0
  1217. package/packages/agentic-jujutsu/node_modules/path-key/index.d.ts +40 -0
  1218. package/packages/agentic-jujutsu/node_modules/path-key/index.js +16 -0
  1219. package/packages/agentic-jujutsu/node_modules/path-key/license +9 -0
  1220. package/packages/agentic-jujutsu/node_modules/path-key/package.json +39 -0
  1221. package/packages/agentic-jujutsu/node_modules/path-key/readme.md +61 -0
  1222. package/packages/agentic-jujutsu/node_modules/path-scurry/LICENSE.md +55 -0
  1223. package/packages/agentic-jujutsu/node_modules/path-scurry/README.md +636 -0
  1224. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/commonjs/index.d.ts +1116 -0
  1225. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  1226. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
  1227. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  1228. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  1229. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/esm/index.d.ts +1116 -0
  1230. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  1231. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/esm/index.js +1979 -0
  1232. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  1233. package/packages/agentic-jujutsu/node_modules/path-scurry/dist/esm/package.json +3 -0
  1234. package/packages/agentic-jujutsu/node_modules/path-scurry/package.json +89 -0
  1235. package/packages/agentic-jujutsu/node_modules/picocolors/LICENSE +15 -0
  1236. package/packages/agentic-jujutsu/node_modules/picocolors/README.md +21 -0
  1237. package/packages/agentic-jujutsu/node_modules/picocolors/package.json +25 -0
  1238. package/packages/agentic-jujutsu/node_modules/picocolors/picocolors.browser.js +4 -0
  1239. package/packages/agentic-jujutsu/node_modules/picocolors/picocolors.d.ts +5 -0
  1240. package/packages/agentic-jujutsu/node_modules/picocolors/picocolors.js +75 -0
  1241. package/packages/agentic-jujutsu/node_modules/picocolors/types.d.ts +51 -0
  1242. package/packages/agentic-jujutsu/node_modules/randombytes/.zuul.yml +1 -0
  1243. package/packages/agentic-jujutsu/node_modules/randombytes/LICENSE +21 -0
  1244. package/packages/agentic-jujutsu/node_modules/randombytes/README.md +14 -0
  1245. package/packages/agentic-jujutsu/node_modules/randombytes/browser.js +50 -0
  1246. package/packages/agentic-jujutsu/node_modules/randombytes/index.js +1 -0
  1247. package/packages/agentic-jujutsu/node_modules/randombytes/package.json +36 -0
  1248. package/packages/agentic-jujutsu/node_modules/randombytes/test.js +81 -0
  1249. package/packages/agentic-jujutsu/node_modules/readdirp/LICENSE +21 -0
  1250. package/packages/agentic-jujutsu/node_modules/readdirp/README.md +120 -0
  1251. package/packages/agentic-jujutsu/node_modules/readdirp/esm/index.d.ts +108 -0
  1252. package/packages/agentic-jujutsu/node_modules/readdirp/esm/index.js +257 -0
  1253. package/packages/agentic-jujutsu/node_modules/readdirp/esm/package.json +1 -0
  1254. package/packages/agentic-jujutsu/node_modules/readdirp/index.d.ts +108 -0
  1255. package/packages/agentic-jujutsu/node_modules/readdirp/index.js +263 -0
  1256. package/packages/agentic-jujutsu/node_modules/readdirp/package.json +70 -0
  1257. package/packages/agentic-jujutsu/node_modules/require-directory/.jshintrc +67 -0
  1258. package/packages/agentic-jujutsu/node_modules/require-directory/LICENSE +22 -0
  1259. package/packages/agentic-jujutsu/node_modules/require-directory/README.markdown +184 -0
  1260. package/packages/agentic-jujutsu/node_modules/require-directory/index.js +86 -0
  1261. package/packages/agentic-jujutsu/node_modules/require-directory/package.json +40 -0
  1262. package/packages/agentic-jujutsu/node_modules/safe-buffer/LICENSE +21 -0
  1263. package/packages/agentic-jujutsu/node_modules/safe-buffer/README.md +584 -0
  1264. package/packages/agentic-jujutsu/node_modules/safe-buffer/index.d.ts +187 -0
  1265. package/packages/agentic-jujutsu/node_modules/safe-buffer/index.js +65 -0
  1266. package/packages/agentic-jujutsu/node_modules/safe-buffer/package.json +51 -0
  1267. package/packages/agentic-jujutsu/node_modules/serialize-javascript/LICENSE +27 -0
  1268. package/packages/agentic-jujutsu/node_modules/serialize-javascript/README.md +143 -0
  1269. package/packages/agentic-jujutsu/node_modules/serialize-javascript/index.js +268 -0
  1270. package/packages/agentic-jujutsu/node_modules/serialize-javascript/package.json +36 -0
  1271. package/packages/agentic-jujutsu/node_modules/shebang-command/index.js +19 -0
  1272. package/packages/agentic-jujutsu/node_modules/shebang-command/license +9 -0
  1273. package/packages/agentic-jujutsu/node_modules/shebang-command/package.json +34 -0
  1274. package/packages/agentic-jujutsu/node_modules/shebang-command/readme.md +34 -0
  1275. package/packages/agentic-jujutsu/node_modules/shebang-regex/index.d.ts +22 -0
  1276. package/packages/agentic-jujutsu/node_modules/shebang-regex/index.js +2 -0
  1277. package/packages/agentic-jujutsu/node_modules/shebang-regex/license +9 -0
  1278. package/packages/agentic-jujutsu/node_modules/shebang-regex/package.json +35 -0
  1279. package/packages/agentic-jujutsu/node_modules/shebang-regex/readme.md +33 -0
  1280. package/packages/agentic-jujutsu/node_modules/signal-exit/LICENSE.txt +16 -0
  1281. package/packages/agentic-jujutsu/node_modules/signal-exit/README.md +74 -0
  1282. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  1283. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  1284. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  1285. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  1286. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  1287. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  1288. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/index.js +279 -0
  1289. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  1290. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/package.json +3 -0
  1291. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  1292. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  1293. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  1294. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  1295. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  1296. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  1297. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  1298. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  1299. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  1300. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  1301. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/index.js +275 -0
  1302. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  1303. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/package.json +3 -0
  1304. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  1305. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  1306. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  1307. package/packages/agentic-jujutsu/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  1308. package/packages/agentic-jujutsu/node_modules/signal-exit/package.json +106 -0
  1309. package/packages/agentic-jujutsu/node_modules/string-width/index.d.ts +29 -0
  1310. package/packages/agentic-jujutsu/node_modules/string-width/index.js +54 -0
  1311. package/packages/agentic-jujutsu/node_modules/string-width/license +9 -0
  1312. package/packages/agentic-jujutsu/node_modules/string-width/package.json +59 -0
  1313. package/packages/agentic-jujutsu/node_modules/string-width/readme.md +67 -0
  1314. package/packages/agentic-jujutsu/node_modules/string-width-cjs/index.d.ts +29 -0
  1315. package/packages/agentic-jujutsu/node_modules/string-width-cjs/index.js +47 -0
  1316. package/packages/agentic-jujutsu/node_modules/string-width-cjs/license +9 -0
  1317. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +37 -0
  1318. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
  1319. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
  1320. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
  1321. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +78 -0
  1322. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1323. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/README.md +73 -0
  1324. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
  1325. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
  1326. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/index.d.ts +23 -0
  1327. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
  1328. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
  1329. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
  1330. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +17 -0
  1331. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
  1332. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
  1333. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
  1334. package/packages/agentic-jujutsu/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +46 -0
  1335. package/packages/agentic-jujutsu/node_modules/string-width-cjs/package.json +56 -0
  1336. package/packages/agentic-jujutsu/node_modules/string-width-cjs/readme.md +50 -0
  1337. package/packages/agentic-jujutsu/node_modules/strip-ansi/index.d.ts +15 -0
  1338. package/packages/agentic-jujutsu/node_modules/strip-ansi/index.js +14 -0
  1339. package/packages/agentic-jujutsu/node_modules/strip-ansi/license +9 -0
  1340. package/packages/agentic-jujutsu/node_modules/strip-ansi/package.json +59 -0
  1341. package/packages/agentic-jujutsu/node_modules/strip-ansi/readme.md +37 -0
  1342. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/index.d.ts +17 -0
  1343. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/index.js +4 -0
  1344. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/license +9 -0
  1345. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
  1346. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  1347. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
  1348. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  1349. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
  1350. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/package.json +54 -0
  1351. package/packages/agentic-jujutsu/node_modules/strip-ansi-cjs/readme.md +46 -0
  1352. package/packages/agentic-jujutsu/node_modules/strip-json-comments/index.d.ts +36 -0
  1353. package/packages/agentic-jujutsu/node_modules/strip-json-comments/index.js +77 -0
  1354. package/packages/agentic-jujutsu/node_modules/strip-json-comments/license +9 -0
  1355. package/packages/agentic-jujutsu/node_modules/strip-json-comments/package.json +47 -0
  1356. package/packages/agentic-jujutsu/node_modules/strip-json-comments/readme.md +78 -0
  1357. package/packages/agentic-jujutsu/node_modules/supports-color/browser.js +24 -0
  1358. package/packages/agentic-jujutsu/node_modules/supports-color/index.js +152 -0
  1359. package/packages/agentic-jujutsu/node_modules/supports-color/license +9 -0
  1360. package/packages/agentic-jujutsu/node_modules/supports-color/package.json +58 -0
  1361. package/packages/agentic-jujutsu/node_modules/supports-color/readme.md +77 -0
  1362. package/packages/agentic-jujutsu/node_modules/undici-types/LICENSE +21 -0
  1363. package/packages/agentic-jujutsu/node_modules/undici-types/README.md +6 -0
  1364. package/packages/agentic-jujutsu/node_modules/undici-types/agent.d.ts +31 -0
  1365. package/packages/agentic-jujutsu/node_modules/undici-types/api.d.ts +43 -0
  1366. package/packages/agentic-jujutsu/node_modules/undici-types/balanced-pool.d.ts +29 -0
  1367. package/packages/agentic-jujutsu/node_modules/undici-types/cache.d.ts +36 -0
  1368. package/packages/agentic-jujutsu/node_modules/undici-types/client.d.ts +108 -0
  1369. package/packages/agentic-jujutsu/node_modules/undici-types/connector.d.ts +34 -0
  1370. package/packages/agentic-jujutsu/node_modules/undici-types/content-type.d.ts +21 -0
  1371. package/packages/agentic-jujutsu/node_modules/undici-types/cookies.d.ts +28 -0
  1372. package/packages/agentic-jujutsu/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  1373. package/packages/agentic-jujutsu/node_modules/undici-types/dispatcher.d.ts +256 -0
  1374. package/packages/agentic-jujutsu/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  1375. package/packages/agentic-jujutsu/node_modules/undici-types/errors.d.ts +149 -0
  1376. package/packages/agentic-jujutsu/node_modules/undici-types/eventsource.d.ts +61 -0
  1377. package/packages/agentic-jujutsu/node_modules/undici-types/fetch.d.ts +209 -0
  1378. package/packages/agentic-jujutsu/node_modules/undici-types/file.d.ts +39 -0
  1379. package/packages/agentic-jujutsu/node_modules/undici-types/filereader.d.ts +54 -0
  1380. package/packages/agentic-jujutsu/node_modules/undici-types/formdata.d.ts +108 -0
  1381. package/packages/agentic-jujutsu/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1382. package/packages/agentic-jujutsu/node_modules/undici-types/global-origin.d.ts +7 -0
  1383. package/packages/agentic-jujutsu/node_modules/undici-types/handlers.d.ts +15 -0
  1384. package/packages/agentic-jujutsu/node_modules/undici-types/header.d.ts +4 -0
  1385. package/packages/agentic-jujutsu/node_modules/undici-types/index.d.ts +71 -0
  1386. package/packages/agentic-jujutsu/node_modules/undici-types/interceptors.d.ts +17 -0
  1387. package/packages/agentic-jujutsu/node_modules/undici-types/mock-agent.d.ts +50 -0
  1388. package/packages/agentic-jujutsu/node_modules/undici-types/mock-client.d.ts +25 -0
  1389. package/packages/agentic-jujutsu/node_modules/undici-types/mock-errors.d.ts +12 -0
  1390. package/packages/agentic-jujutsu/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  1391. package/packages/agentic-jujutsu/node_modules/undici-types/mock-pool.d.ts +25 -0
  1392. package/packages/agentic-jujutsu/node_modules/undici-types/package.json +55 -0
  1393. package/packages/agentic-jujutsu/node_modules/undici-types/patch.d.ts +33 -0
  1394. package/packages/agentic-jujutsu/node_modules/undici-types/pool-stats.d.ts +19 -0
  1395. package/packages/agentic-jujutsu/node_modules/undici-types/pool.d.ts +39 -0
  1396. package/packages/agentic-jujutsu/node_modules/undici-types/proxy-agent.d.ts +28 -0
  1397. package/packages/agentic-jujutsu/node_modules/undici-types/readable.d.ts +65 -0
  1398. package/packages/agentic-jujutsu/node_modules/undici-types/retry-agent.d.ts +8 -0
  1399. package/packages/agentic-jujutsu/node_modules/undici-types/retry-handler.d.ts +116 -0
  1400. package/packages/agentic-jujutsu/node_modules/undici-types/util.d.ts +18 -0
  1401. package/packages/agentic-jujutsu/node_modules/undici-types/webidl.d.ts +228 -0
  1402. package/packages/agentic-jujutsu/node_modules/undici-types/websocket.d.ts +150 -0
  1403. package/packages/agentic-jujutsu/node_modules/which/CHANGELOG.md +166 -0
  1404. package/packages/agentic-jujutsu/node_modules/which/LICENSE +15 -0
  1405. package/packages/agentic-jujutsu/node_modules/which/README.md +54 -0
  1406. package/packages/agentic-jujutsu/node_modules/which/bin/node-which +52 -0
  1407. package/packages/agentic-jujutsu/node_modules/which/package.json +43 -0
  1408. package/packages/agentic-jujutsu/node_modules/which/which.js +125 -0
  1409. package/packages/agentic-jujutsu/node_modules/workerpool/HISTORY.md +444 -0
  1410. package/packages/agentic-jujutsu/node_modules/workerpool/LICENSE +201 -0
  1411. package/packages/agentic-jujutsu/node_modules/workerpool/README.md +602 -0
  1412. package/packages/agentic-jujutsu/node_modules/workerpool/dist/worker.js +698 -0
  1413. package/packages/agentic-jujutsu/node_modules/workerpool/dist/worker.js.map +1 -0
  1414. package/packages/agentic-jujutsu/node_modules/workerpool/dist/worker.min.js +2 -0
  1415. package/packages/agentic-jujutsu/node_modules/workerpool/dist/worker.min.js.map +1 -0
  1416. package/packages/agentic-jujutsu/node_modules/workerpool/dist/workerpool.js +2087 -0
  1417. package/packages/agentic-jujutsu/node_modules/workerpool/dist/workerpool.js.map +1 -0
  1418. package/packages/agentic-jujutsu/node_modules/workerpool/dist/workerpool.min.js +3 -0
  1419. package/packages/agentic-jujutsu/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +24 -0
  1420. package/packages/agentic-jujutsu/node_modules/workerpool/dist/workerpool.min.js.map +1 -0
  1421. package/packages/agentic-jujutsu/node_modules/workerpool/package.json +58 -0
  1422. package/packages/agentic-jujutsu/node_modules/workerpool/src/Pool.js +476 -0
  1423. package/packages/agentic-jujutsu/node_modules/workerpool/src/Promise.js +315 -0
  1424. package/packages/agentic-jujutsu/node_modules/workerpool/src/WorkerHandler.js +639 -0
  1425. package/packages/agentic-jujutsu/node_modules/workerpool/src/debug-port-allocator.js +28 -0
  1426. package/packages/agentic-jujutsu/node_modules/workerpool/src/environment.js +30 -0
  1427. package/packages/agentic-jujutsu/node_modules/workerpool/src/generated/embeddedWorker.js +6 -0
  1428. package/packages/agentic-jujutsu/node_modules/workerpool/src/header.js +24 -0
  1429. package/packages/agentic-jujutsu/node_modules/workerpool/src/index.js +60 -0
  1430. package/packages/agentic-jujutsu/node_modules/workerpool/src/requireFoolWebpack.js +8 -0
  1431. package/packages/agentic-jujutsu/node_modules/workerpool/src/transfer.js +12 -0
  1432. package/packages/agentic-jujutsu/node_modules/workerpool/src/types.js +47 -0
  1433. package/packages/agentic-jujutsu/node_modules/workerpool/src/validateOptions.js +51 -0
  1434. package/packages/agentic-jujutsu/node_modules/workerpool/src/worker.js +386 -0
  1435. package/packages/agentic-jujutsu/node_modules/workerpool/types/Pool.d.ts +128 -0
  1436. package/packages/agentic-jujutsu/node_modules/workerpool/types/Promise.d.ts +136 -0
  1437. package/packages/agentic-jujutsu/node_modules/workerpool/types/WorkerHandler.d.ts +88 -0
  1438. package/packages/agentic-jujutsu/node_modules/workerpool/types/debug-port-allocator.d.ts +8 -0
  1439. package/packages/agentic-jujutsu/node_modules/workerpool/types/environment.d.ts +4 -0
  1440. package/packages/agentic-jujutsu/node_modules/workerpool/types/generated/embeddedWorker.d.ts +2 -0
  1441. package/packages/agentic-jujutsu/node_modules/workerpool/types/index.d.ts +43 -0
  1442. package/packages/agentic-jujutsu/node_modules/workerpool/types/test.ts +11 -0
  1443. package/packages/agentic-jujutsu/node_modules/workerpool/types/transfer.d.ts +19 -0
  1444. package/packages/agentic-jujutsu/node_modules/workerpool/types/types.d.ts +101 -0
  1445. package/packages/agentic-jujutsu/node_modules/workerpool/types/validateOptions.d.ts +4 -0
  1446. package/packages/agentic-jujutsu/node_modules/workerpool/types/worker.d.ts +8 -0
  1447. package/packages/agentic-jujutsu/node_modules/wrap-ansi/index.d.ts +41 -0
  1448. package/packages/agentic-jujutsu/node_modules/wrap-ansi/index.js +214 -0
  1449. package/packages/agentic-jujutsu/node_modules/wrap-ansi/license +9 -0
  1450. package/packages/agentic-jujutsu/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +236 -0
  1451. package/packages/agentic-jujutsu/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +223 -0
  1452. package/packages/agentic-jujutsu/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
  1453. package/packages/agentic-jujutsu/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +54 -0
  1454. package/packages/agentic-jujutsu/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +173 -0
  1455. package/packages/agentic-jujutsu/node_modules/wrap-ansi/package.json +69 -0
  1456. package/packages/agentic-jujutsu/node_modules/wrap-ansi/readme.md +91 -0
  1457. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/index.js +216 -0
  1458. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/license +9 -0
  1459. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
  1460. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  1461. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
  1462. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  1463. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
  1464. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1465. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/README.md +73 -0
  1466. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
  1467. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
  1468. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.d.ts +23 -0
  1469. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
  1470. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
  1471. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
  1472. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/string-width/index.d.ts +29 -0
  1473. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
  1474. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
  1475. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
  1476. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/string-width/readme.md +50 -0
  1477. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +17 -0
  1478. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
  1479. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
  1480. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
  1481. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +46 -0
  1482. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/package.json +62 -0
  1483. package/packages/agentic-jujutsu/node_modules/wrap-ansi-cjs/readme.md +91 -0
  1484. package/packages/agentic-jujutsu/node_modules/y18n/CHANGELOG.md +100 -0
  1485. package/packages/agentic-jujutsu/node_modules/y18n/LICENSE +13 -0
  1486. package/packages/agentic-jujutsu/node_modules/y18n/README.md +127 -0
  1487. package/packages/agentic-jujutsu/node_modules/y18n/build/index.cjs +203 -0
  1488. package/packages/agentic-jujutsu/node_modules/y18n/build/lib/cjs.js +6 -0
  1489. package/packages/agentic-jujutsu/node_modules/y18n/build/lib/index.js +174 -0
  1490. package/packages/agentic-jujutsu/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  1491. package/packages/agentic-jujutsu/node_modules/y18n/index.mjs +8 -0
  1492. package/packages/agentic-jujutsu/node_modules/y18n/package.json +70 -0
  1493. package/packages/agentic-jujutsu/node_modules/yargs/LICENSE +21 -0
  1494. package/packages/agentic-jujutsu/node_modules/yargs/README.md +204 -0
  1495. package/packages/agentic-jujutsu/node_modules/yargs/browser.d.ts +5 -0
  1496. package/packages/agentic-jujutsu/node_modules/yargs/browser.mjs +7 -0
  1497. package/packages/agentic-jujutsu/node_modules/yargs/build/index.cjs +1 -0
  1498. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/argsert.js +62 -0
  1499. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/command.js +449 -0
  1500. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/completion-templates.js +48 -0
  1501. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/completion.js +243 -0
  1502. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/middleware.js +88 -0
  1503. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/parse-command.js +32 -0
  1504. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  1505. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  1506. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/usage.js +584 -0
  1507. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  1508. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  1509. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
  1510. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  1511. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  1512. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  1513. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  1514. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  1515. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/validation.js +305 -0
  1516. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/yargs-factory.js +1512 -0
  1517. package/packages/agentic-jujutsu/node_modules/yargs/build/lib/yerror.js +9 -0
  1518. package/packages/agentic-jujutsu/node_modules/yargs/helpers/helpers.mjs +10 -0
  1519. package/packages/agentic-jujutsu/node_modules/yargs/helpers/index.js +14 -0
  1520. package/packages/agentic-jujutsu/node_modules/yargs/helpers/package.json +3 -0
  1521. package/packages/agentic-jujutsu/node_modules/yargs/index.cjs +53 -0
  1522. package/packages/agentic-jujutsu/node_modules/yargs/index.mjs +8 -0
  1523. package/packages/agentic-jujutsu/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
  1524. package/packages/agentic-jujutsu/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
  1525. package/packages/agentic-jujutsu/node_modules/yargs/locales/be.json +46 -0
  1526. package/packages/agentic-jujutsu/node_modules/yargs/locales/cs.json +51 -0
  1527. package/packages/agentic-jujutsu/node_modules/yargs/locales/de.json +46 -0
  1528. package/packages/agentic-jujutsu/node_modules/yargs/locales/en.json +55 -0
  1529. package/packages/agentic-jujutsu/node_modules/yargs/locales/es.json +46 -0
  1530. package/packages/agentic-jujutsu/node_modules/yargs/locales/fi.json +49 -0
  1531. package/packages/agentic-jujutsu/node_modules/yargs/locales/fr.json +53 -0
  1532. package/packages/agentic-jujutsu/node_modules/yargs/locales/hi.json +49 -0
  1533. package/packages/agentic-jujutsu/node_modules/yargs/locales/hu.json +46 -0
  1534. package/packages/agentic-jujutsu/node_modules/yargs/locales/id.json +50 -0
  1535. package/packages/agentic-jujutsu/node_modules/yargs/locales/it.json +46 -0
  1536. package/packages/agentic-jujutsu/node_modules/yargs/locales/ja.json +51 -0
  1537. package/packages/agentic-jujutsu/node_modules/yargs/locales/ko.json +49 -0
  1538. package/packages/agentic-jujutsu/node_modules/yargs/locales/nb.json +44 -0
  1539. package/packages/agentic-jujutsu/node_modules/yargs/locales/nl.json +49 -0
  1540. package/packages/agentic-jujutsu/node_modules/yargs/locales/nn.json +44 -0
  1541. package/packages/agentic-jujutsu/node_modules/yargs/locales/pirate.json +13 -0
  1542. package/packages/agentic-jujutsu/node_modules/yargs/locales/pl.json +49 -0
  1543. package/packages/agentic-jujutsu/node_modules/yargs/locales/pt.json +45 -0
  1544. package/packages/agentic-jujutsu/node_modules/yargs/locales/pt_BR.json +48 -0
  1545. package/packages/agentic-jujutsu/node_modules/yargs/locales/ru.json +51 -0
  1546. package/packages/agentic-jujutsu/node_modules/yargs/locales/th.json +46 -0
  1547. package/packages/agentic-jujutsu/node_modules/yargs/locales/tr.json +48 -0
  1548. package/packages/agentic-jujutsu/node_modules/yargs/locales/uk_UA.json +51 -0
  1549. package/packages/agentic-jujutsu/node_modules/yargs/locales/uz.json +52 -0
  1550. package/packages/agentic-jujutsu/node_modules/yargs/locales/zh_CN.json +48 -0
  1551. package/packages/agentic-jujutsu/node_modules/yargs/locales/zh_TW.json +51 -0
  1552. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/ansi-regex/index.d.ts +37 -0
  1553. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/ansi-regex/index.js +10 -0
  1554. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/ansi-regex/license +9 -0
  1555. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/ansi-regex/package.json +55 -0
  1556. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/ansi-regex/readme.md +78 -0
  1557. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1558. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/README.md +73 -0
  1559. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/es2015/index.js +6 -0
  1560. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/es2015/text.js +6 -0
  1561. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/index.d.ts +23 -0
  1562. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/index.js +6 -0
  1563. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/package.json +50 -0
  1564. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/emoji-regex/text.js +6 -0
  1565. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/string-width/index.d.ts +29 -0
  1566. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/string-width/index.js +47 -0
  1567. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/string-width/license +9 -0
  1568. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/string-width/package.json +56 -0
  1569. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/string-width/readme.md +50 -0
  1570. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/strip-ansi/index.d.ts +17 -0
  1571. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/strip-ansi/index.js +4 -0
  1572. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/strip-ansi/license +9 -0
  1573. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/strip-ansi/package.json +54 -0
  1574. package/packages/agentic-jujutsu/node_modules/yargs/node_modules/strip-ansi/readme.md +46 -0
  1575. package/packages/agentic-jujutsu/node_modules/yargs/package.json +123 -0
  1576. package/packages/agentic-jujutsu/node_modules/yargs/yargs +9 -0
  1577. package/packages/agentic-jujutsu/node_modules/yargs/yargs.mjs +10 -0
  1578. package/packages/agentic-jujutsu/node_modules/yargs-parser/CHANGELOG.md +308 -0
  1579. package/packages/agentic-jujutsu/node_modules/yargs-parser/LICENSE.txt +14 -0
  1580. package/packages/agentic-jujutsu/node_modules/yargs-parser/README.md +518 -0
  1581. package/packages/agentic-jujutsu/node_modules/yargs-parser/browser.js +29 -0
  1582. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/index.cjs +1050 -0
  1583. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/lib/index.js +62 -0
  1584. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  1585. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  1586. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  1587. package/packages/agentic-jujutsu/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
  1588. package/packages/agentic-jujutsu/node_modules/yargs-parser/package.json +92 -0
  1589. package/packages/agentic-jujutsu/node_modules/yargs-unparser/CHANGELOG.md +82 -0
  1590. package/packages/agentic-jujutsu/node_modules/yargs-unparser/LICENSE +21 -0
  1591. package/packages/agentic-jujutsu/node_modules/yargs-unparser/README.md +86 -0
  1592. package/packages/agentic-jujutsu/node_modules/yargs-unparser/index.js +166 -0
  1593. package/packages/agentic-jujutsu/node_modules/yargs-unparser/package.json +49 -0
  1594. package/packages/agentic-jujutsu/node_modules/yocto-queue/index.d.ts +56 -0
  1595. package/packages/agentic-jujutsu/node_modules/yocto-queue/index.js +68 -0
  1596. package/packages/agentic-jujutsu/node_modules/yocto-queue/license +9 -0
  1597. package/packages/agentic-jujutsu/node_modules/yocto-queue/package.json +43 -0
  1598. package/packages/agentic-jujutsu/node_modules/yocto-queue/readme.md +64 -0
  1599. package/packages/agentic-jujutsu/package-lock.json +1163 -0
  1600. package/packages/agentic-jujutsu/package.json +108 -0
  1601. package/packages/agentic-jujutsu/pkg/bundler/LICENSE +21 -0
  1602. package/packages/agentic-jujutsu/pkg/bundler/README.md +361 -0
  1603. package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu.d.ts +554 -0
  1604. package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu.js +5 -0
  1605. package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.js +1821 -0
  1606. package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.wasm +0 -0
  1607. package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.wasm.d.ts +113 -0
  1608. package/packages/agentic-jujutsu/pkg/bundler/package.json +34 -0
  1609. package/packages/agentic-jujutsu/pkg/deno/LICENSE +21 -0
  1610. package/packages/agentic-jujutsu/pkg/deno/README.md +361 -0
  1611. package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu.d.ts +554 -0
  1612. package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu.js +1802 -0
  1613. package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu_bg.wasm +0 -0
  1614. package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu_bg.wasm.d.ts +113 -0
  1615. package/packages/agentic-jujutsu/pkg/node/LICENSE +21 -0
  1616. package/packages/agentic-jujutsu/pkg/node/README.md +361 -0
  1617. package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu.d.ts +554 -0
  1618. package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu.js +1830 -0
  1619. package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu_bg.wasm +0 -0
  1620. package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu_bg.wasm.d.ts +113 -0
  1621. package/packages/agentic-jujutsu/pkg/node/package.json +28 -0
  1622. package/packages/agentic-jujutsu/pkg/web/LICENSE +21 -0
  1623. package/packages/agentic-jujutsu/pkg/web/README.md +361 -0
  1624. package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu.d.ts +691 -0
  1625. package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu.js +1913 -0
  1626. package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu_bg.wasm +0 -0
  1627. package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu_bg.wasm.d.ts +113 -0
  1628. package/packages/agentic-jujutsu/pkg/web/package.json +32 -0
  1629. package/packages/agentic-jujutsu/quantum-bridge.d.ts +115 -0
  1630. package/packages/agentic-jujutsu/scripts/agentic-flow-integration.js +178 -0
  1631. package/packages/agentic-jujutsu/scripts/analyze-size.sh +23 -0
  1632. package/packages/agentic-jujutsu/scripts/coverage.sh +57 -0
  1633. package/packages/agentic-jujutsu/scripts/docker-test.sh +56 -0
  1634. package/packages/agentic-jujutsu/scripts/final-validation.sh +85 -0
  1635. package/packages/agentic-jujutsu/scripts/install-jj.js +197 -0
  1636. package/packages/agentic-jujutsu/scripts/mcp-server.js +98 -0
  1637. package/packages/agentic-jujutsu/scripts/test-all.sh +68 -0
  1638. package/packages/agentic-jujutsu/scripts/verify-build.sh +32 -0
  1639. package/packages/agentic-jujutsu/scripts/verify-napi-config.sh +122 -0
  1640. package/packages/agentic-jujutsu/scripts/wasm-pack-build.sh +76 -0
  1641. package/packages/agentic-jujutsu/test-agentdb-cli.js +119 -0
  1642. package/packages/agentic-jujutsu/test-agentdb.js +105 -0
  1643. package/packages/agentic-jujutsu/test-failures.js +53 -0
  1644. package/packages/agentic-jujutsu/test-napi.js +40 -0
  1645. package/packages/agentic-jujutsu/test-quick.js +61 -0
  1646. package/packages/agentic-jujutsu/test-repo/.claude-flow/metrics/agent-metrics.json +1 -0
  1647. package/packages/agentic-jujutsu/test-repo/.claude-flow/metrics/performance.json +87 -0
  1648. package/packages/agentic-jujutsu/test-repo/.claude-flow/metrics/task-metrics.json +10 -0
  1649. package/packages/agentic-jujutsu/test-repo/test-file.txt +1 -0
  1650. package/packages/agentic-jujutsu/typescript/hooks-integration.ts +370 -0
  1651. package/packages/agentic-jujutsu/typescript/index.d.ts +415 -0
  1652. package/reasoningbank/README.md +217 -0
  1653. package/dist/agentdb/index.js +0 -32
  1654. package/dist/agentdb/tests/frontier-features.test.js +0 -665
  1655. package/dist/agents/claudeAgent.js +0 -317
  1656. package/dist/agents/claudeAgentDirect.js +0 -170
  1657. package/dist/agents/claudeFlowAgent.js +0 -115
  1658. package/dist/agents/codeReviewAgent.js +0 -34
  1659. package/dist/agents/dataAgent.js +0 -34
  1660. package/dist/agents/directApiAgent.js +0 -382
  1661. package/dist/agents/webResearchAgent.js +0 -35
  1662. package/dist/cli/agent-manager.js +0 -451
  1663. package/dist/cli/claude-code-wrapper.js +0 -350
  1664. package/dist/cli/config-wizard.js +0 -368
  1665. package/dist/cli/federation-cli.d.ts +0 -53
  1666. package/dist/cli/federation-cli.js +0 -431
  1667. package/dist/cli/mcp-manager.js +0 -474
  1668. package/dist/cli/mcp.js +0 -135
  1669. package/dist/cli-proxy.js +0 -1174
  1670. package/dist/cli-standalone-proxy.js +0 -197
  1671. package/dist/config/claudeFlow.js +0 -67
  1672. package/dist/config/quic.js +0 -206
  1673. package/dist/config/tools.js +0 -33
  1674. package/dist/core/long-running-agent.js +0 -219
  1675. package/dist/core/provider-manager.js +0 -434
  1676. package/dist/examples/multi-agent-orchestration.js +0 -45
  1677. package/dist/examples/use-goal-planner.js +0 -52
  1678. package/dist/examples/use-provider-fallback.js +0 -176
  1679. package/dist/federation/EphemeralAgent.js +0 -258
  1680. package/dist/federation/FederationHub.js +0 -283
  1681. package/dist/federation/FederationHubClient.js +0 -212
  1682. package/dist/federation/FederationHubServer.js +0 -436
  1683. package/dist/federation/SecurityManager.js +0 -191
  1684. package/dist/federation/debug/agent-debug-stream.js +0 -474
  1685. package/dist/federation/debug/debug-stream.js +0 -419
  1686. package/dist/federation/index.js +0 -12
  1687. package/dist/federation/integrations/realtime-federation.js +0 -404
  1688. package/dist/federation/integrations/supabase-adapter-debug.js +0 -400
  1689. package/dist/federation/integrations/supabase-adapter.js +0 -258
  1690. package/dist/health.js +0 -111
  1691. package/dist/hooks/parallel-validation.js +0 -166
  1692. package/dist/hooks/swarm-learning-optimizer.js +0 -350
  1693. package/dist/index.js +0 -195
  1694. package/dist/mcp/claudeFlowSdkServer.js +0 -202
  1695. package/dist/mcp/fastmcp/servers/claude-flow-sdk.js +0 -198
  1696. package/dist/mcp/fastmcp/servers/http-sse.js +0 -381
  1697. package/dist/mcp/fastmcp/servers/http-streaming-updated.js +0 -421
  1698. package/dist/mcp/fastmcp/servers/poc-stdio.js +0 -82
  1699. package/dist/mcp/fastmcp/servers/stdio-full.js +0 -421
  1700. package/dist/mcp/fastmcp/tools/agent/add-agent.js +0 -107
  1701. package/dist/mcp/fastmcp/tools/agent/add-command.js +0 -117
  1702. package/dist/mcp/fastmcp/tools/agent/execute.js +0 -56
  1703. package/dist/mcp/fastmcp/tools/agent/list.js +0 -82
  1704. package/dist/mcp/fastmcp/tools/agent/parallel.js +0 -63
  1705. package/dist/mcp/fastmcp/tools/swarm/init.js +0 -41
  1706. package/dist/mcp/fastmcp/tools/swarm/orchestrate.js +0 -47
  1707. package/dist/mcp/fastmcp/tools/swarm/spawn.js +0 -40
  1708. package/dist/mcp/fastmcp/types/index.js +0 -2
  1709. package/dist/mcp/standalone-stdio.js +0 -750
  1710. package/dist/memory/SharedMemoryPool.js +0 -210
  1711. package/dist/memory/index.js +0 -6
  1712. package/dist/proxy/adaptive-proxy.js +0 -224
  1713. package/dist/proxy/anthropic-to-gemini.js +0 -445
  1714. package/dist/proxy/anthropic-to-onnx.js +0 -213
  1715. package/dist/proxy/anthropic-to-openrouter.js +0 -618
  1716. package/dist/proxy/anthropic-to-requesty.js +0 -707
  1717. package/dist/proxy/http2-proxy-optimized.js +0 -191
  1718. package/dist/proxy/http2-proxy.js +0 -381
  1719. package/dist/proxy/http3-proxy.js +0 -51
  1720. package/dist/proxy/provider-instructions.js +0 -346
  1721. package/dist/proxy/quic-proxy.js +0 -227
  1722. package/dist/proxy/tool-emulation.js +0 -365
  1723. package/dist/proxy/websocket-proxy.js +0 -406
  1724. package/dist/reasoningbank/AdvancedMemory.js +0 -239
  1725. package/dist/reasoningbank/HybridBackend.js +0 -305
  1726. package/dist/reasoningbank/backend-selector.js +0 -145
  1727. package/dist/reasoningbank/benchmark.js +0 -333
  1728. package/dist/reasoningbank/config/reasoningbank-types.js +0 -4
  1729. package/dist/reasoningbank/config/reasoningbank-types.ts +0 -57
  1730. package/dist/reasoningbank/core/consolidate.js +0 -139
  1731. package/dist/reasoningbank/core/distill.js +0 -168
  1732. package/dist/reasoningbank/core/judge.js +0 -137
  1733. package/dist/reasoningbank/core/matts.js +0 -236
  1734. package/dist/reasoningbank/core/retrieve.js +0 -86
  1735. package/dist/reasoningbank/db/queries.js +0 -339
  1736. package/dist/reasoningbank/db/schema.js +0 -4
  1737. package/dist/reasoningbank/demo-comparison.js +0 -501
  1738. package/dist/reasoningbank/hooks/post-task.js +0 -109
  1739. package/dist/reasoningbank/hooks/pre-task.js +0 -68
  1740. package/dist/reasoningbank/index-new.js +0 -87
  1741. package/dist/reasoningbank/index.js +0 -89
  1742. package/dist/reasoningbank/test-integration.js +0 -90
  1743. package/dist/reasoningbank/test-retrieval.js +0 -176
  1744. package/dist/reasoningbank/test-validation.js +0 -172
  1745. package/dist/reasoningbank/types/index.js +0 -5
  1746. package/dist/reasoningbank/utils/config.js +0 -169
  1747. package/dist/reasoningbank/utils/embeddings.js +0 -155
  1748. package/dist/reasoningbank/utils/mmr.js +0 -64
  1749. package/dist/reasoningbank/utils/pii-scrubber.js +0 -98
  1750. package/dist/reasoningbank/wasm-adapter.js +0 -124
  1751. package/dist/router/model-mapping.js +0 -131
  1752. package/dist/router/providers/anthropic.js +0 -97
  1753. package/dist/router/providers/gemini.js +0 -102
  1754. package/dist/router/providers/onnx-local-optimized.js +0 -167
  1755. package/dist/router/providers/onnx-local.js +0 -294
  1756. package/dist/router/providers/onnx-phi4.js +0 -190
  1757. package/dist/router/providers/onnx.js +0 -264
  1758. package/dist/router/providers/openrouter.js +0 -245
  1759. package/dist/router/router.js +0 -349
  1760. package/dist/router/test-integration.js +0 -140
  1761. package/dist/router/test-onnx-benchmark.js +0 -145
  1762. package/dist/router/test-onnx-integration.js +0 -128
  1763. package/dist/router/test-onnx-local.js +0 -37
  1764. package/dist/router/test-onnx.js +0 -148
  1765. package/dist/router/test-openrouter.js +0 -121
  1766. package/dist/router/test-phi4.js +0 -137
  1767. package/dist/router/types.js +0 -2
  1768. package/dist/swarm/index.js +0 -133
  1769. package/dist/swarm/quic-coordinator.js +0 -460
  1770. package/dist/swarm/transport-router.js +0 -374
  1771. package/dist/transport/index.js +0 -2
  1772. package/dist/transport/quic-handshake.js +0 -198
  1773. package/dist/transport/quic.js +0 -453
  1774. package/dist/utils/agentBoosterPreprocessor.js +0 -270
  1775. package/dist/utils/agentLoader.js +0 -161
  1776. package/dist/utils/agentdb-runtime-patch.js +0 -173
  1777. package/dist/utils/auth.js +0 -52
  1778. package/dist/utils/cli.js +0 -343
  1779. package/dist/utils/compression-middleware.js +0 -149
  1780. package/dist/utils/connection-pool.js +0 -184
  1781. package/dist/utils/logger.js +0 -57
  1782. package/dist/utils/math.js +0 -13
  1783. package/dist/utils/mcpCommands.js +0 -214
  1784. package/dist/utils/model-downloader.js +0 -182
  1785. package/dist/utils/modelCapabilities.js +0 -276
  1786. package/dist/utils/modelOptimizer.js +0 -414
  1787. package/dist/utils/rate-limiter.js +0 -48
  1788. package/dist/utils/reasoningbankCommands.js +0 -204
  1789. package/dist/utils/response-cache.js +0 -211
  1790. package/dist/utils/retry.js +0 -54
  1791. package/dist/utils/streaming-optimizer.js +0 -141
  1792. package/docs/PHASE2-IMPLEMENTATION-SUMMARY.md +0 -275
  1793. package/docs/PHASE2-PHASE3-COMPLETE-SUMMARY.md +0 -453
  1794. package/docs/PHASE3-IMPLEMENTATION-SUMMARY.md +0 -357
  1795. package/validation/docker/Dockerfile.reasoningbank-local +0 -24
  1796. package/validation/docker/Dockerfile.reasoningbank-test +0 -21
  1797. package/validation/docker/README.md +0 -234
  1798. package/validation/docker/docker-compose.yml +0 -29
  1799. package/validation/docker/test-reasoningbank-npx.mjs +0 -442
  1800. package/validation/docker-e2e-validation.sh +0 -212
  1801. package/validation/docker-npm-validation.sh +0 -170
  1802. package/validation/docker-quic-test.sh +0 -42
  1803. package/validation/docker-quic-validation.sh +0 -60
  1804. package/validation/quic-deep-validation.ts +0 -304
  1805. package/validation/simple-npm-validation.sh +0 -131
  1806. package/validation/test-gemini-exclusiveMinimum-fix.ts +0 -142
  1807. package/validation/test-gemini-models.ts +0 -200
  1808. package/validation/test-provider-fallback.ts +0 -285
  1809. package/validation/test-quic-integration.ts +0 -243
  1810. package/validation/test-quic-wasm.ts +0 -94
  1811. package/validation/test-regression.mjs +0 -246
  1812. package/validation/test-wasm-e2e.ts +0 -354
  1813. package/validation/test-wasm-integration.ts +0 -99
  1814. package/validation/validate-v1.10.0-docker.sh +0 -296
  1815. package/wasm/quic/agentic_flow_quic.d.ts +0 -37
  1816. package/wasm/quic/agentic_flow_quic_bg.wasm.d.ts +0 -19
  1817. package/wasm/reasoningbank/reasoningbank_wasm.d.ts +0 -41
  1818. package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm.d.ts +0 -20
  1819. /package/{.claude → agentic-flow/.claude}/agents/MIGRATION_SUMMARY.md +0 -0
  1820. /package/{.claude → agentic-flow/.claude}/agents/README.md +0 -0
  1821. /package/{.claude → agentic-flow/.claude}/agents/analysis/code-analyzer.md +0 -0
  1822. /package/{.claude → agentic-flow/.claude}/agents/analysis/code-review/analyze-code-quality.md +0 -0
  1823. /package/{.claude → agentic-flow/.claude}/agents/architecture/system-design/arch-system-design.md +0 -0
  1824. /package/{.claude → agentic-flow/.claude}/agents/base-template-generator.md +0 -0
  1825. /package/{.claude → agentic-flow/.claude}/agents/consensus/README.md +0 -0
  1826. /package/{.claude → agentic-flow/.claude}/agents/consensus/byzantine-coordinator.md +0 -0
  1827. /package/{.claude → agentic-flow/.claude}/agents/consensus/crdt-synchronizer.md +0 -0
  1828. /package/{.claude → agentic-flow/.claude}/agents/consensus/gossip-coordinator.md +0 -0
  1829. /package/{.claude → agentic-flow/.claude}/agents/consensus/performance-benchmarker.md +0 -0
  1830. /package/{.claude → agentic-flow/.claude}/agents/consensus/quorum-manager.md +0 -0
  1831. /package/{.claude → agentic-flow/.claude}/agents/consensus/raft-manager.md +0 -0
  1832. /package/{.claude → agentic-flow/.claude}/agents/consensus/security-manager.md +0 -0
  1833. /package/{.claude → agentic-flow/.claude}/agents/core/coder.md +0 -0
  1834. /package/{.claude → agentic-flow/.claude}/agents/core/planner.md +0 -0
  1835. /package/{.claude → agentic-flow/.claude}/agents/core/researcher.md +0 -0
  1836. /package/{.claude → agentic-flow/.claude}/agents/core/reviewer.md +0 -0
  1837. /package/{.claude → agentic-flow/.claude}/agents/core/tester.md +0 -0
  1838. /package/{.claude → agentic-flow/.claude}/agents/custom/test-long-runner.md +0 -0
  1839. /package/{.claude → agentic-flow/.claude}/agents/data/ml/data-ml-model.md +0 -0
  1840. /package/{.claude → agentic-flow/.claude}/agents/development/backend/dev-backend-api.md +0 -0
  1841. /package/{.claude → agentic-flow/.claude}/agents/devops/ci-cd/ops-cicd-github.md +0 -0
  1842. /package/{.claude → agentic-flow/.claude}/agents/documentation/api-docs/docs-api-openapi.md +0 -0
  1843. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/app-store.md +0 -0
  1844. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/authentication.md +0 -0
  1845. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/challenges.md +0 -0
  1846. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/neural-network.md +0 -0
  1847. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/payments.md +0 -0
  1848. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/sandbox.md +0 -0
  1849. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/swarm.md +0 -0
  1850. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/user-tools.md +0 -0
  1851. /package/{.claude → agentic-flow/.claude}/agents/flow-nexus/workflow.md +0 -0
  1852. /package/{.claude → agentic-flow/.claude}/agents/github/code-review-swarm.md +0 -0
  1853. /package/{.claude → agentic-flow/.claude}/agents/github/github-modes.md +0 -0
  1854. /package/{.claude → agentic-flow/.claude}/agents/github/issue-tracker.md +0 -0
  1855. /package/{.claude → agentic-flow/.claude}/agents/github/multi-repo-swarm.md +0 -0
  1856. /package/{.claude → agentic-flow/.claude}/agents/github/pr-manager.md +0 -0
  1857. /package/{.claude → agentic-flow/.claude}/agents/github/project-board-sync.md +0 -0
  1858. /package/{.claude → agentic-flow/.claude}/agents/github/release-manager.md +0 -0
  1859. /package/{.claude → agentic-flow/.claude}/agents/github/release-swarm.md +0 -0
  1860. /package/{.claude → agentic-flow/.claude}/agents/github/repo-architect.md +0 -0
  1861. /package/{.claude → agentic-flow/.claude}/agents/github/swarm-issue.md +0 -0
  1862. /package/{.claude → agentic-flow/.claude}/agents/github/swarm-pr.md +0 -0
  1863. /package/{.claude → agentic-flow/.claude}/agents/github/sync-coordinator.md +0 -0
  1864. /package/{.claude → agentic-flow/.claude}/agents/github/workflow-automation.md +0 -0
  1865. /package/{.claude → agentic-flow/.claude}/agents/goal/agent.md +0 -0
  1866. /package/{.claude → agentic-flow/.claude}/agents/goal/goal-planner.md +0 -0
  1867. /package/{.claude → agentic-flow/.claude}/agents/optimization/README.md +0 -0
  1868. /package/{.claude → agentic-flow/.claude}/agents/optimization/benchmark-suite.md +0 -0
  1869. /package/{.claude → agentic-flow/.claude}/agents/optimization/load-balancer.md +0 -0
  1870. /package/{.claude → agentic-flow/.claude}/agents/optimization/performance-monitor.md +0 -0
  1871. /package/{.claude → agentic-flow/.claude}/agents/optimization/resource-allocator.md +0 -0
  1872. /package/{.claude → agentic-flow/.claude}/agents/optimization/topology-optimizer.md +0 -0
  1873. /package/{.claude → agentic-flow/.claude}/agents/payments/agentic-payments.md +0 -0
  1874. /package/{.claude → agentic-flow/.claude}/agents/sparc/architecture.md +0 -0
  1875. /package/{.claude → agentic-flow/.claude}/agents/sparc/pseudocode.md +0 -0
  1876. /package/{.claude → agentic-flow/.claude}/agents/sparc/refinement.md +0 -0
  1877. /package/{.claude → agentic-flow/.claude}/agents/sparc/specification.md +0 -0
  1878. /package/{.claude → agentic-flow/.claude}/agents/specialized/mobile/spec-mobile-react-native.md +0 -0
  1879. /package/{.claude → agentic-flow/.claude}/agents/sublinear/consensus-coordinator.md +0 -0
  1880. /package/{.claude → agentic-flow/.claude}/agents/sublinear/matrix-optimizer.md +0 -0
  1881. /package/{.claude → agentic-flow/.claude}/agents/sublinear/pagerank-analyzer.md +0 -0
  1882. /package/{.claude → agentic-flow/.claude}/agents/sublinear/performance-optimizer.md +0 -0
  1883. /package/{.claude → agentic-flow/.claude}/agents/sublinear/trading-predictor.md +0 -0
  1884. /package/{.claude → agentic-flow/.claude}/agents/swarm/README.md +0 -0
  1885. /package/{.claude → agentic-flow/.claude}/agents/swarm/adaptive-coordinator.md +0 -0
  1886. /package/{.claude → agentic-flow/.claude}/agents/swarm/hierarchical-coordinator.md +0 -0
  1887. /package/{.claude → agentic-flow/.claude}/agents/swarm/mesh-coordinator.md +0 -0
  1888. /package/{.claude → agentic-flow/.claude}/agents/templates/automation-smart-agent.md +0 -0
  1889. /package/{.claude → agentic-flow/.claude}/agents/templates/coordinator-swarm-init.md +0 -0
  1890. /package/{.claude → agentic-flow/.claude}/agents/templates/github-pr-manager.md +0 -0
  1891. /package/{.claude → agentic-flow/.claude}/agents/templates/implementer-sparc-coder.md +0 -0
  1892. /package/{.claude → agentic-flow/.claude}/agents/templates/memory-coordinator.md +0 -0
  1893. /package/{.claude → agentic-flow/.claude}/agents/templates/migration-plan.md +0 -0
  1894. /package/{.claude → agentic-flow/.claude}/agents/templates/orchestrator-task.md +0 -0
  1895. /package/{.claude → agentic-flow/.claude}/agents/templates/performance-analyzer.md +0 -0
  1896. /package/{.claude → agentic-flow/.claude}/agents/templates/sparc-coordinator.md +0 -0
  1897. /package/{.claude → agentic-flow/.claude}/agents/test-neural.md +0 -0
  1898. /package/{.claude → agentic-flow/.claude}/agents/testing/unit/tdd-london-swarm.md +0 -0
  1899. /package/{.claude → agentic-flow/.claude}/agents/testing/validation/production-validator.md +0 -0
  1900. /package/{.claude → agentic-flow/.claude}/answer.md +0 -0
  1901. /package/{.claude → agentic-flow/.claude}/commands/agents/README.md +0 -0
  1902. /package/{.claude → agentic-flow/.claude}/commands/agents/agent-capabilities.md +0 -0
  1903. /package/{.claude → agentic-flow/.claude}/commands/agents/agent-coordination.md +0 -0
  1904. /package/{.claude → agentic-flow/.claude}/commands/agents/agent-spawning.md +0 -0
  1905. /package/{.claude → agentic-flow/.claude}/commands/agents/agent-types.md +0 -0
  1906. /package/{.claude → agentic-flow/.claude}/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -0
  1907. /package/{.claude → agentic-flow/.claude}/commands/analysis/README.md +0 -0
  1908. /package/{.claude → agentic-flow/.claude}/commands/analysis/bottleneck-detect.md +0 -0
  1909. /package/{.claude → agentic-flow/.claude}/commands/analysis/performance-bottlenecks.md +0 -0
  1910. /package/{.claude → agentic-flow/.claude}/commands/analysis/performance-report.md +0 -0
  1911. /package/{.claude → agentic-flow/.claude}/commands/analysis/token-efficiency.md +0 -0
  1912. /package/{.claude → agentic-flow/.claude}/commands/analysis/token-usage.md +0 -0
  1913. /package/{.claude → agentic-flow/.claude}/commands/automation/README.md +0 -0
  1914. /package/{.claude → agentic-flow/.claude}/commands/automation/auto-agent.md +0 -0
  1915. /package/{.claude → agentic-flow/.claude}/commands/automation/self-healing.md +0 -0
  1916. /package/{.claude → agentic-flow/.claude}/commands/automation/session-memory.md +0 -0
  1917. /package/{.claude → agentic-flow/.claude}/commands/automation/smart-agents.md +0 -0
  1918. /package/{.claude → agentic-flow/.claude}/commands/automation/smart-spawn.md +0 -0
  1919. /package/{.claude → agentic-flow/.claude}/commands/automation/workflow-select.md +0 -0
  1920. /package/{.claude → agentic-flow/.claude}/commands/claude-flow-help.md +0 -0
  1921. /package/{.claude → agentic-flow/.claude}/commands/claude-flow-memory.md +0 -0
  1922. /package/{.claude → agentic-flow/.claude}/commands/claude-flow-swarm.md +0 -0
  1923. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/app-store.md +0 -0
  1924. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/challenges.md +0 -0
  1925. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/login-registration.md +0 -0
  1926. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/neural-network.md +0 -0
  1927. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/payments.md +0 -0
  1928. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/sandbox.md +0 -0
  1929. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/swarm.md +0 -0
  1930. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/user-tools.md +0 -0
  1931. /package/{.claude → agentic-flow/.claude}/commands/flow-nexus/workflow.md +0 -0
  1932. /package/{.claude → agentic-flow/.claude}/commands/github/README.md +0 -0
  1933. /package/{.claude → agentic-flow/.claude}/commands/github/code-review-swarm.md +0 -0
  1934. /package/{.claude → agentic-flow/.claude}/commands/github/code-review.md +0 -0
  1935. /package/{.claude → agentic-flow/.claude}/commands/github/github-modes.md +0 -0
  1936. /package/{.claude → agentic-flow/.claude}/commands/github/github-swarm.md +0 -0
  1937. /package/{.claude → agentic-flow/.claude}/commands/github/issue-tracker.md +0 -0
  1938. /package/{.claude → agentic-flow/.claude}/commands/github/issue-triage.md +0 -0
  1939. /package/{.claude → agentic-flow/.claude}/commands/github/multi-repo-swarm.md +0 -0
  1940. /package/{.claude → agentic-flow/.claude}/commands/github/pr-enhance.md +0 -0
  1941. /package/{.claude → agentic-flow/.claude}/commands/github/pr-manager.md +0 -0
  1942. /package/{.claude → agentic-flow/.claude}/commands/github/project-board-sync.md +0 -0
  1943. /package/{.claude → agentic-flow/.claude}/commands/github/release-manager.md +0 -0
  1944. /package/{.claude → agentic-flow/.claude}/commands/github/release-swarm.md +0 -0
  1945. /package/{.claude → agentic-flow/.claude}/commands/github/repo-analyze.md +0 -0
  1946. /package/{.claude → agentic-flow/.claude}/commands/github/repo-architect.md +0 -0
  1947. /package/{.claude → agentic-flow/.claude}/commands/github/swarm-issue.md +0 -0
  1948. /package/{.claude → agentic-flow/.claude}/commands/github/swarm-pr.md +0 -0
  1949. /package/{.claude → agentic-flow/.claude}/commands/github/sync-coordinator.md +0 -0
  1950. /package/{.claude → agentic-flow/.claude}/commands/github/workflow-automation.md +0 -0
  1951. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/README.md +0 -0
  1952. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-consensus.md +0 -0
  1953. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-init.md +0 -0
  1954. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-memory.md +0 -0
  1955. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-metrics.md +0 -0
  1956. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-resume.md +0 -0
  1957. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-sessions.md +0 -0
  1958. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-spawn.md +0 -0
  1959. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-status.md +0 -0
  1960. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-stop.md +0 -0
  1961. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind-wizard.md +0 -0
  1962. /package/{.claude → agentic-flow/.claude}/commands/hive-mind/hive-mind.md +0 -0
  1963. /package/{.claude → agentic-flow/.claude}/commands/hooks/README.md +0 -0
  1964. /package/{.claude → agentic-flow/.claude}/commands/hooks/overview.md +0 -0
  1965. /package/{.claude → agentic-flow/.claude}/commands/hooks/post-edit.md +0 -0
  1966. /package/{.claude → agentic-flow/.claude}/commands/hooks/post-task.md +0 -0
  1967. /package/{.claude → agentic-flow/.claude}/commands/hooks/pre-edit.md +0 -0
  1968. /package/{.claude → agentic-flow/.claude}/commands/hooks/pre-task.md +0 -0
  1969. /package/{.claude → agentic-flow/.claude}/commands/hooks/session-end.md +0 -0
  1970. /package/{.claude → agentic-flow/.claude}/commands/hooks/setup.md +0 -0
  1971. /package/{.claude → agentic-flow/.claude}/commands/monitoring/README.md +0 -0
  1972. /package/{.claude → agentic-flow/.claude}/commands/monitoring/agent-metrics.md +0 -0
  1973. /package/{.claude → agentic-flow/.claude}/commands/monitoring/agents.md +0 -0
  1974. /package/{.claude → agentic-flow/.claude}/commands/monitoring/real-time-view.md +0 -0
  1975. /package/{.claude → agentic-flow/.claude}/commands/monitoring/status.md +0 -0
  1976. /package/{.claude → agentic-flow/.claude}/commands/monitoring/swarm-monitor.md +0 -0
  1977. /package/{.claude → agentic-flow/.claude}/commands/optimization/README.md +0 -0
  1978. /package/{.claude → agentic-flow/.claude}/commands/optimization/auto-topology.md +0 -0
  1979. /package/{.claude → agentic-flow/.claude}/commands/optimization/cache-manage.md +0 -0
  1980. /package/{.claude → agentic-flow/.claude}/commands/optimization/parallel-execute.md +0 -0
  1981. /package/{.claude → agentic-flow/.claude}/commands/optimization/parallel-execution.md +0 -0
  1982. /package/{.claude → agentic-flow/.claude}/commands/optimization/topology-optimize.md +0 -0
  1983. /package/{.claude → agentic-flow/.claude}/commands/pair/README.md +0 -0
  1984. /package/{.claude → agentic-flow/.claude}/commands/pair/commands.md +0 -0
  1985. /package/{.claude → agentic-flow/.claude}/commands/pair/config.md +0 -0
  1986. /package/{.claude → agentic-flow/.claude}/commands/pair/examples.md +0 -0
  1987. /package/{.claude → agentic-flow/.claude}/commands/pair/modes.md +0 -0
  1988. /package/{.claude → agentic-flow/.claude}/commands/pair/session.md +0 -0
  1989. /package/{.claude → agentic-flow/.claude}/commands/pair/start.md +0 -0
  1990. /package/{.claude → agentic-flow/.claude}/commands/sparc/analyzer.md +0 -0
  1991. /package/{.claude → agentic-flow/.claude}/commands/sparc/architect.md +0 -0
  1992. /package/{.claude → agentic-flow/.claude}/commands/sparc/ask.md +0 -0
  1993. /package/{.claude → agentic-flow/.claude}/commands/sparc/batch-executor.md +0 -0
  1994. /package/{.claude → agentic-flow/.claude}/commands/sparc/code.md +0 -0
  1995. /package/{.claude → agentic-flow/.claude}/commands/sparc/coder.md +0 -0
  1996. /package/{.claude → agentic-flow/.claude}/commands/sparc/debug.md +0 -0
  1997. /package/{.claude → agentic-flow/.claude}/commands/sparc/debugger.md +0 -0
  1998. /package/{.claude → agentic-flow/.claude}/commands/sparc/designer.md +0 -0
  1999. /package/{.claude → agentic-flow/.claude}/commands/sparc/devops.md +0 -0
  2000. /package/{.claude → agentic-flow/.claude}/commands/sparc/docs-writer.md +0 -0
  2001. /package/{.claude → agentic-flow/.claude}/commands/sparc/documenter.md +0 -0
  2002. /package/{.claude → agentic-flow/.claude}/commands/sparc/innovator.md +0 -0
  2003. /package/{.claude → agentic-flow/.claude}/commands/sparc/integration.md +0 -0
  2004. /package/{.claude → agentic-flow/.claude}/commands/sparc/mcp.md +0 -0
  2005. /package/{.claude → agentic-flow/.claude}/commands/sparc/memory-manager.md +0 -0
  2006. /package/{.claude → agentic-flow/.claude}/commands/sparc/optimizer.md +0 -0
  2007. /package/{.claude → agentic-flow/.claude}/commands/sparc/orchestrator.md +0 -0
  2008. /package/{.claude → agentic-flow/.claude}/commands/sparc/post-deployment-monitoring-mode.md +0 -0
  2009. /package/{.claude → agentic-flow/.claude}/commands/sparc/refinement-optimization-mode.md +0 -0
  2010. /package/{.claude → agentic-flow/.claude}/commands/sparc/researcher.md +0 -0
  2011. /package/{.claude → agentic-flow/.claude}/commands/sparc/reviewer.md +0 -0
  2012. /package/{.claude → agentic-flow/.claude}/commands/sparc/security-review.md +0 -0
  2013. /package/{.claude → agentic-flow/.claude}/commands/sparc/sparc-modes.md +0 -0
  2014. /package/{.claude → agentic-flow/.claude}/commands/sparc/sparc.md +0 -0
  2015. /package/{.claude → agentic-flow/.claude}/commands/sparc/spec-pseudocode.md +0 -0
  2016. /package/{.claude → agentic-flow/.claude}/commands/sparc/supabase-admin.md +0 -0
  2017. /package/{.claude → agentic-flow/.claude}/commands/sparc/swarm-coordinator.md +0 -0
  2018. /package/{.claude → agentic-flow/.claude}/commands/sparc/tdd.md +0 -0
  2019. /package/{.claude → agentic-flow/.claude}/commands/sparc/tester.md +0 -0
  2020. /package/{.claude → agentic-flow/.claude}/commands/sparc/tutorial.md +0 -0
  2021. /package/{.claude → agentic-flow/.claude}/commands/sparc/workflow-manager.md +0 -0
  2022. /package/{.claude → agentic-flow/.claude}/commands/sparc.md +0 -0
  2023. /package/{.claude → agentic-flow/.claude}/commands/stream-chain/pipeline.md +0 -0
  2024. /package/{.claude → agentic-flow/.claude}/commands/stream-chain/run.md +0 -0
  2025. /package/{.claude → agentic-flow/.claude}/commands/swarm/README.md +0 -0
  2026. /package/{.claude → agentic-flow/.claude}/commands/swarm/analysis.md +0 -0
  2027. /package/{.claude → agentic-flow/.claude}/commands/swarm/development.md +0 -0
  2028. /package/{.claude → agentic-flow/.claude}/commands/swarm/examples.md +0 -0
  2029. /package/{.claude → agentic-flow/.claude}/commands/swarm/maintenance.md +0 -0
  2030. /package/{.claude → agentic-flow/.claude}/commands/swarm/optimization.md +0 -0
  2031. /package/{.claude → agentic-flow/.claude}/commands/swarm/research.md +0 -0
  2032. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-analysis.md +0 -0
  2033. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-background.md +0 -0
  2034. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-init.md +0 -0
  2035. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-modes.md +0 -0
  2036. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-monitor.md +0 -0
  2037. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-spawn.md +0 -0
  2038. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-status.md +0 -0
  2039. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm-strategies.md +0 -0
  2040. /package/{.claude → agentic-flow/.claude}/commands/swarm/swarm.md +0 -0
  2041. /package/{.claude → agentic-flow/.claude}/commands/swarm/testing.md +0 -0
  2042. /package/{.claude → agentic-flow/.claude}/commands/training/README.md +0 -0
  2043. /package/{.claude → agentic-flow/.claude}/commands/training/model-update.md +0 -0
  2044. /package/{.claude → agentic-flow/.claude}/commands/training/neural-patterns.md +0 -0
  2045. /package/{.claude → agentic-flow/.claude}/commands/training/neural-train.md +0 -0
  2046. /package/{.claude → agentic-flow/.claude}/commands/training/pattern-learn.md +0 -0
  2047. /package/{.claude → agentic-flow/.claude}/commands/training/specialization.md +0 -0
  2048. /package/{.claude → agentic-flow/.claude}/commands/truth/start.md +0 -0
  2049. /package/{.claude → agentic-flow/.claude}/commands/verify/check.md +0 -0
  2050. /package/{.claude → agentic-flow/.claude}/commands/verify/start.md +0 -0
  2051. /package/{.claude → agentic-flow/.claude}/commands/workflows/README.md +0 -0
  2052. /package/{.claude → agentic-flow/.claude}/commands/workflows/development.md +0 -0
  2053. /package/{.claude → agentic-flow/.claude}/commands/workflows/research.md +0 -0
  2054. /package/{.claude → agentic-flow/.claude}/commands/workflows/workflow-create.md +0 -0
  2055. /package/{.claude → agentic-flow/.claude}/commands/workflows/workflow-execute.md +0 -0
  2056. /package/{.claude → agentic-flow/.claude}/commands/workflows/workflow-export.md +0 -0
  2057. /package/{.claude → agentic-flow/.claude}/helpers/checkpoint-manager.sh +0 -0
  2058. /package/{.claude → agentic-flow/.claude}/helpers/github-safe.js +0 -0
  2059. /package/{.claude → agentic-flow/.claude}/helpers/github-setup.sh +0 -0
  2060. /package/{.claude → agentic-flow/.claude}/helpers/quick-start.sh +0 -0
  2061. /package/{.claude → agentic-flow/.claude}/helpers/setup-mcp.sh +0 -0
  2062. /package/{.claude → agentic-flow/.claude}/helpers/standard-checkpoint-hooks.sh +0 -0
  2063. /package/{.claude → agentic-flow/.claude}/mcp.json +0 -0
  2064. /package/{.claude → agentic-flow/.claude}/openrouter-models-research.md +0 -0
  2065. /package/{.claude → agentic-flow/.claude}/openrouter-quick-reference.md +0 -0
  2066. /package/{.claude → agentic-flow/.claude}/settings-backup.json +0 -0
  2067. /package/{.claude → agentic-flow/.claude}/settings-optimized.json +0 -0
  2068. /package/{.claude → agentic-flow/.claude}/settings-simple.json +0 -0
  2069. /package/{.claude → agentic-flow/.claude}/settings.json +0 -0
  2070. /package/{.claude → agentic-flow/.claude}/settings.local.json +0 -0
  2071. /package/{.claude → agentic-flow/.claude}/skills/.claude-flow/metrics/agent-metrics.json +0 -0
  2072. /package/{.claude → agentic-flow/.claude}/skills/.claude-flow/metrics/performance.json +0 -0
  2073. /package/{.claude → agentic-flow/.claude}/skills/.claude-flow/metrics/task-metrics.json +0 -0
  2074. /package/{.claude → agentic-flow/.claude}/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -0
  2075. /package/{.claude → agentic-flow/.claude}/skills/skill-builder/.claude-flow/metrics/performance.json +0 -0
  2076. /package/{.claude → agentic-flow/.claude}/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -0
  2077. /package/{dist → agentic-flow/dist}/agentdb/benchmarks/comprehensive-benchmark.js +0 -0
  2078. /package/{dist → agentic-flow/dist}/agentdb/benchmarks/frontier-benchmark.js +0 -0
  2079. /package/{dist → agentic-flow/dist}/agentdb/benchmarks/reflexion-benchmark.js +0 -0
  2080. /package/{dist → agentic-flow/dist}/agentdb/cli/agentdb-cli.js +0 -0
  2081. /package/{dist → agentic-flow/dist}/agentdb/controllers/CausalMemoryGraph.js +0 -0
  2082. /package/{dist → agentic-flow/dist}/agentdb/controllers/CausalRecall.js +0 -0
  2083. /package/{dist → agentic-flow/dist}/agentdb/controllers/EmbeddingService.js +0 -0
  2084. /package/{dist → agentic-flow/dist}/agentdb/controllers/ExplainableRecall.js +0 -0
  2085. /package/{dist → agentic-flow/dist}/agentdb/controllers/NightlyLearner.js +0 -0
  2086. /package/{dist → agentic-flow/dist}/agentdb/controllers/ReflexionMemory.js +0 -0
  2087. /package/{dist → agentic-flow/dist}/agentdb/controllers/SkillLibrary.js +0 -0
  2088. /package/{dist → agentic-flow/dist}/agentdb/controllers/frontier-index.js +0 -0
  2089. /package/{dist → agentic-flow/dist}/agentdb/controllers/index.js +0 -0
  2090. /package/{dist → agentic-flow/dist}/agentdb/optimizations/BatchOperations.js +0 -0
  2091. /package/{dist → agentic-flow/dist}/agentdb/optimizations/QueryOptimizer.js +0 -0
  2092. /package/{dist → agentic-flow/dist}/agentdb/optimizations/index.js +0 -0
  2093. /package/{dist → agentic-flow/dist}/cli/skills-manager.js +0 -0
  2094. /package/{dist → agentic-flow/dist}/cli/update-message.js +0 -0
  2095. /package/{dist → agentic-flow/dist}/proxy/http3-proxy-old.js +0 -0
  2096. /package/{dist → agentic-flow/dist}/proxy/proxy/anthropic-to-gemini.js +0 -0
  2097. /package/{dist → agentic-flow/dist}/proxy/utils/logger.js +0 -0
  2098. /package/{dist → agentic-flow/dist}/reasoningbank/agentdb-adapter.js +0 -0
  2099. /package/{dist → agentic-flow/dist}/reasoningbank/config/reasoningbank.yaml +0 -0
  2100. /package/{dist → agentic-flow/dist}/reasoningbank/core/database.js +0 -0
  2101. /package/{dist → agentic-flow/dist}/reasoningbank/core/memory-engine.js +0 -0
  2102. /package/{dist → agentic-flow/dist}/reasoningbank/prompts/distill-failure.json +0 -0
  2103. /package/{dist → agentic-flow/dist}/reasoningbank/prompts/distill-success.json +0 -0
  2104. /package/{dist → agentic-flow/dist}/reasoningbank/prompts/judge.json +0 -0
  2105. /package/{dist → agentic-flow/dist}/reasoningbank/prompts/matts-aggregate.json +0 -0
  2106. /package/{dist → agentic-flow/dist}/utils/adaptive-pool-sizing.js +0 -0
  2107. /package/{dist → agentic-flow/dist}/utils/agentdbCommands.js +0 -0
  2108. /package/{dist → agentic-flow/dist}/utils/circular-rate-limiter.js +0 -0
  2109. /package/{dist → agentic-flow/dist}/utils/dynamic-compression.js +0 -0
  2110. /package/{dist → agentic-flow/dist}/utils/http2-multiplexing.js +0 -0
  2111. /package/{dist → agentic-flow/dist}/utils/lazy-auth.js +0 -0
  2112. /package/{dist → agentic-flow/dist}/utils/server-push.js +0 -0
  2113. /package/{dist → agentic-flow/dist}/utils/zero-copy-buffer.js +0 -0
  2114. /package/{docs → agentic-flow/docs}/.claude-flow/metrics/agent-metrics.json +0 -0
  2115. /package/{docs → agentic-flow/docs}/.claude-flow/metrics/performance.json +0 -0
  2116. /package/{docs → agentic-flow/docs}/.claude-flow/metrics/task-metrics.json +0 -0
  2117. /package/{docs → agentic-flow/docs}/CLAUDE.md +0 -0
  2118. /package/{docs → agentic-flow/docs}/DOCKER-VERIFICATION.md +0 -0
  2119. /package/{docs → agentic-flow/docs}/ISSUE-55-VALIDATION.md +0 -0
  2120. /package/{docs → agentic-flow/docs}/NPX_AGENTDB_SETUP.md +0 -0
  2121. /package/{docs → agentic-flow/docs}/OPTIMIZATIONS.md +0 -0
  2122. /package/{docs → agentic-flow/docs}/PUBLISH_GUIDE.md +0 -0
  2123. /package/{docs → agentic-flow/docs}/RELEASE-v1.10.0-COMPLETE.md +0 -0
  2124. /package/{docs → agentic-flow/docs}/architecture/EXECUTIVE_SUMMARY.md +0 -0
  2125. /package/{docs → agentic-flow/docs}/architecture/FEDERATION-DATA-LIFECYCLE.md +0 -0
  2126. /package/{docs → agentic-flow/docs}/architecture/IMPROVEMENT_PLAN.md +0 -0
  2127. /package/{docs → agentic-flow/docs}/architecture/INTEGRATION-STATUS.md +0 -0
  2128. /package/{docs → agentic-flow/docs}/architecture/MULTI_MODEL_ROUTER_PLAN.md +0 -0
  2129. /package/{docs → agentic-flow/docs}/architecture/PACKAGE_STRUCTURE.md +0 -0
  2130. /package/{docs → agentic-flow/docs}/architecture/QUIC-IMPLEMENTATION-SUMMARY.md +0 -0
  2131. /package/{docs → agentic-flow/docs}/architecture/QUIC-SWARM-INTEGRATION.md +0 -0
  2132. /package/{docs → agentic-flow/docs}/architecture/QUICK_WINS.md +0 -0
  2133. /package/{docs → agentic-flow/docs}/architecture/README.md +0 -0
  2134. /package/{docs → agentic-flow/docs}/architecture/RESEARCH_SUMMARY.md +0 -0
  2135. /package/{docs → agentic-flow/docs}/archive/.agentdb-instructions.md +0 -0
  2136. /package/{docs → agentic-flow/docs}/archive/AGENT-BOOSTER-STATUS.md +0 -0
  2137. /package/{docs → agentic-flow/docs}/archive/CHANGELOG-v1.3.0.md +0 -0
  2138. /package/{docs → agentic-flow/docs}/archive/COMPLETION_REPORT_v1.7.1.md +0 -0
  2139. /package/{docs → agentic-flow/docs}/archive/IMPLEMENTATION_SUMMARY_v1.7.1.md +0 -0
  2140. /package/{docs → agentic-flow/docs}/archive/SUPABASE-INTEGRATION-COMPLETE.md +0 -0
  2141. /package/{docs → agentic-flow/docs}/archive/TESTING_QUICK_START.md +0 -0
  2142. /package/{docs → agentic-flow/docs}/archive/TOOL-EMULATION-INTEGRATION-ISSUE.md +0 -0
  2143. /package/{docs → agentic-flow/docs}/archive/VALIDATION_v1.7.1.md +0 -0
  2144. /package/{docs → agentic-flow/docs}/archived/COMPLETE_VALIDATION_SUMMARY.md +0 -0
  2145. /package/{docs → agentic-flow/docs}/archived/DOCKER_MCP_VALIDATION.md +0 -0
  2146. /package/{docs → agentic-flow/docs}/archived/DOCKER_OPENROUTER_VALIDATION.md +0 -0
  2147. /package/{docs → agentic-flow/docs}/archived/FASTMCP_COMPLETE.md +0 -0
  2148. /package/{docs → agentic-flow/docs}/archived/FASTMCP_INTEGRATION_STATUS.md +0 -0
  2149. /package/{docs → agentic-flow/docs}/archived/FINAL_SDK_VALIDATION.md +0 -0
  2150. /package/{docs → agentic-flow/docs}/archived/FINAL_SYSTEM_VALIDATION.md +0 -0
  2151. /package/{docs → agentic-flow/docs}/archived/FINAL_VALIDATION_SUMMARY.md +0 -0
  2152. /package/{docs → agentic-flow/docs}/archived/FIXES-APPLIED-STATUS.md +0 -0
  2153. /package/{docs → agentic-flow/docs}/archived/FLOW-NEXUS-COMPLETE.md +0 -0
  2154. /package/{docs → agentic-flow/docs}/archived/HOTFIX_1.1.7.md +0 -0
  2155. /package/{docs → agentic-flow/docs}/archived/INTEGRATION_CONFIRMED.md +0 -0
  2156. /package/{docs → agentic-flow/docs}/archived/MCP_CLI_TOOLS_VALIDATION.md +0 -0
  2157. /package/{docs → agentic-flow/docs}/archived/MCP_INTEGRATION_SUCCESS.md +0 -0
  2158. /package/{docs → agentic-flow/docs}/archived/MCP_PROXY_VALIDATION.md +0 -0
  2159. /package/{docs → agentic-flow/docs}/archived/MODEL_VALIDATION_REPORT.md +0 -0
  2160. /package/{docs → agentic-flow/docs}/archived/ONNX_ENV_VARS.md +0 -0
  2161. /package/{docs → agentic-flow/docs}/archived/ONNX_FINAL_REPORT.md +0 -0
  2162. /package/{docs → agentic-flow/docs}/archived/ONNX_IMPLEMENTATION_COMPLETE.md +0 -0
  2163. /package/{docs → agentic-flow/docs}/archived/ONNX_IMPLEMENTATION_SUMMARY.md +0 -0
  2164. /package/{docs → agentic-flow/docs}/archived/ONNX_INTEGRATION.md +0 -0
  2165. /package/{docs → agentic-flow/docs}/archived/ONNX_OPTIMIZATION_SUMMARY.md +0 -0
  2166. /package/{docs → agentic-flow/docs}/archived/ONNX_PHI4_RESEARCH.md +0 -0
  2167. /package/{docs → agentic-flow/docs}/archived/ONNX_RUNTIME_INTEGRATION_PLAN.md +0 -0
  2168. /package/{docs → agentic-flow/docs}/archived/ONNX_SUCCESS_REPORT.md +0 -0
  2169. /package/{docs → agentic-flow/docs}/archived/ONNX_VS_CLAUDE_QUALITY.md +0 -0
  2170. /package/{docs → agentic-flow/docs}/archived/OPENROUTER-FIX-VALIDATION.md +0 -0
  2171. /package/{docs → agentic-flow/docs}/archived/OPENROUTER-SUCCESS-REPORT.md +0 -0
  2172. /package/{docs → agentic-flow/docs}/archived/OPENROUTER_ISSUES_AND_FIXES.md +0 -0
  2173. /package/{docs → agentic-flow/docs}/archived/OPENROUTER_PROXY_COMPLETE.md +0 -0
  2174. /package/{docs → agentic-flow/docs}/archived/OPENROUTER_VALIDATION_COMPLETE.md +0 -0
  2175. /package/{docs → agentic-flow/docs}/archived/OPTIMIZATION_SUMMARY.md +0 -0
  2176. /package/{docs → agentic-flow/docs}/archived/PACKAGE-COMPLETE.md +0 -0
  2177. /package/{docs → agentic-flow/docs}/archived/PHI4_HYPEROPTIMIZATION_PLAN.md +0 -0
  2178. /package/{docs → agentic-flow/docs}/archived/PROVIDER_INSTRUCTION_OPTIMIZATION.md +0 -0
  2179. /package/{docs → agentic-flow/docs}/archived/PROXY_VALIDATION.md +0 -0
  2180. /package/{docs → agentic-flow/docs}/archived/README.md +0 -0
  2181. /package/{docs → agentic-flow/docs}/archived/README_SDK_VALIDATION.md +0 -0
  2182. /package/{docs → agentic-flow/docs}/archived/README_V1.1.11.md +0 -0
  2183. /package/{docs → agentic-flow/docs}/archived/RELEASE-NOTES-v1.1.13.md +0 -0
  2184. /package/{docs → agentic-flow/docs}/archived/RELEASE-SUMMARY-v1.1.14-beta.1.md +0 -0
  2185. /package/{docs → agentic-flow/docs}/archived/RESEARCH_COMPLETE.txt +0 -0
  2186. /package/{docs → agentic-flow/docs}/archived/ROUTER_VALIDATION.md +0 -0
  2187. /package/{docs → agentic-flow/docs}/archived/SDK-SETUP-COMPLETE.md +0 -0
  2188. /package/{docs → agentic-flow/docs}/archived/SDK_INTEGRATION_COMPLETE.md +0 -0
  2189. /package/{docs → agentic-flow/docs}/archived/TOOL_INSTRUCTION_ENHANCEMENT.md +0 -0
  2190. /package/{docs → agentic-flow/docs}/archived/V1.1.10_VALIDATION.md +0 -0
  2191. /package/{docs → agentic-flow/docs}/archived/V1.1.11_COMPLETE_VALIDATION.md +0 -0
  2192. /package/{docs → agentic-flow/docs}/archived/V1.1.11_MCP_PROXY_FIX.md +0 -0
  2193. /package/{docs → agentic-flow/docs}/archived/V1.1.14-BETA-READY.md +0 -0
  2194. /package/{docs → agentic-flow/docs}/archived/VALIDATION-RESULTS.md +0 -0
  2195. /package/{docs → agentic-flow/docs}/archived/VALIDATION_COMPLETE.md +0 -0
  2196. /package/{docs → agentic-flow/docs}/archived/VALIDATION_SUMMARY.md +0 -0
  2197. /package/{docs → agentic-flow/docs}/archived/claude-flow-integration.md +0 -0
  2198. /package/{docs → agentic-flow/docs}/archived/docker-cli-validation.md +0 -0
  2199. /package/{docs → agentic-flow/docs}/archived/docker-memory-coordination-status.md +0 -0
  2200. /package/{docs → agentic-flow/docs}/archived/mcp-validation-summary.md +0 -0
  2201. /package/{docs → agentic-flow/docs}/archived/quick-wins-validation.md +0 -0
  2202. /package/{docs → agentic-flow/docs}/benchmarks/optimization-guide.md +0 -0
  2203. /package/{docs → agentic-flow/docs}/benchmarks/quic-results.md +0 -0
  2204. /package/{docs → agentic-flow/docs}/docker-tests/TEST-V1.7.8.Dockerfile +0 -0
  2205. /package/{docs → agentic-flow/docs}/docker-tests/TEST-V1.7.9-NODE20.Dockerfile +0 -0
  2206. /package/{docs → agentic-flow/docs}/docker-tests/TEST-V1.7.9.Dockerfile +0 -0
  2207. /package/{docs → agentic-flow/docs}/federation/AGENT-DEBUG-STREAMING.md +0 -0
  2208. /package/{docs → agentic-flow/docs}/federation/DEBUG-STREAMING-COMPLETE.md +0 -0
  2209. /package/{docs → agentic-flow/docs}/federation/DEBUG-STREAMING.md +0 -0
  2210. /package/{docs → agentic-flow/docs}/federation/DEPLOYMENT-VALIDATION-SUCCESS.md +0 -0
  2211. /package/{docs → agentic-flow/docs}/federation/DOCKER-FEDERATION-DEEP-REVIEW.md +0 -0
  2212. /package/{docs → agentic-flow/docs}/guides/ADDING-MCP-SERVERS-CLI.md +0 -0
  2213. /package/{docs → agentic-flow/docs}/guides/ADDING-MCP-SERVERS.md +0 -0
  2214. /package/{docs → agentic-flow/docs}/guides/AGENT-BOOSTER.md +0 -0
  2215. /package/{docs → agentic-flow/docs}/guides/ALTERNATIVE_LLM_MODELS.md +0 -0
  2216. /package/{docs → agentic-flow/docs}/guides/CLAUDE-CODE-INTEGRATION.md +0 -0
  2217. /package/{docs → agentic-flow/docs}/guides/DEPLOYMENT.md +0 -0
  2218. /package/{docs → agentic-flow/docs}/guides/DOCKER_AGENT_USAGE.md +0 -0
  2219. /package/{docs → agentic-flow/docs}/guides/IMPLEMENTATION_EXAMPLES.md +0 -0
  2220. /package/{docs → agentic-flow/docs}/guides/MCP-TOOLS.md +0 -0
  2221. /package/{docs → agentic-flow/docs}/guides/MODEL-ID-MAPPING.md +0 -0
  2222. /package/{docs → agentic-flow/docs}/guides/MULTI-MODEL-ROUTER.md +0 -0
  2223. /package/{docs → agentic-flow/docs}/guides/NPM-PUBLISH.md +0 -0
  2224. /package/{docs → agentic-flow/docs}/guides/ONNX-PROXY-IMPLEMENTATION.md +0 -0
  2225. /package/{docs → agentic-flow/docs}/guides/ONNX_CLI_USAGE.md +0 -0
  2226. /package/{docs → agentic-flow/docs}/guides/ONNX_OPTIMIZATION_GUIDE.md +0 -0
  2227. /package/{docs → agentic-flow/docs}/guides/OPENROUTER_DEPLOYMENT.md +0 -0
  2228. /package/{docs → agentic-flow/docs}/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +0 -0
  2229. /package/{docs → agentic-flow/docs}/guides/QUIC-SWARM-QUICKSTART.md +0 -0
  2230. /package/{docs → agentic-flow/docs}/guides/QUICK-START-v1.7.1.md +0 -0
  2231. /package/{docs → agentic-flow/docs}/guides/README.md +0 -0
  2232. /package/{docs → agentic-flow/docs}/guides/REASONINGBANK.md +0 -0
  2233. /package/{docs → agentic-flow/docs}/guides/STANDALONE_PROXY_GUIDE.md +0 -0
  2234. /package/{docs → agentic-flow/docs}/guides/agent-sdk.md +0 -0
  2235. /package/{docs → agentic-flow/docs}/integration-docs/AGENT-BOOSTER-INTEGRATION.md +0 -0
  2236. /package/{docs → agentic-flow/docs}/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +0 -0
  2237. /package/{docs → agentic-flow/docs}/integration-docs/CLI-INTEGRATION-COMPLETE.md +0 -0
  2238. /package/{docs → agentic-flow/docs}/integration-docs/IMPLEMENTATION_SUMMARY.md +0 -0
  2239. /package/{docs → agentic-flow/docs}/integration-docs/INTEGRATION-COMPLETE.md +0 -0
  2240. /package/{docs → agentic-flow/docs}/integration-docs/INTEGRATION-QUICK-SUMMARY.md +0 -0
  2241. /package/{docs → agentic-flow/docs}/integration-docs/INTEGRATION-STATUS-CORRECTED.md +0 -0
  2242. /package/{docs → agentic-flow/docs}/integration-docs/INTEGRATION_COMPLETE_SUMMARY.md +0 -0
  2243. /package/{docs → agentic-flow/docs}/integration-docs/QUIC-WASM-INTEGRATION.md +0 -0
  2244. /package/{docs → agentic-flow/docs}/integration-docs/README.md +0 -0
  2245. /package/{docs → agentic-flow/docs}/integration-docs/WASM_ESM_FIX.md +0 -0
  2246. /package/{docs → agentic-flow/docs}/integration-docs/WASM_INTEGRATION_COMPLETE.md +0 -0
  2247. /package/{docs → agentic-flow/docs}/integrations/CLAUDE_AGENTS_INTEGRATION.md +0 -0
  2248. /package/{docs → agentic-flow/docs}/integrations/CLAUDE_FLOW_INTEGRATION.md +0 -0
  2249. /package/{docs → agentic-flow/docs}/integrations/FASTMCP_CLI_INTEGRATION.md +0 -0
  2250. /package/{docs → agentic-flow/docs}/integrations/FLOW-NEXUS-INTEGRATION.md +0 -0
  2251. /package/{docs → agentic-flow/docs}/integrations/README.md +0 -0
  2252. /package/{docs → agentic-flow/docs}/integrations/fastmcp-implementation-plan.md +0 -0
  2253. /package/{docs → agentic-flow/docs}/integrations/fastmcp-poc-integration.md +0 -0
  2254. /package/{docs → agentic-flow/docs}/issues/ISSUE-SUPABASE-INTEGRATION.md +0 -0
  2255. /package/{docs → agentic-flow/docs}/issues/ISSUE-xenova-transformers-dependency.md +0 -0
  2256. /package/{docs → agentic-flow/docs}/mcp-validation/IMPLEMENTATION-SUMMARY.md +0 -0
  2257. /package/{docs → agentic-flow/docs}/mcp-validation/MCP-CLI-VALIDATION-REPORT.md +0 -0
  2258. /package/{docs → agentic-flow/docs}/mcp-validation/README.md +0 -0
  2259. /package/{docs → agentic-flow/docs}/mcp-validation/strange-loops-test.md +0 -0
  2260. /package/{docs → agentic-flow/docs}/plans/QUIC/BUILD_INSTRUCTIONS.md +0 -0
  2261. /package/{docs → agentic-flow/docs}/plans/QUIC/IMPLEMENTATION_STATUS.md +0 -0
  2262. /package/{docs → agentic-flow/docs}/plans/QUIC/QUIC-INTEGRATION-SUMMARY.md +0 -0
  2263. /package/{docs → agentic-flow/docs}/plans/QUIC/QUIC-INTEGRATION.md +0 -0
  2264. /package/{docs → agentic-flow/docs}/plans/QUIC/QUIC-README.md +0 -0
  2265. /package/{docs → agentic-flow/docs}/plans/QUIC/QUIC_IMPLEMENTATION_SUMMARY.md +0 -0
  2266. /package/{docs → agentic-flow/docs}/plans/QUIC/README-CONDENSED.md +0 -0
  2267. /package/{docs → agentic-flow/docs}/plans/QUIC/quic-research.md +0 -0
  2268. /package/{docs → agentic-flow/docs}/plans/QUIC/quic-tutorial.md +0 -0
  2269. /package/{docs → agentic-flow/docs}/plans/agent-booster/00-INDEX.md +0 -0
  2270. /package/{docs → agentic-flow/docs}/plans/agent-booster/00-OVERVIEW.md +0 -0
  2271. /package/{docs → agentic-flow/docs}/plans/agent-booster/01-ARCHITECTURE.md +0 -0
  2272. /package/{docs → agentic-flow/docs}/plans/agent-booster/02-INTEGRATION.md +0 -0
  2273. /package/{docs → agentic-flow/docs}/plans/agent-booster/03-BENCHMARKS.md +0 -0
  2274. /package/{docs → agentic-flow/docs}/plans/agent-booster/04-NPM-SDK.md +0 -0
  2275. /package/{docs → agentic-flow/docs}/plans/agent-booster/GITHUB-ISSUE.md +0 -0
  2276. /package/{docs → agentic-flow/docs}/plans/agent-booster/README.md +0 -0
  2277. /package/{docs → agentic-flow/docs}/plans/agent-booster-cli-integration.md +0 -0
  2278. /package/{docs → agentic-flow/docs}/plans/requesty/00-overview.md +0 -0
  2279. /package/{docs → agentic-flow/docs}/plans/requesty/01-api-research.md +0 -0
  2280. /package/{docs → agentic-flow/docs}/plans/requesty/02-architecture.md +0 -0
  2281. /package/{docs → agentic-flow/docs}/plans/requesty/03-implementation-phases.md +0 -0
  2282. /package/{docs → agentic-flow/docs}/plans/requesty/04-testing-strategy.md +0 -0
  2283. /package/{docs → agentic-flow/docs}/plans/requesty/05-migration-guide.md +0 -0
  2284. /package/{docs → agentic-flow/docs}/plans/requesty/README.md +0 -0
  2285. /package/{docs → agentic-flow/docs}/providers/LANDING-PAGE-PROVIDER-CONTENT.md +0 -0
  2286. /package/{docs → agentic-flow/docs}/providers/PROVIDER-FALLBACK-GUIDE.md +0 -0
  2287. /package/{docs → agentic-flow/docs}/providers/PROVIDER-FALLBACK-SUMMARY.md +0 -0
  2288. /package/{docs → agentic-flow/docs}/quantum-goap/DEPENDENCY_GRAPH.mermaid +0 -0
  2289. /package/{docs → agentic-flow/docs}/quantum-goap/EXECUTION_SUMMARY.md +0 -0
  2290. /package/{docs → agentic-flow/docs}/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +0 -0
  2291. /package/{docs → agentic-flow/docs}/quantum-goap/QUICK_START.md +0 -0
  2292. /package/{docs → agentic-flow/docs}/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +0 -0
  2293. /package/{docs → agentic-flow/docs}/quantum-research/README.md +0 -0
  2294. /package/{docs → agentic-flow/docs}/quic/FINAL-VALIDATION.md +0 -0
  2295. /package/{docs → agentic-flow/docs}/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -0
  2296. /package/{docs → agentic-flow/docs}/quic/PERFORMANCE-VALIDATION.md +0 -0
  2297. /package/{docs → agentic-flow/docs}/quic/QUIC-STATUS-OLD.md +0 -0
  2298. /package/{docs → agentic-flow/docs}/quic/QUIC-STATUS.md +0 -0
  2299. /package/{docs → agentic-flow/docs}/quic/QUIC-VALIDATION-REPORT.md +0 -0
  2300. /package/{docs → agentic-flow/docs}/quic/QUIC_FINAL_STATUS.md +0 -0
  2301. /package/{docs → agentic-flow/docs}/quic/README_QUIC_PHASE1.md +0 -0
  2302. /package/{docs → agentic-flow/docs}/quic/WASM-INTEGRATION-COMPLETE.md +0 -0
  2303. /package/{docs → agentic-flow/docs}/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -0
  2304. /package/{docs → agentic-flow/docs}/reasoningbank/README.md +0 -0
  2305. /package/{docs → agentic-flow/docs}/reasoningbank/REASONING-AGENTS.md +0 -0
  2306. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -0
  2307. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -0
  2308. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -0
  2309. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK-DEMO.md +0 -0
  2310. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK-VALIDATION.md +0 -0
  2311. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -0
  2312. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_BACKENDS.md +0 -0
  2313. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_FIXES.md +0 -0
  2314. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -0
  2315. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -0
  2316. /package/{docs → agentic-flow/docs}/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -0
  2317. /package/{docs → agentic-flow/docs}/releases/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -0
  2318. /package/{docs → agentic-flow/docs}/releases/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -0
  2319. /package/{docs → agentic-flow/docs}/releases/GITHUB-ISSUE-v1.4.6.md +0 -0
  2320. /package/{docs → agentic-flow/docs}/releases/GITHUB-ISSUE-v1.5.0.md +0 -0
  2321. /package/{docs → agentic-flow/docs}/releases/HOTFIX-v1.2.1.md +0 -0
  2322. /package/{docs → agentic-flow/docs}/releases/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -0
  2323. /package/{docs → agentic-flow/docs}/releases/PUBLISH-COMPLETE-v1.2.0.md +0 -0
  2324. /package/{docs → agentic-flow/docs}/releases/PUBLISH_CHECKLIST_v1.10.0.md +0 -0
  2325. /package/{docs → agentic-flow/docs}/releases/PUBLISH_SUMMARY_v1.7.1.md +0 -0
  2326. /package/{docs → agentic-flow/docs}/releases/README.md +0 -0
  2327. /package/{docs → agentic-flow/docs}/releases/RELEASE-v1.2.0.md +0 -0
  2328. /package/{docs → agentic-flow/docs}/releases/RELEASE-v1.8.13.md +0 -0
  2329. /package/{docs → agentic-flow/docs}/releases/RELEASE_NOTES_v1.10.0.md +0 -0
  2330. /package/{docs → agentic-flow/docs}/releases/RELEASE_NOTES_v1.7.0.md +0 -0
  2331. /package/{docs → agentic-flow/docs}/releases/RELEASE_v1.7.1.md +0 -0
  2332. /package/{docs → agentic-flow/docs}/releases/v1.4.6-reasoningbank-release.md +0 -0
  2333. /package/{docs → agentic-flow/docs}/releases/v1.4.7-bugfix.md +0 -0
  2334. /package/{docs → agentic-flow/docs}/releases/v1.5.14-QUIC-TRANSPORT.md +0 -0
  2335. /package/{docs → agentic-flow/docs}/reports/QUIC_PHASE1_COMPLETE.md +0 -0
  2336. /package/{docs → agentic-flow/docs}/reports/QUIC_PHASE1_COMPLETION.md +0 -0
  2337. /package/{docs → agentic-flow/docs}/reviews/quic-implementation-review.md +0 -0
  2338. /package/{docs → agentic-flow/docs}/router/README.md +0 -0
  2339. /package/{docs → agentic-flow/docs}/router/ROUTER_CONFIG_REFERENCE.md +0 -0
  2340. /package/{docs → agentic-flow/docs}/router/ROUTER_USER_GUIDE.md +0 -0
  2341. /package/{docs → agentic-flow/docs}/router/TOP20_MODELS_MATRIX.md +0 -0
  2342. /package/{docs → agentic-flow/docs}/supabase/IMPLEMENTATION-SUMMARY.md +0 -0
  2343. /package/{docs → agentic-flow/docs}/supabase/INDEX.md +0 -0
  2344. /package/{docs → agentic-flow/docs}/supabase/QUICKSTART.md +0 -0
  2345. /package/{docs → agentic-flow/docs}/supabase/README.md +0 -0
  2346. /package/{docs → agentic-flow/docs}/supabase/SUPABASE-REALTIME-FEDERATION.md +0 -0
  2347. /package/{docs → agentic-flow/docs}/supabase/TEST-REPORT.md +0 -0
  2348. /package/{docs → agentic-flow/docs}/supabase/migrations/001_create_federation_tables.sql +0 -0
  2349. /package/{docs → agentic-flow/docs}/testing/AGENT-SYSTEM-VALIDATION.md +0 -0
  2350. /package/{docs → agentic-flow/docs}/testing/AGENTDB_TESTING.md +0 -0
  2351. /package/{docs → agentic-flow/docs}/testing/FINAL-TESTING-SUMMARY.md +0 -0
  2352. /package/{docs → agentic-flow/docs}/testing/README.md +0 -0
  2353. /package/{docs → agentic-flow/docs}/testing/REGRESSION-TEST-RESULTS.md +0 -0
  2354. /package/{docs → agentic-flow/docs}/testing/STREAMING-AND-MCP-VALIDATION.md +0 -0
  2355. /package/{docs → agentic-flow/docs}/validation/README.md +0 -0
  2356. /package/{docs → agentic-flow/docs}/validation/reports/REGRESSION-TEST-V1.8.11.md +0 -0
  2357. /package/{docs → agentic-flow/docs}/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +0 -0
  2358. /package/{docs → agentic-flow/docs}/validation-reports/DOCKER_VALIDATION_RESULTS.md +0 -0
  2359. /package/{docs → agentic-flow/docs}/validation-reports/NO_REGRESSIONS_CONFIRMED.md +0 -0
  2360. /package/{docs → agentic-flow/docs}/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +0 -0
  2361. /package/{docs → agentic-flow/docs}/validation-reports/README.md +0 -0
  2362. /package/{docs → agentic-flow/docs}/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +0 -0
  2363. /package/{docs → agentic-flow/docs}/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +0 -0
  2364. /package/{docs → agentic-flow/docs}/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +0 -0
  2365. /package/{docs → agentic-flow/docs}/validation-reports/v1.6.1-NPM-PUBLISH-VALIDATION.md +0 -0
  2366. /package/{docs → agentic-flow/docs}/version-releases/PUBLICATION_REPORT_v1.5.11.md +0 -0
  2367. /package/{docs → agentic-flow/docs}/version-releases/README.md +0 -0
  2368. /package/{docs → agentic-flow/docs}/version-releases/v1.5.9-DOCKER-VERIFICATION.md +0 -0
  2369. /package/{docs → agentic-flow/docs}/version-releases/v1.5.9-RELEASE-SUMMARY.md +0 -0
  2370. /package/{scripts → agentic-flow/scripts}/build.sh +0 -0
  2371. /package/{scripts → agentic-flow/scripts}/claude +0 -0
  2372. /package/{scripts → agentic-flow/scripts}/claude-code +0 -0
  2373. /package/{scripts → agentic-flow/scripts}/claude-flow +0 -0
  2374. /package/{scripts → agentic-flow/scripts}/claude-flow.bat +0 -0
  2375. /package/{scripts → agentic-flow/scripts}/claude-flow.ps1 +0 -0
  2376. /package/{scripts → agentic-flow/scripts}/postinstall.js +0 -0
  2377. /package/{scripts → agentic-flow/scripts}/run-validation.sh +0 -0
  2378. /package/{scripts → agentic-flow/scripts}/test-agentdb.sh +0 -0
  2379. /package/{scripts → agentic-flow/scripts}/test-all-commands.sh +0 -0
  2380. /package/{scripts → agentic-flow/scripts}/test-claude-flow-sdk.sh +0 -0
  2381. /package/{scripts → agentic-flow/scripts}/test-fastmcp-docker.sh +0 -0
  2382. /package/{scripts → agentic-flow/scripts}/test-fastmcp-poc.sh +0 -0
  2383. /package/{scripts → agentic-flow/scripts}/test-functionality.sh +0 -0
  2384. /package/{scripts → agentic-flow/scripts}/test-onnx-docker.sh +0 -0
  2385. /package/{scripts → agentic-flow/scripts}/test-router-docker.sh +0 -0
  2386. /package/{scripts → agentic-flow/scripts}/validate-mcp-cli-tools.sh +0 -0
  2387. /package/{scripts → agentic-flow/scripts}/validate-providers.sh +0 -0
  2388. /package/{wasm → agentic-flow/wasm}/quic/README.md +0 -0
  2389. /package/{wasm → agentic-flow/wasm}/quic/agentic_flow_quic.js +0 -0
  2390. /package/{wasm → agentic-flow/wasm}/quic/agentic_flow_quic_bg.wasm +0 -0
  2391. /package/{wasm → agentic-flow/wasm}/quic/package.json +0 -0
  2392. /package/{wasm → agentic-flow/wasm}/reasoningbank/package.json +0 -0
  2393. /package/{wasm → agentic-flow/wasm}/reasoningbank/reasoningbank_wasm.js +0 -0
  2394. /package/{wasm → agentic-flow/wasm}/reasoningbank/reasoningbank_wasm_bg.js +0 -0
  2395. /package/{wasm → agentic-flow/wasm}/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
@@ -0,0 +1,3874 @@
1
+
2
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {}));
7
+ }(this, (function (exports) { 'use strict';
8
+
9
+ function isNothing(subject) {
10
+ return (typeof subject === 'undefined') || (subject === null);
11
+ }
12
+
13
+
14
+ function isObject(subject) {
15
+ return (typeof subject === 'object') && (subject !== null);
16
+ }
17
+
18
+
19
+ function toArray(sequence) {
20
+ if (Array.isArray(sequence)) return sequence;
21
+ else if (isNothing(sequence)) return [];
22
+
23
+ return [ sequence ];
24
+ }
25
+
26
+
27
+ function extend(target, source) {
28
+ var index, length, key, sourceKeys;
29
+
30
+ if (source) {
31
+ sourceKeys = Object.keys(source);
32
+
33
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
34
+ key = sourceKeys[index];
35
+ target[key] = source[key];
36
+ }
37
+ }
38
+
39
+ return target;
40
+ }
41
+
42
+
43
+ function repeat(string, count) {
44
+ var result = '', cycle;
45
+
46
+ for (cycle = 0; cycle < count; cycle += 1) {
47
+ result += string;
48
+ }
49
+
50
+ return result;
51
+ }
52
+
53
+
54
+ function isNegativeZero(number) {
55
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
56
+ }
57
+
58
+
59
+ var isNothing_1 = isNothing;
60
+ var isObject_1 = isObject;
61
+ var toArray_1 = toArray;
62
+ var repeat_1 = repeat;
63
+ var isNegativeZero_1 = isNegativeZero;
64
+ var extend_1 = extend;
65
+
66
+ var common = {
67
+ isNothing: isNothing_1,
68
+ isObject: isObject_1,
69
+ toArray: toArray_1,
70
+ repeat: repeat_1,
71
+ isNegativeZero: isNegativeZero_1,
72
+ extend: extend_1
73
+ };
74
+
75
+ // YAML error class. http://stackoverflow.com/questions/8458984
76
+
77
+
78
+ function formatError(exception, compact) {
79
+ var where = '', message = exception.reason || '(unknown reason)';
80
+
81
+ if (!exception.mark) return message;
82
+
83
+ if (exception.mark.name) {
84
+ where += 'in "' + exception.mark.name + '" ';
85
+ }
86
+
87
+ where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
88
+
89
+ if (!compact && exception.mark.snippet) {
90
+ where += '\n\n' + exception.mark.snippet;
91
+ }
92
+
93
+ return message + ' ' + where;
94
+ }
95
+
96
+
97
+ function YAMLException$1(reason, mark) {
98
+ // Super constructor
99
+ Error.call(this);
100
+
101
+ this.name = 'YAMLException';
102
+ this.reason = reason;
103
+ this.mark = mark;
104
+ this.message = formatError(this, false);
105
+
106
+ // Include stack trace in error object
107
+ if (Error.captureStackTrace) {
108
+ // Chrome and NodeJS
109
+ Error.captureStackTrace(this, this.constructor);
110
+ } else {
111
+ // FF, IE 10+ and Safari 6+. Fallback for others
112
+ this.stack = (new Error()).stack || '';
113
+ }
114
+ }
115
+
116
+
117
+ // Inherit from Error
118
+ YAMLException$1.prototype = Object.create(Error.prototype);
119
+ YAMLException$1.prototype.constructor = YAMLException$1;
120
+
121
+
122
+ YAMLException$1.prototype.toString = function toString(compact) {
123
+ return this.name + ': ' + formatError(this, compact);
124
+ };
125
+
126
+
127
+ var exception = YAMLException$1;
128
+
129
+ // get snippet for a single line, respecting maxLength
130
+ function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
131
+ var head = '';
132
+ var tail = '';
133
+ var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
134
+
135
+ if (position - lineStart > maxHalfLength) {
136
+ head = ' ... ';
137
+ lineStart = position - maxHalfLength + head.length;
138
+ }
139
+
140
+ if (lineEnd - position > maxHalfLength) {
141
+ tail = ' ...';
142
+ lineEnd = position + maxHalfLength - tail.length;
143
+ }
144
+
145
+ return {
146
+ str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
147
+ pos: position - lineStart + head.length // relative position
148
+ };
149
+ }
150
+
151
+
152
+ function padStart(string, max) {
153
+ return common.repeat(' ', max - string.length) + string;
154
+ }
155
+
156
+
157
+ function makeSnippet(mark, options) {
158
+ options = Object.create(options || null);
159
+
160
+ if (!mark.buffer) return null;
161
+
162
+ if (!options.maxLength) options.maxLength = 79;
163
+ if (typeof options.indent !== 'number') options.indent = 1;
164
+ if (typeof options.linesBefore !== 'number') options.linesBefore = 3;
165
+ if (typeof options.linesAfter !== 'number') options.linesAfter = 2;
166
+
167
+ var re = /\r?\n|\r|\0/g;
168
+ var lineStarts = [ 0 ];
169
+ var lineEnds = [];
170
+ var match;
171
+ var foundLineNo = -1;
172
+
173
+ while ((match = re.exec(mark.buffer))) {
174
+ lineEnds.push(match.index);
175
+ lineStarts.push(match.index + match[0].length);
176
+
177
+ if (mark.position <= match.index && foundLineNo < 0) {
178
+ foundLineNo = lineStarts.length - 2;
179
+ }
180
+ }
181
+
182
+ if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
183
+
184
+ var result = '', i, line;
185
+ var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
186
+ var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
187
+
188
+ for (i = 1; i <= options.linesBefore; i++) {
189
+ if (foundLineNo - i < 0) break;
190
+ line = getLine(
191
+ mark.buffer,
192
+ lineStarts[foundLineNo - i],
193
+ lineEnds[foundLineNo - i],
194
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
195
+ maxLineLength
196
+ );
197
+ result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
198
+ ' | ' + line.str + '\n' + result;
199
+ }
200
+
201
+ line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
202
+ result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
203
+ ' | ' + line.str + '\n';
204
+ result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n';
205
+
206
+ for (i = 1; i <= options.linesAfter; i++) {
207
+ if (foundLineNo + i >= lineEnds.length) break;
208
+ line = getLine(
209
+ mark.buffer,
210
+ lineStarts[foundLineNo + i],
211
+ lineEnds[foundLineNo + i],
212
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
213
+ maxLineLength
214
+ );
215
+ result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
216
+ ' | ' + line.str + '\n';
217
+ }
218
+
219
+ return result.replace(/\n$/, '');
220
+ }
221
+
222
+
223
+ var snippet = makeSnippet;
224
+
225
+ var TYPE_CONSTRUCTOR_OPTIONS = [
226
+ 'kind',
227
+ 'multi',
228
+ 'resolve',
229
+ 'construct',
230
+ 'instanceOf',
231
+ 'predicate',
232
+ 'represent',
233
+ 'representName',
234
+ 'defaultStyle',
235
+ 'styleAliases'
236
+ ];
237
+
238
+ var YAML_NODE_KINDS = [
239
+ 'scalar',
240
+ 'sequence',
241
+ 'mapping'
242
+ ];
243
+
244
+ function compileStyleAliases(map) {
245
+ var result = {};
246
+
247
+ if (map !== null) {
248
+ Object.keys(map).forEach(function (style) {
249
+ map[style].forEach(function (alias) {
250
+ result[String(alias)] = style;
251
+ });
252
+ });
253
+ }
254
+
255
+ return result;
256
+ }
257
+
258
+ function Type$1(tag, options) {
259
+ options = options || {};
260
+
261
+ Object.keys(options).forEach(function (name) {
262
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
263
+ throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
264
+ }
265
+ });
266
+
267
+ // TODO: Add tag format check.
268
+ this.options = options; // keep original options in case user wants to extend this type later
269
+ this.tag = tag;
270
+ this.kind = options['kind'] || null;
271
+ this.resolve = options['resolve'] || function () { return true; };
272
+ this.construct = options['construct'] || function (data) { return data; };
273
+ this.instanceOf = options['instanceOf'] || null;
274
+ this.predicate = options['predicate'] || null;
275
+ this.represent = options['represent'] || null;
276
+ this.representName = options['representName'] || null;
277
+ this.defaultStyle = options['defaultStyle'] || null;
278
+ this.multi = options['multi'] || false;
279
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
280
+
281
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
282
+ throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
283
+ }
284
+ }
285
+
286
+ var type = Type$1;
287
+
288
+ /*eslint-disable max-len*/
289
+
290
+
291
+
292
+
293
+
294
+ function compileList(schema, name) {
295
+ var result = [];
296
+
297
+ schema[name].forEach(function (currentType) {
298
+ var newIndex = result.length;
299
+
300
+ result.forEach(function (previousType, previousIndex) {
301
+ if (previousType.tag === currentType.tag &&
302
+ previousType.kind === currentType.kind &&
303
+ previousType.multi === currentType.multi) {
304
+
305
+ newIndex = previousIndex;
306
+ }
307
+ });
308
+
309
+ result[newIndex] = currentType;
310
+ });
311
+
312
+ return result;
313
+ }
314
+
315
+
316
+ function compileMap(/* lists... */) {
317
+ var result = {
318
+ scalar: {},
319
+ sequence: {},
320
+ mapping: {},
321
+ fallback: {},
322
+ multi: {
323
+ scalar: [],
324
+ sequence: [],
325
+ mapping: [],
326
+ fallback: []
327
+ }
328
+ }, index, length;
329
+
330
+ function collectType(type) {
331
+ if (type.multi) {
332
+ result.multi[type.kind].push(type);
333
+ result.multi['fallback'].push(type);
334
+ } else {
335
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
336
+ }
337
+ }
338
+
339
+ for (index = 0, length = arguments.length; index < length; index += 1) {
340
+ arguments[index].forEach(collectType);
341
+ }
342
+ return result;
343
+ }
344
+
345
+
346
+ function Schema$1(definition) {
347
+ return this.extend(definition);
348
+ }
349
+
350
+
351
+ Schema$1.prototype.extend = function extend(definition) {
352
+ var implicit = [];
353
+ var explicit = [];
354
+
355
+ if (definition instanceof type) {
356
+ // Schema.extend(type)
357
+ explicit.push(definition);
358
+
359
+ } else if (Array.isArray(definition)) {
360
+ // Schema.extend([ type1, type2, ... ])
361
+ explicit = explicit.concat(definition);
362
+
363
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
364
+ // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
365
+ if (definition.implicit) implicit = implicit.concat(definition.implicit);
366
+ if (definition.explicit) explicit = explicit.concat(definition.explicit);
367
+
368
+ } else {
369
+ throw new exception('Schema.extend argument should be a Type, [ Type ], ' +
370
+ 'or a schema definition ({ implicit: [...], explicit: [...] })');
371
+ }
372
+
373
+ implicit.forEach(function (type$1) {
374
+ if (!(type$1 instanceof type)) {
375
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
376
+ }
377
+
378
+ if (type$1.loadKind && type$1.loadKind !== 'scalar') {
379
+ throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
380
+ }
381
+
382
+ if (type$1.multi) {
383
+ throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
384
+ }
385
+ });
386
+
387
+ explicit.forEach(function (type$1) {
388
+ if (!(type$1 instanceof type)) {
389
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
390
+ }
391
+ });
392
+
393
+ var result = Object.create(Schema$1.prototype);
394
+
395
+ result.implicit = (this.implicit || []).concat(implicit);
396
+ result.explicit = (this.explicit || []).concat(explicit);
397
+
398
+ result.compiledImplicit = compileList(result, 'implicit');
399
+ result.compiledExplicit = compileList(result, 'explicit');
400
+ result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
401
+
402
+ return result;
403
+ };
404
+
405
+
406
+ var schema = Schema$1;
407
+
408
+ var str = new type('tag:yaml.org,2002:str', {
409
+ kind: 'scalar',
410
+ construct: function (data) { return data !== null ? data : ''; }
411
+ });
412
+
413
+ var seq = new type('tag:yaml.org,2002:seq', {
414
+ kind: 'sequence',
415
+ construct: function (data) { return data !== null ? data : []; }
416
+ });
417
+
418
+ var map = new type('tag:yaml.org,2002:map', {
419
+ kind: 'mapping',
420
+ construct: function (data) { return data !== null ? data : {}; }
421
+ });
422
+
423
+ var failsafe = new schema({
424
+ explicit: [
425
+ str,
426
+ seq,
427
+ map
428
+ ]
429
+ });
430
+
431
+ function resolveYamlNull(data) {
432
+ if (data === null) return true;
433
+
434
+ var max = data.length;
435
+
436
+ return (max === 1 && data === '~') ||
437
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
438
+ }
439
+
440
+ function constructYamlNull() {
441
+ return null;
442
+ }
443
+
444
+ function isNull(object) {
445
+ return object === null;
446
+ }
447
+
448
+ var _null = new type('tag:yaml.org,2002:null', {
449
+ kind: 'scalar',
450
+ resolve: resolveYamlNull,
451
+ construct: constructYamlNull,
452
+ predicate: isNull,
453
+ represent: {
454
+ canonical: function () { return '~'; },
455
+ lowercase: function () { return 'null'; },
456
+ uppercase: function () { return 'NULL'; },
457
+ camelcase: function () { return 'Null'; },
458
+ empty: function () { return ''; }
459
+ },
460
+ defaultStyle: 'lowercase'
461
+ });
462
+
463
+ function resolveYamlBoolean(data) {
464
+ if (data === null) return false;
465
+
466
+ var max = data.length;
467
+
468
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
469
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
470
+ }
471
+
472
+ function constructYamlBoolean(data) {
473
+ return data === 'true' ||
474
+ data === 'True' ||
475
+ data === 'TRUE';
476
+ }
477
+
478
+ function isBoolean(object) {
479
+ return Object.prototype.toString.call(object) === '[object Boolean]';
480
+ }
481
+
482
+ var bool = new type('tag:yaml.org,2002:bool', {
483
+ kind: 'scalar',
484
+ resolve: resolveYamlBoolean,
485
+ construct: constructYamlBoolean,
486
+ predicate: isBoolean,
487
+ represent: {
488
+ lowercase: function (object) { return object ? 'true' : 'false'; },
489
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
490
+ camelcase: function (object) { return object ? 'True' : 'False'; }
491
+ },
492
+ defaultStyle: 'lowercase'
493
+ });
494
+
495
+ function isHexCode(c) {
496
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
497
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
498
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
499
+ }
500
+
501
+ function isOctCode(c) {
502
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
503
+ }
504
+
505
+ function isDecCode(c) {
506
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
507
+ }
508
+
509
+ function resolveYamlInteger(data) {
510
+ if (data === null) return false;
511
+
512
+ var max = data.length,
513
+ index = 0,
514
+ hasDigits = false,
515
+ ch;
516
+
517
+ if (!max) return false;
518
+
519
+ ch = data[index];
520
+
521
+ // sign
522
+ if (ch === '-' || ch === '+') {
523
+ ch = data[++index];
524
+ }
525
+
526
+ if (ch === '0') {
527
+ // 0
528
+ if (index + 1 === max) return true;
529
+ ch = data[++index];
530
+
531
+ // base 2, base 8, base 16
532
+
533
+ if (ch === 'b') {
534
+ // base 2
535
+ index++;
536
+
537
+ for (; index < max; index++) {
538
+ ch = data[index];
539
+ if (ch === '_') continue;
540
+ if (ch !== '0' && ch !== '1') return false;
541
+ hasDigits = true;
542
+ }
543
+ return hasDigits && ch !== '_';
544
+ }
545
+
546
+
547
+ if (ch === 'x') {
548
+ // base 16
549
+ index++;
550
+
551
+ for (; index < max; index++) {
552
+ ch = data[index];
553
+ if (ch === '_') continue;
554
+ if (!isHexCode(data.charCodeAt(index))) return false;
555
+ hasDigits = true;
556
+ }
557
+ return hasDigits && ch !== '_';
558
+ }
559
+
560
+
561
+ if (ch === 'o') {
562
+ // base 8
563
+ index++;
564
+
565
+ for (; index < max; index++) {
566
+ ch = data[index];
567
+ if (ch === '_') continue;
568
+ if (!isOctCode(data.charCodeAt(index))) return false;
569
+ hasDigits = true;
570
+ }
571
+ return hasDigits && ch !== '_';
572
+ }
573
+ }
574
+
575
+ // base 10 (except 0)
576
+
577
+ // value should not start with `_`;
578
+ if (ch === '_') return false;
579
+
580
+ for (; index < max; index++) {
581
+ ch = data[index];
582
+ if (ch === '_') continue;
583
+ if (!isDecCode(data.charCodeAt(index))) {
584
+ return false;
585
+ }
586
+ hasDigits = true;
587
+ }
588
+
589
+ // Should have digits and should not end with `_`
590
+ if (!hasDigits || ch === '_') return false;
591
+
592
+ return true;
593
+ }
594
+
595
+ function constructYamlInteger(data) {
596
+ var value = data, sign = 1, ch;
597
+
598
+ if (value.indexOf('_') !== -1) {
599
+ value = value.replace(/_/g, '');
600
+ }
601
+
602
+ ch = value[0];
603
+
604
+ if (ch === '-' || ch === '+') {
605
+ if (ch === '-') sign = -1;
606
+ value = value.slice(1);
607
+ ch = value[0];
608
+ }
609
+
610
+ if (value === '0') return 0;
611
+
612
+ if (ch === '0') {
613
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
614
+ if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);
615
+ if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);
616
+ }
617
+
618
+ return sign * parseInt(value, 10);
619
+ }
620
+
621
+ function isInteger(object) {
622
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
623
+ (object % 1 === 0 && !common.isNegativeZero(object));
624
+ }
625
+
626
+ var int = new type('tag:yaml.org,2002:int', {
627
+ kind: 'scalar',
628
+ resolve: resolveYamlInteger,
629
+ construct: constructYamlInteger,
630
+ predicate: isInteger,
631
+ represent: {
632
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
633
+ octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },
634
+ decimal: function (obj) { return obj.toString(10); },
635
+ /* eslint-disable max-len */
636
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
637
+ },
638
+ defaultStyle: 'decimal',
639
+ styleAliases: {
640
+ binary: [ 2, 'bin' ],
641
+ octal: [ 8, 'oct' ],
642
+ decimal: [ 10, 'dec' ],
643
+ hexadecimal: [ 16, 'hex' ]
644
+ }
645
+ });
646
+
647
+ var YAML_FLOAT_PATTERN = new RegExp(
648
+ // 2.5e4, 2.5 and integers
649
+ '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
650
+ // .2e4, .2
651
+ // special case, seems not from spec
652
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
653
+ // .inf
654
+ '|[-+]?\\.(?:inf|Inf|INF)' +
655
+ // .nan
656
+ '|\\.(?:nan|NaN|NAN))$');
657
+
658
+ function resolveYamlFloat(data) {
659
+ if (data === null) return false;
660
+
661
+ if (!YAML_FLOAT_PATTERN.test(data) ||
662
+ // Quick hack to not allow integers end with `_`
663
+ // Probably should update regexp & check speed
664
+ data[data.length - 1] === '_') {
665
+ return false;
666
+ }
667
+
668
+ return true;
669
+ }
670
+
671
+ function constructYamlFloat(data) {
672
+ var value, sign;
673
+
674
+ value = data.replace(/_/g, '').toLowerCase();
675
+ sign = value[0] === '-' ? -1 : 1;
676
+
677
+ if ('+-'.indexOf(value[0]) >= 0) {
678
+ value = value.slice(1);
679
+ }
680
+
681
+ if (value === '.inf') {
682
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
683
+
684
+ } else if (value === '.nan') {
685
+ return NaN;
686
+ }
687
+ return sign * parseFloat(value, 10);
688
+ }
689
+
690
+
691
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
692
+
693
+ function representYamlFloat(object, style) {
694
+ var res;
695
+
696
+ if (isNaN(object)) {
697
+ switch (style) {
698
+ case 'lowercase': return '.nan';
699
+ case 'uppercase': return '.NAN';
700
+ case 'camelcase': return '.NaN';
701
+ }
702
+ } else if (Number.POSITIVE_INFINITY === object) {
703
+ switch (style) {
704
+ case 'lowercase': return '.inf';
705
+ case 'uppercase': return '.INF';
706
+ case 'camelcase': return '.Inf';
707
+ }
708
+ } else if (Number.NEGATIVE_INFINITY === object) {
709
+ switch (style) {
710
+ case 'lowercase': return '-.inf';
711
+ case 'uppercase': return '-.INF';
712
+ case 'camelcase': return '-.Inf';
713
+ }
714
+ } else if (common.isNegativeZero(object)) {
715
+ return '-0.0';
716
+ }
717
+
718
+ res = object.toString(10);
719
+
720
+ // JS stringifier can build scientific format without dots: 5e-100,
721
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
722
+
723
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
724
+ }
725
+
726
+ function isFloat(object) {
727
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
728
+ (object % 1 !== 0 || common.isNegativeZero(object));
729
+ }
730
+
731
+ var float = new type('tag:yaml.org,2002:float', {
732
+ kind: 'scalar',
733
+ resolve: resolveYamlFloat,
734
+ construct: constructYamlFloat,
735
+ predicate: isFloat,
736
+ represent: representYamlFloat,
737
+ defaultStyle: 'lowercase'
738
+ });
739
+
740
+ var json = failsafe.extend({
741
+ implicit: [
742
+ _null,
743
+ bool,
744
+ int,
745
+ float
746
+ ]
747
+ });
748
+
749
+ var core = json;
750
+
751
+ var YAML_DATE_REGEXP = new RegExp(
752
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
753
+ '-([0-9][0-9])' + // [2] month
754
+ '-([0-9][0-9])$'); // [3] day
755
+
756
+ var YAML_TIMESTAMP_REGEXP = new RegExp(
757
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
758
+ '-([0-9][0-9]?)' + // [2] month
759
+ '-([0-9][0-9]?)' + // [3] day
760
+ '(?:[Tt]|[ \\t]+)' + // ...
761
+ '([0-9][0-9]?)' + // [4] hour
762
+ ':([0-9][0-9])' + // [5] minute
763
+ ':([0-9][0-9])' + // [6] second
764
+ '(?:\\.([0-9]*))?' + // [7] fraction
765
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
766
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
767
+
768
+ function resolveYamlTimestamp(data) {
769
+ if (data === null) return false;
770
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
771
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
772
+ return false;
773
+ }
774
+
775
+ function constructYamlTimestamp(data) {
776
+ var match, year, month, day, hour, minute, second, fraction = 0,
777
+ delta = null, tz_hour, tz_minute, date;
778
+
779
+ match = YAML_DATE_REGEXP.exec(data);
780
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
781
+
782
+ if (match === null) throw new Error('Date resolve error');
783
+
784
+ // match: [1] year [2] month [3] day
785
+
786
+ year = +(match[1]);
787
+ month = +(match[2]) - 1; // JS month starts with 0
788
+ day = +(match[3]);
789
+
790
+ if (!match[4]) { // no hour
791
+ return new Date(Date.UTC(year, month, day));
792
+ }
793
+
794
+ // match: [4] hour [5] minute [6] second [7] fraction
795
+
796
+ hour = +(match[4]);
797
+ minute = +(match[5]);
798
+ second = +(match[6]);
799
+
800
+ if (match[7]) {
801
+ fraction = match[7].slice(0, 3);
802
+ while (fraction.length < 3) { // milli-seconds
803
+ fraction += '0';
804
+ }
805
+ fraction = +fraction;
806
+ }
807
+
808
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
809
+
810
+ if (match[9]) {
811
+ tz_hour = +(match[10]);
812
+ tz_minute = +(match[11] || 0);
813
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
814
+ if (match[9] === '-') delta = -delta;
815
+ }
816
+
817
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
818
+
819
+ if (delta) date.setTime(date.getTime() - delta);
820
+
821
+ return date;
822
+ }
823
+
824
+ function representYamlTimestamp(object /*, style*/) {
825
+ return object.toISOString();
826
+ }
827
+
828
+ var timestamp = new type('tag:yaml.org,2002:timestamp', {
829
+ kind: 'scalar',
830
+ resolve: resolveYamlTimestamp,
831
+ construct: constructYamlTimestamp,
832
+ instanceOf: Date,
833
+ represent: representYamlTimestamp
834
+ });
835
+
836
+ function resolveYamlMerge(data) {
837
+ return data === '<<' || data === null;
838
+ }
839
+
840
+ var merge = new type('tag:yaml.org,2002:merge', {
841
+ kind: 'scalar',
842
+ resolve: resolveYamlMerge
843
+ });
844
+
845
+ /*eslint-disable no-bitwise*/
846
+
847
+
848
+
849
+
850
+
851
+ // [ 64, 65, 66 ] -> [ padding, CR, LF ]
852
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
853
+
854
+
855
+ function resolveYamlBinary(data) {
856
+ if (data === null) return false;
857
+
858
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
859
+
860
+ // Convert one by one.
861
+ for (idx = 0; idx < max; idx++) {
862
+ code = map.indexOf(data.charAt(idx));
863
+
864
+ // Skip CR/LF
865
+ if (code > 64) continue;
866
+
867
+ // Fail on illegal characters
868
+ if (code < 0) return false;
869
+
870
+ bitlen += 6;
871
+ }
872
+
873
+ // If there are any bits left, source was corrupted
874
+ return (bitlen % 8) === 0;
875
+ }
876
+
877
+ function constructYamlBinary(data) {
878
+ var idx, tailbits,
879
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
880
+ max = input.length,
881
+ map = BASE64_MAP,
882
+ bits = 0,
883
+ result = [];
884
+
885
+ // Collect by 6*4 bits (3 bytes)
886
+
887
+ for (idx = 0; idx < max; idx++) {
888
+ if ((idx % 4 === 0) && idx) {
889
+ result.push((bits >> 16) & 0xFF);
890
+ result.push((bits >> 8) & 0xFF);
891
+ result.push(bits & 0xFF);
892
+ }
893
+
894
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
895
+ }
896
+
897
+ // Dump tail
898
+
899
+ tailbits = (max % 4) * 6;
900
+
901
+ if (tailbits === 0) {
902
+ result.push((bits >> 16) & 0xFF);
903
+ result.push((bits >> 8) & 0xFF);
904
+ result.push(bits & 0xFF);
905
+ } else if (tailbits === 18) {
906
+ result.push((bits >> 10) & 0xFF);
907
+ result.push((bits >> 2) & 0xFF);
908
+ } else if (tailbits === 12) {
909
+ result.push((bits >> 4) & 0xFF);
910
+ }
911
+
912
+ return new Uint8Array(result);
913
+ }
914
+
915
+ function representYamlBinary(object /*, style*/) {
916
+ var result = '', bits = 0, idx, tail,
917
+ max = object.length,
918
+ map = BASE64_MAP;
919
+
920
+ // Convert every three bytes to 4 ASCII characters.
921
+
922
+ for (idx = 0; idx < max; idx++) {
923
+ if ((idx % 3 === 0) && idx) {
924
+ result += map[(bits >> 18) & 0x3F];
925
+ result += map[(bits >> 12) & 0x3F];
926
+ result += map[(bits >> 6) & 0x3F];
927
+ result += map[bits & 0x3F];
928
+ }
929
+
930
+ bits = (bits << 8) + object[idx];
931
+ }
932
+
933
+ // Dump tail
934
+
935
+ tail = max % 3;
936
+
937
+ if (tail === 0) {
938
+ result += map[(bits >> 18) & 0x3F];
939
+ result += map[(bits >> 12) & 0x3F];
940
+ result += map[(bits >> 6) & 0x3F];
941
+ result += map[bits & 0x3F];
942
+ } else if (tail === 2) {
943
+ result += map[(bits >> 10) & 0x3F];
944
+ result += map[(bits >> 4) & 0x3F];
945
+ result += map[(bits << 2) & 0x3F];
946
+ result += map[64];
947
+ } else if (tail === 1) {
948
+ result += map[(bits >> 2) & 0x3F];
949
+ result += map[(bits << 4) & 0x3F];
950
+ result += map[64];
951
+ result += map[64];
952
+ }
953
+
954
+ return result;
955
+ }
956
+
957
+ function isBinary(obj) {
958
+ return Object.prototype.toString.call(obj) === '[object Uint8Array]';
959
+ }
960
+
961
+ var binary = new type('tag:yaml.org,2002:binary', {
962
+ kind: 'scalar',
963
+ resolve: resolveYamlBinary,
964
+ construct: constructYamlBinary,
965
+ predicate: isBinary,
966
+ represent: representYamlBinary
967
+ });
968
+
969
+ var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
970
+ var _toString$2 = Object.prototype.toString;
971
+
972
+ function resolveYamlOmap(data) {
973
+ if (data === null) return true;
974
+
975
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
976
+ object = data;
977
+
978
+ for (index = 0, length = object.length; index < length; index += 1) {
979
+ pair = object[index];
980
+ pairHasKey = false;
981
+
982
+ if (_toString$2.call(pair) !== '[object Object]') return false;
983
+
984
+ for (pairKey in pair) {
985
+ if (_hasOwnProperty$3.call(pair, pairKey)) {
986
+ if (!pairHasKey) pairHasKey = true;
987
+ else return false;
988
+ }
989
+ }
990
+
991
+ if (!pairHasKey) return false;
992
+
993
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
994
+ else return false;
995
+ }
996
+
997
+ return true;
998
+ }
999
+
1000
+ function constructYamlOmap(data) {
1001
+ return data !== null ? data : [];
1002
+ }
1003
+
1004
+ var omap = new type('tag:yaml.org,2002:omap', {
1005
+ kind: 'sequence',
1006
+ resolve: resolveYamlOmap,
1007
+ construct: constructYamlOmap
1008
+ });
1009
+
1010
+ var _toString$1 = Object.prototype.toString;
1011
+
1012
+ function resolveYamlPairs(data) {
1013
+ if (data === null) return true;
1014
+
1015
+ var index, length, pair, keys, result,
1016
+ object = data;
1017
+
1018
+ result = new Array(object.length);
1019
+
1020
+ for (index = 0, length = object.length; index < length; index += 1) {
1021
+ pair = object[index];
1022
+
1023
+ if (_toString$1.call(pair) !== '[object Object]') return false;
1024
+
1025
+ keys = Object.keys(pair);
1026
+
1027
+ if (keys.length !== 1) return false;
1028
+
1029
+ result[index] = [ keys[0], pair[keys[0]] ];
1030
+ }
1031
+
1032
+ return true;
1033
+ }
1034
+
1035
+ function constructYamlPairs(data) {
1036
+ if (data === null) return [];
1037
+
1038
+ var index, length, pair, keys, result,
1039
+ object = data;
1040
+
1041
+ result = new Array(object.length);
1042
+
1043
+ for (index = 0, length = object.length; index < length; index += 1) {
1044
+ pair = object[index];
1045
+
1046
+ keys = Object.keys(pair);
1047
+
1048
+ result[index] = [ keys[0], pair[keys[0]] ];
1049
+ }
1050
+
1051
+ return result;
1052
+ }
1053
+
1054
+ var pairs = new type('tag:yaml.org,2002:pairs', {
1055
+ kind: 'sequence',
1056
+ resolve: resolveYamlPairs,
1057
+ construct: constructYamlPairs
1058
+ });
1059
+
1060
+ var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1061
+
1062
+ function resolveYamlSet(data) {
1063
+ if (data === null) return true;
1064
+
1065
+ var key, object = data;
1066
+
1067
+ for (key in object) {
1068
+ if (_hasOwnProperty$2.call(object, key)) {
1069
+ if (object[key] !== null) return false;
1070
+ }
1071
+ }
1072
+
1073
+ return true;
1074
+ }
1075
+
1076
+ function constructYamlSet(data) {
1077
+ return data !== null ? data : {};
1078
+ }
1079
+
1080
+ var set = new type('tag:yaml.org,2002:set', {
1081
+ kind: 'mapping',
1082
+ resolve: resolveYamlSet,
1083
+ construct: constructYamlSet
1084
+ });
1085
+
1086
+ var _default = core.extend({
1087
+ implicit: [
1088
+ timestamp,
1089
+ merge
1090
+ ],
1091
+ explicit: [
1092
+ binary,
1093
+ omap,
1094
+ pairs,
1095
+ set
1096
+ ]
1097
+ });
1098
+
1099
+ /*eslint-disable max-len,no-use-before-define*/
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+ var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1108
+
1109
+
1110
+ var CONTEXT_FLOW_IN = 1;
1111
+ var CONTEXT_FLOW_OUT = 2;
1112
+ var CONTEXT_BLOCK_IN = 3;
1113
+ var CONTEXT_BLOCK_OUT = 4;
1114
+
1115
+
1116
+ var CHOMPING_CLIP = 1;
1117
+ var CHOMPING_STRIP = 2;
1118
+ var CHOMPING_KEEP = 3;
1119
+
1120
+
1121
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
1122
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
1123
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
1124
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
1125
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1126
+
1127
+
1128
+ function _class(obj) { return Object.prototype.toString.call(obj); }
1129
+
1130
+ function is_EOL(c) {
1131
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
1132
+ }
1133
+
1134
+ function is_WHITE_SPACE(c) {
1135
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
1136
+ }
1137
+
1138
+ function is_WS_OR_EOL(c) {
1139
+ return (c === 0x09/* Tab */) ||
1140
+ (c === 0x20/* Space */) ||
1141
+ (c === 0x0A/* LF */) ||
1142
+ (c === 0x0D/* CR */);
1143
+ }
1144
+
1145
+ function is_FLOW_INDICATOR(c) {
1146
+ return c === 0x2C/* , */ ||
1147
+ c === 0x5B/* [ */ ||
1148
+ c === 0x5D/* ] */ ||
1149
+ c === 0x7B/* { */ ||
1150
+ c === 0x7D/* } */;
1151
+ }
1152
+
1153
+ function fromHexCode(c) {
1154
+ var lc;
1155
+
1156
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1157
+ return c - 0x30;
1158
+ }
1159
+
1160
+ /*eslint-disable no-bitwise*/
1161
+ lc = c | 0x20;
1162
+
1163
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
1164
+ return lc - 0x61 + 10;
1165
+ }
1166
+
1167
+ return -1;
1168
+ }
1169
+
1170
+ function escapedHexLen(c) {
1171
+ if (c === 0x78/* x */) { return 2; }
1172
+ if (c === 0x75/* u */) { return 4; }
1173
+ if (c === 0x55/* U */) { return 8; }
1174
+ return 0;
1175
+ }
1176
+
1177
+ function fromDecimalCode(c) {
1178
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1179
+ return c - 0x30;
1180
+ }
1181
+
1182
+ return -1;
1183
+ }
1184
+
1185
+ function simpleEscapeSequence(c) {
1186
+ /* eslint-disable indent */
1187
+ return (c === 0x30/* 0 */) ? '\x00' :
1188
+ (c === 0x61/* a */) ? '\x07' :
1189
+ (c === 0x62/* b */) ? '\x08' :
1190
+ (c === 0x74/* t */) ? '\x09' :
1191
+ (c === 0x09/* Tab */) ? '\x09' :
1192
+ (c === 0x6E/* n */) ? '\x0A' :
1193
+ (c === 0x76/* v */) ? '\x0B' :
1194
+ (c === 0x66/* f */) ? '\x0C' :
1195
+ (c === 0x72/* r */) ? '\x0D' :
1196
+ (c === 0x65/* e */) ? '\x1B' :
1197
+ (c === 0x20/* Space */) ? ' ' :
1198
+ (c === 0x22/* " */) ? '\x22' :
1199
+ (c === 0x2F/* / */) ? '/' :
1200
+ (c === 0x5C/* \ */) ? '\x5C' :
1201
+ (c === 0x4E/* N */) ? '\x85' :
1202
+ (c === 0x5F/* _ */) ? '\xA0' :
1203
+ (c === 0x4C/* L */) ? '\u2028' :
1204
+ (c === 0x50/* P */) ? '\u2029' : '';
1205
+ }
1206
+
1207
+ function charFromCodepoint(c) {
1208
+ if (c <= 0xFFFF) {
1209
+ return String.fromCharCode(c);
1210
+ }
1211
+ // Encode UTF-16 surrogate pair
1212
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
1213
+ return String.fromCharCode(
1214
+ ((c - 0x010000) >> 10) + 0xD800,
1215
+ ((c - 0x010000) & 0x03FF) + 0xDC00
1216
+ );
1217
+ }
1218
+
1219
+ var simpleEscapeCheck = new Array(256); // integer, for fast access
1220
+ var simpleEscapeMap = new Array(256);
1221
+ for (var i = 0; i < 256; i++) {
1222
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
1223
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
1224
+ }
1225
+
1226
+
1227
+ function State$1(input, options) {
1228
+ this.input = input;
1229
+
1230
+ this.filename = options['filename'] || null;
1231
+ this.schema = options['schema'] || _default;
1232
+ this.onWarning = options['onWarning'] || null;
1233
+ // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
1234
+ // if such documents have no explicit %YAML directive
1235
+ this.legacy = options['legacy'] || false;
1236
+
1237
+ this.json = options['json'] || false;
1238
+ this.listener = options['listener'] || null;
1239
+
1240
+ this.implicitTypes = this.schema.compiledImplicit;
1241
+ this.typeMap = this.schema.compiledTypeMap;
1242
+
1243
+ this.length = input.length;
1244
+ this.position = 0;
1245
+ this.line = 0;
1246
+ this.lineStart = 0;
1247
+ this.lineIndent = 0;
1248
+
1249
+ // position of first leading tab in the current line,
1250
+ // used to make sure there are no tabs in the indentation
1251
+ this.firstTabInLine = -1;
1252
+
1253
+ this.documents = [];
1254
+
1255
+ /*
1256
+ this.version;
1257
+ this.checkLineBreaks;
1258
+ this.tagMap;
1259
+ this.anchorMap;
1260
+ this.tag;
1261
+ this.anchor;
1262
+ this.kind;
1263
+ this.result;*/
1264
+
1265
+ }
1266
+
1267
+
1268
+ function generateError(state, message) {
1269
+ var mark = {
1270
+ name: state.filename,
1271
+ buffer: state.input.slice(0, -1), // omit trailing \0
1272
+ position: state.position,
1273
+ line: state.line,
1274
+ column: state.position - state.lineStart
1275
+ };
1276
+
1277
+ mark.snippet = snippet(mark);
1278
+
1279
+ return new exception(message, mark);
1280
+ }
1281
+
1282
+ function throwError(state, message) {
1283
+ throw generateError(state, message);
1284
+ }
1285
+
1286
+ function throwWarning(state, message) {
1287
+ if (state.onWarning) {
1288
+ state.onWarning.call(null, generateError(state, message));
1289
+ }
1290
+ }
1291
+
1292
+
1293
+ var directiveHandlers = {
1294
+
1295
+ YAML: function handleYamlDirective(state, name, args) {
1296
+
1297
+ var match, major, minor;
1298
+
1299
+ if (state.version !== null) {
1300
+ throwError(state, 'duplication of %YAML directive');
1301
+ }
1302
+
1303
+ if (args.length !== 1) {
1304
+ throwError(state, 'YAML directive accepts exactly one argument');
1305
+ }
1306
+
1307
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1308
+
1309
+ if (match === null) {
1310
+ throwError(state, 'ill-formed argument of the YAML directive');
1311
+ }
1312
+
1313
+ major = parseInt(match[1], 10);
1314
+ minor = parseInt(match[2], 10);
1315
+
1316
+ if (major !== 1) {
1317
+ throwError(state, 'unacceptable YAML version of the document');
1318
+ }
1319
+
1320
+ state.version = args[0];
1321
+ state.checkLineBreaks = (minor < 2);
1322
+
1323
+ if (minor !== 1 && minor !== 2) {
1324
+ throwWarning(state, 'unsupported YAML version of the document');
1325
+ }
1326
+ },
1327
+
1328
+ TAG: function handleTagDirective(state, name, args) {
1329
+
1330
+ var handle, prefix;
1331
+
1332
+ if (args.length !== 2) {
1333
+ throwError(state, 'TAG directive accepts exactly two arguments');
1334
+ }
1335
+
1336
+ handle = args[0];
1337
+ prefix = args[1];
1338
+
1339
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
1340
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1341
+ }
1342
+
1343
+ if (_hasOwnProperty$1.call(state.tagMap, handle)) {
1344
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1345
+ }
1346
+
1347
+ if (!PATTERN_TAG_URI.test(prefix)) {
1348
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
1349
+ }
1350
+
1351
+ try {
1352
+ prefix = decodeURIComponent(prefix);
1353
+ } catch (err) {
1354
+ throwError(state, 'tag prefix is malformed: ' + prefix);
1355
+ }
1356
+
1357
+ state.tagMap[handle] = prefix;
1358
+ }
1359
+ };
1360
+
1361
+
1362
+ function captureSegment(state, start, end, checkJson) {
1363
+ var _position, _length, _character, _result;
1364
+
1365
+ if (start < end) {
1366
+ _result = state.input.slice(start, end);
1367
+
1368
+ if (checkJson) {
1369
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1370
+ _character = _result.charCodeAt(_position);
1371
+ if (!(_character === 0x09 ||
1372
+ (0x20 <= _character && _character <= 0x10FFFF))) {
1373
+ throwError(state, 'expected valid JSON character');
1374
+ }
1375
+ }
1376
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1377
+ throwError(state, 'the stream contains non-printable characters');
1378
+ }
1379
+
1380
+ state.result += _result;
1381
+ }
1382
+ }
1383
+
1384
+ function mergeMappings(state, destination, source, overridableKeys) {
1385
+ var sourceKeys, key, index, quantity;
1386
+
1387
+ if (!common.isObject(source)) {
1388
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1389
+ }
1390
+
1391
+ sourceKeys = Object.keys(source);
1392
+
1393
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1394
+ key = sourceKeys[index];
1395
+
1396
+ if (!_hasOwnProperty$1.call(destination, key)) {
1397
+ destination[key] = source[key];
1398
+ overridableKeys[key] = true;
1399
+ }
1400
+ }
1401
+ }
1402
+
1403
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,
1404
+ startLine, startLineStart, startPos) {
1405
+
1406
+ var index, quantity;
1407
+
1408
+ // The output is a plain object here, so keys can only be strings.
1409
+ // We need to convert keyNode to a string, but doing so can hang the process
1410
+ // (deeply nested arrays that explode exponentially using aliases).
1411
+ if (Array.isArray(keyNode)) {
1412
+ keyNode = Array.prototype.slice.call(keyNode);
1413
+
1414
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1415
+ if (Array.isArray(keyNode[index])) {
1416
+ throwError(state, 'nested arrays are not supported inside keys');
1417
+ }
1418
+
1419
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
1420
+ keyNode[index] = '[object Object]';
1421
+ }
1422
+ }
1423
+ }
1424
+
1425
+ // Avoid code execution in load() via toString property
1426
+ // (still use its own toString for arrays, timestamps,
1427
+ // and whatever user schema extensions happen to have @@toStringTag)
1428
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
1429
+ keyNode = '[object Object]';
1430
+ }
1431
+
1432
+
1433
+ keyNode = String(keyNode);
1434
+
1435
+ if (_result === null) {
1436
+ _result = {};
1437
+ }
1438
+
1439
+ if (keyTag === 'tag:yaml.org,2002:merge') {
1440
+ if (Array.isArray(valueNode)) {
1441
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1442
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
1443
+ }
1444
+ } else {
1445
+ mergeMappings(state, _result, valueNode, overridableKeys);
1446
+ }
1447
+ } else {
1448
+ if (!state.json &&
1449
+ !_hasOwnProperty$1.call(overridableKeys, keyNode) &&
1450
+ _hasOwnProperty$1.call(_result, keyNode)) {
1451
+ state.line = startLine || state.line;
1452
+ state.lineStart = startLineStart || state.lineStart;
1453
+ state.position = startPos || state.position;
1454
+ throwError(state, 'duplicated mapping key');
1455
+ }
1456
+
1457
+ // used for this specific key only because Object.defineProperty is slow
1458
+ if (keyNode === '__proto__') {
1459
+ Object.defineProperty(_result, keyNode, {
1460
+ configurable: true,
1461
+ enumerable: true,
1462
+ writable: true,
1463
+ value: valueNode
1464
+ });
1465
+ } else {
1466
+ _result[keyNode] = valueNode;
1467
+ }
1468
+ delete overridableKeys[keyNode];
1469
+ }
1470
+
1471
+ return _result;
1472
+ }
1473
+
1474
+ function readLineBreak(state) {
1475
+ var ch;
1476
+
1477
+ ch = state.input.charCodeAt(state.position);
1478
+
1479
+ if (ch === 0x0A/* LF */) {
1480
+ state.position++;
1481
+ } else if (ch === 0x0D/* CR */) {
1482
+ state.position++;
1483
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
1484
+ state.position++;
1485
+ }
1486
+ } else {
1487
+ throwError(state, 'a line break is expected');
1488
+ }
1489
+
1490
+ state.line += 1;
1491
+ state.lineStart = state.position;
1492
+ state.firstTabInLine = -1;
1493
+ }
1494
+
1495
+ function skipSeparationSpace(state, allowComments, checkIndent) {
1496
+ var lineBreaks = 0,
1497
+ ch = state.input.charCodeAt(state.position);
1498
+
1499
+ while (ch !== 0) {
1500
+ while (is_WHITE_SPACE(ch)) {
1501
+ if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
1502
+ state.firstTabInLine = state.position;
1503
+ }
1504
+ ch = state.input.charCodeAt(++state.position);
1505
+ }
1506
+
1507
+ if (allowComments && ch === 0x23/* # */) {
1508
+ do {
1509
+ ch = state.input.charCodeAt(++state.position);
1510
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
1511
+ }
1512
+
1513
+ if (is_EOL(ch)) {
1514
+ readLineBreak(state);
1515
+
1516
+ ch = state.input.charCodeAt(state.position);
1517
+ lineBreaks++;
1518
+ state.lineIndent = 0;
1519
+
1520
+ while (ch === 0x20/* Space */) {
1521
+ state.lineIndent++;
1522
+ ch = state.input.charCodeAt(++state.position);
1523
+ }
1524
+ } else {
1525
+ break;
1526
+ }
1527
+ }
1528
+
1529
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1530
+ throwWarning(state, 'deficient indentation');
1531
+ }
1532
+
1533
+ return lineBreaks;
1534
+ }
1535
+
1536
+ function testDocumentSeparator(state) {
1537
+ var _position = state.position,
1538
+ ch;
1539
+
1540
+ ch = state.input.charCodeAt(_position);
1541
+
1542
+ // Condition state.position === state.lineStart is tested
1543
+ // in parent on each call, for efficiency. No needs to test here again.
1544
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
1545
+ ch === state.input.charCodeAt(_position + 1) &&
1546
+ ch === state.input.charCodeAt(_position + 2)) {
1547
+
1548
+ _position += 3;
1549
+
1550
+ ch = state.input.charCodeAt(_position);
1551
+
1552
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
1553
+ return true;
1554
+ }
1555
+ }
1556
+
1557
+ return false;
1558
+ }
1559
+
1560
+ function writeFoldedLines(state, count) {
1561
+ if (count === 1) {
1562
+ state.result += ' ';
1563
+ } else if (count > 1) {
1564
+ state.result += common.repeat('\n', count - 1);
1565
+ }
1566
+ }
1567
+
1568
+
1569
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1570
+ var preceding,
1571
+ following,
1572
+ captureStart,
1573
+ captureEnd,
1574
+ hasPendingContent,
1575
+ _line,
1576
+ _lineStart,
1577
+ _lineIndent,
1578
+ _kind = state.kind,
1579
+ _result = state.result,
1580
+ ch;
1581
+
1582
+ ch = state.input.charCodeAt(state.position);
1583
+
1584
+ if (is_WS_OR_EOL(ch) ||
1585
+ is_FLOW_INDICATOR(ch) ||
1586
+ ch === 0x23/* # */ ||
1587
+ ch === 0x26/* & */ ||
1588
+ ch === 0x2A/* * */ ||
1589
+ ch === 0x21/* ! */ ||
1590
+ ch === 0x7C/* | */ ||
1591
+ ch === 0x3E/* > */ ||
1592
+ ch === 0x27/* ' */ ||
1593
+ ch === 0x22/* " */ ||
1594
+ ch === 0x25/* % */ ||
1595
+ ch === 0x40/* @ */ ||
1596
+ ch === 0x60/* ` */) {
1597
+ return false;
1598
+ }
1599
+
1600
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
1601
+ following = state.input.charCodeAt(state.position + 1);
1602
+
1603
+ if (is_WS_OR_EOL(following) ||
1604
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1605
+ return false;
1606
+ }
1607
+ }
1608
+
1609
+ state.kind = 'scalar';
1610
+ state.result = '';
1611
+ captureStart = captureEnd = state.position;
1612
+ hasPendingContent = false;
1613
+
1614
+ while (ch !== 0) {
1615
+ if (ch === 0x3A/* : */) {
1616
+ following = state.input.charCodeAt(state.position + 1);
1617
+
1618
+ if (is_WS_OR_EOL(following) ||
1619
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1620
+ break;
1621
+ }
1622
+
1623
+ } else if (ch === 0x23/* # */) {
1624
+ preceding = state.input.charCodeAt(state.position - 1);
1625
+
1626
+ if (is_WS_OR_EOL(preceding)) {
1627
+ break;
1628
+ }
1629
+
1630
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
1631
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1632
+ break;
1633
+
1634
+ } else if (is_EOL(ch)) {
1635
+ _line = state.line;
1636
+ _lineStart = state.lineStart;
1637
+ _lineIndent = state.lineIndent;
1638
+ skipSeparationSpace(state, false, -1);
1639
+
1640
+ if (state.lineIndent >= nodeIndent) {
1641
+ hasPendingContent = true;
1642
+ ch = state.input.charCodeAt(state.position);
1643
+ continue;
1644
+ } else {
1645
+ state.position = captureEnd;
1646
+ state.line = _line;
1647
+ state.lineStart = _lineStart;
1648
+ state.lineIndent = _lineIndent;
1649
+ break;
1650
+ }
1651
+ }
1652
+
1653
+ if (hasPendingContent) {
1654
+ captureSegment(state, captureStart, captureEnd, false);
1655
+ writeFoldedLines(state, state.line - _line);
1656
+ captureStart = captureEnd = state.position;
1657
+ hasPendingContent = false;
1658
+ }
1659
+
1660
+ if (!is_WHITE_SPACE(ch)) {
1661
+ captureEnd = state.position + 1;
1662
+ }
1663
+
1664
+ ch = state.input.charCodeAt(++state.position);
1665
+ }
1666
+
1667
+ captureSegment(state, captureStart, captureEnd, false);
1668
+
1669
+ if (state.result) {
1670
+ return true;
1671
+ }
1672
+
1673
+ state.kind = _kind;
1674
+ state.result = _result;
1675
+ return false;
1676
+ }
1677
+
1678
+ function readSingleQuotedScalar(state, nodeIndent) {
1679
+ var ch,
1680
+ captureStart, captureEnd;
1681
+
1682
+ ch = state.input.charCodeAt(state.position);
1683
+
1684
+ if (ch !== 0x27/* ' */) {
1685
+ return false;
1686
+ }
1687
+
1688
+ state.kind = 'scalar';
1689
+ state.result = '';
1690
+ state.position++;
1691
+ captureStart = captureEnd = state.position;
1692
+
1693
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1694
+ if (ch === 0x27/* ' */) {
1695
+ captureSegment(state, captureStart, state.position, true);
1696
+ ch = state.input.charCodeAt(++state.position);
1697
+
1698
+ if (ch === 0x27/* ' */) {
1699
+ captureStart = state.position;
1700
+ state.position++;
1701
+ captureEnd = state.position;
1702
+ } else {
1703
+ return true;
1704
+ }
1705
+
1706
+ } else if (is_EOL(ch)) {
1707
+ captureSegment(state, captureStart, captureEnd, true);
1708
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1709
+ captureStart = captureEnd = state.position;
1710
+
1711
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1712
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
1713
+
1714
+ } else {
1715
+ state.position++;
1716
+ captureEnd = state.position;
1717
+ }
1718
+ }
1719
+
1720
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
1721
+ }
1722
+
1723
+ function readDoubleQuotedScalar(state, nodeIndent) {
1724
+ var captureStart,
1725
+ captureEnd,
1726
+ hexLength,
1727
+ hexResult,
1728
+ tmp,
1729
+ ch;
1730
+
1731
+ ch = state.input.charCodeAt(state.position);
1732
+
1733
+ if (ch !== 0x22/* " */) {
1734
+ return false;
1735
+ }
1736
+
1737
+ state.kind = 'scalar';
1738
+ state.result = '';
1739
+ state.position++;
1740
+ captureStart = captureEnd = state.position;
1741
+
1742
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1743
+ if (ch === 0x22/* " */) {
1744
+ captureSegment(state, captureStart, state.position, true);
1745
+ state.position++;
1746
+ return true;
1747
+
1748
+ } else if (ch === 0x5C/* \ */) {
1749
+ captureSegment(state, captureStart, state.position, true);
1750
+ ch = state.input.charCodeAt(++state.position);
1751
+
1752
+ if (is_EOL(ch)) {
1753
+ skipSeparationSpace(state, false, nodeIndent);
1754
+
1755
+ // TODO: rework to inline fn with no type cast?
1756
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
1757
+ state.result += simpleEscapeMap[ch];
1758
+ state.position++;
1759
+
1760
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
1761
+ hexLength = tmp;
1762
+ hexResult = 0;
1763
+
1764
+ for (; hexLength > 0; hexLength--) {
1765
+ ch = state.input.charCodeAt(++state.position);
1766
+
1767
+ if ((tmp = fromHexCode(ch)) >= 0) {
1768
+ hexResult = (hexResult << 4) + tmp;
1769
+
1770
+ } else {
1771
+ throwError(state, 'expected hexadecimal character');
1772
+ }
1773
+ }
1774
+
1775
+ state.result += charFromCodepoint(hexResult);
1776
+
1777
+ state.position++;
1778
+
1779
+ } else {
1780
+ throwError(state, 'unknown escape sequence');
1781
+ }
1782
+
1783
+ captureStart = captureEnd = state.position;
1784
+
1785
+ } else if (is_EOL(ch)) {
1786
+ captureSegment(state, captureStart, captureEnd, true);
1787
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1788
+ captureStart = captureEnd = state.position;
1789
+
1790
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1791
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
1792
+
1793
+ } else {
1794
+ state.position++;
1795
+ captureEnd = state.position;
1796
+ }
1797
+ }
1798
+
1799
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
1800
+ }
1801
+
1802
+ function readFlowCollection(state, nodeIndent) {
1803
+ var readNext = true,
1804
+ _line,
1805
+ _lineStart,
1806
+ _pos,
1807
+ _tag = state.tag,
1808
+ _result,
1809
+ _anchor = state.anchor,
1810
+ following,
1811
+ terminator,
1812
+ isPair,
1813
+ isExplicitPair,
1814
+ isMapping,
1815
+ overridableKeys = Object.create(null),
1816
+ keyNode,
1817
+ keyTag,
1818
+ valueNode,
1819
+ ch;
1820
+
1821
+ ch = state.input.charCodeAt(state.position);
1822
+
1823
+ if (ch === 0x5B/* [ */) {
1824
+ terminator = 0x5D;/* ] */
1825
+ isMapping = false;
1826
+ _result = [];
1827
+ } else if (ch === 0x7B/* { */) {
1828
+ terminator = 0x7D;/* } */
1829
+ isMapping = true;
1830
+ _result = {};
1831
+ } else {
1832
+ return false;
1833
+ }
1834
+
1835
+ if (state.anchor !== null) {
1836
+ state.anchorMap[state.anchor] = _result;
1837
+ }
1838
+
1839
+ ch = state.input.charCodeAt(++state.position);
1840
+
1841
+ while (ch !== 0) {
1842
+ skipSeparationSpace(state, true, nodeIndent);
1843
+
1844
+ ch = state.input.charCodeAt(state.position);
1845
+
1846
+ if (ch === terminator) {
1847
+ state.position++;
1848
+ state.tag = _tag;
1849
+ state.anchor = _anchor;
1850
+ state.kind = isMapping ? 'mapping' : 'sequence';
1851
+ state.result = _result;
1852
+ return true;
1853
+ } else if (!readNext) {
1854
+ throwError(state, 'missed comma between flow collection entries');
1855
+ } else if (ch === 0x2C/* , */) {
1856
+ // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
1857
+ throwError(state, "expected the node content, but found ','");
1858
+ }
1859
+
1860
+ keyTag = keyNode = valueNode = null;
1861
+ isPair = isExplicitPair = false;
1862
+
1863
+ if (ch === 0x3F/* ? */) {
1864
+ following = state.input.charCodeAt(state.position + 1);
1865
+
1866
+ if (is_WS_OR_EOL(following)) {
1867
+ isPair = isExplicitPair = true;
1868
+ state.position++;
1869
+ skipSeparationSpace(state, true, nodeIndent);
1870
+ }
1871
+ }
1872
+
1873
+ _line = state.line; // Save the current line.
1874
+ _lineStart = state.lineStart;
1875
+ _pos = state.position;
1876
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1877
+ keyTag = state.tag;
1878
+ keyNode = state.result;
1879
+ skipSeparationSpace(state, true, nodeIndent);
1880
+
1881
+ ch = state.input.charCodeAt(state.position);
1882
+
1883
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
1884
+ isPair = true;
1885
+ ch = state.input.charCodeAt(++state.position);
1886
+ skipSeparationSpace(state, true, nodeIndent);
1887
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1888
+ valueNode = state.result;
1889
+ }
1890
+
1891
+ if (isMapping) {
1892
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1893
+ } else if (isPair) {
1894
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1895
+ } else {
1896
+ _result.push(keyNode);
1897
+ }
1898
+
1899
+ skipSeparationSpace(state, true, nodeIndent);
1900
+
1901
+ ch = state.input.charCodeAt(state.position);
1902
+
1903
+ if (ch === 0x2C/* , */) {
1904
+ readNext = true;
1905
+ ch = state.input.charCodeAt(++state.position);
1906
+ } else {
1907
+ readNext = false;
1908
+ }
1909
+ }
1910
+
1911
+ throwError(state, 'unexpected end of the stream within a flow collection');
1912
+ }
1913
+
1914
+ function readBlockScalar(state, nodeIndent) {
1915
+ var captureStart,
1916
+ folding,
1917
+ chomping = CHOMPING_CLIP,
1918
+ didReadContent = false,
1919
+ detectedIndent = false,
1920
+ textIndent = nodeIndent,
1921
+ emptyLines = 0,
1922
+ atMoreIndented = false,
1923
+ tmp,
1924
+ ch;
1925
+
1926
+ ch = state.input.charCodeAt(state.position);
1927
+
1928
+ if (ch === 0x7C/* | */) {
1929
+ folding = false;
1930
+ } else if (ch === 0x3E/* > */) {
1931
+ folding = true;
1932
+ } else {
1933
+ return false;
1934
+ }
1935
+
1936
+ state.kind = 'scalar';
1937
+ state.result = '';
1938
+
1939
+ while (ch !== 0) {
1940
+ ch = state.input.charCodeAt(++state.position);
1941
+
1942
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
1943
+ if (CHOMPING_CLIP === chomping) {
1944
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
1945
+ } else {
1946
+ throwError(state, 'repeat of a chomping mode identifier');
1947
+ }
1948
+
1949
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1950
+ if (tmp === 0) {
1951
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1952
+ } else if (!detectedIndent) {
1953
+ textIndent = nodeIndent + tmp - 1;
1954
+ detectedIndent = true;
1955
+ } else {
1956
+ throwError(state, 'repeat of an indentation width identifier');
1957
+ }
1958
+
1959
+ } else {
1960
+ break;
1961
+ }
1962
+ }
1963
+
1964
+ if (is_WHITE_SPACE(ch)) {
1965
+ do { ch = state.input.charCodeAt(++state.position); }
1966
+ while (is_WHITE_SPACE(ch));
1967
+
1968
+ if (ch === 0x23/* # */) {
1969
+ do { ch = state.input.charCodeAt(++state.position); }
1970
+ while (!is_EOL(ch) && (ch !== 0));
1971
+ }
1972
+ }
1973
+
1974
+ while (ch !== 0) {
1975
+ readLineBreak(state);
1976
+ state.lineIndent = 0;
1977
+
1978
+ ch = state.input.charCodeAt(state.position);
1979
+
1980
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
1981
+ (ch === 0x20/* Space */)) {
1982
+ state.lineIndent++;
1983
+ ch = state.input.charCodeAt(++state.position);
1984
+ }
1985
+
1986
+ if (!detectedIndent && state.lineIndent > textIndent) {
1987
+ textIndent = state.lineIndent;
1988
+ }
1989
+
1990
+ if (is_EOL(ch)) {
1991
+ emptyLines++;
1992
+ continue;
1993
+ }
1994
+
1995
+ // End of the scalar.
1996
+ if (state.lineIndent < textIndent) {
1997
+
1998
+ // Perform the chomping.
1999
+ if (chomping === CHOMPING_KEEP) {
2000
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2001
+ } else if (chomping === CHOMPING_CLIP) {
2002
+ if (didReadContent) { // i.e. only if the scalar is not empty.
2003
+ state.result += '\n';
2004
+ }
2005
+ }
2006
+
2007
+ // Break this `while` cycle and go to the funciton's epilogue.
2008
+ break;
2009
+ }
2010
+
2011
+ // Folded style: use fancy rules to handle line breaks.
2012
+ if (folding) {
2013
+
2014
+ // Lines starting with white space characters (more-indented lines) are not folded.
2015
+ if (is_WHITE_SPACE(ch)) {
2016
+ atMoreIndented = true;
2017
+ // except for the first content line (cf. Example 8.1)
2018
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2019
+
2020
+ // End of more-indented block.
2021
+ } else if (atMoreIndented) {
2022
+ atMoreIndented = false;
2023
+ state.result += common.repeat('\n', emptyLines + 1);
2024
+
2025
+ // Just one line break - perceive as the same line.
2026
+ } else if (emptyLines === 0) {
2027
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
2028
+ state.result += ' ';
2029
+ }
2030
+
2031
+ // Several line breaks - perceive as different lines.
2032
+ } else {
2033
+ state.result += common.repeat('\n', emptyLines);
2034
+ }
2035
+
2036
+ // Literal style: just add exact number of line breaks between content lines.
2037
+ } else {
2038
+ // Keep all line breaks except the header line break.
2039
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2040
+ }
2041
+
2042
+ didReadContent = true;
2043
+ detectedIndent = true;
2044
+ emptyLines = 0;
2045
+ captureStart = state.position;
2046
+
2047
+ while (!is_EOL(ch) && (ch !== 0)) {
2048
+ ch = state.input.charCodeAt(++state.position);
2049
+ }
2050
+
2051
+ captureSegment(state, captureStart, state.position, false);
2052
+ }
2053
+
2054
+ return true;
2055
+ }
2056
+
2057
+ function readBlockSequence(state, nodeIndent) {
2058
+ var _line,
2059
+ _tag = state.tag,
2060
+ _anchor = state.anchor,
2061
+ _result = [],
2062
+ following,
2063
+ detected = false,
2064
+ ch;
2065
+
2066
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2067
+ // it can still be flow sequence/mapping or a scalar
2068
+ if (state.firstTabInLine !== -1) return false;
2069
+
2070
+ if (state.anchor !== null) {
2071
+ state.anchorMap[state.anchor] = _result;
2072
+ }
2073
+
2074
+ ch = state.input.charCodeAt(state.position);
2075
+
2076
+ while (ch !== 0) {
2077
+ if (state.firstTabInLine !== -1) {
2078
+ state.position = state.firstTabInLine;
2079
+ throwError(state, 'tab characters must not be used in indentation');
2080
+ }
2081
+
2082
+ if (ch !== 0x2D/* - */) {
2083
+ break;
2084
+ }
2085
+
2086
+ following = state.input.charCodeAt(state.position + 1);
2087
+
2088
+ if (!is_WS_OR_EOL(following)) {
2089
+ break;
2090
+ }
2091
+
2092
+ detected = true;
2093
+ state.position++;
2094
+
2095
+ if (skipSeparationSpace(state, true, -1)) {
2096
+ if (state.lineIndent <= nodeIndent) {
2097
+ _result.push(null);
2098
+ ch = state.input.charCodeAt(state.position);
2099
+ continue;
2100
+ }
2101
+ }
2102
+
2103
+ _line = state.line;
2104
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
2105
+ _result.push(state.result);
2106
+ skipSeparationSpace(state, true, -1);
2107
+
2108
+ ch = state.input.charCodeAt(state.position);
2109
+
2110
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2111
+ throwError(state, 'bad indentation of a sequence entry');
2112
+ } else if (state.lineIndent < nodeIndent) {
2113
+ break;
2114
+ }
2115
+ }
2116
+
2117
+ if (detected) {
2118
+ state.tag = _tag;
2119
+ state.anchor = _anchor;
2120
+ state.kind = 'sequence';
2121
+ state.result = _result;
2122
+ return true;
2123
+ }
2124
+ return false;
2125
+ }
2126
+
2127
+ function readBlockMapping(state, nodeIndent, flowIndent) {
2128
+ var following,
2129
+ allowCompact,
2130
+ _line,
2131
+ _keyLine,
2132
+ _keyLineStart,
2133
+ _keyPos,
2134
+ _tag = state.tag,
2135
+ _anchor = state.anchor,
2136
+ _result = {},
2137
+ overridableKeys = Object.create(null),
2138
+ keyTag = null,
2139
+ keyNode = null,
2140
+ valueNode = null,
2141
+ atExplicitKey = false,
2142
+ detected = false,
2143
+ ch;
2144
+
2145
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2146
+ // it can still be flow sequence/mapping or a scalar
2147
+ if (state.firstTabInLine !== -1) return false;
2148
+
2149
+ if (state.anchor !== null) {
2150
+ state.anchorMap[state.anchor] = _result;
2151
+ }
2152
+
2153
+ ch = state.input.charCodeAt(state.position);
2154
+
2155
+ while (ch !== 0) {
2156
+ if (!atExplicitKey && state.firstTabInLine !== -1) {
2157
+ state.position = state.firstTabInLine;
2158
+ throwError(state, 'tab characters must not be used in indentation');
2159
+ }
2160
+
2161
+ following = state.input.charCodeAt(state.position + 1);
2162
+ _line = state.line; // Save the current line.
2163
+
2164
+ //
2165
+ // Explicit notation case. There are two separate blocks:
2166
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
2167
+ //
2168
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
2169
+
2170
+ if (ch === 0x3F/* ? */) {
2171
+ if (atExplicitKey) {
2172
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2173
+ keyTag = keyNode = valueNode = null;
2174
+ }
2175
+
2176
+ detected = true;
2177
+ atExplicitKey = true;
2178
+ allowCompact = true;
2179
+
2180
+ } else if (atExplicitKey) {
2181
+ // i.e. 0x3A/* : */ === character after the explicit key.
2182
+ atExplicitKey = false;
2183
+ allowCompact = true;
2184
+
2185
+ } else {
2186
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
2187
+ }
2188
+
2189
+ state.position += 1;
2190
+ ch = following;
2191
+
2192
+ //
2193
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
2194
+ //
2195
+ } else {
2196
+ _keyLine = state.line;
2197
+ _keyLineStart = state.lineStart;
2198
+ _keyPos = state.position;
2199
+
2200
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
2201
+ // Neither implicit nor explicit notation.
2202
+ // Reading is done. Go to the epilogue.
2203
+ break;
2204
+ }
2205
+
2206
+ if (state.line === _line) {
2207
+ ch = state.input.charCodeAt(state.position);
2208
+
2209
+ while (is_WHITE_SPACE(ch)) {
2210
+ ch = state.input.charCodeAt(++state.position);
2211
+ }
2212
+
2213
+ if (ch === 0x3A/* : */) {
2214
+ ch = state.input.charCodeAt(++state.position);
2215
+
2216
+ if (!is_WS_OR_EOL(ch)) {
2217
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
2218
+ }
2219
+
2220
+ if (atExplicitKey) {
2221
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2222
+ keyTag = keyNode = valueNode = null;
2223
+ }
2224
+
2225
+ detected = true;
2226
+ atExplicitKey = false;
2227
+ allowCompact = false;
2228
+ keyTag = state.tag;
2229
+ keyNode = state.result;
2230
+
2231
+ } else if (detected) {
2232
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
2233
+
2234
+ } else {
2235
+ state.tag = _tag;
2236
+ state.anchor = _anchor;
2237
+ return true; // Keep the result of `composeNode`.
2238
+ }
2239
+
2240
+ } else if (detected) {
2241
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
2242
+
2243
+ } else {
2244
+ state.tag = _tag;
2245
+ state.anchor = _anchor;
2246
+ return true; // Keep the result of `composeNode`.
2247
+ }
2248
+ }
2249
+
2250
+ //
2251
+ // Common reading code for both explicit and implicit notations.
2252
+ //
2253
+ if (state.line === _line || state.lineIndent > nodeIndent) {
2254
+ if (atExplicitKey) {
2255
+ _keyLine = state.line;
2256
+ _keyLineStart = state.lineStart;
2257
+ _keyPos = state.position;
2258
+ }
2259
+
2260
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
2261
+ if (atExplicitKey) {
2262
+ keyNode = state.result;
2263
+ } else {
2264
+ valueNode = state.result;
2265
+ }
2266
+ }
2267
+
2268
+ if (!atExplicitKey) {
2269
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
2270
+ keyTag = keyNode = valueNode = null;
2271
+ }
2272
+
2273
+ skipSeparationSpace(state, true, -1);
2274
+ ch = state.input.charCodeAt(state.position);
2275
+ }
2276
+
2277
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2278
+ throwError(state, 'bad indentation of a mapping entry');
2279
+ } else if (state.lineIndent < nodeIndent) {
2280
+ break;
2281
+ }
2282
+ }
2283
+
2284
+ //
2285
+ // Epilogue.
2286
+ //
2287
+
2288
+ // Special case: last mapping's node contains only the key in explicit notation.
2289
+ if (atExplicitKey) {
2290
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2291
+ }
2292
+
2293
+ // Expose the resulting mapping.
2294
+ if (detected) {
2295
+ state.tag = _tag;
2296
+ state.anchor = _anchor;
2297
+ state.kind = 'mapping';
2298
+ state.result = _result;
2299
+ }
2300
+
2301
+ return detected;
2302
+ }
2303
+
2304
+ function readTagProperty(state) {
2305
+ var _position,
2306
+ isVerbatim = false,
2307
+ isNamed = false,
2308
+ tagHandle,
2309
+ tagName,
2310
+ ch;
2311
+
2312
+ ch = state.input.charCodeAt(state.position);
2313
+
2314
+ if (ch !== 0x21/* ! */) return false;
2315
+
2316
+ if (state.tag !== null) {
2317
+ throwError(state, 'duplication of a tag property');
2318
+ }
2319
+
2320
+ ch = state.input.charCodeAt(++state.position);
2321
+
2322
+ if (ch === 0x3C/* < */) {
2323
+ isVerbatim = true;
2324
+ ch = state.input.charCodeAt(++state.position);
2325
+
2326
+ } else if (ch === 0x21/* ! */) {
2327
+ isNamed = true;
2328
+ tagHandle = '!!';
2329
+ ch = state.input.charCodeAt(++state.position);
2330
+
2331
+ } else {
2332
+ tagHandle = '!';
2333
+ }
2334
+
2335
+ _position = state.position;
2336
+
2337
+ if (isVerbatim) {
2338
+ do { ch = state.input.charCodeAt(++state.position); }
2339
+ while (ch !== 0 && ch !== 0x3E/* > */);
2340
+
2341
+ if (state.position < state.length) {
2342
+ tagName = state.input.slice(_position, state.position);
2343
+ ch = state.input.charCodeAt(++state.position);
2344
+ } else {
2345
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
2346
+ }
2347
+ } else {
2348
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2349
+
2350
+ if (ch === 0x21/* ! */) {
2351
+ if (!isNamed) {
2352
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
2353
+
2354
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
2355
+ throwError(state, 'named tag handle cannot contain such characters');
2356
+ }
2357
+
2358
+ isNamed = true;
2359
+ _position = state.position + 1;
2360
+ } else {
2361
+ throwError(state, 'tag suffix cannot contain exclamation marks');
2362
+ }
2363
+ }
2364
+
2365
+ ch = state.input.charCodeAt(++state.position);
2366
+ }
2367
+
2368
+ tagName = state.input.slice(_position, state.position);
2369
+
2370
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
2371
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
2372
+ }
2373
+ }
2374
+
2375
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
2376
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
2377
+ }
2378
+
2379
+ try {
2380
+ tagName = decodeURIComponent(tagName);
2381
+ } catch (err) {
2382
+ throwError(state, 'tag name is malformed: ' + tagName);
2383
+ }
2384
+
2385
+ if (isVerbatim) {
2386
+ state.tag = tagName;
2387
+
2388
+ } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) {
2389
+ state.tag = state.tagMap[tagHandle] + tagName;
2390
+
2391
+ } else if (tagHandle === '!') {
2392
+ state.tag = '!' + tagName;
2393
+
2394
+ } else if (tagHandle === '!!') {
2395
+ state.tag = 'tag:yaml.org,2002:' + tagName;
2396
+
2397
+ } else {
2398
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
2399
+ }
2400
+
2401
+ return true;
2402
+ }
2403
+
2404
+ function readAnchorProperty(state) {
2405
+ var _position,
2406
+ ch;
2407
+
2408
+ ch = state.input.charCodeAt(state.position);
2409
+
2410
+ if (ch !== 0x26/* & */) return false;
2411
+
2412
+ if (state.anchor !== null) {
2413
+ throwError(state, 'duplication of an anchor property');
2414
+ }
2415
+
2416
+ ch = state.input.charCodeAt(++state.position);
2417
+ _position = state.position;
2418
+
2419
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2420
+ ch = state.input.charCodeAt(++state.position);
2421
+ }
2422
+
2423
+ if (state.position === _position) {
2424
+ throwError(state, 'name of an anchor node must contain at least one character');
2425
+ }
2426
+
2427
+ state.anchor = state.input.slice(_position, state.position);
2428
+ return true;
2429
+ }
2430
+
2431
+ function readAlias(state) {
2432
+ var _position, alias,
2433
+ ch;
2434
+
2435
+ ch = state.input.charCodeAt(state.position);
2436
+
2437
+ if (ch !== 0x2A/* * */) return false;
2438
+
2439
+ ch = state.input.charCodeAt(++state.position);
2440
+ _position = state.position;
2441
+
2442
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2443
+ ch = state.input.charCodeAt(++state.position);
2444
+ }
2445
+
2446
+ if (state.position === _position) {
2447
+ throwError(state, 'name of an alias node must contain at least one character');
2448
+ }
2449
+
2450
+ alias = state.input.slice(_position, state.position);
2451
+
2452
+ if (!_hasOwnProperty$1.call(state.anchorMap, alias)) {
2453
+ throwError(state, 'unidentified alias "' + alias + '"');
2454
+ }
2455
+
2456
+ state.result = state.anchorMap[alias];
2457
+ skipSeparationSpace(state, true, -1);
2458
+ return true;
2459
+ }
2460
+
2461
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
2462
+ var allowBlockStyles,
2463
+ allowBlockScalars,
2464
+ allowBlockCollections,
2465
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
2466
+ atNewLine = false,
2467
+ hasContent = false,
2468
+ typeIndex,
2469
+ typeQuantity,
2470
+ typeList,
2471
+ type,
2472
+ flowIndent,
2473
+ blockIndent;
2474
+
2475
+ if (state.listener !== null) {
2476
+ state.listener('open', state);
2477
+ }
2478
+
2479
+ state.tag = null;
2480
+ state.anchor = null;
2481
+ state.kind = null;
2482
+ state.result = null;
2483
+
2484
+ allowBlockStyles = allowBlockScalars = allowBlockCollections =
2485
+ CONTEXT_BLOCK_OUT === nodeContext ||
2486
+ CONTEXT_BLOCK_IN === nodeContext;
2487
+
2488
+ if (allowToSeek) {
2489
+ if (skipSeparationSpace(state, true, -1)) {
2490
+ atNewLine = true;
2491
+
2492
+ if (state.lineIndent > parentIndent) {
2493
+ indentStatus = 1;
2494
+ } else if (state.lineIndent === parentIndent) {
2495
+ indentStatus = 0;
2496
+ } else if (state.lineIndent < parentIndent) {
2497
+ indentStatus = -1;
2498
+ }
2499
+ }
2500
+ }
2501
+
2502
+ if (indentStatus === 1) {
2503
+ while (readTagProperty(state) || readAnchorProperty(state)) {
2504
+ if (skipSeparationSpace(state, true, -1)) {
2505
+ atNewLine = true;
2506
+ allowBlockCollections = allowBlockStyles;
2507
+
2508
+ if (state.lineIndent > parentIndent) {
2509
+ indentStatus = 1;
2510
+ } else if (state.lineIndent === parentIndent) {
2511
+ indentStatus = 0;
2512
+ } else if (state.lineIndent < parentIndent) {
2513
+ indentStatus = -1;
2514
+ }
2515
+ } else {
2516
+ allowBlockCollections = false;
2517
+ }
2518
+ }
2519
+ }
2520
+
2521
+ if (allowBlockCollections) {
2522
+ allowBlockCollections = atNewLine || allowCompact;
2523
+ }
2524
+
2525
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
2526
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
2527
+ flowIndent = parentIndent;
2528
+ } else {
2529
+ flowIndent = parentIndent + 1;
2530
+ }
2531
+
2532
+ blockIndent = state.position - state.lineStart;
2533
+
2534
+ if (indentStatus === 1) {
2535
+ if (allowBlockCollections &&
2536
+ (readBlockSequence(state, blockIndent) ||
2537
+ readBlockMapping(state, blockIndent, flowIndent)) ||
2538
+ readFlowCollection(state, flowIndent)) {
2539
+ hasContent = true;
2540
+ } else {
2541
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
2542
+ readSingleQuotedScalar(state, flowIndent) ||
2543
+ readDoubleQuotedScalar(state, flowIndent)) {
2544
+ hasContent = true;
2545
+
2546
+ } else if (readAlias(state)) {
2547
+ hasContent = true;
2548
+
2549
+ if (state.tag !== null || state.anchor !== null) {
2550
+ throwError(state, 'alias node should not have any properties');
2551
+ }
2552
+
2553
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
2554
+ hasContent = true;
2555
+
2556
+ if (state.tag === null) {
2557
+ state.tag = '?';
2558
+ }
2559
+ }
2560
+
2561
+ if (state.anchor !== null) {
2562
+ state.anchorMap[state.anchor] = state.result;
2563
+ }
2564
+ }
2565
+ } else if (indentStatus === 0) {
2566
+ // Special case: block sequences are allowed to have same indentation level as the parent.
2567
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
2568
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
2569
+ }
2570
+ }
2571
+
2572
+ if (state.tag === null) {
2573
+ if (state.anchor !== null) {
2574
+ state.anchorMap[state.anchor] = state.result;
2575
+ }
2576
+
2577
+ } else if (state.tag === '?') {
2578
+ // Implicit resolving is not allowed for non-scalar types, and '?'
2579
+ // non-specific tag is only automatically assigned to plain scalars.
2580
+ //
2581
+ // We only need to check kind conformity in case user explicitly assigns '?'
2582
+ // tag, for example like this: "!<?> [0]"
2583
+ //
2584
+ if (state.result !== null && state.kind !== 'scalar') {
2585
+ throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
2586
+ }
2587
+
2588
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
2589
+ type = state.implicitTypes[typeIndex];
2590
+
2591
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
2592
+ state.result = type.construct(state.result);
2593
+ state.tag = type.tag;
2594
+ if (state.anchor !== null) {
2595
+ state.anchorMap[state.anchor] = state.result;
2596
+ }
2597
+ break;
2598
+ }
2599
+ }
2600
+ } else if (state.tag !== '!') {
2601
+ if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
2602
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
2603
+ } else {
2604
+ // looking for multi type
2605
+ type = null;
2606
+ typeList = state.typeMap.multi[state.kind || 'fallback'];
2607
+
2608
+ for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
2609
+ if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
2610
+ type = typeList[typeIndex];
2611
+ break;
2612
+ }
2613
+ }
2614
+ }
2615
+
2616
+ if (!type) {
2617
+ throwError(state, 'unknown tag !<' + state.tag + '>');
2618
+ }
2619
+
2620
+ if (state.result !== null && type.kind !== state.kind) {
2621
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
2622
+ }
2623
+
2624
+ if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
2625
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
2626
+ } else {
2627
+ state.result = type.construct(state.result, state.tag);
2628
+ if (state.anchor !== null) {
2629
+ state.anchorMap[state.anchor] = state.result;
2630
+ }
2631
+ }
2632
+ }
2633
+
2634
+ if (state.listener !== null) {
2635
+ state.listener('close', state);
2636
+ }
2637
+ return state.tag !== null || state.anchor !== null || hasContent;
2638
+ }
2639
+
2640
+ function readDocument(state) {
2641
+ var documentStart = state.position,
2642
+ _position,
2643
+ directiveName,
2644
+ directiveArgs,
2645
+ hasDirectives = false,
2646
+ ch;
2647
+
2648
+ state.version = null;
2649
+ state.checkLineBreaks = state.legacy;
2650
+ state.tagMap = Object.create(null);
2651
+ state.anchorMap = Object.create(null);
2652
+
2653
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2654
+ skipSeparationSpace(state, true, -1);
2655
+
2656
+ ch = state.input.charCodeAt(state.position);
2657
+
2658
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
2659
+ break;
2660
+ }
2661
+
2662
+ hasDirectives = true;
2663
+ ch = state.input.charCodeAt(++state.position);
2664
+ _position = state.position;
2665
+
2666
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2667
+ ch = state.input.charCodeAt(++state.position);
2668
+ }
2669
+
2670
+ directiveName = state.input.slice(_position, state.position);
2671
+ directiveArgs = [];
2672
+
2673
+ if (directiveName.length < 1) {
2674
+ throwError(state, 'directive name must not be less than one character in length');
2675
+ }
2676
+
2677
+ while (ch !== 0) {
2678
+ while (is_WHITE_SPACE(ch)) {
2679
+ ch = state.input.charCodeAt(++state.position);
2680
+ }
2681
+
2682
+ if (ch === 0x23/* # */) {
2683
+ do { ch = state.input.charCodeAt(++state.position); }
2684
+ while (ch !== 0 && !is_EOL(ch));
2685
+ break;
2686
+ }
2687
+
2688
+ if (is_EOL(ch)) break;
2689
+
2690
+ _position = state.position;
2691
+
2692
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2693
+ ch = state.input.charCodeAt(++state.position);
2694
+ }
2695
+
2696
+ directiveArgs.push(state.input.slice(_position, state.position));
2697
+ }
2698
+
2699
+ if (ch !== 0) readLineBreak(state);
2700
+
2701
+ if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) {
2702
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
2703
+ } else {
2704
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
2705
+ }
2706
+ }
2707
+
2708
+ skipSeparationSpace(state, true, -1);
2709
+
2710
+ if (state.lineIndent === 0 &&
2711
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
2712
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
2713
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
2714
+ state.position += 3;
2715
+ skipSeparationSpace(state, true, -1);
2716
+
2717
+ } else if (hasDirectives) {
2718
+ throwError(state, 'directives end mark is expected');
2719
+ }
2720
+
2721
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
2722
+ skipSeparationSpace(state, true, -1);
2723
+
2724
+ if (state.checkLineBreaks &&
2725
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
2726
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
2727
+ }
2728
+
2729
+ state.documents.push(state.result);
2730
+
2731
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
2732
+
2733
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
2734
+ state.position += 3;
2735
+ skipSeparationSpace(state, true, -1);
2736
+ }
2737
+ return;
2738
+ }
2739
+
2740
+ if (state.position < (state.length - 1)) {
2741
+ throwError(state, 'end of the stream or a document separator is expected');
2742
+ } else {
2743
+ return;
2744
+ }
2745
+ }
2746
+
2747
+
2748
+ function loadDocuments(input, options) {
2749
+ input = String(input);
2750
+ options = options || {};
2751
+
2752
+ if (input.length !== 0) {
2753
+
2754
+ // Add tailing `\n` if not exists
2755
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
2756
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
2757
+ input += '\n';
2758
+ }
2759
+
2760
+ // Strip BOM
2761
+ if (input.charCodeAt(0) === 0xFEFF) {
2762
+ input = input.slice(1);
2763
+ }
2764
+ }
2765
+
2766
+ var state = new State$1(input, options);
2767
+
2768
+ var nullpos = input.indexOf('\0');
2769
+
2770
+ if (nullpos !== -1) {
2771
+ state.position = nullpos;
2772
+ throwError(state, 'null byte is not allowed in input');
2773
+ }
2774
+
2775
+ // Use 0 as string terminator. That significantly simplifies bounds check.
2776
+ state.input += '\0';
2777
+
2778
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
2779
+ state.lineIndent += 1;
2780
+ state.position += 1;
2781
+ }
2782
+
2783
+ while (state.position < (state.length - 1)) {
2784
+ readDocument(state);
2785
+ }
2786
+
2787
+ return state.documents;
2788
+ }
2789
+
2790
+
2791
+ function loadAll$1(input, iterator, options) {
2792
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
2793
+ options = iterator;
2794
+ iterator = null;
2795
+ }
2796
+
2797
+ var documents = loadDocuments(input, options);
2798
+
2799
+ if (typeof iterator !== 'function') {
2800
+ return documents;
2801
+ }
2802
+
2803
+ for (var index = 0, length = documents.length; index < length; index += 1) {
2804
+ iterator(documents[index]);
2805
+ }
2806
+ }
2807
+
2808
+
2809
+ function load$1(input, options) {
2810
+ var documents = loadDocuments(input, options);
2811
+
2812
+ if (documents.length === 0) {
2813
+ /*eslint-disable no-undefined*/
2814
+ return undefined;
2815
+ } else if (documents.length === 1) {
2816
+ return documents[0];
2817
+ }
2818
+ throw new exception('expected a single document in the stream, but found more');
2819
+ }
2820
+
2821
+
2822
+ var loadAll_1 = loadAll$1;
2823
+ var load_1 = load$1;
2824
+
2825
+ var loader = {
2826
+ loadAll: loadAll_1,
2827
+ load: load_1
2828
+ };
2829
+
2830
+ /*eslint-disable no-use-before-define*/
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+ var _toString = Object.prototype.toString;
2837
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2838
+
2839
+ var CHAR_BOM = 0xFEFF;
2840
+ var CHAR_TAB = 0x09; /* Tab */
2841
+ var CHAR_LINE_FEED = 0x0A; /* LF */
2842
+ var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
2843
+ var CHAR_SPACE = 0x20; /* Space */
2844
+ var CHAR_EXCLAMATION = 0x21; /* ! */
2845
+ var CHAR_DOUBLE_QUOTE = 0x22; /* " */
2846
+ var CHAR_SHARP = 0x23; /* # */
2847
+ var CHAR_PERCENT = 0x25; /* % */
2848
+ var CHAR_AMPERSAND = 0x26; /* & */
2849
+ var CHAR_SINGLE_QUOTE = 0x27; /* ' */
2850
+ var CHAR_ASTERISK = 0x2A; /* * */
2851
+ var CHAR_COMMA = 0x2C; /* , */
2852
+ var CHAR_MINUS = 0x2D; /* - */
2853
+ var CHAR_COLON = 0x3A; /* : */
2854
+ var CHAR_EQUALS = 0x3D; /* = */
2855
+ var CHAR_GREATER_THAN = 0x3E; /* > */
2856
+ var CHAR_QUESTION = 0x3F; /* ? */
2857
+ var CHAR_COMMERCIAL_AT = 0x40; /* @ */
2858
+ var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
2859
+ var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
2860
+ var CHAR_GRAVE_ACCENT = 0x60; /* ` */
2861
+ var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
2862
+ var CHAR_VERTICAL_LINE = 0x7C; /* | */
2863
+ var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
2864
+
2865
+ var ESCAPE_SEQUENCES = {};
2866
+
2867
+ ESCAPE_SEQUENCES[0x00] = '\\0';
2868
+ ESCAPE_SEQUENCES[0x07] = '\\a';
2869
+ ESCAPE_SEQUENCES[0x08] = '\\b';
2870
+ ESCAPE_SEQUENCES[0x09] = '\\t';
2871
+ ESCAPE_SEQUENCES[0x0A] = '\\n';
2872
+ ESCAPE_SEQUENCES[0x0B] = '\\v';
2873
+ ESCAPE_SEQUENCES[0x0C] = '\\f';
2874
+ ESCAPE_SEQUENCES[0x0D] = '\\r';
2875
+ ESCAPE_SEQUENCES[0x1B] = '\\e';
2876
+ ESCAPE_SEQUENCES[0x22] = '\\"';
2877
+ ESCAPE_SEQUENCES[0x5C] = '\\\\';
2878
+ ESCAPE_SEQUENCES[0x85] = '\\N';
2879
+ ESCAPE_SEQUENCES[0xA0] = '\\_';
2880
+ ESCAPE_SEQUENCES[0x2028] = '\\L';
2881
+ ESCAPE_SEQUENCES[0x2029] = '\\P';
2882
+
2883
+ var DEPRECATED_BOOLEANS_SYNTAX = [
2884
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
2885
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
2886
+ ];
2887
+
2888
+ var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2889
+
2890
+ function compileStyleMap(schema, map) {
2891
+ var result, keys, index, length, tag, style, type;
2892
+
2893
+ if (map === null) return {};
2894
+
2895
+ result = {};
2896
+ keys = Object.keys(map);
2897
+
2898
+ for (index = 0, length = keys.length; index < length; index += 1) {
2899
+ tag = keys[index];
2900
+ style = String(map[tag]);
2901
+
2902
+ if (tag.slice(0, 2) === '!!') {
2903
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
2904
+ }
2905
+ type = schema.compiledTypeMap['fallback'][tag];
2906
+
2907
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
2908
+ style = type.styleAliases[style];
2909
+ }
2910
+
2911
+ result[tag] = style;
2912
+ }
2913
+
2914
+ return result;
2915
+ }
2916
+
2917
+ function encodeHex(character) {
2918
+ var string, handle, length;
2919
+
2920
+ string = character.toString(16).toUpperCase();
2921
+
2922
+ if (character <= 0xFF) {
2923
+ handle = 'x';
2924
+ length = 2;
2925
+ } else if (character <= 0xFFFF) {
2926
+ handle = 'u';
2927
+ length = 4;
2928
+ } else if (character <= 0xFFFFFFFF) {
2929
+ handle = 'U';
2930
+ length = 8;
2931
+ } else {
2932
+ throw new exception('code point within a string may not be greater than 0xFFFFFFFF');
2933
+ }
2934
+
2935
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
2936
+ }
2937
+
2938
+
2939
+ var QUOTING_TYPE_SINGLE = 1,
2940
+ QUOTING_TYPE_DOUBLE = 2;
2941
+
2942
+ function State(options) {
2943
+ this.schema = options['schema'] || _default;
2944
+ this.indent = Math.max(1, (options['indent'] || 2));
2945
+ this.noArrayIndent = options['noArrayIndent'] || false;
2946
+ this.skipInvalid = options['skipInvalid'] || false;
2947
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
2948
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
2949
+ this.sortKeys = options['sortKeys'] || false;
2950
+ this.lineWidth = options['lineWidth'] || 80;
2951
+ this.noRefs = options['noRefs'] || false;
2952
+ this.noCompatMode = options['noCompatMode'] || false;
2953
+ this.condenseFlow = options['condenseFlow'] || false;
2954
+ this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
2955
+ this.forceQuotes = options['forceQuotes'] || false;
2956
+ this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
2957
+
2958
+ this.implicitTypes = this.schema.compiledImplicit;
2959
+ this.explicitTypes = this.schema.compiledExplicit;
2960
+
2961
+ this.tag = null;
2962
+ this.result = '';
2963
+
2964
+ this.duplicates = [];
2965
+ this.usedDuplicates = null;
2966
+ }
2967
+
2968
+ // Indents every line in a string. Empty lines (\n only) are not indented.
2969
+ function indentString(string, spaces) {
2970
+ var ind = common.repeat(' ', spaces),
2971
+ position = 0,
2972
+ next = -1,
2973
+ result = '',
2974
+ line,
2975
+ length = string.length;
2976
+
2977
+ while (position < length) {
2978
+ next = string.indexOf('\n', position);
2979
+ if (next === -1) {
2980
+ line = string.slice(position);
2981
+ position = length;
2982
+ } else {
2983
+ line = string.slice(position, next + 1);
2984
+ position = next + 1;
2985
+ }
2986
+
2987
+ if (line.length && line !== '\n') result += ind;
2988
+
2989
+ result += line;
2990
+ }
2991
+
2992
+ return result;
2993
+ }
2994
+
2995
+ function generateNextLine(state, level) {
2996
+ return '\n' + common.repeat(' ', state.indent * level);
2997
+ }
2998
+
2999
+ function testImplicitResolving(state, str) {
3000
+ var index, length, type;
3001
+
3002
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3003
+ type = state.implicitTypes[index];
3004
+
3005
+ if (type.resolve(str)) {
3006
+ return true;
3007
+ }
3008
+ }
3009
+
3010
+ return false;
3011
+ }
3012
+
3013
+ // [33] s-white ::= s-space | s-tab
3014
+ function isWhitespace(c) {
3015
+ return c === CHAR_SPACE || c === CHAR_TAB;
3016
+ }
3017
+
3018
+ // Returns true if the character can be printed without escaping.
3019
+ // From YAML 1.2: "any allowed characters known to be non-printable
3020
+ // should also be escaped. [However,] This isn’t mandatory"
3021
+ // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
3022
+ function isPrintable(c) {
3023
+ return (0x00020 <= c && c <= 0x00007E)
3024
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
3025
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
3026
+ || (0x10000 <= c && c <= 0x10FFFF);
3027
+ }
3028
+
3029
+ // [34] ns-char ::= nb-char - s-white
3030
+ // [27] nb-char ::= c-printable - b-char - c-byte-order-mark
3031
+ // [26] b-char ::= b-line-feed | b-carriage-return
3032
+ // Including s-white (for some reason, examples doesn't match specs in this aspect)
3033
+ // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
3034
+ function isNsCharOrWhitespace(c) {
3035
+ return isPrintable(c)
3036
+ && c !== CHAR_BOM
3037
+ // - b-char
3038
+ && c !== CHAR_CARRIAGE_RETURN
3039
+ && c !== CHAR_LINE_FEED;
3040
+ }
3041
+
3042
+ // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
3043
+ // c = flow-in ⇒ ns-plain-safe-in
3044
+ // c = block-key ⇒ ns-plain-safe-out
3045
+ // c = flow-key ⇒ ns-plain-safe-in
3046
+ // [128] ns-plain-safe-out ::= ns-char
3047
+ // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
3048
+ // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
3049
+ // | ( /* An ns-char preceding */ “#” )
3050
+ // | ( “:” /* Followed by an ns-plain-safe(c) */ )
3051
+ function isPlainSafe(c, prev, inblock) {
3052
+ var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
3053
+ var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
3054
+ return (
3055
+ // ns-plain-safe
3056
+ inblock ? // c = flow-in
3057
+ cIsNsCharOrWhitespace
3058
+ : cIsNsCharOrWhitespace
3059
+ // - c-flow-indicator
3060
+ && c !== CHAR_COMMA
3061
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3062
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3063
+ && c !== CHAR_LEFT_CURLY_BRACKET
3064
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3065
+ )
3066
+ // ns-plain-char
3067
+ && c !== CHAR_SHARP // false on '#'
3068
+ && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
3069
+ || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
3070
+ || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
3071
+ }
3072
+
3073
+ // Simplified test for values allowed as the first character in plain style.
3074
+ function isPlainSafeFirst(c) {
3075
+ // Uses a subset of ns-char - c-indicator
3076
+ // where ns-char = nb-char - s-white.
3077
+ // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
3078
+ return isPrintable(c) && c !== CHAR_BOM
3079
+ && !isWhitespace(c) // - s-white
3080
+ // - (c-indicator ::=
3081
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
3082
+ && c !== CHAR_MINUS
3083
+ && c !== CHAR_QUESTION
3084
+ && c !== CHAR_COLON
3085
+ && c !== CHAR_COMMA
3086
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3087
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3088
+ && c !== CHAR_LEFT_CURLY_BRACKET
3089
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3090
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
3091
+ && c !== CHAR_SHARP
3092
+ && c !== CHAR_AMPERSAND
3093
+ && c !== CHAR_ASTERISK
3094
+ && c !== CHAR_EXCLAMATION
3095
+ && c !== CHAR_VERTICAL_LINE
3096
+ && c !== CHAR_EQUALS
3097
+ && c !== CHAR_GREATER_THAN
3098
+ && c !== CHAR_SINGLE_QUOTE
3099
+ && c !== CHAR_DOUBLE_QUOTE
3100
+ // | “%” | “@” | “`”)
3101
+ && c !== CHAR_PERCENT
3102
+ && c !== CHAR_COMMERCIAL_AT
3103
+ && c !== CHAR_GRAVE_ACCENT;
3104
+ }
3105
+
3106
+ // Simplified test for values allowed as the last character in plain style.
3107
+ function isPlainSafeLast(c) {
3108
+ // just not whitespace or colon, it will be checked to be plain character later
3109
+ return !isWhitespace(c) && c !== CHAR_COLON;
3110
+ }
3111
+
3112
+ // Same as 'string'.codePointAt(pos), but works in older browsers.
3113
+ function codePointAt(string, pos) {
3114
+ var first = string.charCodeAt(pos), second;
3115
+ if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
3116
+ second = string.charCodeAt(pos + 1);
3117
+ if (second >= 0xDC00 && second <= 0xDFFF) {
3118
+ // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3119
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
3120
+ }
3121
+ }
3122
+ return first;
3123
+ }
3124
+
3125
+ // Determines whether block indentation indicator is required.
3126
+ function needIndentIndicator(string) {
3127
+ var leadingSpaceRe = /^\n* /;
3128
+ return leadingSpaceRe.test(string);
3129
+ }
3130
+
3131
+ var STYLE_PLAIN = 1,
3132
+ STYLE_SINGLE = 2,
3133
+ STYLE_LITERAL = 3,
3134
+ STYLE_FOLDED = 4,
3135
+ STYLE_DOUBLE = 5;
3136
+
3137
+ // Determines which scalar styles are possible and returns the preferred style.
3138
+ // lineWidth = -1 => no limit.
3139
+ // Pre-conditions: str.length > 0.
3140
+ // Post-conditions:
3141
+ // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
3142
+ // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
3143
+ // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
3144
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
3145
+ testAmbiguousType, quotingType, forceQuotes, inblock) {
3146
+
3147
+ var i;
3148
+ var char = 0;
3149
+ var prevChar = null;
3150
+ var hasLineBreak = false;
3151
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
3152
+ var shouldTrackWidth = lineWidth !== -1;
3153
+ var previousLineBreak = -1; // count the first line correctly
3154
+ var plain = isPlainSafeFirst(codePointAt(string, 0))
3155
+ && isPlainSafeLast(codePointAt(string, string.length - 1));
3156
+
3157
+ if (singleLineOnly || forceQuotes) {
3158
+ // Case: no block styles.
3159
+ // Check for disallowed characters to rule out plain and single.
3160
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3161
+ char = codePointAt(string, i);
3162
+ if (!isPrintable(char)) {
3163
+ return STYLE_DOUBLE;
3164
+ }
3165
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3166
+ prevChar = char;
3167
+ }
3168
+ } else {
3169
+ // Case: block styles permitted.
3170
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3171
+ char = codePointAt(string, i);
3172
+ if (char === CHAR_LINE_FEED) {
3173
+ hasLineBreak = true;
3174
+ // Check if any line can be folded.
3175
+ if (shouldTrackWidth) {
3176
+ hasFoldableLine = hasFoldableLine ||
3177
+ // Foldable line = too long, and not more-indented.
3178
+ (i - previousLineBreak - 1 > lineWidth &&
3179
+ string[previousLineBreak + 1] !== ' ');
3180
+ previousLineBreak = i;
3181
+ }
3182
+ } else if (!isPrintable(char)) {
3183
+ return STYLE_DOUBLE;
3184
+ }
3185
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3186
+ prevChar = char;
3187
+ }
3188
+ // in case the end is missing a \n
3189
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
3190
+ (i - previousLineBreak - 1 > lineWidth &&
3191
+ string[previousLineBreak + 1] !== ' '));
3192
+ }
3193
+ // Although every style can represent \n without escaping, prefer block styles
3194
+ // for multiline, since they're more readable and they don't add empty lines.
3195
+ // Also prefer folding a super-long line.
3196
+ if (!hasLineBreak && !hasFoldableLine) {
3197
+ // Strings interpretable as another type have to be quoted;
3198
+ // e.g. the string 'true' vs. the boolean true.
3199
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
3200
+ return STYLE_PLAIN;
3201
+ }
3202
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3203
+ }
3204
+ // Edge case: block indentation indicator can only have one digit.
3205
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
3206
+ return STYLE_DOUBLE;
3207
+ }
3208
+ // At this point we know block styles are valid.
3209
+ // Prefer literal style unless we want to fold.
3210
+ if (!forceQuotes) {
3211
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
3212
+ }
3213
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3214
+ }
3215
+
3216
+ // Note: line breaking/folding is implemented for only the folded style.
3217
+ // NB. We drop the last trailing newline (if any) of a returned block scalar
3218
+ // since the dumper adds its own newline. This always works:
3219
+ // • No ending newline => unaffected; already using strip "-" chomping.
3220
+ // • Ending newline => removed then restored.
3221
+ // Importantly, this keeps the "+" chomp indicator from gaining an extra line.
3222
+ function writeScalar(state, string, level, iskey, inblock) {
3223
+ state.dump = (function () {
3224
+ if (string.length === 0) {
3225
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
3226
+ }
3227
+ if (!state.noCompatMode) {
3228
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
3229
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
3230
+ }
3231
+ }
3232
+
3233
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
3234
+ // As indentation gets deeper, let the width decrease monotonically
3235
+ // to the lower bound min(state.lineWidth, 40).
3236
+ // Note that this implies
3237
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
3238
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
3239
+ // This behaves better than a constant minimum width which disallows narrower options,
3240
+ // or an indent threshold which causes the width to suddenly increase.
3241
+ var lineWidth = state.lineWidth === -1
3242
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
3243
+
3244
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
3245
+ var singleLineOnly = iskey
3246
+ // No block styles in flow mode.
3247
+ || (state.flowLevel > -1 && level >= state.flowLevel);
3248
+ function testAmbiguity(string) {
3249
+ return testImplicitResolving(state, string);
3250
+ }
3251
+
3252
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
3253
+ testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
3254
+
3255
+ case STYLE_PLAIN:
3256
+ return string;
3257
+ case STYLE_SINGLE:
3258
+ return "'" + string.replace(/'/g, "''") + "'";
3259
+ case STYLE_LITERAL:
3260
+ return '|' + blockHeader(string, state.indent)
3261
+ + dropEndingNewline(indentString(string, indent));
3262
+ case STYLE_FOLDED:
3263
+ return '>' + blockHeader(string, state.indent)
3264
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3265
+ case STYLE_DOUBLE:
3266
+ return '"' + escapeString(string) + '"';
3267
+ default:
3268
+ throw new exception('impossible error: invalid scalar style');
3269
+ }
3270
+ }());
3271
+ }
3272
+
3273
+ // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
3274
+ function blockHeader(string, indentPerLevel) {
3275
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
3276
+
3277
+ // note the special case: the string '\n' counts as a "trailing" empty line.
3278
+ var clip = string[string.length - 1] === '\n';
3279
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
3280
+ var chomp = keep ? '+' : (clip ? '' : '-');
3281
+
3282
+ return indentIndicator + chomp + '\n';
3283
+ }
3284
+
3285
+ // (See the note for writeScalar.)
3286
+ function dropEndingNewline(string) {
3287
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
3288
+ }
3289
+
3290
+ // Note: a long line without a suitable break point will exceed the width limit.
3291
+ // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
3292
+ function foldString(string, width) {
3293
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
3294
+ // unless they're before or after a more-indented line, or at the very
3295
+ // beginning or end, in which case $k$ maps to $k$.
3296
+ // Therefore, parse each chunk as newline(s) followed by a content line.
3297
+ var lineRe = /(\n+)([^\n]*)/g;
3298
+
3299
+ // first line (possibly an empty line)
3300
+ var result = (function () {
3301
+ var nextLF = string.indexOf('\n');
3302
+ nextLF = nextLF !== -1 ? nextLF : string.length;
3303
+ lineRe.lastIndex = nextLF;
3304
+ return foldLine(string.slice(0, nextLF), width);
3305
+ }());
3306
+ // If we haven't reached the first content line yet, don't add an extra \n.
3307
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
3308
+ var moreIndented;
3309
+
3310
+ // rest of the lines
3311
+ var match;
3312
+ while ((match = lineRe.exec(string))) {
3313
+ var prefix = match[1], line = match[2];
3314
+ moreIndented = (line[0] === ' ');
3315
+ result += prefix
3316
+ + (!prevMoreIndented && !moreIndented && line !== ''
3317
+ ? '\n' : '')
3318
+ + foldLine(line, width);
3319
+ prevMoreIndented = moreIndented;
3320
+ }
3321
+
3322
+ return result;
3323
+ }
3324
+
3325
+ // Greedy line breaking.
3326
+ // Picks the longest line under the limit each time,
3327
+ // otherwise settles for the shortest line over the limit.
3328
+ // NB. More-indented lines *cannot* be folded, as that would add an extra \n.
3329
+ function foldLine(line, width) {
3330
+ if (line === '' || line[0] === ' ') return line;
3331
+
3332
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
3333
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
3334
+ var match;
3335
+ // start is an inclusive index. end, curr, and next are exclusive.
3336
+ var start = 0, end, curr = 0, next = 0;
3337
+ var result = '';
3338
+
3339
+ // Invariants: 0 <= start <= length-1.
3340
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
3341
+ // Inside the loop:
3342
+ // A match implies length >= 2, so curr and next are <= length-2.
3343
+ while ((match = breakRe.exec(line))) {
3344
+ next = match.index;
3345
+ // maintain invariant: curr - start <= width
3346
+ if (next - start > width) {
3347
+ end = (curr > start) ? curr : next; // derive end <= length-2
3348
+ result += '\n' + line.slice(start, end);
3349
+ // skip the space that was output as \n
3350
+ start = end + 1; // derive start <= length-1
3351
+ }
3352
+ curr = next;
3353
+ }
3354
+
3355
+ // By the invariants, start <= length-1, so there is something left over.
3356
+ // It is either the whole string or a part starting from non-whitespace.
3357
+ result += '\n';
3358
+ // Insert a break if the remainder is too long and there is a break available.
3359
+ if (line.length - start > width && curr > start) {
3360
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
3361
+ } else {
3362
+ result += line.slice(start);
3363
+ }
3364
+
3365
+ return result.slice(1); // drop extra \n joiner
3366
+ }
3367
+
3368
+ // Escapes a double-quoted string.
3369
+ function escapeString(string) {
3370
+ var result = '';
3371
+ var char = 0;
3372
+ var escapeSeq;
3373
+
3374
+ for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3375
+ char = codePointAt(string, i);
3376
+ escapeSeq = ESCAPE_SEQUENCES[char];
3377
+
3378
+ if (!escapeSeq && isPrintable(char)) {
3379
+ result += string[i];
3380
+ if (char >= 0x10000) result += string[i + 1];
3381
+ } else {
3382
+ result += escapeSeq || encodeHex(char);
3383
+ }
3384
+ }
3385
+
3386
+ return result;
3387
+ }
3388
+
3389
+ function writeFlowSequence(state, level, object) {
3390
+ var _result = '',
3391
+ _tag = state.tag,
3392
+ index,
3393
+ length,
3394
+ value;
3395
+
3396
+ for (index = 0, length = object.length; index < length; index += 1) {
3397
+ value = object[index];
3398
+
3399
+ if (state.replacer) {
3400
+ value = state.replacer.call(object, String(index), value);
3401
+ }
3402
+
3403
+ // Write only valid elements, put null instead of invalid elements.
3404
+ if (writeNode(state, level, value, false, false) ||
3405
+ (typeof value === 'undefined' &&
3406
+ writeNode(state, level, null, false, false))) {
3407
+
3408
+ if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
3409
+ _result += state.dump;
3410
+ }
3411
+ }
3412
+
3413
+ state.tag = _tag;
3414
+ state.dump = '[' + _result + ']';
3415
+ }
3416
+
3417
+ function writeBlockSequence(state, level, object, compact) {
3418
+ var _result = '',
3419
+ _tag = state.tag,
3420
+ index,
3421
+ length,
3422
+ value;
3423
+
3424
+ for (index = 0, length = object.length; index < length; index += 1) {
3425
+ value = object[index];
3426
+
3427
+ if (state.replacer) {
3428
+ value = state.replacer.call(object, String(index), value);
3429
+ }
3430
+
3431
+ // Write only valid elements, put null instead of invalid elements.
3432
+ if (writeNode(state, level + 1, value, true, true, false, true) ||
3433
+ (typeof value === 'undefined' &&
3434
+ writeNode(state, level + 1, null, true, true, false, true))) {
3435
+
3436
+ if (!compact || _result !== '') {
3437
+ _result += generateNextLine(state, level);
3438
+ }
3439
+
3440
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3441
+ _result += '-';
3442
+ } else {
3443
+ _result += '- ';
3444
+ }
3445
+
3446
+ _result += state.dump;
3447
+ }
3448
+ }
3449
+
3450
+ state.tag = _tag;
3451
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
3452
+ }
3453
+
3454
+ function writeFlowMapping(state, level, object) {
3455
+ var _result = '',
3456
+ _tag = state.tag,
3457
+ objectKeyList = Object.keys(object),
3458
+ index,
3459
+ length,
3460
+ objectKey,
3461
+ objectValue,
3462
+ pairBuffer;
3463
+
3464
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3465
+
3466
+ pairBuffer = '';
3467
+ if (_result !== '') pairBuffer += ', ';
3468
+
3469
+ if (state.condenseFlow) pairBuffer += '"';
3470
+
3471
+ objectKey = objectKeyList[index];
3472
+ objectValue = object[objectKey];
3473
+
3474
+ if (state.replacer) {
3475
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3476
+ }
3477
+
3478
+ if (!writeNode(state, level, objectKey, false, false)) {
3479
+ continue; // Skip this pair because of invalid key;
3480
+ }
3481
+
3482
+ if (state.dump.length > 1024) pairBuffer += '? ';
3483
+
3484
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
3485
+
3486
+ if (!writeNode(state, level, objectValue, false, false)) {
3487
+ continue; // Skip this pair because of invalid value.
3488
+ }
3489
+
3490
+ pairBuffer += state.dump;
3491
+
3492
+ // Both key and value are valid.
3493
+ _result += pairBuffer;
3494
+ }
3495
+
3496
+ state.tag = _tag;
3497
+ state.dump = '{' + _result + '}';
3498
+ }
3499
+
3500
+ function writeBlockMapping(state, level, object, compact) {
3501
+ var _result = '',
3502
+ _tag = state.tag,
3503
+ objectKeyList = Object.keys(object),
3504
+ index,
3505
+ length,
3506
+ objectKey,
3507
+ objectValue,
3508
+ explicitPair,
3509
+ pairBuffer;
3510
+
3511
+ // Allow sorting keys so that the output file is deterministic
3512
+ if (state.sortKeys === true) {
3513
+ // Default sorting
3514
+ objectKeyList.sort();
3515
+ } else if (typeof state.sortKeys === 'function') {
3516
+ // Custom sort function
3517
+ objectKeyList.sort(state.sortKeys);
3518
+ } else if (state.sortKeys) {
3519
+ // Something is wrong
3520
+ throw new exception('sortKeys must be a boolean or a function');
3521
+ }
3522
+
3523
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3524
+ pairBuffer = '';
3525
+
3526
+ if (!compact || _result !== '') {
3527
+ pairBuffer += generateNextLine(state, level);
3528
+ }
3529
+
3530
+ objectKey = objectKeyList[index];
3531
+ objectValue = object[objectKey];
3532
+
3533
+ if (state.replacer) {
3534
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3535
+ }
3536
+
3537
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
3538
+ continue; // Skip this pair because of invalid key.
3539
+ }
3540
+
3541
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
3542
+ (state.dump && state.dump.length > 1024);
3543
+
3544
+ if (explicitPair) {
3545
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3546
+ pairBuffer += '?';
3547
+ } else {
3548
+ pairBuffer += '? ';
3549
+ }
3550
+ }
3551
+
3552
+ pairBuffer += state.dump;
3553
+
3554
+ if (explicitPair) {
3555
+ pairBuffer += generateNextLine(state, level);
3556
+ }
3557
+
3558
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
3559
+ continue; // Skip this pair because of invalid value.
3560
+ }
3561
+
3562
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3563
+ pairBuffer += ':';
3564
+ } else {
3565
+ pairBuffer += ': ';
3566
+ }
3567
+
3568
+ pairBuffer += state.dump;
3569
+
3570
+ // Both key and value are valid.
3571
+ _result += pairBuffer;
3572
+ }
3573
+
3574
+ state.tag = _tag;
3575
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
3576
+ }
3577
+
3578
+ function detectType(state, object, explicit) {
3579
+ var _result, typeList, index, length, type, style;
3580
+
3581
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
3582
+
3583
+ for (index = 0, length = typeList.length; index < length; index += 1) {
3584
+ type = typeList[index];
3585
+
3586
+ if ((type.instanceOf || type.predicate) &&
3587
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
3588
+ (!type.predicate || type.predicate(object))) {
3589
+
3590
+ if (explicit) {
3591
+ if (type.multi && type.representName) {
3592
+ state.tag = type.representName(object);
3593
+ } else {
3594
+ state.tag = type.tag;
3595
+ }
3596
+ } else {
3597
+ state.tag = '?';
3598
+ }
3599
+
3600
+ if (type.represent) {
3601
+ style = state.styleMap[type.tag] || type.defaultStyle;
3602
+
3603
+ if (_toString.call(type.represent) === '[object Function]') {
3604
+ _result = type.represent(object, style);
3605
+ } else if (_hasOwnProperty.call(type.represent, style)) {
3606
+ _result = type.represent[style](object, style);
3607
+ } else {
3608
+ throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
3609
+ }
3610
+
3611
+ state.dump = _result;
3612
+ }
3613
+
3614
+ return true;
3615
+ }
3616
+ }
3617
+
3618
+ return false;
3619
+ }
3620
+
3621
+ // Serializes `object` and writes it to global `result`.
3622
+ // Returns true on success, or false on invalid object.
3623
+ //
3624
+ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
3625
+ state.tag = null;
3626
+ state.dump = object;
3627
+
3628
+ if (!detectType(state, object, false)) {
3629
+ detectType(state, object, true);
3630
+ }
3631
+
3632
+ var type = _toString.call(state.dump);
3633
+ var inblock = block;
3634
+ var tagStr;
3635
+
3636
+ if (block) {
3637
+ block = (state.flowLevel < 0 || state.flowLevel > level);
3638
+ }
3639
+
3640
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
3641
+ duplicateIndex,
3642
+ duplicate;
3643
+
3644
+ if (objectOrArray) {
3645
+ duplicateIndex = state.duplicates.indexOf(object);
3646
+ duplicate = duplicateIndex !== -1;
3647
+ }
3648
+
3649
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
3650
+ compact = false;
3651
+ }
3652
+
3653
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
3654
+ state.dump = '*ref_' + duplicateIndex;
3655
+ } else {
3656
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
3657
+ state.usedDuplicates[duplicateIndex] = true;
3658
+ }
3659
+ if (type === '[object Object]') {
3660
+ if (block && (Object.keys(state.dump).length !== 0)) {
3661
+ writeBlockMapping(state, level, state.dump, compact);
3662
+ if (duplicate) {
3663
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3664
+ }
3665
+ } else {
3666
+ writeFlowMapping(state, level, state.dump);
3667
+ if (duplicate) {
3668
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3669
+ }
3670
+ }
3671
+ } else if (type === '[object Array]') {
3672
+ if (block && (state.dump.length !== 0)) {
3673
+ if (state.noArrayIndent && !isblockseq && level > 0) {
3674
+ writeBlockSequence(state, level - 1, state.dump, compact);
3675
+ } else {
3676
+ writeBlockSequence(state, level, state.dump, compact);
3677
+ }
3678
+ if (duplicate) {
3679
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3680
+ }
3681
+ } else {
3682
+ writeFlowSequence(state, level, state.dump);
3683
+ if (duplicate) {
3684
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3685
+ }
3686
+ }
3687
+ } else if (type === '[object String]') {
3688
+ if (state.tag !== '?') {
3689
+ writeScalar(state, state.dump, level, iskey, inblock);
3690
+ }
3691
+ } else if (type === '[object Undefined]') {
3692
+ return false;
3693
+ } else {
3694
+ if (state.skipInvalid) return false;
3695
+ throw new exception('unacceptable kind of an object to dump ' + type);
3696
+ }
3697
+
3698
+ if (state.tag !== null && state.tag !== '?') {
3699
+ // Need to encode all characters except those allowed by the spec:
3700
+ //
3701
+ // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
3702
+ // [36] ns-hex-digit ::= ns-dec-digit
3703
+ // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
3704
+ // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
3705
+ // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
3706
+ // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
3707
+ // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
3708
+ // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
3709
+ //
3710
+ // Also need to encode '!' because it has special meaning (end of tag prefix).
3711
+ //
3712
+ tagStr = encodeURI(
3713
+ state.tag[0] === '!' ? state.tag.slice(1) : state.tag
3714
+ ).replace(/!/g, '%21');
3715
+
3716
+ if (state.tag[0] === '!') {
3717
+ tagStr = '!' + tagStr;
3718
+ } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
3719
+ tagStr = '!!' + tagStr.slice(18);
3720
+ } else {
3721
+ tagStr = '!<' + tagStr + '>';
3722
+ }
3723
+
3724
+ state.dump = tagStr + ' ' + state.dump;
3725
+ }
3726
+ }
3727
+
3728
+ return true;
3729
+ }
3730
+
3731
+ function getDuplicateReferences(object, state) {
3732
+ var objects = [],
3733
+ duplicatesIndexes = [],
3734
+ index,
3735
+ length;
3736
+
3737
+ inspectNode(object, objects, duplicatesIndexes);
3738
+
3739
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
3740
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
3741
+ }
3742
+ state.usedDuplicates = new Array(length);
3743
+ }
3744
+
3745
+ function inspectNode(object, objects, duplicatesIndexes) {
3746
+ var objectKeyList,
3747
+ index,
3748
+ length;
3749
+
3750
+ if (object !== null && typeof object === 'object') {
3751
+ index = objects.indexOf(object);
3752
+ if (index !== -1) {
3753
+ if (duplicatesIndexes.indexOf(index) === -1) {
3754
+ duplicatesIndexes.push(index);
3755
+ }
3756
+ } else {
3757
+ objects.push(object);
3758
+
3759
+ if (Array.isArray(object)) {
3760
+ for (index = 0, length = object.length; index < length; index += 1) {
3761
+ inspectNode(object[index], objects, duplicatesIndexes);
3762
+ }
3763
+ } else {
3764
+ objectKeyList = Object.keys(object);
3765
+
3766
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3767
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
3768
+ }
3769
+ }
3770
+ }
3771
+ }
3772
+ }
3773
+
3774
+ function dump$1(input, options) {
3775
+ options = options || {};
3776
+
3777
+ var state = new State(options);
3778
+
3779
+ if (!state.noRefs) getDuplicateReferences(input, state);
3780
+
3781
+ var value = input;
3782
+
3783
+ if (state.replacer) {
3784
+ value = state.replacer.call({ '': value }, '', value);
3785
+ }
3786
+
3787
+ if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
3788
+
3789
+ return '';
3790
+ }
3791
+
3792
+ var dump_1 = dump$1;
3793
+
3794
+ var dumper = {
3795
+ dump: dump_1
3796
+ };
3797
+
3798
+ function renamed(from, to) {
3799
+ return function () {
3800
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
3801
+ 'Use yaml.' + to + ' instead, which is now safe by default.');
3802
+ };
3803
+ }
3804
+
3805
+
3806
+ var Type = type;
3807
+ var Schema = schema;
3808
+ var FAILSAFE_SCHEMA = failsafe;
3809
+ var JSON_SCHEMA = json;
3810
+ var CORE_SCHEMA = core;
3811
+ var DEFAULT_SCHEMA = _default;
3812
+ var load = loader.load;
3813
+ var loadAll = loader.loadAll;
3814
+ var dump = dumper.dump;
3815
+ var YAMLException = exception;
3816
+
3817
+ // Re-export all types in case user wants to create custom schema
3818
+ var types = {
3819
+ binary: binary,
3820
+ float: float,
3821
+ map: map,
3822
+ null: _null,
3823
+ pairs: pairs,
3824
+ set: set,
3825
+ timestamp: timestamp,
3826
+ bool: bool,
3827
+ int: int,
3828
+ merge: merge,
3829
+ omap: omap,
3830
+ seq: seq,
3831
+ str: str
3832
+ };
3833
+
3834
+ // Removed functions from JS-YAML 3.0.x
3835
+ var safeLoad = renamed('safeLoad', 'load');
3836
+ var safeLoadAll = renamed('safeLoadAll', 'loadAll');
3837
+ var safeDump = renamed('safeDump', 'dump');
3838
+
3839
+ var jsYaml = {
3840
+ Type: Type,
3841
+ Schema: Schema,
3842
+ FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
3843
+ JSON_SCHEMA: JSON_SCHEMA,
3844
+ CORE_SCHEMA: CORE_SCHEMA,
3845
+ DEFAULT_SCHEMA: DEFAULT_SCHEMA,
3846
+ load: load,
3847
+ loadAll: loadAll,
3848
+ dump: dump,
3849
+ YAMLException: YAMLException,
3850
+ types: types,
3851
+ safeLoad: safeLoad,
3852
+ safeLoadAll: safeLoadAll,
3853
+ safeDump: safeDump
3854
+ };
3855
+
3856
+ exports.CORE_SCHEMA = CORE_SCHEMA;
3857
+ exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA;
3858
+ exports.FAILSAFE_SCHEMA = FAILSAFE_SCHEMA;
3859
+ exports.JSON_SCHEMA = JSON_SCHEMA;
3860
+ exports.Schema = Schema;
3861
+ exports.Type = Type;
3862
+ exports.YAMLException = YAMLException;
3863
+ exports.default = jsYaml;
3864
+ exports.dump = dump;
3865
+ exports.load = load;
3866
+ exports.loadAll = loadAll;
3867
+ exports.safeDump = safeDump;
3868
+ exports.safeLoad = safeLoad;
3869
+ exports.safeLoadAll = safeLoadAll;
3870
+ exports.types = types;
3871
+
3872
+ Object.defineProperty(exports, '__esModule', { value: true });
3873
+
3874
+ })));