phaibel 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +245 -0
- package/dist/agentary.txt +82 -0
- package/dist/client/index.d.ts +135 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +260 -0
- package/dist/client/index.js.map +1 -0
- package/dist/commands/cal.d.ts +31 -0
- package/dist/commands/cal.d.ts.map +1 -0
- package/dist/commands/cal.js +281 -0
- package/dist/commands/cal.js.map +1 -0
- package/dist/commands/chat.d.ts +3 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/chat.js +762 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/config.d.ts +4 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +184 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/cron.d.ts +4 -0
- package/dist/commands/cron.d.ts.map +1 -0
- package/dist/commands/cron.js +165 -0
- package/dist/commands/cron.js.map +1 -0
- package/dist/commands/entity-type.d.ts +3 -0
- package/dist/commands/entity-type.d.ts.map +1 -0
- package/dist/commands/entity-type.js +279 -0
- package/dist/commands/entity-type.js.map +1 -0
- package/dist/commands/entity.d.ts +3 -0
- package/dist/commands/entity.d.ts.map +1 -0
- package/dist/commands/entity.js +262 -0
- package/dist/commands/entity.js.map +1 -0
- package/dist/commands/event.d.ts +4 -0
- package/dist/commands/event.d.ts.map +1 -0
- package/dist/commands/event.js +515 -0
- package/dist/commands/event.js.map +1 -0
- package/dist/commands/feral.d.ts +3 -0
- package/dist/commands/feral.d.ts.map +1 -0
- package/dist/commands/feral.js +272 -0
- package/dist/commands/feral.js.map +1 -0
- package/dist/commands/goal.d.ts +4 -0
- package/dist/commands/goal.d.ts.map +1 -0
- package/dist/commands/goal.js +14 -0
- package/dist/commands/goal.js.map +1 -0
- package/dist/commands/inbox.d.ts +13 -0
- package/dist/commands/inbox.d.ts.map +1 -0
- package/dist/commands/inbox.js +210 -0
- package/dist/commands/inbox.js.map +1 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +154 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/interview.d.ts +14 -0
- package/dist/commands/interview.d.ts.map +1 -0
- package/dist/commands/interview.js +343 -0
- package/dist/commands/interview.js.map +1 -0
- package/dist/commands/list.d.ts +11 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +168 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/note.d.ts +4 -0
- package/dist/commands/note.d.ts.map +1 -0
- package/dist/commands/note.js +548 -0
- package/dist/commands/note.js.map +1 -0
- package/dist/commands/pamp.d.ts +4 -0
- package/dist/commands/pamp.d.ts.map +1 -0
- package/dist/commands/pamp.js +323 -0
- package/dist/commands/pamp.js.map +1 -0
- package/dist/commands/person.d.ts +4 -0
- package/dist/commands/person.d.ts.map +1 -0
- package/dist/commands/person.js +185 -0
- package/dist/commands/person.js.map +1 -0
- package/dist/commands/project.d.ts +4 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +70 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/recurrence.d.ts +17 -0
- package/dist/commands/recurrence.d.ts.map +1 -0
- package/dist/commands/recurrence.js +496 -0
- package/dist/commands/recurrence.js.map +1 -0
- package/dist/commands/remember.d.ts +4 -0
- package/dist/commands/remember.d.ts.map +1 -0
- package/dist/commands/remember.js +70 -0
- package/dist/commands/remember.js.map +1 -0
- package/dist/commands/research.d.ts +4 -0
- package/dist/commands/research.d.ts.map +1 -0
- package/dist/commands/research.js +14 -0
- package/dist/commands/research.js.map +1 -0
- package/dist/commands/service.d.ts +14 -0
- package/dist/commands/service.d.ts.map +1 -0
- package/dist/commands/service.js +313 -0
- package/dist/commands/service.js.map +1 -0
- package/dist/commands/setup.d.ts +4 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +42 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/shell.d.ts +3 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/shell.js +346 -0
- package/dist/commands/shell.js.map +1 -0
- package/dist/commands/skill.d.ts +4 -0
- package/dist/commands/skill.d.ts.map +1 -0
- package/dist/commands/skill.js +84 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/sync.d.ts +4 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +68 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/time.d.ts +3 -0
- package/dist/commands/time.d.ts.map +1 -0
- package/dist/commands/time.js +12 -0
- package/dist/commands/time.js.map +1 -0
- package/dist/commands/today.d.ts +4 -0
- package/dist/commands/today.d.ts.map +1 -0
- package/dist/commands/today.js +112 -0
- package/dist/commands/today.js.map +1 -0
- package/dist/commands/todo.d.ts +4 -0
- package/dist/commands/todo.d.ts.map +1 -0
- package/dist/commands/todo.js +678 -0
- package/dist/commands/todo.js.map +1 -0
- package/dist/commands/todont.d.ts +19 -0
- package/dist/commands/todont.d.ts.map +1 -0
- package/dist/commands/todont.js +209 -0
- package/dist/commands/todont.js.map +1 -0
- package/dist/commands/week.d.ts +4 -0
- package/dist/commands/week.d.ts.map +1 -0
- package/dist/commands/week.js +267 -0
- package/dist/commands/week.js.map +1 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +141 -0
- package/dist/config.js.map +1 -0
- package/dist/context/mentions.d.ts +21 -0
- package/dist/context/mentions.d.ts.map +1 -0
- package/dist/context/mentions.js +146 -0
- package/dist/context/mentions.js.map +1 -0
- package/dist/context/reader.d.ts +54 -0
- package/dist/context/reader.d.ts.map +1 -0
- package/dist/context/reader.js +133 -0
- package/dist/context/reader.js.map +1 -0
- package/dist/dobbai.txt +55 -0
- package/dist/dobbi.txt +55 -0
- package/dist/dobbie-bundle.cjs +73313 -0
- package/dist/dobbie.txt +55 -0
- package/dist/entities/embedding-index.d.ts +26 -0
- package/dist/entities/embedding-index.d.ts.map +1 -0
- package/dist/entities/embedding-index.js +200 -0
- package/dist/entities/embedding-index.js.map +1 -0
- package/dist/entities/entity-index.d.ts +74 -0
- package/dist/entities/entity-index.d.ts.map +1 -0
- package/dist/entities/entity-index.js +369 -0
- package/dist/entities/entity-index.js.map +1 -0
- package/dist/entities/entity-summary.d.ts +6 -0
- package/dist/entities/entity-summary.d.ts.map +1 -0
- package/dist/entities/entity-summary.js +36 -0
- package/dist/entities/entity-summary.js.map +1 -0
- package/dist/entities/entity-type-config.d.ts +83 -0
- package/dist/entities/entity-type-config.d.ts.map +1 -0
- package/dist/entities/entity-type-config.js +134 -0
- package/dist/entities/entity-type-config.js.map +1 -0
- package/dist/entities/entity-types-defaults.d.ts +5 -0
- package/dist/entities/entity-types-defaults.d.ts.map +1 -0
- package/dist/entities/entity-types-defaults.js +59 -0
- package/dist/entities/entity-types-defaults.js.map +1 -0
- package/dist/entities/entity-validator.d.ts +21 -0
- package/dist/entities/entity-validator.d.ts.map +1 -0
- package/dist/entities/entity-validator.js +102 -0
- package/dist/entities/entity-validator.js.map +1 -0
- package/dist/entities/entity.d.ts +180 -0
- package/dist/entities/entity.d.ts.map +1 -0
- package/dist/entities/entity.js +357 -0
- package/dist/entities/entity.js.map +1 -0
- package/dist/entities/spawner.d.ts +67 -0
- package/dist/entities/spawner.d.ts.map +1 -0
- package/dist/entities/spawner.js +294 -0
- package/dist/entities/spawner.js.map +1 -0
- package/dist/feral/agent/agent-brain.d.ts +22 -0
- package/dist/feral/agent/agent-brain.d.ts.map +1 -0
- package/dist/feral/agent/agent-brain.js +5 -0
- package/dist/feral/agent/agent-brain.js.map +1 -0
- package/dist/feral/agent/agent.d.ts +27 -0
- package/dist/feral/agent/agent.d.ts.map +1 -0
- package/dist/feral/agent/agent.js +12 -0
- package/dist/feral/agent/agent.js.map +1 -0
- package/dist/feral/agent/chatgpt-brain.d.ts +14 -0
- package/dist/feral/agent/chatgpt-brain.d.ts.map +1 -0
- package/dist/feral/agent/chatgpt-brain.js +73 -0
- package/dist/feral/agent/chatgpt-brain.js.map +1 -0
- package/dist/feral/agent/index.d.ts +10 -0
- package/dist/feral/agent/index.d.ts.map +1 -0
- package/dist/feral/agent/index.js +13 -0
- package/dist/feral/agent/index.js.map +1 -0
- package/dist/feral/agent/model-schema.d.ts +37 -0
- package/dist/feral/agent/model-schema.d.ts.map +1 -0
- package/dist/feral/agent/model-schema.js +43 -0
- package/dist/feral/agent/model-schema.js.map +1 -0
- package/dist/feral/agent/process-agent.d.ts +20 -0
- package/dist/feral/agent/process-agent.d.ts.map +1 -0
- package/dist/feral/agent/process-agent.js +81 -0
- package/dist/feral/agent/process-agent.js.map +1 -0
- package/dist/feral/agent/protoflow-agent.d.ts +20 -0
- package/dist/feral/agent/protoflow-agent.d.ts.map +1 -0
- package/dist/feral/agent/protoflow-agent.js +99 -0
- package/dist/feral/agent/protoflow-agent.js.map +1 -0
- package/dist/feral/agent/render-prompt.d.ts +12 -0
- package/dist/feral/agent/render-prompt.d.ts.map +1 -0
- package/dist/feral/agent/render-prompt.js +26 -0
- package/dist/feral/agent/render-prompt.js.map +1 -0
- package/dist/feral/bootstrap.d.ts +31 -0
- package/dist/feral/bootstrap.d.ts.map +1 -0
- package/dist/feral/bootstrap.js +241 -0
- package/dist/feral/bootstrap.js.map +1 -0
- package/dist/feral/catalog/agent-catalog-source.d.ts +9 -0
- package/dist/feral/catalog/agent-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/agent-catalog-source.js +115 -0
- package/dist/feral/catalog/agent-catalog-source.js.map +1 -0
- package/dist/feral/catalog/built-in-catalog-source.d.ts +14 -0
- package/dist/feral/catalog/built-in-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/built-in-catalog-source.js +25 -0
- package/dist/feral/catalog/built-in-catalog-source.js.map +1 -0
- package/dist/feral/catalog/catalog-node.d.ts +22 -0
- package/dist/feral/catalog/catalog-node.d.ts.map +1 -0
- package/dist/feral/catalog/catalog-node.js +14 -0
- package/dist/feral/catalog/catalog-node.js.map +1 -0
- package/dist/feral/catalog/catalog.d.ts +17 -0
- package/dist/feral/catalog/catalog.d.ts.map +1 -0
- package/dist/feral/catalog/catalog.js +27 -0
- package/dist/feral/catalog/catalog.js.map +1 -0
- package/dist/feral/catalog/entity-catalog-source.d.ts +13 -0
- package/dist/feral/catalog/entity-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/entity-catalog-source.js +327 -0
- package/dist/feral/catalog/entity-catalog-source.js.map +1 -0
- package/dist/feral/catalog/feral-catalog-config.d.ts +26 -0
- package/dist/feral/catalog/feral-catalog-config.d.ts.map +1 -0
- package/dist/feral/catalog/feral-catalog-config.js +32 -0
- package/dist/feral/catalog/feral-catalog-config.js.map +1 -0
- package/dist/feral/catalog/introspect-catalog-source.d.ts +5 -0
- package/dist/feral/catalog/introspect-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/introspect-catalog-source.js +83 -0
- package/dist/feral/catalog/introspect-catalog-source.js.map +1 -0
- package/dist/feral/catalog/json-catalog-source.d.ts +14 -0
- package/dist/feral/catalog/json-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/json-catalog-source.js +26 -0
- package/dist/feral/catalog/json-catalog-source.js.map +1 -0
- package/dist/feral/catalog/mcp-catalog-source.d.ts +13 -0
- package/dist/feral/catalog/mcp-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/mcp-catalog-source.js +28 -0
- package/dist/feral/catalog/mcp-catalog-source.js.map +1 -0
- package/dist/feral/catalog/output-catalog-source.d.ts +5 -0
- package/dist/feral/catalog/output-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/output-catalog-source.js +32 -0
- package/dist/feral/catalog/output-catalog-source.js.map +1 -0
- package/dist/feral/catalog/pamp-catalog-source.d.ts +9 -0
- package/dist/feral/catalog/pamp-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/pamp-catalog-source.js +42 -0
- package/dist/feral/catalog/pamp-catalog-source.js.map +1 -0
- package/dist/feral/catalog/slack-catalog-source.d.ts +10 -0
- package/dist/feral/catalog/slack-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/slack-catalog-source.js +96 -0
- package/dist/feral/catalog/slack-catalog-source.js.map +1 -0
- package/dist/feral/catalog/system-catalog-source.d.ts +5 -0
- package/dist/feral/catalog/system-catalog-source.d.ts.map +1 -0
- package/dist/feral/catalog/system-catalog-source.js +74 -0
- package/dist/feral/catalog/system-catalog-source.js.map +1 -0
- package/dist/feral/configuration/configuration-description.d.ts +24 -0
- package/dist/feral/configuration/configuration-description.d.ts.map +1 -0
- package/dist/feral/configuration/configuration-description.js +5 -0
- package/dist/feral/configuration/configuration-description.js.map +1 -0
- package/dist/feral/configuration/configuration-manager.d.ts +12 -0
- package/dist/feral/configuration/configuration-manager.d.ts.map +1 -0
- package/dist/feral/configuration/configuration-manager.js +41 -0
- package/dist/feral/configuration/configuration-manager.js.map +1 -0
- package/dist/feral/configuration/configuration-value.d.ts +16 -0
- package/dist/feral/configuration/configuration-value.d.ts.map +1 -0
- package/dist/feral/configuration/configuration-value.js +22 -0
- package/dist/feral/configuration/configuration-value.js.map +1 -0
- package/dist/feral/context/context.d.ts +28 -0
- package/dist/feral/context/context.d.ts.map +1 -0
- package/dist/feral/context/context.js +44 -0
- package/dist/feral/context/context.js.map +1 -0
- package/dist/feral/engine/process-engine.d.ts +23 -0
- package/dist/feral/engine/process-engine.d.ts.map +1 -0
- package/dist/feral/engine/process-engine.js +134 -0
- package/dist/feral/engine/process-engine.js.map +1 -0
- package/dist/feral/errors.d.ts +28 -0
- package/dist/feral/errors.d.ts.map +1 -0
- package/dist/feral/errors.js +58 -0
- package/dist/feral/errors.js.map +1 -0
- package/dist/feral/events/event-dispatcher.d.ts +9 -0
- package/dist/feral/events/event-dispatcher.d.ts.map +1 -0
- package/dist/feral/events/event-dispatcher.js +27 -0
- package/dist/feral/events/event-dispatcher.js.map +1 -0
- package/dist/feral/events/events.d.ts +41 -0
- package/dist/feral/events/events.d.ts.map +1 -0
- package/dist/feral/events/events.js +5 -0
- package/dist/feral/events/events.js.map +1 -0
- package/dist/feral/events/subscribers/cycle-detection-subscriber.d.ts +7 -0
- package/dist/feral/events/subscribers/cycle-detection-subscriber.d.ts.map +1 -0
- package/dist/feral/events/subscribers/cycle-detection-subscriber.js +21 -0
- package/dist/feral/events/subscribers/cycle-detection-subscriber.js.map +1 -0
- package/dist/feral/events/subscribers/logger-subscriber.d.ts +6 -0
- package/dist/feral/events/subscribers/logger-subscriber.d.ts.map +1 -0
- package/dist/feral/events/subscribers/logger-subscriber.js +23 -0
- package/dist/feral/events/subscribers/logger-subscriber.js.map +1 -0
- package/dist/feral/events/subscribers/profiler-subscriber.d.ts +8 -0
- package/dist/feral/events/subscribers/profiler-subscriber.d.ts.map +1 -0
- package/dist/feral/events/subscribers/profiler-subscriber.js +27 -0
- package/dist/feral/events/subscribers/profiler-subscriber.js.map +1 -0
- package/dist/feral/feral-tool-registry.d.ts +18 -0
- package/dist/feral/feral-tool-registry.d.ts.map +1 -0
- package/dist/feral/feral-tool-registry.js +78 -0
- package/dist/feral/feral-tool-registry.js.map +1 -0
- package/dist/feral/index.d.ts +88 -0
- package/dist/feral/index.d.ts.map +1 -0
- package/dist/feral/index.js +89 -0
- package/dist/feral/index.js.map +1 -0
- package/dist/feral/node-code/abstract-node-code.d.ts +38 -0
- package/dist/feral/node-code/abstract-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/abstract-node-code.js +127 -0
- package/dist/feral/node-code/abstract-node-code.js.map +1 -0
- package/dist/feral/node-code/data/calculation-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/calculation-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/calculation-node-code.js +65 -0
- package/dist/feral/node-code/data/calculation-node-code.js.map +1 -0
- package/dist/feral/node-code/data/clean-llm-json-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/clean-llm-json-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/clean-llm-json-node-code.js +47 -0
- package/dist/feral/node-code/data/clean-llm-json-node-code.js.map +1 -0
- package/dist/feral/node-code/data/counter-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/counter-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/counter-node-code.js +29 -0
- package/dist/feral/node-code/data/counter-node-code.js.map +1 -0
- package/dist/feral/node-code/data/http-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/http-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/http-node-code.js +66 -0
- package/dist/feral/node-code/data/http-node-code.js.map +1 -0
- package/dist/feral/node-code/data/json-decode-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/json-decode-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/json-decode-node-code.js +34 -0
- package/dist/feral/node-code/data/json-decode-node-code.js.map +1 -0
- package/dist/feral/node-code/data/json-encode-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/json-encode-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/json-encode-node-code.js +30 -0
- package/dist/feral/node-code/data/json-encode-node-code.js.map +1 -0
- package/dist/feral/node-code/data/llm-chat-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/llm-chat-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/llm-chat-node-code.js +93 -0
- package/dist/feral/node-code/data/llm-chat-node-code.js.map +1 -0
- package/dist/feral/node-code/data/log-node-code.d.ts +13 -0
- package/dist/feral/node-code/data/log-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/log-node-code.js +44 -0
- package/dist/feral/node-code/data/log-node-code.js.map +1 -0
- package/dist/feral/node-code/data/random-value-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/random-value-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/random-value-node-code.js +43 -0
- package/dist/feral/node-code/data/random-value-node-code.js.map +1 -0
- package/dist/feral/node-code/data/read-file-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/read-file-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/read-file-node-code.js +50 -0
- package/dist/feral/node-code/data/read-file-node-code.js.map +1 -0
- package/dist/feral/node-code/data/set-context-table-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/set-context-table-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/set-context-table-node-code.js +34 -0
- package/dist/feral/node-code/data/set-context-table-node-code.js.map +1 -0
- package/dist/feral/node-code/data/set-context-value-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/set-context-value-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/set-context-value-node-code.js +43 -0
- package/dist/feral/node-code/data/set-context-value-node-code.js.map +1 -0
- package/dist/feral/node-code/data/weather-node-code.d.ts +11 -0
- package/dist/feral/node-code/data/weather-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/data/weather-node-code.js +88 -0
- package/dist/feral/node-code/data/weather-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/complete-entity-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/complete-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/complete-entity-node-code.js +72 -0
- package/dist/feral/node-code/entity/complete-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/create-entity-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/create-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/create-entity-node-code.js +109 -0
- package/dist/feral/node-code/entity/create-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/create-entity-type-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/create-entity-type-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/create-entity-type-node-code.js +131 -0
- package/dist/feral/node-code/entity/create-entity-type-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/create-recurring-task-node-code.d.ts +15 -0
- package/dist/feral/node-code/entity/create-recurring-task-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/create-recurring-task-node-code.js +146 -0
- package/dist/feral/node-code/entity/create-recurring-task-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/delete-entity-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/delete-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/delete-entity-node-code.js +60 -0
- package/dist/feral/node-code/entity/delete-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/delete-entity-type-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/delete-entity-type-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/delete-entity-type-node-code.js +51 -0
- package/dist/feral/node-code/entity/delete-entity-type-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/find-entity-node-code.d.ts +13 -0
- package/dist/feral/node-code/entity/find-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/find-entity-node-code.js +59 -0
- package/dist/feral/node-code/entity/find-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/link-entities-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/link-entities-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/link-entities-node-code.js +64 -0
- package/dist/feral/node-code/entity/link-entities-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/list-entities-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/list-entities-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/list-entities-node-code.js +44 -0
- package/dist/feral/node-code/entity/list-entities-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/list-entity-types-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/list-entity-types-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/list-entity-types-node-code.js +22 -0
- package/dist/feral/node-code/entity/list-entity-types-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/load-vault-context-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/load-vault-context-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/load-vault-context-node-code.js +66 -0
- package/dist/feral/node-code/entity/load-vault-context-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/search-entities-node-code.d.ts +13 -0
- package/dist/feral/node-code/entity/search-entities-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/search-entities-node-code.js +66 -0
- package/dist/feral/node-code/entity/search-entities-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/set-entity-field-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/set-entity-field-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/set-entity-field-node-code.js +65 -0
- package/dist/feral/node-code/entity/set-entity-field-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/sort-entities-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/sort-entities-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/sort-entities-node-code.js +67 -0
- package/dist/feral/node-code/entity/sort-entities-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/update-entity-node-code.d.ts +13 -0
- package/dist/feral/node-code/entity/update-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/update-entity-node-code.js +131 -0
- package/dist/feral/node-code/entity/update-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/entity/update-entity-type-node-code.d.ts +11 -0
- package/dist/feral/node-code/entity/update-entity-type-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/entity/update-entity-type-node-code.js +118 -0
- package/dist/feral/node-code/entity/update-entity-type-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/array-iterator-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/array-iterator-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/array-iterator-node-code.js +91 -0
- package/dist/feral/node-code/flow/array-iterator-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/comparator-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/comparator-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/comparator-node-code.js +55 -0
- package/dist/feral/node-code/flow/comparator-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/context-value-result-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/context-value-result-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/context-value-result-node-code.js +22 -0
- package/dist/feral/node-code/flow/context-value-result-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/noop-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/noop-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/noop-node-code.js +19 -0
- package/dist/feral/node-code/flow/noop-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/start-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/start-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/start-node-code.js +19 -0
- package/dist/feral/node-code/flow/start-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/stop-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/stop-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/stop-node-code.js +19 -0
- package/dist/feral/node-code/flow/stop-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/sub-process-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/sub-process-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/sub-process-node-code.js +53 -0
- package/dist/feral/node-code/flow/sub-process-node-code.js.map +1 -0
- package/dist/feral/node-code/flow/throw-exception-node-code.d.ts +11 -0
- package/dist/feral/node-code/flow/throw-exception-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/flow/throw-exception-node-code.js +20 -0
- package/dist/feral/node-code/flow/throw-exception-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/data-synthesis-prep-node-code.d.ts +15 -0
- package/dist/feral/node-code/genai/data-synthesis-prep-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/data-synthesis-prep-node-code.js +44 -0
- package/dist/feral/node-code/genai/data-synthesis-prep-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/generate-html-node-code.d.ts +13 -0
- package/dist/feral/node-code/genai/generate-html-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/generate-html-node-code.js +47 -0
- package/dist/feral/node-code/genai/generate-html-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/generate-markdown-node-code.d.ts +27 -0
- package/dist/feral/node-code/genai/generate-markdown-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/generate-markdown-node-code.js +81 -0
- package/dist/feral/node-code/genai/generate-markdown-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/hydrate-model-node-code.d.ts +21 -0
- package/dist/feral/node-code/genai/hydrate-model-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/hydrate-model-node-code.js +83 -0
- package/dist/feral/node-code/genai/hydrate-model-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/merge-strings-node-code.d.ts +14 -0
- package/dist/feral/node-code/genai/merge-strings-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/merge-strings-node-code.js +34 -0
- package/dist/feral/node-code/genai/merge-strings-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/model-to-output-node-code.d.ts +18 -0
- package/dist/feral/node-code/genai/model-to-output-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/model-to-output-node-code.js +49 -0
- package/dist/feral/node-code/genai/model-to-output-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/openai-node-code.d.ts +14 -0
- package/dist/feral/node-code/genai/openai-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/openai-node-code.js +66 -0
- package/dist/feral/node-code/genai/openai-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/write-entity-node-code.d.ts +22 -0
- package/dist/feral/node-code/genai/write-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/write-entity-node-code.js +46 -0
- package/dist/feral/node-code/genai/write-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/write-file-node-code.d.ts +13 -0
- package/dist/feral/node-code/genai/write-file-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/write-file-node-code.js +59 -0
- package/dist/feral/node-code/genai/write-file-node-code.js.map +1 -0
- package/dist/feral/node-code/genai/write-to-redis-node-code.d.ts +23 -0
- package/dist/feral/node-code/genai/write-to-redis-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/genai/write-to-redis-node-code.js +48 -0
- package/dist/feral/node-code/genai/write-to-redis-node-code.js.map +1 -0
- package/dist/feral/node-code/input/prompt-input-node-code.d.ts +11 -0
- package/dist/feral/node-code/input/prompt-input-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/input/prompt-input-node-code.js +70 -0
- package/dist/feral/node-code/input/prompt-input-node-code.js.map +1 -0
- package/dist/feral/node-code/input/prompt-select-node-code.d.ts +11 -0
- package/dist/feral/node-code/input/prompt-select-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/input/prompt-select-node-code.js +65 -0
- package/dist/feral/node-code/input/prompt-select-node-code.js.map +1 -0
- package/dist/feral/node-code/mcp/mcp-call-tool-node-code.d.ts +12 -0
- package/dist/feral/node-code/mcp/mcp-call-tool-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/mcp/mcp-call-tool-node-code.js +44 -0
- package/dist/feral/node-code/mcp/mcp-call-tool-node-code.js.map +1 -0
- package/dist/feral/node-code/node-code-factory.d.ts +20 -0
- package/dist/feral/node-code/node-code-factory.d.ts.map +1 -0
- package/dist/feral/node-code/node-code-factory.js +32 -0
- package/dist/feral/node-code/node-code-factory.js.map +1 -0
- package/dist/feral/node-code/node-code.d.ts +22 -0
- package/dist/feral/node-code/node-code.d.ts.map +1 -0
- package/dist/feral/node-code/node-code.js +9 -0
- package/dist/feral/node-code/node-code.js.map +1 -0
- package/dist/feral/node-code/output/agent-speak-node-code.d.ts +11 -0
- package/dist/feral/node-code/output/agent-speak-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/output/agent-speak-node-code.js +56 -0
- package/dist/feral/node-code/output/agent-speak-node-code.js.map +1 -0
- package/dist/feral/node-code/output/dobbai-speak-node-code.d.ts +11 -0
- package/dist/feral/node-code/output/dobbai-speak-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/output/dobbai-speak-node-code.js +56 -0
- package/dist/feral/node-code/output/dobbai-speak-node-code.js.map +1 -0
- package/dist/feral/node-code/output/dobbi-speak-node-code.d.ts +15 -0
- package/dist/feral/node-code/output/dobbi-speak-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/output/dobbi-speak-node-code.js +60 -0
- package/dist/feral/node-code/output/dobbi-speak-node-code.js.map +1 -0
- package/dist/feral/node-code/output/dobbie-speak-node-code.d.ts +11 -0
- package/dist/feral/node-code/output/dobbie-speak-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/output/dobbie-speak-node-code.js +56 -0
- package/dist/feral/node-code/output/dobbie-speak-node-code.js.map +1 -0
- package/dist/feral/node-code/pamp/pamp-await-reply-node-code.d.ts +11 -0
- package/dist/feral/node-code/pamp/pamp-await-reply-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/pamp/pamp-await-reply-node-code.js +51 -0
- package/dist/feral/node-code/pamp/pamp-await-reply-node-code.js.map +1 -0
- package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.d.ts +11 -0
- package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.js +37 -0
- package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.js.map +1 -0
- package/dist/feral/node-code/pamp/pamp-send-node-code.d.ts +11 -0
- package/dist/feral/node-code/pamp/pamp-send-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/pamp/pamp-send-node-code.js +48 -0
- package/dist/feral/node-code/pamp/pamp-send-node-code.js.map +1 -0
- package/dist/feral/node-code/pamp/pamp-share-entity-node-code.d.ts +11 -0
- package/dist/feral/node-code/pamp/pamp-share-entity-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/pamp/pamp-share-entity-node-code.js +45 -0
- package/dist/feral/node-code/pamp/pamp-share-entity-node-code.js.map +1 -0
- package/dist/feral/node-code/slack/slack-block-builder-node-code.d.ts +18 -0
- package/dist/feral/node-code/slack/slack-block-builder-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/slack/slack-block-builder-node-code.js +100 -0
- package/dist/feral/node-code/slack/slack-block-builder-node-code.js.map +1 -0
- package/dist/feral/node-code/slack/slack-post-webhook-node-code.d.ts +13 -0
- package/dist/feral/node-code/slack/slack-post-webhook-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/slack/slack-post-webhook-node-code.js +47 -0
- package/dist/feral/node-code/slack/slack-post-webhook-node-code.js.map +1 -0
- package/dist/feral/node-code/slack/slack-process-slash-command-node-code.d.ts +14 -0
- package/dist/feral/node-code/slack/slack-process-slash-command-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/slack/slack-process-slash-command-node-code.js +39 -0
- package/dist/feral/node-code/slack/slack-process-slash-command-node-code.js.map +1 -0
- package/dist/feral/node-code/system/cli-command-node-code.d.ts +11 -0
- package/dist/feral/node-code/system/cli-command-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/system/cli-command-node-code.js +50 -0
- package/dist/feral/node-code/system/cli-command-node-code.js.map +1 -0
- package/dist/feral/node-code/system/introspect-node-code.d.ts +12 -0
- package/dist/feral/node-code/system/introspect-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/system/introspect-node-code.js +98 -0
- package/dist/feral/node-code/system/introspect-node-code.js.map +1 -0
- package/dist/feral/node-code/system/list-catalog-nodes-node-code.d.ts +10 -0
- package/dist/feral/node-code/system/list-catalog-nodes-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/system/list-catalog-nodes-node-code.js +33 -0
- package/dist/feral/node-code/system/list-catalog-nodes-node-code.js.map +1 -0
- package/dist/feral/node-code/system/list-processes-node-code.d.ts +10 -0
- package/dist/feral/node-code/system/list-processes-node-code.d.ts.map +1 -0
- package/dist/feral/node-code/system/list-processes-node-code.js +22 -0
- package/dist/feral/node-code/system/list-processes-node-code.js.map +1 -0
- package/dist/feral/process/edge.d.ts +18 -0
- package/dist/feral/process/edge.d.ts.map +1 -0
- package/dist/feral/process/edge.js +32 -0
- package/dist/feral/process/edge.js.map +1 -0
- package/dist/feral/process/json-process-source.d.ts +18 -0
- package/dist/feral/process/json-process-source.d.ts.map +1 -0
- package/dist/feral/process/json-process-source.js +55 -0
- package/dist/feral/process/json-process-source.js.map +1 -0
- package/dist/feral/process/node.d.ts +14 -0
- package/dist/feral/process/node.d.ts.map +1 -0
- package/dist/feral/process/node.js +5 -0
- package/dist/feral/process/node.js.map +1 -0
- package/dist/feral/process/process-factory.d.ts +18 -0
- package/dist/feral/process/process-factory.d.ts.map +1 -0
- package/dist/feral/process/process-factory.js +30 -0
- package/dist/feral/process/process-factory.js.map +1 -0
- package/dist/feral/process/process-json-hydrator.d.ts +53 -0
- package/dist/feral/process/process-json-hydrator.d.ts.map +1 -0
- package/dist/feral/process/process-json-hydrator.js +48 -0
- package/dist/feral/process/process-json-hydrator.js.map +1 -0
- package/dist/feral/process/process.d.ts +17 -0
- package/dist/feral/process/process.d.ts.map +1 -0
- package/dist/feral/process/process.js +5 -0
- package/dist/feral/process/process.js.map +1 -0
- package/dist/feral/result/result.d.ts +30 -0
- package/dist/feral/result/result.d.ts.map +1 -0
- package/dist/feral/result/result.js +28 -0
- package/dist/feral/result/result.js.map +1 -0
- package/dist/feral/runner/runner.d.ts +13 -0
- package/dist/feral/runner/runner.d.ts.map +1 -0
- package/dist/feral/runner/runner.js +28 -0
- package/dist/feral/runner/runner.js.map +1 -0
- package/dist/feral/security/file-access-guard.d.ts +18 -0
- package/dist/feral/security/file-access-guard.d.ts.map +1 -0
- package/dist/feral/security/file-access-guard.js +69 -0
- package/dist/feral/security/file-access-guard.js.map +1 -0
- package/dist/feral/slack/block-builder.d.ts +61 -0
- package/dist/feral/slack/block-builder.d.ts.map +1 -0
- package/dist/feral/slack/block-builder.js +206 -0
- package/dist/feral/slack/block-builder.js.map +1 -0
- package/dist/feral/slack/blocks.d.ts +86 -0
- package/dist/feral/slack/blocks.d.ts.map +1 -0
- package/dist/feral/slack/blocks.js +181 -0
- package/dist/feral/slack/blocks.js.map +1 -0
- package/dist/feral/slack/composition.d.ts +54 -0
- package/dist/feral/slack/composition.d.ts.map +1 -0
- package/dist/feral/slack/composition.js +114 -0
- package/dist/feral/slack/composition.js.map +1 -0
- package/dist/feral/slack/elements.d.ts +123 -0
- package/dist/feral/slack/elements.d.ts.map +1 -0
- package/dist/feral/slack/elements.js +269 -0
- package/dist/feral/slack/elements.js.map +1 -0
- package/dist/feral/slack/index.d.ts +12 -0
- package/dist/feral/slack/index.d.ts.map +1 -0
- package/dist/feral/slack/index.js +20 -0
- package/dist/feral/slack/index.js.map +1 -0
- package/dist/feral/slack/mapping-factory.d.ts +24 -0
- package/dist/feral/slack/mapping-factory.d.ts.map +1 -0
- package/dist/feral/slack/mapping-factory.js +45 -0
- package/dist/feral/slack/mapping-factory.js.map +1 -0
- package/dist/feral/slack/messages.d.ts +34 -0
- package/dist/feral/slack/messages.d.ts.map +1 -0
- package/dist/feral/slack/messages.js +53 -0
- package/dist/feral/slack/messages.js.map +1 -0
- package/dist/feral/slack/slack-facade.d.ts +20 -0
- package/dist/feral/slack/slack-facade.d.ts.map +1 -0
- package/dist/feral/slack/slack-facade.js +41 -0
- package/dist/feral/slack/slack-facade.js.map +1 -0
- package/dist/feral/slack/slack-markdown-formatter.d.ts +22 -0
- package/dist/feral/slack/slack-markdown-formatter.d.ts.map +1 -0
- package/dist/feral/slack/slack-markdown-formatter.js +36 -0
- package/dist/feral/slack/slack-markdown-formatter.js.map +1 -0
- package/dist/feral/slack/slash-command-input.d.ts +23 -0
- package/dist/feral/slack/slash-command-input.d.ts.map +1 -0
- package/dist/feral/slack/slash-command-input.js +45 -0
- package/dist/feral/slack/slash-command-input.js.map +1 -0
- package/dist/feral/slack/types.d.ts +64 -0
- package/dist/feral/slack/types.d.ts.map +1 -0
- package/dist/feral/slack/types.js +44 -0
- package/dist/feral/slack/types.js.map +1 -0
- package/dist/feral/trace/process-trace.d.ts +44 -0
- package/dist/feral/trace/process-trace.d.ts.map +1 -0
- package/dist/feral/trace/process-trace.js +44 -0
- package/dist/feral/trace/process-trace.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/dist/llm/providers/claude.d.ts +11 -0
- package/dist/llm/providers/claude.d.ts.map +1 -0
- package/dist/llm/providers/claude.js +45 -0
- package/dist/llm/providers/claude.js.map +1 -0
- package/dist/llm/providers/index.d.ts +5 -0
- package/dist/llm/providers/index.d.ts.map +1 -0
- package/dist/llm/providers/index.js +20 -0
- package/dist/llm/providers/index.js.map +1 -0
- package/dist/llm/providers/openai.d.ts +12 -0
- package/dist/llm/providers/openai.d.ts.map +1 -0
- package/dist/llm/providers/openai.js +62 -0
- package/dist/llm/providers/openai.js.map +1 -0
- package/dist/llm/router.d.ts +32 -0
- package/dist/llm/router.d.ts.map +1 -0
- package/dist/llm/router.js +100 -0
- package/dist/llm/router.js.map +1 -0
- package/dist/llm/types.d.ts +18 -0
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/llm/types.js +2 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/markdown/parser.d.ts +26 -0
- package/dist/markdown/parser.d.ts.map +1 -0
- package/dist/markdown/parser.js +58 -0
- package/dist/markdown/parser.js.map +1 -0
- package/dist/pamp/client.d.ts +39 -0
- package/dist/pamp/client.d.ts.map +1 -0
- package/dist/pamp/client.js +336 -0
- package/dist/pamp/client.js.map +1 -0
- package/dist/pamp/crypto.d.ts +23 -0
- package/dist/pamp/crypto.d.ts.map +1 -0
- package/dist/pamp/crypto.js +130 -0
- package/dist/pamp/crypto.js.map +1 -0
- package/dist/pamp/envelope.d.ts +23 -0
- package/dist/pamp/envelope.d.ts.map +1 -0
- package/dist/pamp/envelope.js +67 -0
- package/dist/pamp/envelope.js.map +1 -0
- package/dist/pamp/index.d.ts +6 -0
- package/dist/pamp/index.d.ts.map +1 -0
- package/dist/pamp/index.js +9 -0
- package/dist/pamp/index.js.map +1 -0
- package/dist/pamp/storage.d.ts +20 -0
- package/dist/pamp/storage.d.ts.map +1 -0
- package/dist/pamp/storage.js +160 -0
- package/dist/pamp/storage.js.map +1 -0
- package/dist/pamp/types.d.ts +80 -0
- package/dist/pamp/types.d.ts.map +1 -0
- package/dist/pamp/types.js +7 -0
- package/dist/pamp/types.js.map +1 -0
- package/dist/paths.d.ts +24 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +70 -0
- package/dist/paths.js.map +1 -0
- package/dist/personalities.d.ts +20 -0
- package/dist/personalities.d.ts.map +1 -0
- package/dist/personalities.js +181 -0
- package/dist/personalities.js.map +1 -0
- package/dist/phaibel.txt +82 -0
- package/dist/responses.d.ts +34 -0
- package/dist/responses.d.ts.map +1 -0
- package/dist/responses.js +467 -0
- package/dist/responses.js.map +1 -0
- package/dist/schemas/index.d.ts +154 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +73 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/service/api-router.d.ts +7 -0
- package/dist/service/api-router.d.ts.map +1 -0
- package/dist/service/api-router.js +478 -0
- package/dist/service/api-router.js.map +1 -0
- package/dist/service/context/provider.d.ts +76 -0
- package/dist/service/context/provider.d.ts.map +1 -0
- package/dist/service/context/provider.js +140 -0
- package/dist/service/context/provider.js.map +1 -0
- package/dist/service/cron/feedback-analysis.d.ts +2 -0
- package/dist/service/cron/feedback-analysis.d.ts.map +1 -0
- package/dist/service/cron/feedback-analysis.js +100 -0
- package/dist/service/cron/feedback-analysis.js.map +1 -0
- package/dist/service/cron/pamp-checker.d.ts +7 -0
- package/dist/service/cron/pamp-checker.d.ts.map +1 -0
- package/dist/service/cron/pamp-checker.js +29 -0
- package/dist/service/cron/pamp-checker.js.map +1 -0
- package/dist/service/cron/process-evaluator.d.ts +6 -0
- package/dist/service/cron/process-evaluator.d.ts.map +1 -0
- package/dist/service/cron/process-evaluator.js +126 -0
- package/dist/service/cron/process-evaluator.js.map +1 -0
- package/dist/service/cron/process-lifecycle.d.ts +6 -0
- package/dist/service/cron/process-lifecycle.d.ts.map +1 -0
- package/dist/service/cron/process-lifecycle.js +202 -0
- package/dist/service/cron/process-lifecycle.js.map +1 -0
- package/dist/service/cron/scheduler.d.ts +36 -0
- package/dist/service/cron/scheduler.d.ts.map +1 -0
- package/dist/service/cron/scheduler.js +232 -0
- package/dist/service/cron/scheduler.js.map +1 -0
- package/dist/service/daemon.d.ts +24 -0
- package/dist/service/daemon.d.ts.map +1 -0
- package/dist/service/daemon.js +181 -0
- package/dist/service/daemon.js.map +1 -0
- package/dist/service/index.d.ts +11 -0
- package/dist/service/index.d.ts.map +1 -0
- package/dist/service/index.js +255 -0
- package/dist/service/index.js.map +1 -0
- package/dist/service/protocol.d.ts +119 -0
- package/dist/service/protocol.d.ts.map +1 -0
- package/dist/service/protocol.js +17 -0
- package/dist/service/protocol.js.map +1 -0
- package/dist/service/queue/manager.d.ts +66 -0
- package/dist/service/queue/manager.d.ts.map +1 -0
- package/dist/service/queue/manager.js +206 -0
- package/dist/service/queue/manager.js.map +1 -0
- package/dist/service/queue/processor.d.ts +53 -0
- package/dist/service/queue/processor.d.ts.map +1 -0
- package/dist/service/queue/processor.js +288 -0
- package/dist/service/queue/processor.js.map +1 -0
- package/dist/service/queue/queue-persistence.d.ts +27 -0
- package/dist/service/queue/queue-persistence.d.ts.map +1 -0
- package/dist/service/queue/queue-persistence.js +53 -0
- package/dist/service/queue/queue-persistence.js.map +1 -0
- package/dist/service/server.d.ts +28 -0
- package/dist/service/server.d.ts.map +1 -0
- package/dist/service/server.js +101 -0
- package/dist/service/server.js.map +1 -0
- package/dist/service/task/builder.d.ts +43 -0
- package/dist/service/task/builder.d.ts.map +1 -0
- package/dist/service/task/builder.js +100 -0
- package/dist/service/task/builder.js.map +1 -0
- package/dist/service/task/types.d.ts +2 -0
- package/dist/service/task/types.d.ts.map +1 -0
- package/dist/service/task/types.js +3 -0
- package/dist/service/task/types.js.map +1 -0
- package/dist/service/web-client.html +1569 -0
- package/dist/service/web-server.d.ts +18 -0
- package/dist/service/web-server.d.ts.map +1 -0
- package/dist/service/web-server.js +395 -0
- package/dist/service/web-server.js.map +1 -0
- package/dist/shell/banner.d.ts +11 -0
- package/dist/shell/banner.d.ts.map +1 -0
- package/dist/shell/banner.js +66 -0
- package/dist/shell/banner.js.map +1 -0
- package/dist/shell/status-poller.d.ts +27 -0
- package/dist/shell/status-poller.d.ts.map +1 -0
- package/dist/shell/status-poller.js +77 -0
- package/dist/shell/status-poller.js.map +1 -0
- package/dist/shell/tui.d.ts +32 -0
- package/dist/shell/tui.d.ts.map +1 -0
- package/dist/shell/tui.js +69 -0
- package/dist/shell/tui.js.map +1 -0
- package/dist/skills/mcp-manager.d.ts +30 -0
- package/dist/skills/mcp-manager.d.ts.map +1 -0
- package/dist/skills/mcp-manager.js +104 -0
- package/dist/skills/mcp-manager.js.map +1 -0
- package/dist/skills/skill-config.d.ts +13 -0
- package/dist/skills/skill-config.d.ts.map +1 -0
- package/dist/skills/skill-config.js +23 -0
- package/dist/skills/skill-config.js.map +1 -0
- package/dist/state/manager.d.ts +73 -0
- package/dist/state/manager.d.ts.map +1 -0
- package/dist/state/manager.js +201 -0
- package/dist/state/manager.js.map +1 -0
- package/dist/tools/daily.d.ts +2 -0
- package/dist/tools/daily.d.ts.map +1 -0
- package/dist/tools/daily.js +310 -0
- package/dist/tools/daily.js.map +1 -0
- package/dist/tools/events.d.ts +2 -0
- package/dist/tools/events.d.ts.map +1 -0
- package/dist/tools/events.js +132 -0
- package/dist/tools/events.js.map +1 -0
- package/dist/tools/goals.d.ts +2 -0
- package/dist/tools/goals.d.ts.map +1 -0
- package/dist/tools/goals.js +128 -0
- package/dist/tools/goals.js.map +1 -0
- package/dist/tools/index.d.ts +10 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +13 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/notes.d.ts +2 -0
- package/dist/tools/notes.d.ts.map +1 -0
- package/dist/tools/notes.js +88 -0
- package/dist/tools/notes.js.map +1 -0
- package/dist/tools/project.d.ts +2 -0
- package/dist/tools/project.d.ts.map +1 -0
- package/dist/tools/project.js +112 -0
- package/dist/tools/project.js.map +1 -0
- package/dist/tools/research.d.ts +2 -0
- package/dist/tools/research.d.ts.map +1 -0
- package/dist/tools/research.js +64 -0
- package/dist/tools/research.js.map +1 -0
- package/dist/tools/summarize.d.ts +2 -0
- package/dist/tools/summarize.d.ts.map +1 -0
- package/dist/tools/summarize.js +31 -0
- package/dist/tools/summarize.js.map +1 -0
- package/dist/tools/tasks.d.ts +2 -0
- package/dist/tools/tasks.d.ts.map +1 -0
- package/dist/tools/tasks.js +90 -0
- package/dist/tools/tasks.js.map +1 -0
- package/dist/tools/time.d.ts +2 -0
- package/dist/tools/time.d.ts.map +1 -0
- package/dist/tools/time.js +21 -0
- package/dist/tools/time.js.map +1 -0
- package/dist/tools/types.d.ts +56 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +17 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +35 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/entity-prompt.d.ts +52 -0
- package/dist/ui/entity-prompt.d.ts.map +1 -0
- package/dist/ui/entity-prompt.js +130 -0
- package/dist/ui/entity-prompt.js.map +1 -0
- package/dist/utils/chat-logger.d.ts +28 -0
- package/dist/utils/chat-logger.d.ts.map +1 -0
- package/dist/utils/chat-logger.js +85 -0
- package/dist/utils/chat-logger.js.map +1 -0
- package/dist/utils/debug.d.ts +14 -0
- package/dist/utils/debug.d.ts.map +1 -0
- package/dist/utils/debug.js +31 -0
- package/dist/utils/debug.js.map +1 -0
- package/dist/utils/execution-logger.d.ts +21 -0
- package/dist/utils/execution-logger.d.ts.map +1 -0
- package/dist/utils/execution-logger.js +46 -0
- package/dist/utils/execution-logger.js.map +1 -0
- package/dist/utils/ics-parser.d.ts +14 -0
- package/dist/utils/ics-parser.d.ts.map +1 -0
- package/dist/utils/ics-parser.js +57 -0
- package/dist/utils/ics-parser.js.map +1 -0
- package/dist/utils/json-parser.d.ts +10 -0
- package/dist/utils/json-parser.d.ts.map +1 -0
- package/dist/utils/json-parser.js +164 -0
- package/dist/utils/json-parser.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Random Value NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { ResultStatus } from '../../result/result.js';
|
|
5
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
6
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
7
|
+
export class RandomValueNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [
|
|
9
|
+
{ key: 'context_path', name: 'Context Path', description: 'Context key to store the random value.', type: 'string' },
|
|
10
|
+
{ key: 'type', name: 'Type', description: 'Type of random value.', type: 'string', default: 'float', options: ['float', 'int', 'uuid'] },
|
|
11
|
+
{ key: 'min', name: 'Minimum', description: 'Minimum value (for int/float types).', type: 'float', default: 0, isOptional: true },
|
|
12
|
+
{ key: 'max', name: 'Maximum', description: 'Maximum value (for int/float types).', type: 'float', default: 1, isOptional: true },
|
|
13
|
+
];
|
|
14
|
+
static resultDescriptions = [
|
|
15
|
+
{ status: ResultStatus.OK, description: 'Random value generated.' },
|
|
16
|
+
];
|
|
17
|
+
constructor() {
|
|
18
|
+
super('random_value', 'Random Value', 'Generates a random value and stores it in context.', NodeCodeCategory.DATA);
|
|
19
|
+
}
|
|
20
|
+
async process(context) {
|
|
21
|
+
const contextPath = this.getRequiredConfigValue('context_path');
|
|
22
|
+
const type = this.getRequiredConfigValue('type', 'float');
|
|
23
|
+
const min = Number(this.getOptionalConfigValue('min', 0));
|
|
24
|
+
const max = Number(this.getOptionalConfigValue('max', 1));
|
|
25
|
+
let value;
|
|
26
|
+
switch (type) {
|
|
27
|
+
case 'float':
|
|
28
|
+
value = min + Math.random() * (max - min);
|
|
29
|
+
break;
|
|
30
|
+
case 'int':
|
|
31
|
+
value = Math.floor(min + Math.random() * (max - min + 1));
|
|
32
|
+
break;
|
|
33
|
+
case 'uuid':
|
|
34
|
+
value = crypto.randomUUID();
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
throw new Error(`Unknown random type "${type}".`);
|
|
38
|
+
}
|
|
39
|
+
context.set(contextPath, value);
|
|
40
|
+
return this.result(ResultStatus.OK, `Generated random ${type}: ${value}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=random-value-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"random-value-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/random-value-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oCAAoC;AACpC,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB;IACrD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,wCAAwC,EAAE,IAAI,EAAE,QAAQ,EAAE;QACpH,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE;QACxI,EAAE,GAAG,EAAE,KAAK,EAA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C,CAAC,CAAC;gBAC1D,MAAM;YACV,KAAK,MAAM;gBACP,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBAC5B,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,oBAAoB,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class ReadFileNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=read-file-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-file-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/read-file-node-code.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,qBAAa,gBAAiB,SAAQ,gBAAgB;IAClD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CA4BnD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Read File NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { readFile } from 'node:fs/promises';
|
|
5
|
+
import { ResultStatus } from '../../result/result.js';
|
|
6
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
7
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
8
|
+
import { assertPathAllowed, FileAccessDeniedError } from '../../security/file-access-guard.js';
|
|
9
|
+
export class ReadFileNodeCode extends AbstractNodeCode {
|
|
10
|
+
static configDescriptions = [
|
|
11
|
+
{ key: 'file_path', name: 'File Path', description: 'Path to the file to read. Supports {key} interpolation from context.', type: 'string' },
|
|
12
|
+
{ key: 'context_path', name: 'Context Path', description: 'Context key to store the file contents.', type: 'string' },
|
|
13
|
+
{ key: 'encoding', name: 'Encoding', description: 'File encoding.', type: 'string', default: 'utf-8', isOptional: true },
|
|
14
|
+
];
|
|
15
|
+
static resultDescriptions = [
|
|
16
|
+
{ status: ResultStatus.OK, description: 'File read successfully.' },
|
|
17
|
+
{ status: ResultStatus.ERROR, description: 'File could not be read.' },
|
|
18
|
+
];
|
|
19
|
+
constructor() {
|
|
20
|
+
super('read_file', 'Read File', 'Reads a file into the context.', NodeCodeCategory.DATA);
|
|
21
|
+
}
|
|
22
|
+
async process(context) {
|
|
23
|
+
const filePathTemplate = this.getRequiredConfigValue('file_path');
|
|
24
|
+
const contextPath = this.getRequiredConfigValue('context_path');
|
|
25
|
+
const encoding = this.getOptionalConfigValue('encoding', 'utf-8');
|
|
26
|
+
// Interpolate {key} references
|
|
27
|
+
const filePath = filePathTemplate.replace(/\{(\w+)\}/g, (_, key) => {
|
|
28
|
+
return String(context.get(key) ?? '');
|
|
29
|
+
});
|
|
30
|
+
try {
|
|
31
|
+
await assertPathAllowed(filePath);
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
if (error instanceof FileAccessDeniedError) {
|
|
35
|
+
return this.result(ResultStatus.ERROR, error.message);
|
|
36
|
+
}
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
const content = await readFile(filePath, { encoding });
|
|
41
|
+
context.set(contextPath, content);
|
|
42
|
+
return this.result(ResultStatus.OK, `Read file "${filePath}" → "${contextPath}" (${content.length} chars).`);
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
46
|
+
return this.result(ResultStatus.ERROR, `Failed to read file "${filePath}": ${message}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=read-file-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-file-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/read-file-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE/F,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IAClD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,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AAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;gBACzC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAC1D,CAAC;YACD,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,cAAc,QAAQ,QAAQ,WAAW,MAAM,OAAO,CAAC,MAAM,UAAU,CAAC,CAAC;QACjH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,wBAAwB,QAAQ,MAAM,OAAO,EAAE,CAAC,CAAC;QAC5F,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class SetContextTableNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=set-context-table-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-context-table-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-table-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAE5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAkBnD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Set Context Table NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { ResultStatus } from '../../result/result.js';
|
|
5
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
6
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
7
|
+
export class SetContextTableNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [
|
|
9
|
+
{ key: 'table', name: 'Table', description: 'A JSON object of key-value pairs to set in the context.', type: 'string' },
|
|
10
|
+
];
|
|
11
|
+
static resultDescriptions = [
|
|
12
|
+
{ status: ResultStatus.OK, description: 'All values were set successfully.' },
|
|
13
|
+
];
|
|
14
|
+
constructor() {
|
|
15
|
+
super('set_context_table', 'Set Data Table', 'Sets multiple context values from a key-value map.', NodeCodeCategory.DATA);
|
|
16
|
+
}
|
|
17
|
+
async process(context) {
|
|
18
|
+
const tableRaw = this.getRequiredConfigValue('table');
|
|
19
|
+
let table;
|
|
20
|
+
if (typeof tableRaw === 'string') {
|
|
21
|
+
table = JSON.parse(tableRaw);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
table = tableRaw;
|
|
25
|
+
}
|
|
26
|
+
let count = 0;
|
|
27
|
+
for (const [key, value] of Object.entries(table)) {
|
|
28
|
+
context.set(key, value);
|
|
29
|
+
count++;
|
|
30
|
+
}
|
|
31
|
+
return this.result(ResultStatus.OK, `Set ${count} context value(s).`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=set-context-table-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-context-table-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-table-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,yDAAyD,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC1H,CAAC;IACF,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE;KAChF,CAAC;IAEF;QACI,KAAK,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,oDAAoD,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC9H,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAgB;QAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,KAA8B,CAAC;QAEnC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC/B,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAA4B,CAAC;QAC5D,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,QAAmC,CAAC;QAChD,CAAC;QAED,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACxB,KAAK,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,KAAK,oBAAoB,CAAC,CAAC;IAC1E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class SetContextValueNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=set-context-value-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-context-value-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-value-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBnD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Set Context Value NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { ResultStatus } from '../../result/result.js';
|
|
5
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
6
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
7
|
+
export class SetContextValueNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [
|
|
9
|
+
{ key: 'value', name: 'Value', description: 'The value to set in the context.', type: 'string' },
|
|
10
|
+
{ key: 'context_path', name: 'Context Path', description: 'The key in the context to set.', type: 'string' },
|
|
11
|
+
{ key: 'value_type', name: 'Value Type', description: 'Type cast for the value.', type: 'string', default: 'string', options: ['string', 'int', 'float', 'boolean'] },
|
|
12
|
+
];
|
|
13
|
+
static resultDescriptions = [
|
|
14
|
+
{ status: ResultStatus.OK, description: 'Value was set successfully.' },
|
|
15
|
+
];
|
|
16
|
+
constructor() {
|
|
17
|
+
super('set_context_value', 'Set Data Value', 'Sets a typed value in the context.', NodeCodeCategory.DATA);
|
|
18
|
+
}
|
|
19
|
+
async process(context) {
|
|
20
|
+
const valueType = this.getRequiredConfigValue('value_type', 'string');
|
|
21
|
+
const rawValue = this.getRequiredConfigValue('value');
|
|
22
|
+
const contextPath = this.getRequiredConfigValue('context_path');
|
|
23
|
+
let value;
|
|
24
|
+
switch (valueType) {
|
|
25
|
+
case 'string':
|
|
26
|
+
value = String(rawValue);
|
|
27
|
+
break;
|
|
28
|
+
case 'int':
|
|
29
|
+
value = parseInt(String(rawValue), 10);
|
|
30
|
+
break;
|
|
31
|
+
case 'float':
|
|
32
|
+
value = parseFloat(String(rawValue));
|
|
33
|
+
break;
|
|
34
|
+
case 'boolean':
|
|
35
|
+
value = rawValue === 'true' || rawValue === '1';
|
|
36
|
+
break;
|
|
37
|
+
default: throw new Error(`Unknown value_type "${valueType}".`);
|
|
38
|
+
}
|
|
39
|
+
context.set(contextPath, value);
|
|
40
|
+
return this.result(ResultStatus.OK, `Set "${contextPath}" = ${JSON.stringify(value)}.`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=set-context-value-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-context-value-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-value-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChG,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,gCAAgC,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5G,EAAE,GAAG,EAAE,YAAY,EAAE,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AAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,WAAW,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5F,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class WeatherNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=weather-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weather-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/weather-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAmB5D,qBAAa,eAAgB,SAAQ,gBAAgB;IACjD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAmEnD"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Weather Data NodeCode (Open-Meteo, no API key required)
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { ResultStatus } from '../../result/result.js';
|
|
5
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
6
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
7
|
+
/** WMO Weather interpretation codes → human-readable descriptions. */
|
|
8
|
+
const WMO_CODES = {
|
|
9
|
+
0: 'Clear sky',
|
|
10
|
+
1: 'Mainly clear', 2: 'Partly cloudy', 3: 'Overcast',
|
|
11
|
+
45: 'Foggy', 48: 'Depositing rime fog',
|
|
12
|
+
51: 'Light drizzle', 53: 'Moderate drizzle', 55: 'Dense drizzle',
|
|
13
|
+
56: 'Light freezing drizzle', 57: 'Dense freezing drizzle',
|
|
14
|
+
61: 'Slight rain', 63: 'Moderate rain', 65: 'Heavy rain',
|
|
15
|
+
66: 'Light freezing rain', 67: 'Heavy freezing rain',
|
|
16
|
+
71: 'Slight snowfall', 73: 'Moderate snowfall', 75: 'Heavy snowfall',
|
|
17
|
+
77: 'Snow grains',
|
|
18
|
+
80: 'Slight rain showers', 81: 'Moderate rain showers', 82: 'Violent rain showers',
|
|
19
|
+
85: 'Slight snow showers', 86: 'Heavy snow showers',
|
|
20
|
+
95: 'Thunderstorm', 96: 'Thunderstorm with slight hail', 99: 'Thunderstorm with heavy hail',
|
|
21
|
+
};
|
|
22
|
+
export class WeatherNodeCode extends AbstractNodeCode {
|
|
23
|
+
static configDescriptions = [
|
|
24
|
+
{ key: 'location', name: 'Location', description: 'City name to look up. Supports {context_key} interpolation.', type: 'string' },
|
|
25
|
+
{ key: 'units', name: 'Units', description: 'Unit system for temperature and wind speed.', type: 'string', default: 'metric', options: ['metric', 'imperial'] },
|
|
26
|
+
{ key: 'response_context_path', name: 'Response Path', description: 'Context key to store the weather summary object.', type: 'string', default: 'weather' },
|
|
27
|
+
];
|
|
28
|
+
static resultDescriptions = [
|
|
29
|
+
{ status: ResultStatus.OK, description: 'Weather data retrieved successfully.' },
|
|
30
|
+
{ status: ResultStatus.ERROR, description: 'Geocoding or weather fetch failed.' },
|
|
31
|
+
];
|
|
32
|
+
constructor() {
|
|
33
|
+
super('weather', 'Weather Lookup', 'Fetches current weather for a city via Open-Meteo (no API key needed).', NodeCodeCategory.DATA);
|
|
34
|
+
}
|
|
35
|
+
async process(context) {
|
|
36
|
+
const locationTemplate = this.getRequiredConfigValue('location');
|
|
37
|
+
const units = this.getRequiredConfigValue('units', 'metric').toLowerCase();
|
|
38
|
+
const responsePath = this.getRequiredConfigValue('response_context_path', 'weather');
|
|
39
|
+
// Interpolate {context_key} references
|
|
40
|
+
const city = locationTemplate.replace(/\{(\w+)\}/g, (_, key) => {
|
|
41
|
+
return String(context.get(key) ?? '');
|
|
42
|
+
}).trim();
|
|
43
|
+
if (!city) {
|
|
44
|
+
return this.result(ResultStatus.ERROR, 'Location resolved to an empty string.');
|
|
45
|
+
}
|
|
46
|
+
const isImperial = units === 'imperial';
|
|
47
|
+
const tempUnit = isImperial ? 'fahrenheit' : 'celsius';
|
|
48
|
+
const windUnit = isImperial ? 'mph' : 'kmh';
|
|
49
|
+
try {
|
|
50
|
+
// 1. Geocode city name → lat/lon
|
|
51
|
+
const geoUrl = `https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(city)}&count=1`;
|
|
52
|
+
const geoRes = await fetch(geoUrl);
|
|
53
|
+
if (!geoRes.ok) {
|
|
54
|
+
return this.result(ResultStatus.ERROR, `Geocoding request failed: ${geoRes.status}`);
|
|
55
|
+
}
|
|
56
|
+
const geoData = await geoRes.json();
|
|
57
|
+
if (!geoData.results?.length) {
|
|
58
|
+
return this.result(ResultStatus.ERROR, `No location found for "${city}".`);
|
|
59
|
+
}
|
|
60
|
+
const { latitude, longitude, name, country } = geoData.results[0];
|
|
61
|
+
// 2. Fetch current weather
|
|
62
|
+
const wxUrl = `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}¤t=temperature_2m,apparent_temperature,weather_code,wind_speed_10m,relative_humidity_2m&temperature_unit=${tempUnit}&wind_speed_unit=${windUnit}`;
|
|
63
|
+
const wxRes = await fetch(wxUrl);
|
|
64
|
+
if (!wxRes.ok) {
|
|
65
|
+
return this.result(ResultStatus.ERROR, `Weather request failed: ${wxRes.status}`);
|
|
66
|
+
}
|
|
67
|
+
const wxData = await wxRes.json();
|
|
68
|
+
const cur = wxData.current;
|
|
69
|
+
const tempLabel = isImperial ? '°F' : '°C';
|
|
70
|
+
const windLabel = isImperial ? 'mph' : 'km/h';
|
|
71
|
+
const summary = {
|
|
72
|
+
location: `${name}, ${country}`,
|
|
73
|
+
condition: WMO_CODES[cur.weather_code] ?? `Code ${cur.weather_code}`,
|
|
74
|
+
temperature: `${cur.temperature_2m}${tempLabel}`,
|
|
75
|
+
feels_like: `${cur.apparent_temperature}${tempLabel}`,
|
|
76
|
+
humidity: `${cur.relative_humidity_2m}%`,
|
|
77
|
+
wind: `${cur.wind_speed_10m} ${windLabel}`,
|
|
78
|
+
};
|
|
79
|
+
context.set(responsePath, summary);
|
|
80
|
+
return this.result(ResultStatus.OK, `Weather for ${summary.location}: ${summary.condition}, ${summary.temperature}`);
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
84
|
+
return this.result(ResultStatus.ERROR, `Weather lookup failed: ${message}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=weather-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weather-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/weather-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,sEAAsE;AACtE,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBA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AAC,OAAO,CAAC;YAC3B,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YAC3C,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;YAE9C,MAAM,OAAO,GAAG;gBACZ,QAAQ,EAAE,GAAG,IAAI,KAAK,OAAO,EAAE;gBAC/B,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,QAAQ,GAAG,CAAC,YAAY,EAAE;gBACpE,WAAW,EAAE,GAAG,GAAG,CAAC,cAAc,GAAG,SAAS,EAAE;gBAChD,UAAU,EAAE,GAAG,GAAG,CAAC,oBAAoB,GAAG,SAAS,EAAE;gBACrD,QAAQ,EAAE,GAAG,GAAG,CAAC,oBAAoB,GAAG;gBACxC,IAAI,EAAE,GAAG,GAAG,CAAC,cAAc,IAAI,SAAS,EAAE;aAC7C,CAAC;YAEF,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YACnC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,eAAe,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,SAAS,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;QACzH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,0BAA0B,OAAO,EAAE,CAAC,CAAC;QAChF,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class CompleteEntityNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=complete-entity-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complete-entity-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/complete-entity-node-code.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAG5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAmDnD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Complete Entity NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
//
|
|
5
|
+
// A convenience NodeCode that finds an entity by title and marks it complete
|
|
6
|
+
// in a single step. This avoids the fragile context-threading between
|
|
7
|
+
// find_entity → update_entity that LLMs often get wrong.
|
|
8
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
9
|
+
import { ResultStatus } from '../../result/result.js';
|
|
10
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
11
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
12
|
+
import { findEntityByTitle, writeEntity } from '../../../entities/entity.js';
|
|
13
|
+
import { getEntityIndex } from '../../../entities/entity-index.js';
|
|
14
|
+
import { getEmbeddingIndex } from '../../../entities/embedding-index.js';
|
|
15
|
+
const NOT_FOUND = 'not_found';
|
|
16
|
+
export class CompleteEntityNodeCode extends AbstractNodeCode {
|
|
17
|
+
static configDescriptions = [
|
|
18
|
+
{ key: 'entity_type', name: 'Entity Type', description: 'The entity type to complete (task, goal, research).', type: 'string' },
|
|
19
|
+
{ key: 'entity_title', name: 'Entity Title', description: 'Title of the entity to mark complete. Supports {context_key} interpolation.', type: 'string', isOptional: true },
|
|
20
|
+
];
|
|
21
|
+
static resultDescriptions = [
|
|
22
|
+
{ status: ResultStatus.OK, description: 'Entity marked complete.' },
|
|
23
|
+
{ status: NOT_FOUND, description: 'Entity not found.' },
|
|
24
|
+
];
|
|
25
|
+
constructor() {
|
|
26
|
+
super('complete_entity', 'Complete Entity', 'Finds an entity by title and marks it as complete.', NodeCodeCategory.DATA);
|
|
27
|
+
}
|
|
28
|
+
async process(context) {
|
|
29
|
+
const entityType = this.getRequiredConfigValue('entity_type');
|
|
30
|
+
// Read title from config (preferred) or context
|
|
31
|
+
const configTitle = this.getOptionalConfigValue('entity_title');
|
|
32
|
+
if (configTitle) {
|
|
33
|
+
context.set('title', this.interpolate(configTitle, context));
|
|
34
|
+
}
|
|
35
|
+
const title = context.get('title');
|
|
36
|
+
if (!title) {
|
|
37
|
+
context.set('error', 'No title provided.');
|
|
38
|
+
return this.result(NOT_FOUND, 'Missing title — provide entity_title config or set "title" in context.');
|
|
39
|
+
}
|
|
40
|
+
const found = await findEntityByTitle(entityType, title);
|
|
41
|
+
if (!found) {
|
|
42
|
+
context.set('error', `${entityType} "${title}" not found.`);
|
|
43
|
+
return this.result(NOT_FOUND, `${entityType} "${title}" not found.`);
|
|
44
|
+
}
|
|
45
|
+
// Mark complete
|
|
46
|
+
found.meta.status = 'complete';
|
|
47
|
+
await writeEntity(found.filepath, found.meta, found.content ?? '');
|
|
48
|
+
context.set('entity', {
|
|
49
|
+
filepath: found.filepath,
|
|
50
|
+
content: found.content ?? '',
|
|
51
|
+
...found.meta,
|
|
52
|
+
});
|
|
53
|
+
// Update entity index
|
|
54
|
+
const index = getEntityIndex();
|
|
55
|
+
if (index.isBuilt) {
|
|
56
|
+
const entityId = found.meta.id;
|
|
57
|
+
const tags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
|
|
58
|
+
const summary = found.meta.summary ?? '';
|
|
59
|
+
await index.addOrUpdate(entityType, entityId, title, found.filepath, tags, summary);
|
|
60
|
+
}
|
|
61
|
+
// Update embedding index
|
|
62
|
+
const embeddingIndex = getEmbeddingIndex();
|
|
63
|
+
if (embeddingIndex.isLoaded) {
|
|
64
|
+
const id = found.meta.id;
|
|
65
|
+
const tags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
|
|
66
|
+
const summary = found.meta.summary ?? '';
|
|
67
|
+
await embeddingIndex.upsert(`${entityType}:${id}`, { title, tags, summary });
|
|
68
|
+
}
|
|
69
|
+
return this.result(ResultStatus.OK, `Marked ${entityType} "${title}" as complete.`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=complete-entity-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complete-entity-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/complete-entity-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,uCAAuC;AACvC,gFAAgF;AAChF,EAAE;AACF,6EAA6E;AAC7E,sEAAsE;AACtE,yDAAyD;AACzD,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,M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,CAAC,EAAE,CAAC;YAC/E,MAAM,OAAO,GAAI,KAAK,CAAC,IAAI,CAAC,OAAkB,IAAI,EAAE,CAAC;YACrD,MAAM,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACxF,CAAC;QAED,yBAAyB;QACzB,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;QAC3C,IAAI,cAAc,CAAC,QAAQ,EAAE,CAAC;YAC1B,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,EAAY,CAAC;YACnC,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/E,MAAM,OAAO,GAAI,KAAK,CAAC,IAAI,CAAC,OAAkB,IAAI,EAAE,CAAC;YACrD,MAAM,cAAc,CAAC,MAAM,CAAC,GAAG,UAAU,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QACjF,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,UAAU,UAAU,KAAK,KAAK,gBAAgB,CAAC,CAAC;IACxF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '../../context/context.js';
|
|
2
|
+
import type { Result } from '../../result/result.js';
|
|
3
|
+
import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
export declare class CreateEntityNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=create-entity-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-entity-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/create-entity-node-code.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsB5D,qBAAa,oBAAqB,SAAQ,gBAAgB;IACtD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAM5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAIrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAwFnD"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Create Entity NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { ResultStatus } from '../../result/result.js';
|
|
6
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
7
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
8
|
+
import { createEntityMeta, ensureEntityDir, findEntityByTitle, writeEntity, entityFilename, } from '../../../entities/entity.js';
|
|
9
|
+
import { getEntityType } from '../../../entities/entity-type-config.js';
|
|
10
|
+
import { validateEntity, formatValidationErrors } from '../../../entities/entity-validator.js';
|
|
11
|
+
import { getEntityIndex } from '../../../entities/entity-index.js';
|
|
12
|
+
import { getEmbeddingIndex } from '../../../entities/embedding-index.js';
|
|
13
|
+
import { generateEntitySummary } from '../../../entities/entity-summary.js';
|
|
14
|
+
/**
|
|
15
|
+
* Custom result for duplicate detection.
|
|
16
|
+
*/
|
|
17
|
+
const ALREADY_EXISTS = 'already_exists';
|
|
18
|
+
export class CreateEntityNodeCode extends AbstractNodeCode {
|
|
19
|
+
static configDescriptions = [
|
|
20
|
+
{ key: 'entity_type', name: 'Entity Type', description: 'The entity type to create (any configured entity type, e.g. task, note, event, goal).', type: 'string' },
|
|
21
|
+
{ key: 'entity_title', name: 'Entity Title', description: 'Title for the entity. Supports {context_key} interpolation. Sets "title" in context.', type: 'string', isOptional: true },
|
|
22
|
+
{ key: 'entity_body', name: 'Entity Body', description: 'Body/content for the entity. Supports {context_key} interpolation. Sets "content" in context.', type: 'string', isOptional: true },
|
|
23
|
+
{ key: 'tags', name: 'Tags', description: 'Comma-separated tags for the entity (e.g. "urgent,year-of-the-house"). Supports {context_key} interpolation.', type: 'string', isOptional: true },
|
|
24
|
+
{ key: 'extra_fields', name: 'Extra Fields', description: 'Comma-separated list of extra context keys to include in metadata (e.g. status,priority,dueDate).', type: 'string', default: '', isOptional: true },
|
|
25
|
+
];
|
|
26
|
+
static resultDescriptions = [
|
|
27
|
+
{ status: ResultStatus.OK, description: 'Entity created successfully.' },
|
|
28
|
+
{ status: ALREADY_EXISTS, description: 'Entity with this title already exists.' },
|
|
29
|
+
{ status: ResultStatus.ERROR, description: 'Failed to create entity.' },
|
|
30
|
+
];
|
|
31
|
+
constructor() {
|
|
32
|
+
super('create_entity', 'Create Entity', 'Creates a new entity in the vault.', NodeCodeCategory.DATA);
|
|
33
|
+
}
|
|
34
|
+
async process(context) {
|
|
35
|
+
const entityType = this.getRequiredConfigValue('entity_type');
|
|
36
|
+
const extraFieldsStr = this.getOptionalConfigValue('extra_fields', '');
|
|
37
|
+
// Bridge config → context: if entity_title/entity_body are set in config,
|
|
38
|
+
// interpolate and write them into context so the rest of the logic works.
|
|
39
|
+
const configTitle = this.getOptionalConfigValue('entity_title');
|
|
40
|
+
const configBody = this.getOptionalConfigValue('entity_body');
|
|
41
|
+
if (configTitle) {
|
|
42
|
+
context.set('title', this.interpolate(configTitle, context));
|
|
43
|
+
}
|
|
44
|
+
if (configBody) {
|
|
45
|
+
context.set('content', this.interpolate(configBody, context));
|
|
46
|
+
}
|
|
47
|
+
const configTags = this.getOptionalConfigValue('tags');
|
|
48
|
+
if (configTags) {
|
|
49
|
+
const interpolated = this.interpolate(configTags, context);
|
|
50
|
+
context.set('tags', interpolated.split(',').map(t => t.trim()).filter(Boolean));
|
|
51
|
+
}
|
|
52
|
+
const title = context.get('title');
|
|
53
|
+
if (!title) {
|
|
54
|
+
context.set('error', 'No title provided in context.');
|
|
55
|
+
return this.result(ResultStatus.ERROR, 'Missing title in context.');
|
|
56
|
+
}
|
|
57
|
+
// Check for duplicates
|
|
58
|
+
const existing = await findEntityByTitle(entityType, title);
|
|
59
|
+
if (existing) {
|
|
60
|
+
context.set('error', `${entityType} "${title}" already exists.`);
|
|
61
|
+
return this.result(ALREADY_EXISTS, `${entityType} "${title}" already exists.`);
|
|
62
|
+
}
|
|
63
|
+
const content = context.get('content') ?? '';
|
|
64
|
+
const tags = context.get('tags') ?? [];
|
|
65
|
+
const dir = await ensureEntityDir(entityType);
|
|
66
|
+
const entityMeta = createEntityMeta(entityType, title, { tags });
|
|
67
|
+
const id = entityMeta.id;
|
|
68
|
+
const filepath = path.join(dir, entityFilename(title, id));
|
|
69
|
+
const meta = { ...entityMeta };
|
|
70
|
+
// Merge extra fields from context into metadata
|
|
71
|
+
if (extraFieldsStr) {
|
|
72
|
+
for (const field of extraFieldsStr.split(',').map(f => f.trim()).filter(Boolean)) {
|
|
73
|
+
const val = context.get(field);
|
|
74
|
+
if (val !== undefined) {
|
|
75
|
+
meta[field] = val;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// Validate fields against entity type schema
|
|
80
|
+
const typeConfig = await getEntityType(entityType);
|
|
81
|
+
if (typeConfig) {
|
|
82
|
+
const errors = validateEntity(meta, typeConfig, true);
|
|
83
|
+
if (errors.length > 0) {
|
|
84
|
+
const msg = `Validation failed for ${entityType}: ${formatValidationErrors(errors)}`;
|
|
85
|
+
context.set('error', msg);
|
|
86
|
+
return this.result(ResultStatus.ERROR, msg);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
await writeEntity(filepath, meta, content);
|
|
90
|
+
// Generate and persist summary
|
|
91
|
+
const summary = await generateEntitySummary(entityType, title, content, meta);
|
|
92
|
+
meta.summary = summary;
|
|
93
|
+
await writeEntity(filepath, meta, content);
|
|
94
|
+
context.set('filepath', filepath);
|
|
95
|
+
context.set('entity', { filepath, content, ...meta });
|
|
96
|
+
// Update entity index incrementally
|
|
97
|
+
const index = getEntityIndex();
|
|
98
|
+
if (index.isBuilt) {
|
|
99
|
+
await index.addOrUpdate(entityType, id, title, filepath, tags, summary);
|
|
100
|
+
}
|
|
101
|
+
// Update embedding index
|
|
102
|
+
const embeddingIndex = getEmbeddingIndex();
|
|
103
|
+
if (embeddingIndex.isLoaded) {
|
|
104
|
+
await embeddingIndex.upsert(`${entityType}:${id}`, { title, tags, summary: summary ?? '' });
|
|
105
|
+
}
|
|
106
|
+
return this.result(ResultStatus.OK, `Created ${entityType} "${title}" at ${filepath}.`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=create-entity-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-entity-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/create-entity-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,qCAAqC;AACrC,gFAAgF;AAEhF,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,g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