nyxora 26.7.5 → 26.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +33 -37
- package/dist/launcher.js +60 -30
- package/dist/packages/core/src/agent/llmProvider.js +53 -8
- package/dist/packages/core/src/agent/nyxDaemon.js +1 -1
- package/dist/packages/core/src/agent/osAgent.js +231 -18
- package/dist/packages/core/src/agent/promptBuilder.js +29 -6
- package/dist/packages/core/src/agent/reasoning.js +141 -62
- package/dist/packages/core/src/agent/web3Agent.js +173 -17
- package/dist/packages/core/src/channels/index.js +84 -34
- package/dist/packages/core/src/channels/lineAdapter.js +9 -1
- package/dist/packages/core/src/channels/slackAdapter.js +44 -2
- package/dist/packages/core/src/channels/telegram.js +310 -24
- package/dist/packages/core/src/channels/whatsappAdapter.js +20 -41
- package/dist/packages/core/src/gateway/cli.js +2 -1
- package/dist/packages/core/src/gateway/doctor.js +56 -22
- package/dist/packages/core/src/gateway/server.js +8 -3
- package/dist/packages/core/src/gateway/setup.js +9 -3
- package/dist/packages/core/src/plugin/PluginManager.js +15 -1
- package/dist/packages/core/src/system/plugins/SystemWorkspacePlugin.js +5 -0
- package/dist/packages/core/src/system/skills/analyzeImage.js +14 -21
- package/dist/packages/core/src/system/skills/generateImage.js +63 -0
- package/dist/packages/core/src/system/skills/searchWeb.js +44 -1
- package/dist/packages/core/src/utils/contextSummarizer.js +29 -2
- package/dist/packages/core/src/utils/historySanitizer.js +26 -4
- package/dist/packages/core/src/utils/skillManager.js +5 -0
- package/dist/packages/core/src/utils/streamSimulator.js +34 -40
- package/dist/packages/core/src/web3/skills/marketAnalysis.js +15 -9
- package/dist/packages/core/src/web3/utils/riskIntelligence.js +14 -4
- package/dist/packages/core/src/web3/utils/vaultClient.js +20 -22
- package/dist/packages/policy/src/server.js +38 -51
- package/dist/packages/signer/src/server.js +32 -15
- package/launcher.ts +54 -27
- package/package.json +22 -16
- package/packages/core/package.json +1 -4
- package/packages/core/playbooks/apple/DESCRIPTION.md +2 -0
- package/packages/core/playbooks/apple/apple-notes/SKILL.md +90 -0
- package/packages/core/playbooks/apple/apple-reminders/SKILL.md +130 -0
- package/packages/core/playbooks/apple/findmy/SKILL.md +131 -0
- package/packages/core/playbooks/apple/imessage/SKILL.md +102 -0
- package/packages/core/playbooks/autonomous-ai-agents/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/autonomous-ai-agents/claude-code/SKILL.md +745 -0
- package/packages/core/playbooks/autonomous-ai-agents/codex/SKILL.md +149 -0
- package/packages/core/playbooks/autonomous-ai-agents/nyxora-agent/SKILL.md +1111 -0
- package/packages/core/playbooks/autonomous-ai-agents/nyxora-agent/references/native-mcp.md +344 -0
- package/packages/core/playbooks/autonomous-ai-agents/nyxora-agent/references/webhooks.md +194 -0
- package/packages/core/playbooks/autonomous-ai-agents/opencode/SKILL.md +219 -0
- package/packages/core/playbooks/computer-use/SKILL.md +263 -0
- package/packages/core/playbooks/creative/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/creative/architecture-diagram/SKILL.md +148 -0
- package/packages/core/playbooks/creative/architecture-diagram/templates/template.html +319 -0
- package/packages/core/playbooks/creative/ascii-art/SKILL.md +322 -0
- package/packages/core/playbooks/creative/ascii-video/README.md +290 -0
- package/packages/core/playbooks/creative/ascii-video/SKILL.md +241 -0
- package/packages/core/playbooks/creative/ascii-video/references/architecture.md +802 -0
- package/packages/core/playbooks/creative/ascii-video/references/composition.md +892 -0
- package/packages/core/playbooks/creative/ascii-video/references/effects.md +1865 -0
- package/packages/core/playbooks/creative/ascii-video/references/inputs.md +685 -0
- package/packages/core/playbooks/creative/ascii-video/references/optimization.md +688 -0
- package/packages/core/playbooks/creative/ascii-video/references/scenes.md +1011 -0
- package/packages/core/playbooks/creative/ascii-video/references/shaders.md +1385 -0
- package/packages/core/playbooks/creative/ascii-video/references/troubleshooting.md +367 -0
- package/packages/core/playbooks/creative/baoyu-infographic/PORT_NOTES.md +43 -0
- package/packages/core/playbooks/creative/baoyu-infographic/SKILL.md +237 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/analysis-framework.md +182 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/base-prompt.md +43 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/bento-grid.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/binary-comparison.md +48 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/bridge.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/circular-flow.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/comic-strip.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/comparison-matrix.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/dashboard.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/dense-modules.md +72 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/funnel.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/hierarchical-layers.md +48 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/hub-spoke.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/iceberg.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/isometric-map.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/jigsaw.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/linear-progression.md +48 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/periodic-table.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/story-mountain.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/structural-breakdown.md +48 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/tree-branching.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/venn-diagram.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/layouts/winding-roadmap.md +41 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/structured-content-template.md +244 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/aged-academia.md +36 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/bold-graphic.md +36 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/chalkboard.md +61 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/claymation.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/corporate-memphis.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/craft-handmade.md +44 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/cyberpunk-neon.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/hand-drawn-edu.md +63 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/ikea-manual.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/kawaii.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/knolling.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/lego-brick.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/morandi-journal.md +60 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/origami.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/pixel-art.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/pop-laboratory.md +48 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/retro-pop-grid.md +47 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/storybook-watercolor.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/subway-map.md +29 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/technical-schematic.md +36 -0
- package/packages/core/playbooks/creative/baoyu-infographic/references/styles/ui-wireframe.md +29 -0
- package/packages/core/playbooks/creative/claude-design/SKILL.md +650 -0
- package/packages/core/playbooks/creative/comfyui/SKILL.md +612 -0
- package/packages/core/playbooks/creative/comfyui/references/official-cli.md +255 -0
- package/packages/core/playbooks/creative/comfyui/references/rest-api.md +312 -0
- package/packages/core/playbooks/creative/comfyui/references/template-integrity.md +243 -0
- package/packages/core/playbooks/creative/comfyui/references/workflow-format.md +226 -0
- package/packages/core/playbooks/creative/comfyui/scripts/_common.py +835 -0
- package/packages/core/playbooks/creative/comfyui/scripts/auto_fix_deps.py +225 -0
- package/packages/core/playbooks/creative/comfyui/scripts/check_deps.py +437 -0
- package/packages/core/playbooks/creative/comfyui/scripts/comfyui_setup.sh +286 -0
- package/packages/core/playbooks/creative/comfyui/scripts/extract_schema.py +315 -0
- package/packages/core/playbooks/creative/comfyui/scripts/fetch_logs.py +157 -0
- package/packages/core/playbooks/creative/comfyui/scripts/hardware_check.py +497 -0
- package/packages/core/playbooks/creative/comfyui/scripts/health_check.py +223 -0
- package/packages/core/playbooks/creative/comfyui/scripts/run_batch.py +243 -0
- package/packages/core/playbooks/creative/comfyui/scripts/run_workflow.py +796 -0
- package/packages/core/playbooks/creative/comfyui/scripts/ws_monitor.py +267 -0
- package/packages/core/playbooks/creative/comfyui/tests/README.md +50 -0
- package/packages/core/playbooks/creative/comfyui/tests/conftest.py +64 -0
- package/packages/core/playbooks/creative/comfyui/tests/pytest.ini +5 -0
- package/packages/core/playbooks/creative/comfyui/tests/test_check_deps.py +68 -0
- package/packages/core/playbooks/creative/comfyui/tests/test_cloud_integration.py +95 -0
- package/packages/core/playbooks/creative/comfyui/tests/test_common.py +443 -0
- package/packages/core/playbooks/creative/comfyui/tests/test_extract_schema.py +184 -0
- package/packages/core/playbooks/creative/comfyui/tests/test_run_workflow.py +210 -0
- package/packages/core/playbooks/creative/comfyui/workflows/README.md +86 -0
- package/packages/core/playbooks/creative/comfyui/workflows/animatediff_video.json +64 -0
- package/packages/core/playbooks/creative/comfyui/workflows/flux_dev_txt2img.json +78 -0
- package/packages/core/playbooks/creative/comfyui/workflows/sd15_txt2img.json +49 -0
- package/packages/core/playbooks/creative/comfyui/workflows/sdxl_img2img.json +54 -0
- package/packages/core/playbooks/creative/comfyui/workflows/sdxl_inpaint.json +59 -0
- package/packages/core/playbooks/creative/comfyui/workflows/sdxl_txt2img.json +49 -0
- package/packages/core/playbooks/creative/comfyui/workflows/upscale_4x.json +27 -0
- package/packages/core/playbooks/creative/comfyui/workflows/wan_video_t2v.json +69 -0
- package/packages/core/playbooks/creative/design-md/SKILL.md +199 -0
- package/packages/core/playbooks/creative/design-md/templates/starter.md +99 -0
- package/packages/core/playbooks/creative/excalidraw/SKILL.md +199 -0
- package/packages/core/playbooks/creative/excalidraw/references/colors.md +44 -0
- package/packages/core/playbooks/creative/excalidraw/references/dark-mode.md +68 -0
- package/packages/core/playbooks/creative/excalidraw/references/examples.md +141 -0
- package/packages/core/playbooks/creative/excalidraw/scripts/upload.py +133 -0
- package/packages/core/playbooks/creative/humanizer/LICENSE +21 -0
- package/packages/core/playbooks/creative/humanizer/SKILL.md +578 -0
- package/packages/core/playbooks/creative/manim-video/README.md +23 -0
- package/packages/core/playbooks/creative/manim-video/SKILL.md +269 -0
- package/packages/core/playbooks/creative/manim-video/references/animation-design-thinking.md +161 -0
- package/packages/core/playbooks/creative/manim-video/references/animations.md +282 -0
- package/packages/core/playbooks/creative/manim-video/references/camera-and-3d.md +135 -0
- package/packages/core/playbooks/creative/manim-video/references/decorations.md +202 -0
- package/packages/core/playbooks/creative/manim-video/references/equations.md +216 -0
- package/packages/core/playbooks/creative/manim-video/references/graphs-and-data.md +163 -0
- package/packages/core/playbooks/creative/manim-video/references/mobjects.md +333 -0
- package/packages/core/playbooks/creative/manim-video/references/paper-explainer.md +255 -0
- package/packages/core/playbooks/creative/manim-video/references/production-quality.md +190 -0
- package/packages/core/playbooks/creative/manim-video/references/rendering.md +185 -0
- package/packages/core/playbooks/creative/manim-video/references/scene-planning.md +118 -0
- package/packages/core/playbooks/creative/manim-video/references/troubleshooting.md +135 -0
- package/packages/core/playbooks/creative/manim-video/references/updaters-and-trackers.md +260 -0
- package/packages/core/playbooks/creative/manim-video/references/visual-design.md +124 -0
- package/packages/core/playbooks/creative/manim-video/scripts/setup.sh +14 -0
- package/packages/core/playbooks/creative/p5js/README.md +64 -0
- package/packages/core/playbooks/creative/p5js/SKILL.md +556 -0
- package/packages/core/playbooks/creative/p5js/references/animation.md +439 -0
- package/packages/core/playbooks/creative/p5js/references/color-systems.md +352 -0
- package/packages/core/playbooks/creative/p5js/references/core-api.md +410 -0
- package/packages/core/playbooks/creative/p5js/references/export-pipeline.md +566 -0
- package/packages/core/playbooks/creative/p5js/references/interaction.md +398 -0
- package/packages/core/playbooks/creative/p5js/references/shapes-and-geometry.md +300 -0
- package/packages/core/playbooks/creative/p5js/references/troubleshooting.md +532 -0
- package/packages/core/playbooks/creative/p5js/references/typography.md +302 -0
- package/packages/core/playbooks/creative/p5js/references/visual-effects.md +895 -0
- package/packages/core/playbooks/creative/p5js/references/webgl-and-3d.md +423 -0
- package/packages/core/playbooks/creative/p5js/scripts/export-frames.js +179 -0
- package/packages/core/playbooks/creative/p5js/scripts/render.sh +108 -0
- package/packages/core/playbooks/creative/p5js/scripts/serve.sh +28 -0
- package/packages/core/playbooks/creative/p5js/scripts/setup.sh +87 -0
- package/packages/core/playbooks/creative/p5js/templates/viewer.html +395 -0
- package/packages/core/playbooks/creative/popular-web-designs/SKILL.md +214 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/airbnb.md +259 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/airtable.md +102 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/apple.md +326 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/bmw.md +193 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/cal.md +272 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/claude.md +325 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/clay.md +317 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/clickhouse.md +294 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/cohere.md +279 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/coinbase.md +142 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/composio.md +320 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/cursor.md +322 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/elevenlabs.md +278 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/expo.md +294 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/figma.md +233 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/framer.md +259 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/hashicorp.md +291 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/ibm.md +345 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/intercom.md +159 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/kraken.md +138 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/linear.app.md +380 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/lovable.md +311 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/minimax.md +270 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/mintlify.md +339 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/miro.md +121 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/mistral.ai.md +274 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/mongodb.md +279 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/notion.md +322 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/nvidia.md +306 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/ollama.md +280 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/opencode.ai.md +294 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/pinterest.md +243 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/posthog.md +269 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/raycast.md +281 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/replicate.md +274 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/resend.md +316 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/revolut.md +198 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/runwayml.md +257 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/sanity.md +370 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/sentry.md +275 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/spacex.md +207 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/spotify.md +259 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/stripe.md +335 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/supabase.md +268 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/superhuman.md +265 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/together.ai.md +276 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/uber.md +308 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/vercel.md +323 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/voltagent.md +336 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/warp.md +266 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/webflow.md +105 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/wise.md +186 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/x.ai.md +270 -0
- package/packages/core/playbooks/creative/popular-web-designs/templates/zapier.md +341 -0
- package/packages/core/playbooks/creative/pretext/SKILL.md +220 -0
- package/packages/core/playbooks/creative/pretext/references/patterns.md +258 -0
- package/packages/core/playbooks/creative/pretext/templates/donut-orbit.html +1468 -0
- package/packages/core/playbooks/creative/pretext/templates/hello-orb-flow.html +95 -0
- package/packages/core/playbooks/creative/sketch/SKILL.md +218 -0
- package/packages/core/playbooks/creative/songwriting-and-ai-music/SKILL.md +287 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/SKILL.md +356 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/3d-scene.md +275 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/animation.md +221 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/audio-reactive.md +175 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/dat-scripting.md +352 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/external-data.md +322 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/geometry-comp.md +121 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/glsl.md +151 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/layout-compositor.md +131 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/mcp-tools.md +382 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/midi-osc.md +211 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/network-patterns.md +966 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/operator-tips.md +106 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/operators.md +239 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/panel-ui.md +281 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/particles.md +245 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/pitfalls.md +704 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/postfx.md +183 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/projection-mapping.md +211 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/python-api.md +463 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/replicator.md +198 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/references/troubleshooting.md +244 -0
- package/packages/core/playbooks/creative/touchdesigner-mcp/scripts/setup.sh +115 -0
- package/packages/core/playbooks/data-science/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/data-science/jupyter-live-kernel/SKILL.md +167 -0
- package/packages/core/playbooks/dogfood/SKILL.md +162 -0
- package/packages/core/playbooks/dogfood/references/issue-taxonomy.md +109 -0
- package/packages/core/playbooks/dogfood/templates/dogfood-report-template.md +86 -0
- package/packages/core/playbooks/email/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/github/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/github/codebase-inspection/SKILL.md +116 -0
- package/packages/core/playbooks/github/github-auth/SKILL.md +247 -0
- package/packages/core/playbooks/github/github-auth/scripts/gh-env.sh +66 -0
- package/packages/core/playbooks/github/github-code-review/SKILL.md +481 -0
- package/packages/core/playbooks/github/github-code-review/references/review-output-template.md +74 -0
- package/packages/core/playbooks/github/github-issues/SKILL.md +370 -0
- package/packages/core/playbooks/github/github-issues/templates/bug-report.md +35 -0
- package/packages/core/playbooks/github/github-issues/templates/feature-request.md +31 -0
- package/packages/core/playbooks/github/github-pr-workflow/SKILL.md +367 -0
- package/packages/core/playbooks/github/github-pr-workflow/references/ci-troubleshooting.md +183 -0
- package/packages/core/playbooks/github/github-pr-workflow/references/conventional-commits.md +71 -0
- package/packages/core/playbooks/github/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
- package/packages/core/playbooks/github/github-pr-workflow/templates/pr-body-feature.md +33 -0
- package/packages/core/playbooks/github/github-repo-management/SKILL.md +516 -0
- package/packages/core/playbooks/github/github-repo-management/references/github-api-cheatsheet.md +161 -0
- package/packages/core/playbooks/index-cache/anthropics_skills_skills_.json +1 -0
- package/packages/core/playbooks/index-cache/claude_marketplace_anthropics_skills.json +1 -0
- package/packages/core/playbooks/index-cache/lobehub_index.json +1 -0
- package/packages/core/playbooks/index-cache/openai_skills_skills_.json +1 -0
- package/packages/core/playbooks/media/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/media/gif-search/SKILL.md +91 -0
- package/packages/core/playbooks/media/heartmula/SKILL.md +171 -0
- package/packages/core/playbooks/media/songsee/SKILL.md +83 -0
- package/packages/core/playbooks/media/youtube-content/SKILL.md +76 -0
- package/packages/core/playbooks/media/youtube-content/references/output-formats.md +56 -0
- package/packages/core/playbooks/media/youtube-content/scripts/fetch_transcript.py +124 -0
- package/packages/core/playbooks/mlops/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/mlops/evaluation/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/mlops/evaluation/lm-evaluation-harness/SKILL.md +498 -0
- package/packages/core/playbooks/mlops/evaluation/lm-evaluation-harness/references/api-evaluation.md +490 -0
- package/packages/core/playbooks/mlops/evaluation/lm-evaluation-harness/references/benchmark-guide.md +488 -0
- package/packages/core/playbooks/mlops/evaluation/lm-evaluation-harness/references/custom-tasks.md +602 -0
- package/packages/core/playbooks/mlops/evaluation/lm-evaluation-harness/references/distributed-eval.md +519 -0
- package/packages/core/playbooks/mlops/evaluation/weights-and-biases/SKILL.md +594 -0
- package/packages/core/playbooks/mlops/evaluation/weights-and-biases/references/artifacts.md +584 -0
- package/packages/core/playbooks/mlops/evaluation/weights-and-biases/references/integrations.md +700 -0
- package/packages/core/playbooks/mlops/evaluation/weights-and-biases/references/sweeps.md +847 -0
- package/packages/core/playbooks/mlops/huggingface-hub/SKILL.md +81 -0
- package/packages/core/playbooks/mlops/inference/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/SKILL.md +249 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/advanced-usage.md +504 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/hub-discovery.md +168 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/optimization.md +89 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/quantization.md +243 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/server.md +150 -0
- package/packages/core/playbooks/mlops/inference/llama-cpp/references/troubleshooting.md +442 -0
- package/packages/core/playbooks/mlops/inference/vllm/SKILL.md +372 -0
- package/packages/core/playbooks/mlops/inference/vllm/references/optimization.md +226 -0
- package/packages/core/playbooks/mlops/inference/vllm/references/quantization.md +284 -0
- package/packages/core/playbooks/mlops/inference/vllm/references/server-deployment.md +255 -0
- package/packages/core/playbooks/mlops/inference/vllm/references/troubleshooting.md +447 -0
- package/packages/core/playbooks/mlops/models/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/mlops/models/audiocraft/SKILL.md +568 -0
- package/packages/core/playbooks/mlops/models/audiocraft/references/advanced-usage.md +666 -0
- package/packages/core/playbooks/mlops/models/audiocraft/references/troubleshooting.md +504 -0
- package/packages/core/playbooks/mlops/models/segment-anything/SKILL.md +506 -0
- package/packages/core/playbooks/mlops/models/segment-anything/references/advanced-usage.md +589 -0
- package/packages/core/playbooks/mlops/models/segment-anything/references/troubleshooting.md +484 -0
- package/packages/core/playbooks/note-taking/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/note-taking/obsidian/SKILL.md +61 -0
- package/packages/core/playbooks/productivity/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/productivity/airtable/SKILL.md +229 -0
- package/packages/core/playbooks/productivity/maps/SKILL.md +195 -0
- package/packages/core/playbooks/productivity/maps/scripts/maps_client.py +1297 -0
- package/packages/core/playbooks/productivity/nano-pdf/SKILL.md +52 -0
- package/packages/core/playbooks/productivity/notion/SKILL.md +448 -0
- package/packages/core/playbooks/productivity/notion/references/block-types.md +112 -0
- package/packages/core/playbooks/productivity/ocr-and-documents/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/productivity/ocr-and-documents/SKILL.md +172 -0
- package/packages/core/playbooks/productivity/ocr-and-documents/scripts/extract_marker.py +87 -0
- package/packages/core/playbooks/productivity/ocr-and-documents/scripts/extract_pymupdf.py +98 -0
- package/packages/core/playbooks/productivity/petdex/SKILL.md +89 -0
- package/packages/core/playbooks/productivity/powerpoint/LICENSE.txt +30 -0
- package/packages/core/playbooks/productivity/powerpoint/SKILL.md +237 -0
- package/packages/core/playbooks/productivity/powerpoint/editing.md +205 -0
- package/packages/core/playbooks/productivity/powerpoint/pptxgenjs.md +420 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/__init__.py +0 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/add_slide.py +195 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/clean.py +286 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/helpers/__init__.py +0 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/helpers/merge_runs.py +199 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/helpers/simplify_redlines.py +197 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/pack.py +159 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-contentTypes.xsd +42 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-coreProperties.xsd +50 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-digSig.xsd +49 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-relationships.xsd +33 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/mce/mc.xsd +75 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/packages/core/playbooks/productivity/powerpoint/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/packages/core/playbooks/productivity/teams-meeting-pipeline/SKILL.md +116 -0
- package/packages/core/playbooks/research/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/research/arxiv/SKILL.md +282 -0
- package/packages/core/playbooks/research/arxiv/scripts/search_arxiv.py +114 -0
- package/packages/core/playbooks/research/blogwatcher/SKILL.md +137 -0
- package/packages/core/playbooks/research/llm-wiki/SKILL.md +507 -0
- package/packages/core/playbooks/research/polymarket/SKILL.md +77 -0
- package/packages/core/playbooks/research/polymarket/references/api-endpoints.md +220 -0
- package/packages/core/playbooks/research/polymarket/scripts/polymarket.py +284 -0
- package/packages/core/playbooks/research/research-paper-writing/SKILL.md +2377 -0
- package/packages/core/playbooks/research/research-paper-writing/references/autoreason-methodology.md +394 -0
- package/packages/core/playbooks/research/research-paper-writing/references/checklists.md +434 -0
- package/packages/core/playbooks/research/research-paper-writing/references/citation-workflow.md +564 -0
- package/packages/core/playbooks/research/research-paper-writing/references/experiment-patterns.md +728 -0
- package/packages/core/playbooks/research/research-paper-writing/references/human-evaluation.md +476 -0
- package/packages/core/playbooks/research/research-paper-writing/references/paper-types.md +481 -0
- package/packages/core/playbooks/research/research-paper-writing/references/reviewer-guidelines.md +433 -0
- package/packages/core/playbooks/research/research-paper-writing/references/sources.md +191 -0
- package/packages/core/playbooks/research/research-paper-writing/references/writing-guide.md +474 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/README.md +251 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/README.md +534 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/README.md +50 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/acl.sty +312 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/acl_latex.tex +377 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/custom.bib +70 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/acl/formatting.md +326 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/README.md +3 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/neurips2025/Makefile +36 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/neurips2025/main.tex +38 -0
- package/packages/core/playbooks/research/research-paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/packages/core/playbooks/smart-home/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/smart-home/openhue/SKILL.md +109 -0
- package/packages/core/playbooks/social-media/DESCRIPTION.md +3 -0
- package/packages/core/playbooks/social-media/social-fetch/social-fetch.md +62 -0
- package/packages/core/playbooks/social-media/xurl/SKILL.md +432 -0
- package/packages/core/playbooks/software-development/node-inspect-debugger/SKILL.md +319 -0
- package/packages/core/playbooks/software-development/nyxora-agent-skill-authoring/SKILL.md +196 -0
- package/packages/core/playbooks/software-development/plan/SKILL.md +338 -0
- package/packages/core/playbooks/software-development/python-debugpy/SKILL.md +375 -0
- package/packages/core/playbooks/software-development/requesting-code-review/SKILL.md +280 -0
- package/packages/core/playbooks/software-development/simplify-code/SKILL.md +212 -0
- package/packages/core/playbooks/software-development/spike/SKILL.md +197 -0
- package/packages/core/playbooks/software-development/systematic-debugging/SKILL.md +411 -0
- package/packages/core/playbooks/software-development/test-driven-development/SKILL.md +362 -0
- package/packages/core/playbooks/web3/binance-trading.md +119 -0
- package/packages/core/playbooks/web3/foundry-deployment.md +42 -0
- package/packages/core/playbooks/web3/mexc-trading.md +122 -0
- package/packages/core/playbooks/web3/onchainkit/assets/templates/basic-app/.env.local.example +20 -0
- package/packages/core/playbooks/web3/smart-contract-audit.md +44 -0
- package/packages/core/playbooks/yuanbao/SKILL.md +108 -0
- package/packages/core/src/agent/llmProvider.ts +61 -8
- package/packages/core/src/agent/nyxDaemon.ts +1 -1
- package/packages/core/src/agent/osAgent.ts +244 -19
- package/packages/core/src/agent/promptBuilder.ts +29 -6
- package/packages/core/src/agent/reasoning.ts +148 -62
- package/packages/core/src/agent/web3Agent.ts +184 -18
- package/packages/core/src/channels/index.ts +52 -35
- package/packages/core/src/channels/lineAdapter.ts +13 -3
- package/packages/core/src/channels/slackAdapter.ts +10 -1
- package/packages/core/src/channels/telegram.ts +313 -29
- package/packages/core/src/channels/whatsappAdapter.ts +16 -4
- package/packages/core/src/config/parser.ts +2 -1
- package/packages/core/src/gateway/cli.ts +2 -1
- package/packages/core/src/gateway/doctor.ts +56 -22
- package/packages/core/src/gateway/server.ts +10 -3
- package/packages/core/src/gateway/setup.ts +8 -3
- package/packages/core/src/plugin/PluginManager.ts +15 -1
- package/packages/core/src/system/plugins/SystemWorkspacePlugin.ts +5 -0
- package/packages/core/src/system/skills/analyzeImage.ts +14 -21
- package/packages/core/src/system/skills/generateImage.ts +66 -0
- package/packages/core/src/system/skills/searchWeb.ts +47 -1
- package/packages/core/src/utils/contextSummarizer.ts +33 -2
- package/packages/core/src/utils/historySanitizer.ts +25 -4
- package/packages/core/src/utils/skillManager.ts +6 -0
- package/packages/core/src/utils/streamSimulator.ts +40 -45
- package/packages/core/src/web3/skills/marketAnalysis.ts +23 -9
- package/packages/core/src/web3/utils/riskIntelligence.ts +12 -4
- package/packages/core/src/web3/utils/vaultClient.ts +23 -22
- package/packages/dashboard/dist/assets/index-Dg9eiK4h.css +1 -0
- package/packages/dashboard/dist/assets/index-LAS2_trL.js +26 -0
- package/packages/dashboard/dist/index.html +2 -2
- package/packages/dashboard/package.json +2 -2
- package/packages/mcp-server/package.json +1 -1
- package/packages/ml-engine/routers/__pycache__/llm.cpython-313.pyc +0 -0
- package/packages/ml-engine/routers/__pycache__/market.cpython-313.pyc +0 -0
- package/packages/ml-engine/routers/llm.py +15 -1
- package/packages/ml-engine/routers/market.py +218 -99
- package/packages/policy/package.json +1 -1
- package/packages/policy/src/server.ts +43 -49
- package/packages/signer/package.json +3 -3
- package/packages/signer/src/server.ts +32 -13
- package/packages/dashboard/dist/assets/index-BIXV2TNp.js +0 -26
- package/packages/dashboard/dist/assets/index-C2sWcvod.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,65 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepashangelog.com/en/1.0.0/),
|
|
6
6
|
|
|
7
|
+
## [26.7.9]
|
|
8
|
+
### Features & Architecture
|
|
9
|
+
|
|
10
|
+
- **Deep Market Analysis Upgrade**: Significantly enhanced the Python ML Engine (`market.py`) to compute a comprehensive suite of advanced technical indicators including MACD, Bollinger Bands, EMA-20, ATR-14, and OBV using live OHLCV data.
|
|
11
|
+
- **Smart Trend Classification**: The ML Engine now runs deterministic trend scoring (`STRONG_BULLISH` to `STRONG_BEARISH`) and generates an AI narrative summary of the market structure to prevent LLM hallucination and provide highly accurate context.
|
|
12
|
+
- **Anti-Blocker Data Pipeline**: Bypassed Indonesian ISP blocks (e.g., internetsehat/ICON+) that previously blocked major crypto exchange APIs (Binance, Bybit, KuCoin, OKX) by routing historical candle data through `data-api.binance.vision`.
|
|
13
|
+
|
|
14
|
+
### Refactor — Dependency & NPM Warning Cleanup
|
|
15
|
+
|
|
16
|
+
- **Removed Unused & Problematic Dependencies**: Completely uninstalled `@google/genai`, `baileys`, and `@matrix-org/matrix-sdk-crypto-nodejs` from the workspace. This fully eliminates the annoying `npm warn allow-scripts` warnings that users previously encountered when running `npm install -g nyxora` or standard `npm install`.
|
|
17
|
+
- **Migrated Image Analysis SDK**: Refactored `analyzeImage.ts` (Dynamic Require) to use `@google/generative-ai` (which has no install scripts) instead of the newer `@google/genai` (which triggers NPM security warnings), maintaining full Gemini 2.5 Flash compatibility.
|
|
18
|
+
|
|
19
|
+
### Bug Fix — Playbooks Missing for Global npm Users
|
|
20
|
+
|
|
21
|
+
- **Playbooks Not Distributed to Global Users (Critical Fix)**: Resolved a packaging omission where `packages/core/playbooks/` (containing 70 bundled SKILL.md playbooks) was missing from the `files[]` array in `package.json`. Global users running `npm install -g nyxora` never received any playbooks, causing `search_playbook` to always return "No playbooks available." and the system prompt to never list available skills. Fixed by adding `"packages/core/playbooks"` to the `files[]` field.
|
|
22
|
+
|
|
23
|
+
### Bug Fix — "No response generated." Crash on Complex Multi-Step Prompts
|
|
24
|
+
|
|
25
|
+
- **ContextSummarizer Redundant 4x LLM Calls (Critical Fix)**: Fixed a severe loop bug where `compressHistory()` was called once per nudge iteration (up to 4x per request) instead of once per session turn. The compressed result was never persisted back to the logger, so every iteration re-fetched the full uncompressed history and triggered another full LLM summarization call. Added a per-session in-memory cache keyed by text message count: if no new user/assistant messages have arrived, the cached compressed result is reused immediately — eliminating the redundant LLM calls entirely.
|
|
26
|
+
- **TaskPlanner Context Bloat**: Refactored the TaskPlanner to inject its execution plan as a `role: 'system'` logger entry instead of prepending it to the user input string. Previously, the plan was concatenated into the user message body (`planInjection + "\n\nUSER REQUEST: " + input`), which inflated the user message size stored in logger and compounded context bloat on every subsequent turn. Also capped generated plans at 120 words to prevent runaway context consumption.
|
|
27
|
+
- **Nudge Messages Now Actionable**: Replaced the generic `"[SYSTEM NUDGE] You did not output any tool calls..."` message with a structured, actionable prompt that includes: the original user task (truncated to 200 chars), the list of relevant available tools, and explicit instruction to either call a tool or output a final text answer. Applies to both OS Agent and Web3 Agent.
|
|
28
|
+
- **Dead-End Fallback Replaced**: Replaced `"No response generated."` (which leaves the user with no actionable path) with `"⚠️ I encountered an issue processing your request. This can happen with very complex multi-step tasks. Please try rephrasing or breaking the request into smaller steps."` in all 4 abort paths across `osAgent.ts` and `web3Agent.ts`.
|
|
29
|
+
- **Thinking-Prefill Continuation (Critical Fix)**: Ported the core silent-stop recovery technique used by the Hermes agent framework. When a reasoning model (e.g. Gemini 2.5 Pro with `reasoning_effort: high`) produces internal thinking content but no visible text or tool calls, Nyxora now appends the assistant's reasoning turn as-is and continues the loop — allowing the model to see its own reasoning on the next turn and naturally produce a tool call or text response. This is a fundamentally different approach from system nudges (which restart the reasoning chain from scratch). Prefill is attempted up to 2 times before falling back to the nudge path. Applies to both OS Agent and Web3 Agent.
|
|
30
|
+
- **Anti-Silent-Stop System Prompt Rule**: Added `CRITICAL RULE 6` to the OS agent system prompt explicitly forbidding silent stops: after reasoning is complete, the model MUST produce either tool calls or a visible text answer. Ending a turn with only internal thinking is explicitly stated as not acceptable.
|
|
31
|
+
- **MAX_TURNS Raised (OS Agent)**: Increased the stream loop iteration cap from 10 to 15 to give complex multi-step tasks (e.g. write file → send to Telegram) sufficient room to complete without hitting the ceiling.
|
|
32
|
+
|
|
33
|
+
## [26.7.8]
|
|
34
|
+
### Bug Fixes — Global Compatibility & Dashboard Crash
|
|
35
|
+
|
|
36
|
+
- **Dashboard Not Accessible via `nyxora dashboard` (Critical Fix)**: Resolved a crash-on-startup bug where the entire Core gateway process would exit with code `1` before binding to port 3000, making `http://localhost:3000` unreachable. Root cause: `channels/index.ts` performed static top-level imports of `baileys`, `@slack/bolt`, and `@line/bot-sdk` — packages that are **not listed in `package.json` dependencies** and therefore not installed on global npm users' machines. Resolved by refactoring `channels/index.ts` into a `registerAllAdapters()` async function that uses dynamic `import()` with `MODULE_NOT_FOUND` error handling. Missing adapters now log a clear warning and are skipped instead of crashing the process.
|
|
37
|
+
- **WhatsApp Adapter Lazy Load**: Migrated `whatsappAdapter.ts` from a static `import makeWASocket from 'baileys'` to a lazy `await import('baileys')` inside `start()`, with a graceful error and install instructions if `baileys` is absent.
|
|
38
|
+
- **Slack Adapter Lazy Load**: Migrated `slackAdapter.ts` `@slack/bolt` import to lazy initialization inside `start()`.
|
|
39
|
+
- **LINE Adapter Lazy Load**: Migrated `lineAdapter.ts` `@line/bot-sdk` import to lazy initialization inside `start()`.
|
|
40
|
+
|
|
41
|
+
### Bug Fixes — Windows & Cross-Platform Compatibility
|
|
42
|
+
|
|
43
|
+
- **Unix Socket Crash on Windows** (`ENOENT`/`ENOTSUP`): Replaced hardcoded Unix Domain Socket (`/tmp/nyxora-signer.sock`) in `signer/server.ts` with a cross-platform IPC strategy. On Windows, the signer now listens on TCP `127.0.0.1:3002`; Unix/Mac keeps the existing UDS path for security.
|
|
44
|
+
- **Policy Engine Cross-Platform IPC**: Refactored all Signer proxy calls in `policy/server.ts` into a unified `signerRequestOptions()` helper that automatically selects Unix socket (Linux/Mac) or TCP (Windows). The optional UDS IPC server is now skipped entirely on Windows.
|
|
45
|
+
- **vaultClient TCP Fallback**: Refactored `vaultClient.ts` with a `getPolicyOptions()` helper — on Windows, all Policy Engine requests use TCP; on Linux/Mac, Unix socket is preferred if available with automatic TCP fallback.
|
|
46
|
+
- **Python Path on Windows**: Launcher now resolves the ML Engine Python executable to `venv/Scripts/python.exe` on Windows instead of `venv/bin/python`, preventing silent "Python not found" at startup.
|
|
47
|
+
- **`pkill` Skipped on Windows**: Graceful shutdown in `launcher.ts` now guards `pkill -f ts-node` and `pkill -f uvicorn` behind a `process.platform !== 'win32'` check.
|
|
48
|
+
- **Unix Socket Doctor Checks Skipped on Windows**: `nyxora doctor` now conditionally skips UDS socket health checks on Windows where they are not applicable.
|
|
49
|
+
|
|
50
|
+
### Improvements — Configuration & Telemetry
|
|
51
|
+
|
|
52
|
+
- **Cloudflare Tunnel Configurable**: Cloudflare auto-tunnel can now be disabled by setting `cloudflare_tunnel: false` in `~/.nyxora/config/config.yaml`. Previously it always launched unconditionally.
|
|
53
|
+
- **ML Engine Health Check in `nyxora doctor`**: Added a dedicated check (#7) that pings `http://127.0.0.1:8000/health` to detect if the Python ML Engine sidecar is running. When daemon is stopped, it verifies the venv is installed and guides with `nyxora setup`.
|
|
54
|
+
- **Node.js Version Enforcement**: Added `"engines": { "node": ">=22.0.0" }` to `package.json`. npm will now warn users attempting to install on incompatible Node.js versions instead of silently installing and crashing at runtime.
|
|
55
|
+
- **Locale-Neutral System Prompt**: Replaced Indonesian-specific examples (`"cek saldo gue dirupiahin"`, `"fiat/rupiah"`) in `promptBuilder.ts` with multilingual examples (`"0.5 BTC in EUR"`, `"convert 100 SOL to JPY"`) to align with global user base.
|
|
56
|
+
- **English-Only Source Code**: Translated the remaining Indonesian comment in `nyxDaemon.ts` (`// Kirim riwayat percakapan...`) to English for open-source contributor clarity.
|
|
57
|
+
|
|
58
|
+
## [26.7.6]
|
|
59
|
+
### Features & Architecture
|
|
60
|
+
- **ML Engine Custom Provider Support**: Fixed a `500 Internal Server Error` in the Python ML Engine by explicitly supporting the `custom` and `openrouter` providers and gracefully handling empty API keys with a local fallback, ensuring robust execution for cognitive reasoning and RAG memory tasks.
|
|
61
|
+
|
|
62
|
+
### Bug Fixes & Dashboard
|
|
63
|
+
- **Dashboard Overview Key Detection**: Resolved a UI bug in the Dashboard Overview where custom and proxy providers (`custom_provider_key`, `9router_key`) incorrectly rendered as "Missing Key". The status engine now dynamically queries the exact credential mapping for off-standard providers.
|
|
64
|
+
- **LLM Configuration Persistence Bug**: Fixed a configuration merging flaw in `Settings.tsx` where switching away from a `custom_provider` left the old `base_url` intact in the persistent payload. This previously caused subsequent standard LLM providers (e.g., OpenAI) to silently inherit the custom URL and crash. The dashboard now cleanly purges the `base_url` state upon provider transitions.
|
|
65
|
+
|
|
7
66
|
## [26.7.5]
|
|
8
67
|
### Reasoning & Agent Engine Architecture
|
|
9
68
|
- **Event-Driven Tool Execution**: Fully refactored the core agent loop (`osAgent.ts`) from a linear synchronous executor to a highly scalable, event-driven architecture using Lifecycle Hooks (`beforeToolCall`, `afterToolCall`). This completely decouples security guardrails and domain-specific logic from the core loop.
|
package/README.md
CHANGED
|
@@ -123,43 +123,39 @@ It operates under a **Zero-Trust, Defense-in-Depth Cryptographically Bound Human
|
|
|
123
123
|
|
|
124
124
|
The following diagram illustrates Nyxora's **6-Tier Hybrid Architecture**, showing the isolated communication channels across the ecosystem.
|
|
125
125
|
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
+-------------------------------+
|
|
160
|
-
|
|
|
161
|
-
v
|
|
162
|
-
[ Blockchain RPC ]
|
|
126
|
+
```mermaid
|
|
127
|
+
graph TD
|
|
128
|
+
classDef default fill:#1E1E2E,stroke:#4C4F69,stroke-width:2px,color:#CDD6F4;
|
|
129
|
+
classDef external fill:#11111B,stroke:#F38BA8,stroke-width:2px,color:#F38BA8,stroke-dasharray: 5 5;
|
|
130
|
+
classDef ui fill:#89B4FA,stroke:#1E1E2E,stroke-width:2px,color:#11111B;
|
|
131
|
+
classDef core fill:#A6E3A1,stroke:#1E1E2E,stroke-width:2px,color:#11111B;
|
|
132
|
+
classDef policy fill:#F9E2AF,stroke:#1E1E2E,stroke-width:2px,color:#11111B;
|
|
133
|
+
classDef signer fill:#F38BA8,stroke:#1E1E2E,stroke-width:2px,color:#11111B;
|
|
134
|
+
classDef blockchain fill:#CBA6F7,stroke:#1E1E2E,stroke-width:2px,color:#11111B;
|
|
135
|
+
|
|
136
|
+
User["User / External Client"]:::external
|
|
137
|
+
|
|
138
|
+
Dashboard["Dashboard (UI)<br/>Port 5173"]:::ui
|
|
139
|
+
MCP["MCP Server<br/>Port 3001"]:::ui
|
|
140
|
+
|
|
141
|
+
Core["Core LLM Runtime<br/>Port 3000<br/>(NLP Parsing, Routing, Agent Logic)"]:::core
|
|
142
|
+
|
|
143
|
+
ML["ML Engine<br/>Port 8000"]:::core
|
|
144
|
+
Policy["Policy Engine (Guard)<br/>Unix Socket (IPC) / Loopback"]:::policy
|
|
145
|
+
Signer["Signer Vault (Safe)<br/>Unix Socket (IPC)"]:::signer
|
|
146
|
+
|
|
147
|
+
RPC["Blockchain RPC"]:::blockchain
|
|
148
|
+
|
|
149
|
+
User --> Dashboard
|
|
150
|
+
User --> MCP
|
|
151
|
+
|
|
152
|
+
Dashboard --> Core
|
|
153
|
+
MCP --> Core
|
|
154
|
+
|
|
155
|
+
Core <-->|" RAG & Math "| ML
|
|
156
|
+
Core -->|" Draft Transaction "| Policy
|
|
157
|
+
Policy -->|" Approved Payload "| Signer
|
|
158
|
+
Signer --> RPC
|
|
163
159
|
```
|
|
164
160
|
|
|
165
161
|
*Nyxora separates its duties into 6 independent layers for absolute security and cognitive depth:*
|
package/dist/launcher.js
CHANGED
|
@@ -71,7 +71,6 @@ const spawnService = (name, command, args, env, inheritStdio = false, cwd) => {
|
|
|
71
71
|
try {
|
|
72
72
|
const yaml = require('yaml');
|
|
73
73
|
const configPath = path_1.default.join(process.env.HOME || process.env.USERPROFILE || '', '.nyxora', 'config', 'config.yaml');
|
|
74
|
-
// Fallback check just in case it hasn't migrated yet
|
|
75
74
|
const actualConfigPath = fs_1.default.existsSync(configPath) ? configPath : path_1.default.join(process.env.HOME || process.env.USERPROFILE || '', '.nyxora', 'config.yaml');
|
|
76
75
|
if (fs_1.default.existsSync(actualConfigPath)) {
|
|
77
76
|
const configStr = fs_1.default.readFileSync(actualConfigPath, 'utf8');
|
|
@@ -89,7 +88,12 @@ const spawnService = (name, command, args, env, inheritStdio = false, cwd) => {
|
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
catch (e) { }
|
|
92
|
-
|
|
91
|
+
console.log('\n[Launcher] Shutting down all services due to emergency shutdown...');
|
|
92
|
+
children.forEach(c => c.kill());
|
|
93
|
+
// Give children time to exit cleanly
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
process.exit(1);
|
|
96
|
+
}, 1000);
|
|
93
97
|
return;
|
|
94
98
|
}
|
|
95
99
|
console.log(`[Launcher] Restarting ${name} in 3 seconds... (Attempt ${crashCount}/5)`);
|
|
@@ -139,7 +143,11 @@ setTimeout(() => {
|
|
|
139
143
|
children.push(policy);
|
|
140
144
|
setTimeout(() => {
|
|
141
145
|
// Spawn ML Engine (Python Sidecar)
|
|
142
|
-
|
|
146
|
+
// Cross-platform: Windows uses Scripts/, Unix uses bin/
|
|
147
|
+
const IS_WINDOWS_LAUNCHER = process.platform === 'win32';
|
|
148
|
+
const pythonBinDir = IS_WINDOWS_LAUNCHER ? 'Scripts' : 'bin';
|
|
149
|
+
const pythonExe = IS_WINDOWS_LAUNCHER ? 'python.exe' : 'python';
|
|
150
|
+
const pythonPath = path_1.default.join(process.env.HOME || process.env.USERPROFILE || '', '.nyxora', 'ml-engine', 'venv', pythonBinDir, pythonExe);
|
|
143
151
|
if (fs_1.default.existsSync(pythonPath)) {
|
|
144
152
|
let mlDir = path_1.default.join(__dirnameResolved, 'packages', 'ml-engine');
|
|
145
153
|
if (!fs_1.default.existsSync(mlDir))
|
|
@@ -149,7 +157,7 @@ setTimeout(() => {
|
|
|
149
157
|
children.push(mlEngine);
|
|
150
158
|
}
|
|
151
159
|
else {
|
|
152
|
-
console.warn('[Launcher] Warning: Python virtual environment not found.
|
|
160
|
+
console.warn('[Launcher] Warning: Python virtual environment not found. ML Engine features (market analysis etc.) will be unavailable. Run: nyxora setup');
|
|
153
161
|
}
|
|
154
162
|
setTimeout(() => {
|
|
155
163
|
const corePath = path_1.default.join(__dirnameResolved, `packages/core/src/gateway/cli${ext}`);
|
|
@@ -157,30 +165,46 @@ setTimeout(() => {
|
|
|
157
165
|
const core = spawnService('Core', cmd, [...baseArgs, corePath, ...args], env, true);
|
|
158
166
|
children.push(core);
|
|
159
167
|
// --- AUTO-TUNNEL (Cloudflare) ---
|
|
168
|
+
// Respects config: set cloudflare_tunnel: false in ~/.nyxora/config/config.yaml to disable.
|
|
160
169
|
setTimeout(() => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
cf.stderr.on('data', (data) => {
|
|
174
|
-
const msg = data.toString();
|
|
175
|
-
// Extract the Cloudflare URL (e.g., https://xyz.trycloudflare.com)
|
|
176
|
-
const match = msg.match(/https:\/\/[a-zA-Z0-9-]+\.trycloudflare\.com/);
|
|
177
|
-
if (match) {
|
|
178
|
-
const url = match[0];
|
|
179
|
-
console.log(`\n[Auto-Tunnel] Secure Public URL generated: ${url}\n`);
|
|
180
|
-
fs_1.default.writeFileSync(path_1.default.join(nyxoraDir, 'public_url.txt'), url, 'utf8');
|
|
170
|
+
let cfEnabled = true;
|
|
171
|
+
try {
|
|
172
|
+
const yaml = require('yaml');
|
|
173
|
+
const configPath = path_1.default.join(nyxoraDir, 'config', 'config.yaml');
|
|
174
|
+
const fallbackPath = path_1.default.join(nyxoraDir, 'config.yaml');
|
|
175
|
+
const actualPath = fs_1.default.existsSync(configPath) ? configPath : fallbackPath;
|
|
176
|
+
if (fs_1.default.existsSync(actualPath)) {
|
|
177
|
+
const cfg = yaml.parse(fs_1.default.readFileSync(actualPath, 'utf8'));
|
|
178
|
+
if (cfg?.cloudflare_tunnel === false) {
|
|
179
|
+
cfEnabled = false;
|
|
180
|
+
console.log('[Launcher] Cloudflare Auto-Tunnel is disabled by config (cloudflare_tunnel: false).');
|
|
181
|
+
}
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
-
}
|
|
183
|
+
}
|
|
184
|
+
catch (e) { }
|
|
185
|
+
if (cfEnabled) {
|
|
186
|
+
console.log('[Launcher] Starting Auto-Tunnel (Cloudflare) on port 3000...');
|
|
187
|
+
const cf = (0, child_process_1.spawn)('npx', ['cloudflared', 'tunnel', '--url', 'http://localhost:3000'], { env, shell: true });
|
|
188
|
+
children.push({
|
|
189
|
+
kill: () => { try {
|
|
190
|
+
process.kill(cf.pid, 'SIGTERM');
|
|
191
|
+
}
|
|
192
|
+
catch (e) { } },
|
|
193
|
+
forceKill: () => { try {
|
|
194
|
+
process.kill(cf.pid, 'SIGKILL');
|
|
195
|
+
}
|
|
196
|
+
catch (e) { } }
|
|
197
|
+
});
|
|
198
|
+
cf.stderr.on('data', (data) => {
|
|
199
|
+
const msg = data.toString();
|
|
200
|
+
const match = msg.match(/https:\/\/[a-zA-Z0-9-]+\.trycloudflare\.com/);
|
|
201
|
+
if (match) {
|
|
202
|
+
const url = match[0];
|
|
203
|
+
console.log(`\n[Auto-Tunnel] Secure Public URL generated: ${url}\n`);
|
|
204
|
+
fs_1.default.writeFileSync(path_1.default.join(nyxoraDir, 'public_url.txt'), url, 'utf8');
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
184
208
|
}, 3000);
|
|
185
209
|
}, 1000);
|
|
186
210
|
}, 1000);
|
|
@@ -201,11 +225,17 @@ const cleanup = () => {
|
|
|
201
225
|
}
|
|
202
226
|
catch (e) { }
|
|
203
227
|
});
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
228
|
+
// pkill is Unix-only — skip on Windows
|
|
229
|
+
if (process.platform !== 'win32') {
|
|
230
|
+
try {
|
|
231
|
+
require('child_process').execSync('pkill -f ts-node');
|
|
232
|
+
}
|
|
233
|
+
catch (e) { }
|
|
234
|
+
try {
|
|
235
|
+
require('child_process').execSync('pkill -f uvicorn');
|
|
236
|
+
}
|
|
237
|
+
catch (e) { }
|
|
207
238
|
}
|
|
208
|
-
catch (e) { }
|
|
209
239
|
process.exit(0);
|
|
210
240
|
}, 1000);
|
|
211
241
|
};
|
|
@@ -8,10 +8,18 @@ class OpenAIAdapter {
|
|
|
8
8
|
}
|
|
9
9
|
async chat(request) {
|
|
10
10
|
const response = await this.client.chat.completions.create(request);
|
|
11
|
+
let content = response.choices[0].message.content || '';
|
|
12
|
+
let reasoning = response.choices[0].message.reasoning_content || null;
|
|
13
|
+
// Extract <thinking> tags from content if present
|
|
14
|
+
const thinkingMatch = content.match(/<(think|thought|thinking|reasoning|analysis|reflection)>([\s\S]*?)<\/\1>/i);
|
|
15
|
+
if (thinkingMatch) {
|
|
16
|
+
reasoning = (reasoning || '') + thinkingMatch[2].trim();
|
|
17
|
+
content = content.replace(/<(think|thought|thinking|reasoning|analysis|reflection)>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
18
|
+
}
|
|
11
19
|
return {
|
|
12
20
|
message: {
|
|
13
|
-
content:
|
|
14
|
-
reasoning_content:
|
|
21
|
+
content: content || null,
|
|
22
|
+
reasoning_content: reasoning || null,
|
|
15
23
|
tool_calls: response.choices[0].message.tool_calls
|
|
16
24
|
},
|
|
17
25
|
usage: response.usage ? { total_tokens: response.usage.total_tokens } : undefined
|
|
@@ -29,8 +37,8 @@ class OpenAIAdapter {
|
|
|
29
37
|
fullContent += delta.content;
|
|
30
38
|
onChunk(delta.content);
|
|
31
39
|
}
|
|
32
|
-
if (delta?.reasoning_content) {
|
|
33
|
-
reasoningContent += delta.reasoning_content;
|
|
40
|
+
if (delta?.reasoning_content || delta?.reasoning) {
|
|
41
|
+
reasoningContent += (delta.reasoning_content || delta.reasoning);
|
|
34
42
|
}
|
|
35
43
|
if (delta?.tool_calls) {
|
|
36
44
|
for (const tc of delta.tool_calls) {
|
|
@@ -49,6 +57,12 @@ class OpenAIAdapter {
|
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
59
|
const toolCalls = Object.values(toolCallsMap);
|
|
60
|
+
// Post-process to extract <thinking> tags that were streamed as part of content
|
|
61
|
+
const thinkingMatch = fullContent.match(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>([\s\S]*?)<\/\1>/i);
|
|
62
|
+
if (thinkingMatch) {
|
|
63
|
+
reasoningContent = (reasoningContent || '') + thinkingMatch[2].trim();
|
|
64
|
+
fullContent = fullContent.replace(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
65
|
+
}
|
|
52
66
|
return {
|
|
53
67
|
message: {
|
|
54
68
|
content: fullContent || null,
|
|
@@ -176,10 +190,17 @@ class AnthropicAdapter {
|
|
|
176
190
|
});
|
|
177
191
|
}
|
|
178
192
|
}
|
|
193
|
+
if (contentStr) {
|
|
194
|
+
const thinkingMatch = contentStr.match(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>([\s\S]*?)<\/\1>/i);
|
|
195
|
+
if (thinkingMatch) {
|
|
196
|
+
reasoningStr = (reasoningStr || '') + thinkingMatch[2].trim();
|
|
197
|
+
contentStr = contentStr.replace(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
179
200
|
return {
|
|
180
201
|
message: {
|
|
181
|
-
content: contentStr,
|
|
182
|
-
reasoning_content: reasoningStr,
|
|
202
|
+
content: contentStr || null,
|
|
203
|
+
reasoning_content: reasoningStr || null,
|
|
183
204
|
tool_calls: toolCalls.length > 0 ? toolCalls : undefined
|
|
184
205
|
},
|
|
185
206
|
usage: response.usage ? { total_tokens: response.usage.input_tokens + response.usage.output_tokens } : undefined
|
|
@@ -264,6 +285,13 @@ class AnthropicAdapter {
|
|
|
264
285
|
last.function.arguments += event.delta.partial_json;
|
|
265
286
|
}
|
|
266
287
|
}
|
|
288
|
+
if (fullContent) {
|
|
289
|
+
const thinkingMatch = fullContent.match(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>([\s\S]*?)<\/\1>/i);
|
|
290
|
+
if (thinkingMatch) {
|
|
291
|
+
reasoningContent = (reasoningContent || '') + thinkingMatch[2].trim();
|
|
292
|
+
fullContent = fullContent.replace(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
293
|
+
}
|
|
294
|
+
}
|
|
267
295
|
return { message: { content: fullContent || null, reasoning_content: reasoningContent || null, tool_calls: toolCalls.length > 0 ? toolCalls : undefined } };
|
|
268
296
|
}
|
|
269
297
|
catch {
|
|
@@ -406,9 +434,18 @@ class GeminiAdapter {
|
|
|
406
434
|
if (data.usageMetadata && data.usageMetadata.totalTokenCount) {
|
|
407
435
|
totalTokens = data.usageMetadata.totalTokenCount;
|
|
408
436
|
}
|
|
437
|
+
let reasoningContent = null;
|
|
438
|
+
if (contentStr) {
|
|
439
|
+
const thinkingMatch = contentStr.match(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>([\s\S]*?)<\/\1>/i);
|
|
440
|
+
if (thinkingMatch) {
|
|
441
|
+
reasoningContent = thinkingMatch[2].trim();
|
|
442
|
+
contentStr = contentStr.replace(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
409
445
|
return {
|
|
410
446
|
message: {
|
|
411
|
-
content: contentStr,
|
|
447
|
+
content: contentStr || null,
|
|
448
|
+
reasoning_content: reasoningContent || null,
|
|
412
449
|
tool_calls: toolCalls.length > 0 ? toolCalls : undefined
|
|
413
450
|
},
|
|
414
451
|
usage: totalTokens > 0 ? { total_tokens: totalTokens } : undefined
|
|
@@ -525,8 +562,16 @@ class GeminiAdapter {
|
|
|
525
562
|
}
|
|
526
563
|
}
|
|
527
564
|
}
|
|
565
|
+
let reasoningContent = null;
|
|
566
|
+
if (contentStr) {
|
|
567
|
+
const thinkingMatch = contentStr.match(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>([\s\S]*?)<\/\1>/i);
|
|
568
|
+
if (thinkingMatch) {
|
|
569
|
+
reasoningContent = thinkingMatch[2].trim();
|
|
570
|
+
contentStr = contentStr.replace(/<(think|thought|thinking|reasoning|analysis|reflection|ant-thinking|ant_thinking)[^>]*>[\s\S]*?<\/\1>\n?/i, '').trim();
|
|
571
|
+
}
|
|
572
|
+
}
|
|
528
573
|
return {
|
|
529
|
-
message: { content: contentStr || null, tool_calls: toolCalls.length > 0 ? toolCalls : undefined },
|
|
574
|
+
message: { content: contentStr || null, reasoning_content: reasoningContent || null, tool_calls: toolCalls.length > 0 ? toolCalls : undefined },
|
|
530
575
|
usage: totalTokens > 0 ? { total_tokens: totalTokens } : undefined
|
|
531
576
|
};
|
|
532
577
|
}
|
|
@@ -55,7 +55,7 @@ class NyxDaemon {
|
|
|
55
55
|
this.isProcessing = false;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
//
|
|
58
|
+
// Send conversation history to Python ML Engine for cognitive modeling
|
|
59
59
|
const res = await fetch('http://127.0.0.1:8000/cognitive/reason', {
|
|
60
60
|
method: 'POST',
|
|
61
61
|
headers: { 'Content-Type': 'application/json' },
|