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,131 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Update Entity 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
|
+
import { findEntityByTitle, writeEntity } from '../../../entities/entity.js';
|
|
8
|
+
import { getEntityType } from '../../../entities/entity-type-config.js';
|
|
9
|
+
import { validateEntity, formatValidationErrors } from '../../../entities/entity-validator.js';
|
|
10
|
+
import { getEntityIndex } from '../../../entities/entity-index.js';
|
|
11
|
+
import { getEmbeddingIndex } from '../../../entities/embedding-index.js';
|
|
12
|
+
import { generateEntitySummary } from '../../../entities/entity-summary.js';
|
|
13
|
+
const NOT_FOUND = 'not_found';
|
|
14
|
+
export class UpdateEntityNodeCode extends AbstractNodeCode {
|
|
15
|
+
static configDescriptions = [
|
|
16
|
+
{ key: 'entity_type', name: 'Entity Type', description: 'The entity type to update (any configured entity type, e.g. task, note, event, goal).', type: 'string' },
|
|
17
|
+
{ key: 'entity_title', name: 'Entity Title', description: 'Title of the entity to update. Supports {context_key} interpolation. Sets "title" in context.', type: 'string', isOptional: true },
|
|
18
|
+
{ key: 'entity_body', name: 'Entity Body', description: 'New body/content for the entity. Supports {context_key} interpolation. Sets "content" in context.', type: 'string', isOptional: true },
|
|
19
|
+
{ key: 'patch_fields', name: 'Patch Fields', description: 'Comma-separated context keys to merge into entity metadata (e.g. status,priority,dueDate).', type: 'string', default: '', isOptional: true },
|
|
20
|
+
{ key: 'add_tags', name: 'Add Tags', description: 'Comma-separated tags to append to the entity (preserves existing tags). E.g. "year-of-the-house,outdoor".', type: 'string', isOptional: true },
|
|
21
|
+
];
|
|
22
|
+
static resultDescriptions = [
|
|
23
|
+
{ status: ResultStatus.OK, description: 'Entity updated successfully.' },
|
|
24
|
+
{ status: NOT_FOUND, description: 'Entity not found.' },
|
|
25
|
+
];
|
|
26
|
+
/** Accept any extra config keys that match patch field names */
|
|
27
|
+
get allowExtraConfig() { return true; }
|
|
28
|
+
constructor() {
|
|
29
|
+
super('update_entity', 'Update Entity', 'Updates an existing entity by title.', NodeCodeCategory.DATA);
|
|
30
|
+
}
|
|
31
|
+
async process(context) {
|
|
32
|
+
const entityType = this.getRequiredConfigValue('entity_type');
|
|
33
|
+
const patchFieldsStr = this.getOptionalConfigValue('patch_fields', '');
|
|
34
|
+
// Bridge config → context: if entity_title/entity_body are set in config,
|
|
35
|
+
// interpolate and write them into context so the rest of the logic works.
|
|
36
|
+
const configTitle = this.getOptionalConfigValue('entity_title');
|
|
37
|
+
const configBody = this.getOptionalConfigValue('entity_body');
|
|
38
|
+
if (configTitle) {
|
|
39
|
+
context.set('title', this.interpolate(configTitle, context));
|
|
40
|
+
}
|
|
41
|
+
if (configBody) {
|
|
42
|
+
context.set('content', this.interpolate(configBody, context));
|
|
43
|
+
}
|
|
44
|
+
// Bridge patch field values from config → context.
|
|
45
|
+
// Config values OVERRIDE context (e.g. when array_iterator spreads stale values).
|
|
46
|
+
if (patchFieldsStr) {
|
|
47
|
+
for (const field of patchFieldsStr.split(',').map(f => f.trim()).filter(Boolean)) {
|
|
48
|
+
const configVal = this.getOptionalConfigValue(field);
|
|
49
|
+
if (configVal) {
|
|
50
|
+
context.set(field, this.interpolate(configVal, context));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const title = context.get('title');
|
|
55
|
+
if (!title) {
|
|
56
|
+
context.set('error', 'No title provided in context.');
|
|
57
|
+
return this.result(NOT_FOUND, 'Missing title in context.');
|
|
58
|
+
}
|
|
59
|
+
const found = await findEntityByTitle(entityType, title);
|
|
60
|
+
if (!found) {
|
|
61
|
+
context.set('error', `${entityType} "${title}" not found.`);
|
|
62
|
+
return this.result(NOT_FOUND, `${entityType} "${title}" not found.`);
|
|
63
|
+
}
|
|
64
|
+
// Merge content if provided
|
|
65
|
+
const newContent = context.get('content');
|
|
66
|
+
const content = newContent !== undefined ? newContent : (found.content ?? '');
|
|
67
|
+
// Merge patch fields from context into existing metadata
|
|
68
|
+
if (patchFieldsStr) {
|
|
69
|
+
for (const field of patchFieldsStr.split(',').map(f => f.trim()).filter(Boolean)) {
|
|
70
|
+
const val = context.get(field);
|
|
71
|
+
if (val !== undefined) {
|
|
72
|
+
found.meta[field] = val;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// Append tags from add_tags config (preserves existing)
|
|
77
|
+
const addTagsStr = this.getOptionalConfigValue('add_tags');
|
|
78
|
+
if (addTagsStr) {
|
|
79
|
+
const newTags = addTagsStr.split(',').map(t => this.interpolate(t.trim(), context)).filter(Boolean);
|
|
80
|
+
const existing = Array.isArray(found.meta.tags) ? found.meta.tags : [];
|
|
81
|
+
const merged = [...new Set([...existing, ...newTags])];
|
|
82
|
+
found.meta.tags = merged;
|
|
83
|
+
}
|
|
84
|
+
// Replace tags if explicitly set in context (only when add_tags is not used)
|
|
85
|
+
if (!addTagsStr) {
|
|
86
|
+
const tags = context.get('tags');
|
|
87
|
+
if (tags)
|
|
88
|
+
found.meta.tags = tags;
|
|
89
|
+
}
|
|
90
|
+
// Validate only the patched fields against entity type schema
|
|
91
|
+
const typeConfig = await getEntityType(entityType);
|
|
92
|
+
if (typeConfig) {
|
|
93
|
+
const patchedFields = new Set(patchFieldsStr ? patchFieldsStr.split(',').map(f => f.trim()).filter(Boolean) : []);
|
|
94
|
+
// Also validate content-related fields if content was changed
|
|
95
|
+
if (newContent !== undefined)
|
|
96
|
+
patchedFields.add('content');
|
|
97
|
+
const errors = validateEntity(found.meta, typeConfig, false, patchedFields.size > 0 ? patchedFields : undefined);
|
|
98
|
+
if (errors.length > 0) {
|
|
99
|
+
const msg = `Validation failed for ${entityType}: ${formatValidationErrors(errors)}`;
|
|
100
|
+
context.set('error', msg);
|
|
101
|
+
return this.result(ResultStatus.ERROR, msg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
await writeEntity(found.filepath, found.meta, content);
|
|
105
|
+
// Regenerate summary with updated content
|
|
106
|
+
const summary = await generateEntitySummary(entityType, found.meta.title ?? title, content, found.meta);
|
|
107
|
+
found.meta.summary = summary;
|
|
108
|
+
await writeEntity(found.filepath, found.meta, content);
|
|
109
|
+
context.set('entity', {
|
|
110
|
+
filepath: found.filepath,
|
|
111
|
+
content,
|
|
112
|
+
...found.meta,
|
|
113
|
+
});
|
|
114
|
+
// Update entity index incrementally
|
|
115
|
+
const index = getEntityIndex();
|
|
116
|
+
if (index.isBuilt) {
|
|
117
|
+
const entityId = found.meta.id;
|
|
118
|
+
const updatedTags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
|
|
119
|
+
await index.addOrUpdate(entityType, entityId, title, found.filepath, updatedTags, summary);
|
|
120
|
+
}
|
|
121
|
+
// Update embedding index
|
|
122
|
+
const embeddingIndex = getEmbeddingIndex();
|
|
123
|
+
if (embeddingIndex.isLoaded) {
|
|
124
|
+
const id = found.meta.id;
|
|
125
|
+
const updatedTags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
|
|
126
|
+
await embeddingIndex.upsert(`${entityType}:${id}`, { title, tags: updatedTags, summary: summary ?? '' });
|
|
127
|
+
}
|
|
128
|
+
return this.result(ResultStatus.OK, `Updated ${entityType} "${title}".`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=update-entity-node-code.js.map
|
|
@@ -0,0 +1 @@
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AAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7G,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,WAAW,UAAU,KAAK,KAAK,IAAI,CAAC,CAAC;IAC7E,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 UpdateEntityTypeNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=update-entity-type-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-entity-type-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/update-entity-type-node-code.ts"],"names":[],"mappings":"AAeA,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;AAkC5D,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC1D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAa5D;IAEF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAIrD;;IAWI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAoEnD"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Update Entity Type NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
//
|
|
5
|
+
// Given a type name and a plain-English description of the changes, asks the
|
|
6
|
+
// LLM to produce an updated field schema, then saves it to entity-types.json.
|
|
7
|
+
//
|
|
8
|
+
// Config:
|
|
9
|
+
// type_name — the existing entity type to update
|
|
10
|
+
// changes — plain-English description of what to add/remove/change
|
|
11
|
+
//
|
|
12
|
+
// Context output:
|
|
13
|
+
// entity_type — the updated EntityTypeConfig
|
|
14
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
15
|
+
import { ResultStatus } from '../../result/result.js';
|
|
16
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
17
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
18
|
+
import { getEntityType, updateEntityType, } from '../../../entities/entity-type-config.js';
|
|
19
|
+
import { getModelForCapability } from '../../../llm/router.js';
|
|
20
|
+
const NOT_FOUND = 'not_found';
|
|
21
|
+
const SYSTEM_PROMPT = `You are a data modelling assistant for a personal knowledge-management CLI called Phaibel.
|
|
22
|
+
You will be given the current JSON schema for an entity type and a description of requested changes.
|
|
23
|
+
Apply the changes and return the complete updated schema as a JSON object.
|
|
24
|
+
|
|
25
|
+
Rules:
|
|
26
|
+
- Return ONLY a valid JSON object — no markdown, no commentary, no code fences.
|
|
27
|
+
- The object must have these top-level keys:
|
|
28
|
+
plural : string
|
|
29
|
+
description : string (≤ 80 chars)
|
|
30
|
+
fields : array of field objects
|
|
31
|
+
completionField : string | null
|
|
32
|
+
completionValue : string | null
|
|
33
|
+
- Each field object must have:
|
|
34
|
+
key : string (camelCase, no spaces)
|
|
35
|
+
label : string
|
|
36
|
+
type : one of: string | number | boolean | date | datetime | enum
|
|
37
|
+
required : boolean
|
|
38
|
+
- Enum fields must also include:
|
|
39
|
+
values : string[]
|
|
40
|
+
default : string (must be in values)
|
|
41
|
+
- Preserve existing fields unless the changes explicitly remove or rename them.`;
|
|
42
|
+
export class UpdateEntityTypeNodeCode extends AbstractNodeCode {
|
|
43
|
+
static configDescriptions = [
|
|
44
|
+
{
|
|
45
|
+
key: 'type_name',
|
|
46
|
+
name: 'Type Name',
|
|
47
|
+
description: 'The name of the entity type to update. Supports {context_key} interpolation.',
|
|
48
|
+
type: 'string',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: 'changes',
|
|
52
|
+
name: 'Changes',
|
|
53
|
+
description: 'Plain-English description of what to add, remove, or change. Supports {context_key} interpolation.',
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
static resultDescriptions = [
|
|
58
|
+
{ status: ResultStatus.OK, description: 'Entity type updated successfully.' },
|
|
59
|
+
{ status: NOT_FOUND, description: 'Entity type not found.' },
|
|
60
|
+
{ status: ResultStatus.ERROR, description: 'Failed to update entity type.' },
|
|
61
|
+
];
|
|
62
|
+
constructor() {
|
|
63
|
+
super('update_entity_type', 'Update Entity Type', 'Uses the LLM to apply field schema changes to an existing entity type.', NodeCodeCategory.DATA);
|
|
64
|
+
}
|
|
65
|
+
async process(context) {
|
|
66
|
+
const rawName = this.getRequiredConfigValue('type_name');
|
|
67
|
+
const rawChanges = this.getRequiredConfigValue('changes');
|
|
68
|
+
const typeName = this.interpolate(rawName, context).trim();
|
|
69
|
+
const changes = this.interpolate(rawChanges, context).trim();
|
|
70
|
+
const existing = await getEntityType(typeName);
|
|
71
|
+
if (!existing) {
|
|
72
|
+
context.set('error', `Entity type "${typeName}" not found.`);
|
|
73
|
+
return this.result(NOT_FOUND, `Entity type "${typeName}" not found.`);
|
|
74
|
+
}
|
|
75
|
+
const userPrompt = `Current schema for "${typeName}":\n${JSON.stringify(existing, null, 2)}\n\nRequested changes:\n${changes}`;
|
|
76
|
+
let schemaJson;
|
|
77
|
+
try {
|
|
78
|
+
const llm = await getModelForCapability('reason');
|
|
79
|
+
schemaJson = await llm.chat([{ role: 'user', content: userPrompt }], { systemPrompt: SYSTEM_PROMPT, temperature: 0.2, maxTokens: 1024 });
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
83
|
+
context.set('error', `LLM call failed: ${msg}`);
|
|
84
|
+
return this.result(ResultStatus.ERROR, `LLM call failed: ${msg}`);
|
|
85
|
+
}
|
|
86
|
+
let schema;
|
|
87
|
+
try {
|
|
88
|
+
const cleaned = schemaJson.replace(/```[a-z]*\n?/g, '').replace(/```/g, '').trim();
|
|
89
|
+
schema = JSON.parse(cleaned);
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
context.set('error', 'LLM returned invalid JSON.');
|
|
93
|
+
return this.result(ResultStatus.ERROR, `LLM returned invalid JSON: ${schemaJson.slice(0, 200)}`);
|
|
94
|
+
}
|
|
95
|
+
if (!Array.isArray(schema.fields)) {
|
|
96
|
+
context.set('error', 'LLM schema missing "fields" array.');
|
|
97
|
+
return this.result(ResultStatus.ERROR, 'LLM schema missing "fields" array.');
|
|
98
|
+
}
|
|
99
|
+
const updated = {
|
|
100
|
+
...existing,
|
|
101
|
+
plural: schema.plural ?? existing.plural,
|
|
102
|
+
description: schema.description ?? existing.description,
|
|
103
|
+
fields: schema.fields,
|
|
104
|
+
};
|
|
105
|
+
if (schema.completionField) {
|
|
106
|
+
updated.completionField = schema.completionField;
|
|
107
|
+
updated.completionValue = schema.completionValue ?? undefined;
|
|
108
|
+
}
|
|
109
|
+
else if (schema.completionField === null) {
|
|
110
|
+
delete updated.completionField;
|
|
111
|
+
delete updated.completionValue;
|
|
112
|
+
}
|
|
113
|
+
await updateEntityType(typeName, updated);
|
|
114
|
+
context.set('entity_type', updated);
|
|
115
|
+
return this.result(ResultStatus.OK, `Updated entity type "${typeName}" — now has ${updated.fields.length} field(s).`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=update-entity-type-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-entity-type-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/update-entity-type-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,gFAAgF;AAChF,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,UAAU;AACV,qDAAqD;AACrD,yEAAyE;AACzE,EAAE;AACF,kBAAkB;AAClB,+CAA+C;AAC/C,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;AACnD,OAAO,EACH,aAAa,EACb,gBAAgB,GAGnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;gFAoB0D,CAAC;AAEjF,MAAM,OAAO,wBAAyB,SAAQ,gBAAgB;IAC1D,MAAM,CAAU,kBAAkB,GAA+B;QAC7D;YACI,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oGAAoG;YACjH,IAAI,EAAE,QAAQ;SACjB;KACJ,CAAC;IAEF,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE;QAC7E,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,wBAAwB,EAAE;QAC5D,EAAE,MAAM,EAAE,YAAY,C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AQ,CAAC,WAAW;YACvD,MAAM,EAAE,MAAM,CAAC,MAAM;SACxB,CAAC;QAEF,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;YACzB,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;YACjD,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,SAAS,CAAC;QAClE,CAAC;aAAM,IAAI,MAAM,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;YACzC,OAAO,OAAO,CAAC,eAAe,CAAC;YAC/B,OAAO,OAAO,CAAC,eAAe,CAAC;QACnC,CAAC;QAED,MAAM,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAE1C,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,wBAAwB,QAAQ,eAAe,OAAO,CAAC,MAAM,CAAC,MAAM,YAAY,CAAC,CAAC;IAC1H,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 ArrayIteratorNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=array-iterator-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-iterator-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/array-iterator-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;AAK5D,qBAAa,qBAAsB,SAAQ,gBAAgB;IACvD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAsC5D;IAEF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAWI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAuCnD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Array Iterator NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
//
|
|
5
|
+
// Iterates over an array stored in context. Each invocation advances a cursor,
|
|
6
|
+
// spreads the current item's fields into context, and returns 'ok'.
|
|
7
|
+
// When the array is exhausted it returns 'done', providing the loop-exit edge.
|
|
8
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
9
|
+
import { ResultStatus } from '../../result/result.js';
|
|
10
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
11
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
12
|
+
const DONE = 'done';
|
|
13
|
+
export class ArrayIteratorNodeCode extends AbstractNodeCode {
|
|
14
|
+
static configDescriptions = [
|
|
15
|
+
{
|
|
16
|
+
key: 'source_context_path',
|
|
17
|
+
name: 'Source Array Path',
|
|
18
|
+
description: 'Context key containing the array to iterate.',
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'cursor_context_path',
|
|
23
|
+
name: 'Cursor Path',
|
|
24
|
+
description: 'Context key for the internal cursor (auto-managed).',
|
|
25
|
+
type: 'string',
|
|
26
|
+
default: '_iterator_cursor',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'item_context_path',
|
|
30
|
+
name: 'Item Path',
|
|
31
|
+
description: 'Context key to store the current item object.',
|
|
32
|
+
type: 'string',
|
|
33
|
+
default: '_current_item',
|
|
34
|
+
isOptional: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: 'spread_fields',
|
|
38
|
+
name: 'Spread Fields',
|
|
39
|
+
description: 'If true, spread the item\'s own properties directly into the context (useful for create_entity).',
|
|
40
|
+
type: 'string',
|
|
41
|
+
default: 'true',
|
|
42
|
+
isOptional: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: 'max_iterations',
|
|
46
|
+
name: 'Max Iterations',
|
|
47
|
+
description: 'Maximum number of items to iterate over. Omit or set to 0 for no limit.',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: '0',
|
|
50
|
+
isOptional: true,
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
static resultDescriptions = [
|
|
54
|
+
{ status: ResultStatus.OK, description: 'Item loaded into context; more items remain.' },
|
|
55
|
+
{ status: DONE, description: 'Array exhausted; no more items.' },
|
|
56
|
+
];
|
|
57
|
+
constructor() {
|
|
58
|
+
super('array_iterator', 'Array Iterator', 'Iterates over a context array, spreading each item into context. Returns ok/done for loop control.', NodeCodeCategory.FLOW);
|
|
59
|
+
}
|
|
60
|
+
async process(context) {
|
|
61
|
+
const sourcePath = this.getRequiredConfigValue('source_context_path');
|
|
62
|
+
const cursorPath = this.getRequiredConfigValue('cursor_context_path', '_iterator_cursor');
|
|
63
|
+
const itemPath = this.getOptionalConfigValue('item_context_path', '_current_item');
|
|
64
|
+
const spreadFields = this.getOptionalConfigValue('spread_fields', 'true') === 'true';
|
|
65
|
+
const maxIterations = parseInt(this.getOptionalConfigValue('max_iterations', '0'), 10) || 0;
|
|
66
|
+
const arr = context.getArray(sourcePath);
|
|
67
|
+
if (!Array.isArray(arr) || arr.length === 0) {
|
|
68
|
+
return this.result(DONE, 'Source array is empty or not an array.');
|
|
69
|
+
}
|
|
70
|
+
// Read or initialize cursor
|
|
71
|
+
const cursor = context.has(cursorPath) ? context.getInt(cursorPath) : 0;
|
|
72
|
+
if (cursor >= arr.length || (maxIterations > 0 && cursor >= maxIterations)) {
|
|
73
|
+
// Reset cursor for potential re-use and signal done
|
|
74
|
+
context.set(cursorPath, 0);
|
|
75
|
+
return this.result(DONE, `Iterated all ${arr.length} items.`);
|
|
76
|
+
}
|
|
77
|
+
const item = arr[cursor];
|
|
78
|
+
// Store the whole item
|
|
79
|
+
context.set(itemPath, item);
|
|
80
|
+
// Spread item fields into context for downstream nodes
|
|
81
|
+
if (spreadFields && item && typeof item === 'object' && !Array.isArray(item)) {
|
|
82
|
+
for (const [key, value] of Object.entries(item)) {
|
|
83
|
+
context.set(key, value);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Advance cursor
|
|
87
|
+
context.set(cursorPath, cursor + 1);
|
|
88
|
+
return this.result(ResultStatus.OK, `Item ${cursor + 1}/${arr.length}: ${JSON.stringify(item).slice(0, 100)}`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=array-iterator-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-iterator-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/array-iterator-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,sCAAsC;AACtC,gFAAgF;AAChF,EAAE;AACF,gFAAgF;AAChF,oEAAoE;AACpE,+EAA+E;AAC/E,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,IAAI,GAAG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;QAE5B,uDAAuD;QACvD,IAAI,YAAY,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3E,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAA+B,CAAC,EAAE,CAAC;gBACzE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAC5B,CAAC;QACL,CAAC;QAED,iBAAiB;QACjB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IACnH,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 ComparatorNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=comparator-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparator-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/comparator-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,kBAAmB,SAAQ,gBAAgB;IACpD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAOrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAgCnD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Context Value Comparator 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 ComparatorNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [
|
|
9
|
+
{ key: 'left_context_path', name: 'Left Value Path', description: 'Context key for the left operand.', type: 'string' },
|
|
10
|
+
{ key: 'right_context_path', name: 'Right Value Path', description: 'Context key for the right operand.', type: 'string', isOptional: true },
|
|
11
|
+
{ key: 'right_value', name: 'Right Value', description: 'Literal value for the right operand (used if right_context_path is not set).', type: 'string', isOptional: true },
|
|
12
|
+
];
|
|
13
|
+
static resultDescriptions = [
|
|
14
|
+
{ status: ResultStatus.TRUE, description: 'Values are equal.' },
|
|
15
|
+
{ status: ResultStatus.FALSE, description: 'Values are not equal.' },
|
|
16
|
+
{ status: ResultStatus.GREATER_THAN, description: 'Left > right.' },
|
|
17
|
+
{ status: ResultStatus.GREATER_THAN_EQUAL, description: 'Left >= right.' },
|
|
18
|
+
{ status: ResultStatus.LESS_THAN, description: 'Left < right.' },
|
|
19
|
+
{ status: ResultStatus.LESS_THAN_EQUAL, description: 'Left <= right.' },
|
|
20
|
+
];
|
|
21
|
+
constructor() {
|
|
22
|
+
super('context_value_comparator', 'Compare Values', 'Compares two context values, returns comparison result.', NodeCodeCategory.FLOW);
|
|
23
|
+
}
|
|
24
|
+
async process(context) {
|
|
25
|
+
const leftPath = this.getRequiredConfigValue('left_context_path');
|
|
26
|
+
const left = context.get(leftPath);
|
|
27
|
+
// Get right value: from context path or literal
|
|
28
|
+
let right;
|
|
29
|
+
const rightPath = this.getOptionalConfigValue('right_context_path');
|
|
30
|
+
if (rightPath) {
|
|
31
|
+
right = context.get(rightPath);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
right = this.getOptionalConfigValue('right_value');
|
|
35
|
+
}
|
|
36
|
+
// Numeric comparison when both sides are numbers
|
|
37
|
+
const leftNum = Number(left);
|
|
38
|
+
const rightNum = Number(right);
|
|
39
|
+
if (!isNaN(leftNum) && !isNaN(rightNum)) {
|
|
40
|
+
if (leftNum === rightNum)
|
|
41
|
+
return this.result(ResultStatus.TRUE, `${leftNum} == ${rightNum}`);
|
|
42
|
+
if (leftNum > rightNum)
|
|
43
|
+
return this.result(ResultStatus.GREATER_THAN, `${leftNum} > ${rightNum}`);
|
|
44
|
+
return this.result(ResultStatus.LESS_THAN, `${leftNum} < ${rightNum}`);
|
|
45
|
+
}
|
|
46
|
+
// String / strict equality comparison
|
|
47
|
+
const leftStr = String(left ?? '');
|
|
48
|
+
const rightStr = String(right ?? '');
|
|
49
|
+
if (leftStr === rightStr) {
|
|
50
|
+
return this.result(ResultStatus.TRUE, `"${leftStr}" == "${rightStr}"`);
|
|
51
|
+
}
|
|
52
|
+
return this.result(ResultStatus.FALSE, `"${leftStr}" != "${rightStr}"`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=comparator-node-code.js.map
|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AAQ,EAAE,CAAC,CAAC;QAC3E,CAAC;QAED,sCAAsC;QACtC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAErC,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,OAAO,SAAS,QAAQ,GAAG,CAAC,CAAC;QAC3E,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,OAAO,SAAS,QAAQ,GAAG,CAAC,CAAC;IAC5E,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 ContextValueResultNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=context-value-result-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-value-result-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/context-value-result-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC5D,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;CAKnD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Context Value Result NodeCode
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
import { AbstractNodeCode } from '../abstract-node-code.js';
|
|
5
|
+
import { NodeCodeCategory } from '../node-code.js';
|
|
6
|
+
export class ContextValueResultNodeCode extends AbstractNodeCode {
|
|
7
|
+
static configDescriptions = [
|
|
8
|
+
{ key: 'context_path', name: 'Context Path', description: 'The context key whose value will be used as the result status.', type: 'string' },
|
|
9
|
+
];
|
|
10
|
+
static resultDescriptions = [
|
|
11
|
+
{ status: '*', description: 'The result status is the value of the specified context key.' },
|
|
12
|
+
];
|
|
13
|
+
constructor() {
|
|
14
|
+
super('context_value_result', 'Context Value Result', 'Returns a result whose status is read from a context key.', NodeCodeCategory.FLOW);
|
|
15
|
+
}
|
|
16
|
+
async process(context) {
|
|
17
|
+
const contextPath = this.getRequiredConfigValue('context_path');
|
|
18
|
+
const value = context.getString(contextPath);
|
|
19
|
+
return this.result(value, `Context value at "${contextPath}" is "${value}".`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=context-value-result-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-value-result-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/context-value-result-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4CAA4C;AAC5C,gFAAgF;AAKhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,0BAA2B,SAAQ,gBAAgB;IAC5D,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,gEAAgE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/I,CAAC;IACF,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,8DAA8D,EAAE;KAC/F,CAAC;IAEF;QACI,KAAK,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,2DAA2D,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC9I,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAgB;QAC1B,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAW,CAAC;QAC1E,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,qBAAqB,WAAW,SAAS,KAAK,IAAI,CAAC,CAAC;IAClF,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 NoopNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(_context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=noop-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/noop-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,YAAa,SAAQ,gBAAgB;IAC9C,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAAM;IACpE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Noop 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 NoopNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [];
|
|
9
|
+
static resultDescriptions = [
|
|
10
|
+
{ status: ResultStatus.OK, description: 'No operation performed.' },
|
|
11
|
+
];
|
|
12
|
+
constructor() {
|
|
13
|
+
super('noop', 'No Operation', 'Does nothing, returns OK.', NodeCodeCategory.FLOW);
|
|
14
|
+
}
|
|
15
|
+
async process(_context) {
|
|
16
|
+
return this.result(ResultStatus.OK, 'No operation.');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=noop-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/noop-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4BAA4B;AAC5B,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,YAAa,SAAQ,gBAAgB;IAC9C,MAAM,CAAU,kBAAkB,GAA+B,EAAE,CAAC;IACpE,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;KACtE,CAAC;IAEF;QACI,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,2BAA2B,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,QAAiB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;IACzD,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 StartNodeCode extends AbstractNodeCode {
|
|
6
|
+
static readonly configDescriptions: ConfigurationDescription[];
|
|
7
|
+
static readonly resultDescriptions: ResultDescription[];
|
|
8
|
+
constructor();
|
|
9
|
+
process(_context: Context): Promise<Result>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=start-node-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/start-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,aAAc,SAAQ,gBAAgB;IAC/C,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAAM;IACpE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Feral CCF — Start 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 StartNodeCode extends AbstractNodeCode {
|
|
8
|
+
static configDescriptions = [];
|
|
9
|
+
static resultDescriptions = [
|
|
10
|
+
{ status: ResultStatus.OK, description: 'The start node was successful.' },
|
|
11
|
+
];
|
|
12
|
+
constructor() {
|
|
13
|
+
super('start', 'Start Process', 'The node that starts a process.', NodeCodeCategory.FLOW);
|
|
14
|
+
}
|
|
15
|
+
async process(_context) {
|
|
16
|
+
return this.result(ResultStatus.OK, 'Start processing.');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=start-node-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/flow/start-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,6BAA6B;AAC7B,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,aAAc,SAAQ,gBAAgB;IAC/C,MAAM,CAAU,kBAAkB,GAA+B,EAAE,CAAC;IACpE,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE;KAC7E,CAAC;IAEF;QACI,KAAK,CAAC,OAAO,EAAE,eAAe,EAAE,iCAAiC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,QAAiB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC7D,CAAC"}
|