@elizaos/ui 2.0.0-alpha.25 → 2.0.0-alpha.334
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/package.json +78 -51
- package/packages/typescript/src/action-docs.d.ts +22 -0
- package/packages/typescript/src/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/action-docs.js +95 -0
- package/packages/typescript/src/actions.d.ts +29 -0
- package/packages/typescript/src/actions.d.ts.map +1 -0
- package/packages/typescript/src/actions.js +531 -0
- package/packages/typescript/src/character-utils.d.ts +138 -0
- package/packages/typescript/src/character-utils.d.ts.map +1 -0
- package/packages/typescript/src/character-utils.js +271 -0
- package/packages/typescript/src/character.d.ts +68 -0
- package/packages/typescript/src/character.d.ts.map +1 -0
- package/packages/typescript/src/character.js +155 -0
- package/packages/typescript/src/connection.d.ts +45 -0
- package/packages/typescript/src/connection.d.ts.map +1 -0
- package/packages/typescript/src/connection.js +149 -0
- package/packages/typescript/src/constants/index.d.ts +7 -0
- package/packages/typescript/src/constants/index.d.ts.map +1 -0
- package/packages/typescript/src/constants/index.js +6 -0
- package/packages/typescript/src/constants/secrets.d.ts +99 -0
- package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
- package/packages/typescript/src/constants/secrets.js +239 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
- package/packages/typescript/src/database/inMemoryAdapter.js +1171 -0
- package/packages/typescript/src/database.d.ts +426 -0
- package/packages/typescript/src/database.d.ts.map +1 -0
- package/packages/typescript/src/database.js +24 -0
- package/packages/typescript/src/entities.d.ts +11 -0
- package/packages/typescript/src/entities.d.ts.map +1 -0
- package/packages/typescript/src/entities.js +437 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +102 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +136 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +176 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +199 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +112 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +192 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +96 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +39 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +78 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +352 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.d.ts +20 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +710 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +641 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +71 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +256 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.js +7 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +51 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +68 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.js +755 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +90 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +129 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/index.js +114 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +10 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.js +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +478 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +162 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +125 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +180 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +199 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/index.js +26 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.js +367 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/types.js +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +181 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/index.js +20 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/types.js +1 -0
- package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
- package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/action.js +177 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
- package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/index.js +13 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/providers.js +154 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/routes.js +158 -0
- package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
- package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/service.js +813 -0
- package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
- package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/types.js +6 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.js +80 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts +108 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.js +1027 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +232 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.js +104 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.js +19 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +22 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +323 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +48 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts +4 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/evaluator-doc-examples.js +13 -0
- package/packages/typescript/src/features/index.d.ts +58 -0
- package/packages/typescript/src/features/index.d.ts.map +1 -0
- package/packages/typescript/src/features/index.js +153 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/actions.js +275 -0
- package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/config.js +147 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/docs-loader.js +226 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/document-processor.js +629 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/documents-provider.js +112 -0
- package/packages/typescript/src/features/knowledge/index.d.ts +16 -0
- package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/index.js +29 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/llm.js +444 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/provider.js +114 -0
- package/packages/typescript/src/features/knowledge/service.d.ts +83 -0
- package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/service.js +648 -0
- package/packages/typescript/src/features/knowledge/types.d.ts +162 -0
- package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/types.js +57 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts +22 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/utils.js +387 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +65 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +63 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +232 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts +25 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/index.js +53 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.js +229 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +479 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1005 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +401 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/types.js +13 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/index.js +6 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.js +278 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.js +105 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.js +223 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/action.js +337 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/index.js +4 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/index.js +8 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
- package/packages/typescript/src/features/secrets/types.d.ts +438 -0
- package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/types.js +57 -0
- package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
- package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/validation.js +389 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1423 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/art-format.js +221 -0
- package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
- package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/export.js +99 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
- package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/index.js +332 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/integration.js +83 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
- package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
- package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/types.js +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.js +225 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/index.js +5 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +189 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.js +165 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/roles.js +295 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/settings.js +603 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.js +319 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
- package/packages/typescript/src/features/trust/index.d.ts +23 -0
- package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/index.js +96 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/index.js +5 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/roles.js +142 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/settings.js +222 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
- package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
- package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/schema.js +108 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
- package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
- package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/db.js +10 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/permissions.js +58 -0
- package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
- package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/security.js +15 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/trust.js +25 -0
- package/packages/typescript/src/generated/action-docs.d.ts +2799 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/generated/action-docs.js +4021 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/generated/spec-helpers.js +78 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1069 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1069 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
- package/packages/typescript/src/i18n/validation-keywords.js +112 -0
- package/packages/typescript/src/index.d.ts +12 -0
- package/packages/typescript/src/index.d.ts.map +1 -0
- package/packages/typescript/src/index.js +13 -0
- package/packages/typescript/src/index.node.d.ts +81 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -0
- package/packages/typescript/src/index.node.js +114 -0
- package/packages/typescript/src/logger.d.ts +121 -0
- package/packages/typescript/src/logger.d.ts.map +1 -0
- package/packages/typescript/src/logger.js +1023 -0
- package/packages/typescript/src/markdown/chunk.d.ts +50 -0
- package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
- package/packages/typescript/src/markdown/chunk.js +268 -0
- package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
- package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
- package/packages/typescript/src/markdown/code-spans.js +89 -0
- package/packages/typescript/src/markdown/fences.d.ts +50 -0
- package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
- package/packages/typescript/src/markdown/fences.js +90 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
- package/packages/typescript/src/markdown/frontmatter.js +151 -0
- package/packages/typescript/src/markdown/index.d.ts +18 -0
- package/packages/typescript/src/markdown/index.d.ts.map +1 -0
- package/packages/typescript/src/markdown/index.js +17 -0
- package/packages/typescript/src/markdown/ir.d.ts +101 -0
- package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
- package/packages/typescript/src/markdown/ir.js +789 -0
- package/packages/typescript/src/media/fetch.d.ts +39 -0
- package/packages/typescript/src/media/fetch.d.ts.map +1 -0
- package/packages/typescript/src/media/fetch.js +205 -0
- package/packages/typescript/src/media/index.d.ts +8 -0
- package/packages/typescript/src/media/index.d.ts.map +1 -0
- package/packages/typescript/src/media/index.js +7 -0
- package/packages/typescript/src/media/mime.d.ts +51 -0
- package/packages/typescript/src/media/mime.d.ts.map +1 -0
- package/packages/typescript/src/media/mime.js +225 -0
- package/packages/typescript/src/memory.d.ts +40 -0
- package/packages/typescript/src/memory.d.ts.map +1 -0
- package/packages/typescript/src/memory.js +58 -0
- package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
- package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
- package/packages/typescript/src/network/fetch-guard.js +136 -0
- package/packages/typescript/src/network/index.d.ts +11 -0
- package/packages/typescript/src/network/index.d.ts.map +1 -0
- package/packages/typescript/src/network/index.js +10 -0
- package/packages/typescript/src/network/ssrf.d.ts +58 -0
- package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
- package/packages/typescript/src/network/ssrf.js +252 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
- package/packages/typescript/src/optimization/ab-analysis.js +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
- package/packages/typescript/src/optimization-root-dir.js +14 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
- package/packages/typescript/src/plugin-lifecycle.js +590 -0
- package/packages/typescript/src/plugin.d.ts +13 -0
- package/packages/typescript/src/plugin.d.ts.map +1 -0
- package/packages/typescript/src/plugin.js +341 -0
- package/packages/typescript/src/plugins/index.d.ts +9 -0
- package/packages/typescript/src/plugins/index.d.ts.map +1 -0
- package/packages/typescript/src/plugins/index.js +8 -0
- package/packages/typescript/src/plugins/native-features.d.ts +14 -0
- package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
- package/packages/typescript/src/plugins/native-features.js +59 -0
- package/packages/typescript/src/prompts.d.ts +88 -0
- package/packages/typescript/src/prompts.d.ts.map +1 -0
- package/packages/typescript/src/prompts.js +1140 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
- package/packages/typescript/src/providers/onboarding-progress.js +268 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
- package/packages/typescript/src/providers/skill-eligibility.js +179 -0
- package/packages/typescript/src/provisioning.d.ts +54 -0
- package/packages/typescript/src/provisioning.d.ts.map +1 -0
- package/packages/typescript/src/provisioning.js +209 -0
- package/packages/typescript/src/roles.d.ts +70 -0
- package/packages/typescript/src/roles.d.ts.map +1 -0
- package/packages/typescript/src/roles.js +544 -0
- package/packages/typescript/src/runtime-composition.d.ts +129 -0
- package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
- package/packages/typescript/src/runtime-composition.js +335 -0
- package/packages/typescript/src/runtime.d.ts +924 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -0
- package/packages/typescript/src/runtime.js +6013 -0
- package/packages/typescript/src/schemas/agent.d.ts +7 -0
- package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/agent.js +112 -0
- package/packages/typescript/src/schemas/cache.d.ts +7 -0
- package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
- package/packages/typescript/src/schemas/cache.js +55 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel-participant.js +49 -0
- package/packages/typescript/src/schemas/channel.d.ts +7 -0
- package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel.js +94 -0
- package/packages/typescript/src/schemas/character.d.ts +445 -0
- package/packages/typescript/src/schemas/character.d.ts.map +1 -0
- package/packages/typescript/src/schemas/character.js +309 -0
- package/packages/typescript/src/schemas/component.d.ts +7 -0
- package/packages/typescript/src/schemas/component.d.ts.map +1 -0
- package/packages/typescript/src/schemas/component.js +156 -0
- package/packages/typescript/src/schemas/embedding.d.ts +7 -0
- package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
- package/packages/typescript/src/schemas/embedding.js +89 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity-identity.js +334 -0
- package/packages/typescript/src/schemas/entity.d.ts +7 -0
- package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity.js +69 -0
- package/packages/typescript/src/schemas/index.d.ts +77 -0
- package/packages/typescript/src/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/schemas/index.js +75 -0
- package/packages/typescript/src/schemas/log.d.ts +6 -0
- package/packages/typescript/src/schemas/log.d.ts.map +1 -0
- package/packages/typescript/src/schemas/log.js +93 -0
- package/packages/typescript/src/schemas/memory.d.ts +7 -0
- package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
- package/packages/typescript/src/schemas/memory.js +167 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server-agent.js +58 -0
- package/packages/typescript/src/schemas/message-server.d.ts +6 -0
- package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server.js +62 -0
- package/packages/typescript/src/schemas/message.d.ts +7 -0
- package/packages/typescript/src/schemas/message.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message.js +106 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-request.js +96 -0
- package/packages/typescript/src/schemas/participant.d.ts +6 -0
- package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/participant.js +91 -0
- package/packages/typescript/src/schemas/relationship.d.ts +7 -0
- package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
- package/packages/typescript/src/schemas/relationship.js +102 -0
- package/packages/typescript/src/schemas/room.d.ts +6 -0
- package/packages/typescript/src/schemas/room.d.ts.map +1 -0
- package/packages/typescript/src/schemas/room.js +86 -0
- package/packages/typescript/src/schemas/server.d.ts +7 -0
- package/packages/typescript/src/schemas/server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/server.js +33 -0
- package/packages/typescript/src/schemas/task.d.ts +6 -0
- package/packages/typescript/src/schemas/task.d.ts.map +1 -0
- package/packages/typescript/src/schemas/task.js +95 -0
- package/packages/typescript/src/schemas/world.d.ts +6 -0
- package/packages/typescript/src/schemas/world.d.ts.map +1 -0
- package/packages/typescript/src/schemas/world.js +64 -0
- package/packages/typescript/src/search.d.ts +359 -0
- package/packages/typescript/src/search.d.ts.map +1 -0
- package/packages/typescript/src/search.js +1580 -0
- package/packages/typescript/src/secrets.d.ts +6 -0
- package/packages/typescript/src/secrets.d.ts.map +1 -0
- package/packages/typescript/src/secrets.js +28 -0
- package/packages/typescript/src/security/external-content.d.ts +96 -0
- package/packages/typescript/src/security/external-content.d.ts.map +1 -0
- package/packages/typescript/src/security/external-content.js +252 -0
- package/packages/typescript/src/security/index.d.ts +12 -0
- package/packages/typescript/src/security/index.d.ts.map +1 -0
- package/packages/typescript/src/security/index.js +13 -0
- package/packages/typescript/src/security/redact.d.ts +111 -0
- package/packages/typescript/src/security/redact.d.ts.map +1 -0
- package/packages/typescript/src/security/redact.js +254 -0
- package/packages/typescript/src/services/agentEvent.d.ts +297 -0
- package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/services/agentEvent.js +422 -0
- package/packages/typescript/src/services/approval.d.ts +169 -0
- package/packages/typescript/src/services/approval.d.ts.map +1 -0
- package/packages/typescript/src/services/approval.js +399 -0
- package/packages/typescript/src/services/embedding.d.ts +29 -0
- package/packages/typescript/src/services/embedding.d.ts.map +1 -0
- package/packages/typescript/src/services/embedding.js +211 -0
- package/packages/typescript/src/services/followUp.d.ts +48 -0
- package/packages/typescript/src/services/followUp.d.ts.map +1 -0
- package/packages/typescript/src/services/followUp.js +333 -0
- package/packages/typescript/src/services/hook.d.ts +85 -0
- package/packages/typescript/src/services/hook.d.ts.map +1 -0
- package/packages/typescript/src/services/hook.js +396 -0
- package/packages/typescript/src/services/message.d.ts +130 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -0
- package/packages/typescript/src/services/message.js +4899 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-cli.js +688 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-rpc.js +318 -0
- package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
- package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-state.js +706 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.js +49 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts +116 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt.js +254 -0
- package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
- package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-integration.js +145 -0
- package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
- package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-migration.js +283 -0
- package/packages/typescript/src/services/pairing.d.ts +80 -0
- package/packages/typescript/src/services/pairing.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing.js +253 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
- package/packages/typescript/src/services/plugin-hooks.js +163 -0
- package/packages/typescript/src/services/relationships.d.ts +350 -0
- package/packages/typescript/src/services/relationships.d.ts.map +1 -0
- package/packages/typescript/src/services/relationships.js +1649 -0
- package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
- package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
- package/packages/typescript/src/services/task-scheduler.js +89 -0
- package/packages/typescript/src/services/task.d.ts +133 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -0
- package/packages/typescript/src/services/task.js +559 -0
- package/packages/typescript/src/services/tool-policy.d.ts +186 -0
- package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
- package/packages/typescript/src/services/tool-policy.js +332 -0
- package/packages/typescript/src/services/trajectories.d.ts +34 -0
- package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
- package/packages/typescript/src/services/trajectories.js +1 -0
- package/packages/typescript/src/services.d.ts +61 -0
- package/packages/typescript/src/services.d.ts.map +1 -0
- package/packages/typescript/src/services.js +99 -0
- package/packages/typescript/src/sessions/index.d.ts +17 -0
- package/packages/typescript/src/sessions/index.d.ts.map +1 -0
- package/packages/typescript/src/sessions/index.js +29 -0
- package/packages/typescript/src/sessions/provider.d.ts +71 -0
- package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
- package/packages/typescript/src/sessions/provider.js +243 -0
- package/packages/typescript/src/sessions/session-key.d.ts +201 -0
- package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
- package/packages/typescript/src/sessions/session-key.js +396 -0
- package/packages/typescript/src/sessions/types.d.ts +197 -0
- package/packages/typescript/src/sessions/types.d.ts.map +1 -0
- package/packages/typescript/src/sessions/types.js +68 -0
- package/packages/typescript/src/settings.d.ts +99 -0
- package/packages/typescript/src/settings.d.ts.map +1 -0
- package/packages/typescript/src/settings.js +409 -0
- package/packages/typescript/src/should-respond.d.ts +2 -0
- package/packages/typescript/src/should-respond.d.ts.map +1 -0
- package/packages/typescript/src/should-respond.js +16 -0
- package/packages/typescript/src/streaming-context.d.ts +88 -0
- package/packages/typescript/src/streaming-context.d.ts.map +1 -0
- package/packages/typescript/src/streaming-context.js +160 -0
- package/packages/typescript/src/trajectory-context.d.ts +39 -0
- package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-context.js +85 -0
- package/packages/typescript/src/trajectory-utils.d.ts +73 -0
- package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-utils.js +124 -0
- package/packages/typescript/src/types/agent.d.ts +62 -0
- package/packages/typescript/src/types/agent.d.ts.map +1 -0
- package/packages/typescript/src/types/agent.js +5 -0
- package/packages/typescript/src/types/agentEvent.d.ts +258 -0
- package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/types/agentEvent.js +11 -0
- package/packages/typescript/src/types/channel-config.d.ts +167 -0
- package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
- package/packages/typescript/src/types/channel-config.js +7 -0
- package/packages/typescript/src/types/components.d.ts +358 -0
- package/packages/typescript/src/types/components.d.ts.map +1 -0
- package/packages/typescript/src/types/components.js +1 -0
- package/packages/typescript/src/types/database.d.ts +1079 -0
- package/packages/typescript/src/types/database.d.ts.map +1 -0
- package/packages/typescript/src/types/database.js +9 -0
- package/packages/typescript/src/types/environment.d.ts +73 -0
- package/packages/typescript/src/types/environment.d.ts.map +1 -0
- package/packages/typescript/src/types/environment.js +16 -0
- package/packages/typescript/src/types/events.d.ts +403 -0
- package/packages/typescript/src/types/events.d.ts.map +1 -0
- package/packages/typescript/src/types/events.js +85 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
- package/packages/typescript/src/types/hook.d.ts +338 -0
- package/packages/typescript/src/types/hook.d.ts.map +1 -0
- package/packages/typescript/src/types/hook.js +73 -0
- package/packages/typescript/src/types/index.d.ts +42 -0
- package/packages/typescript/src/types/index.d.ts.map +1 -0
- package/packages/typescript/src/types/index.js +50 -0
- package/packages/typescript/src/types/knowledge.d.ts +49 -0
- package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/types/knowledge.js +1 -0
- package/packages/typescript/src/types/memory-storage.d.ts +28 -0
- package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
- package/packages/typescript/src/types/memory-storage.js +13 -0
- package/packages/typescript/src/types/memory.d.ts +438 -0
- package/packages/typescript/src/types/memory.d.ts.map +1 -0
- package/packages/typescript/src/types/memory.js +16 -0
- package/packages/typescript/src/types/message-service.d.ts +178 -0
- package/packages/typescript/src/types/message-service.d.ts.map +1 -0
- package/packages/typescript/src/types/message-service.js +1 -0
- package/packages/typescript/src/types/messaging.d.ts +358 -0
- package/packages/typescript/src/types/messaging.d.ts.map +1 -0
- package/packages/typescript/src/types/messaging.js +27 -0
- package/packages/typescript/src/types/model.d.ts +697 -0
- package/packages/typescript/src/types/model.d.ts.map +1 -0
- package/packages/typescript/src/types/model.js +247 -0
- package/packages/typescript/src/types/onboarding.d.ts +319 -0
- package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
- package/packages/typescript/src/types/onboarding.js +97 -0
- package/packages/typescript/src/types/pairing.d.ts +124 -0
- package/packages/typescript/src/types/pairing.d.ts.map +1 -0
- package/packages/typescript/src/types/pairing.js +32 -0
- package/packages/typescript/src/types/payment.d.ts +45 -0
- package/packages/typescript/src/types/payment.d.ts.map +1 -0
- package/packages/typescript/src/types/payment.js +1 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/pipeline-hooks.js +111 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-manifest.js +10 -0
- package/packages/typescript/src/types/plugin-store.d.ts +173 -0
- package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-store.js +1 -0
- package/packages/typescript/src/types/plugin.d.ts +336 -0
- package/packages/typescript/src/types/plugin.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin.js +1 -0
- package/packages/typescript/src/types/primitives.d.ts +176 -0
- package/packages/typescript/src/types/primitives.d.ts.map +1 -0
- package/packages/typescript/src/types/primitives.js +41 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-batcher.js +6 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
- package/packages/typescript/src/types/prompts.d.ts +39 -0
- package/packages/typescript/src/types/prompts.d.ts.map +1 -0
- package/packages/typescript/src/types/prompts.js +7 -0
- package/packages/typescript/src/types/proto.d.ts +60 -0
- package/packages/typescript/src/types/proto.d.ts.map +1 -0
- package/packages/typescript/src/types/proto.js +53 -0
- package/packages/typescript/src/types/runtime.d.ts +445 -0
- package/packages/typescript/src/types/runtime.d.ts.map +1 -0
- package/packages/typescript/src/types/runtime.js +1 -0
- package/packages/typescript/src/types/schema-builder.d.ts +43 -0
- package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
- package/packages/typescript/src/types/schema-builder.js +16 -0
- package/packages/typescript/src/types/schema.d.ts +99 -0
- package/packages/typescript/src/types/schema.d.ts.map +1 -0
- package/packages/typescript/src/types/schema.js +11 -0
- package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
- package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
- package/packages/typescript/src/types/service-interfaces.js +81 -0
- package/packages/typescript/src/types/service.d.ts +175 -0
- package/packages/typescript/src/types/service.d.ts.map +1 -0
- package/packages/typescript/src/types/service.js +79 -0
- package/packages/typescript/src/types/settings.d.ts +36 -0
- package/packages/typescript/src/types/settings.d.ts.map +1 -0
- package/packages/typescript/src/types/settings.js +1 -0
- package/packages/typescript/src/types/state.d.ts +251 -0
- package/packages/typescript/src/types/state.d.ts.map +1 -0
- package/packages/typescript/src/types/state.js +1 -0
- package/packages/typescript/src/types/streaming.d.ts +93 -0
- package/packages/typescript/src/types/streaming.d.ts.map +1 -0
- package/packages/typescript/src/types/streaming.js +21 -0
- package/packages/typescript/src/types/task.d.ts +122 -0
- package/packages/typescript/src/types/task.d.ts.map +1 -0
- package/packages/typescript/src/types/task.js +1 -0
- package/packages/typescript/src/types/tee.d.ts +3 -0
- package/packages/typescript/src/types/tee.d.ts.map +1 -0
- package/packages/typescript/src/types/tee.js +1 -0
- package/packages/typescript/src/types/testing.d.ts +15 -0
- package/packages/typescript/src/types/testing.d.ts.map +1 -0
- package/packages/typescript/src/types/testing.js +1 -0
- package/packages/typescript/src/types/tools.d.ts +166 -0
- package/packages/typescript/src/types/tools.d.ts.map +1 -0
- package/packages/typescript/src/types/tools.js +380 -0
- package/packages/typescript/src/types/trigger.d.ts +42 -0
- package/packages/typescript/src/types/trigger.d.ts.map +1 -0
- package/packages/typescript/src/types/trigger.js +1 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/index.js +175 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
- package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
- package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue.js +19 -0
- package/packages/typescript/src/utils/boolean.d.ts +50 -0
- package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
- package/packages/typescript/src/utils/boolean.js +73 -0
- package/packages/typescript/src/utils/buffer.d.ts +107 -0
- package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
- package/packages/typescript/src/utils/buffer.js +229 -0
- package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
- package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
- package/packages/typescript/src/utils/channel-utils.js +337 -0
- package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
- package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-catalog.js +144 -0
- package/packages/typescript/src/utils/context-routing.d.ts +25 -0
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-routing.js +164 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts +92 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
- package/packages/typescript/src/utils/crypto-compat.js +373 -0
- package/packages/typescript/src/utils/deterministic.d.ts +9 -0
- package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
- package/packages/typescript/src/utils/deterministic.js +70 -0
- package/packages/typescript/src/utils/environment.d.ts +125 -0
- package/packages/typescript/src/utils/environment.d.ts.map +1 -0
- package/packages/typescript/src/utils/environment.js +290 -0
- package/packages/typescript/src/utils/example-names.d.ts +3 -0
- package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
- package/packages/typescript/src/utils/example-names.js +30 -0
- package/packages/typescript/src/utils/json-llm.d.ts +17 -0
- package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
- package/packages/typescript/src/utils/json-llm.js +32 -0
- package/packages/typescript/src/utils/model-errors.d.ts +3 -0
- package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
- package/packages/typescript/src/utils/model-errors.js +23 -0
- package/packages/typescript/src/utils/node.d.ts +8 -0
- package/packages/typescript/src/utils/node.d.ts.map +1 -0
- package/packages/typescript/src/utils/node.js +12 -0
- package/packages/typescript/src/utils/paths.d.ts +97 -0
- package/packages/typescript/src/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/utils/paths.js +204 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher.js +4 -0
- package/packages/typescript/src/utils/retry.d.ts +128 -0
- package/packages/typescript/src/utils/retry.d.ts.map +1 -0
- package/packages/typescript/src/utils/retry.js +190 -0
- package/packages/typescript/src/utils/server-health.d.ts +35 -0
- package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
- package/packages/typescript/src/utils/server-health.js +76 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
- package/packages/typescript/src/utils/state-dir.d.ts +19 -0
- package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
- package/packages/typescript/src/utils/state-dir.js +24 -0
- package/packages/typescript/src/utils/streaming.d.ts +275 -0
- package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
- package/packages/typescript/src/utils/streaming.js +774 -0
- package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
- package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-normalize.js +42 -0
- package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
- package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-splitting.js +66 -0
- package/packages/typescript/src/utils/toon.d.ts +8 -0
- package/packages/typescript/src/utils/toon.d.ts.map +1 -0
- package/packages/typescript/src/utils/toon.js +346 -0
- package/packages/typescript/src/utils/type-guards.d.ts +25 -0
- package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
- package/packages/typescript/src/utils/type-guards.js +73 -0
- package/packages/typescript/src/utils/union-find.d.ts +30 -0
- package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
- package/packages/typescript/src/utils/union-find.js +81 -0
- package/packages/typescript/src/utils.d.ts +192 -0
- package/packages/typescript/src/utils.d.ts.map +1 -0
- package/packages/typescript/src/utils.js +1120 -0
- package/packages/typescript/src/validation/index.d.ts +8 -0
- package/packages/typescript/src/validation/index.d.ts.map +1 -0
- package/packages/typescript/src/validation/index.js +7 -0
- package/packages/typescript/src/validation/keywords.d.ts +26 -0
- package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
- package/packages/typescript/src/validation/keywords.js +76 -0
- package/packages/typescript/src/validation/secrets.d.ts +94 -0
- package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
- package/packages/typescript/src/validation/secrets.js +399 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.js +7 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +25 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts +45 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer.js +217 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.js +118 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message.js +260 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts +23 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-source.js +60 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.js +37 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.js +82 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts +91 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +10 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +13 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
- package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
- package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/index.js +16 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/index.js +1 -0
- package/packages/ui/src/components/composites/index.d.ts +27 -0
- package/packages/ui/src/components/composites/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/index.js +26 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/index.js +28 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
- package/packages/ui/src/components/composites/search/index.d.ts +3 -0
- package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/index.js +2 -0
- package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/search-input.js +10 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/searchbar.js +25 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/index.js +10 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +491 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +77 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
- package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
- package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/index.js +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/index.js +4 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
- package/packages/ui/src/components/primitives/index.d.ts +26 -0
- package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
- package/packages/ui/src/components/primitives/index.js +25 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/admin-dialog.js +48 -0
- package/packages/ui/src/components/ui/badge.d.ts +10 -0
- package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/badge.js +21 -0
- package/packages/ui/src/components/ui/banner.d.ts +17 -0
- package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/banner.js +29 -0
- package/packages/ui/src/components/ui/button.d.ts +13 -0
- package/packages/ui/src/components/ui/button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/button.js +40 -0
- package/packages/ui/src/components/ui/card.d.ts +15 -0
- package/packages/ui/src/components/ui/card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/card.js +32 -0
- package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.js +16 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
- package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
- package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
- package/packages/ui/src/components/ui/connection-status.js +25 -0
- package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.d.ts +25 -0
- package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.js +23 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
- package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
- package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
- package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.js +27 -0
- package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
- package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field-switch.js +10 -0
- package/packages/ui/src/components/ui/field.d.ts +12 -0
- package/packages/ui/src/components/ui/field.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field.js +21 -0
- package/packages/ui/src/components/ui/form-select.d.ts +14 -0
- package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/form-select.js +9 -0
- package/packages/ui/src/components/ui/grid.d.ts +10 -0
- package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
- package/packages/ui/src/components/ui/grid.js +31 -0
- package/packages/ui/src/components/ui/input.d.ts +12 -0
- package/packages/ui/src/components/ui/input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/input.js +29 -0
- package/packages/ui/src/components/ui/label.d.ts +5 -0
- package/packages/ui/src/components/ui/label.d.ts.map +1 -0
- package/packages/ui/src/components/ui/label.js +10 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/new-action-button.js +13 -0
- package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.js +10 -0
- package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/section-card.js +10 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
- package/packages/ui/src/components/ui/segmented-control.js +10 -0
- package/packages/ui/src/components/ui/select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/select.js +27 -0
- package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.js +60 -0
- package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
- package/packages/ui/src/components/ui/skeleton.js +24 -0
- package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
- package/packages/ui/src/components/ui/slider.js +7 -0
- package/packages/ui/src/components/ui/sonner.d.ts +2 -0
- package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/sonner.js +1 -0
- package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.d.ts +11 -0
- package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.js +40 -0
- package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
- package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/status-badge.js +70 -0
- package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/switch.js +7 -0
- package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tabs.js +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-editor.js +34 -0
- package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
- package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-input.js +1 -0
- package/packages/ui/src/components/ui/textarea.d.ts +12 -0
- package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
- package/packages/ui/src/components/ui/textarea.js +29 -0
- package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
- package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/themed-select.js +137 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip-extended.js +114 -0
- package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
- package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip.js +13 -0
- package/packages/ui/src/components/ui/typography.d.ts +15 -0
- package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
- package/packages/ui/src/components/ui/typography.js +46 -0
- package/packages/ui/src/hooks/index.d.ts +6 -0
- package/packages/ui/src/hooks/index.d.ts.map +1 -0
- package/packages/ui/src/hooks/index.js +5 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
- package/packages/ui/src/hooks/useClickOutside.js +22 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
- package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
- package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
- package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
- package/packages/ui/src/hooks/useTimeout.js +26 -0
- package/packages/ui/src/index.d.ts +8 -0
- package/packages/ui/src/index.d.ts.map +1 -0
- package/packages/ui/src/index.js +7 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/index.js +1 -0
- package/packages/ui/src/layouts/index.d.ts +5 -0
- package/packages/ui/src/layouts/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/index.js +4 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
- package/packages/ui/src/layouts/layout-test-utils.js +36 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/index.js +4 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +287 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.js +8 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +18 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/index.js +2 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +59 -0
- package/packages/ui/src/lib/floating-layers.d.ts +17 -0
- package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
- package/packages/ui/src/lib/floating-layers.js +20 -0
- package/packages/ui/src/lib/utils.d.ts +3 -0
- package/packages/ui/src/lib/utils.d.ts.map +1 -0
- package/packages/ui/src/lib/utils.js +5 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
- package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
- package/packages/ui/src/types/onboarding.d.ts +8 -0
- package/packages/ui/src/types/onboarding.d.ts.map +1 -0
- package/packages/ui/src/types/onboarding.js +17 -0
- package/styles/electrobun-mac-window-drag.css +94 -0
- package/styles/theme.css +73 -0
- package/README.md +0 -6
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -20
- package/dist/components/ui/banner.d.ts +0 -18
- package/dist/components/ui/banner.d.ts.map +0 -1
- package/dist/components/ui/banner.js +0 -27
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -16
- package/dist/components/ui/chat-atoms.d.ts +0 -26
- package/dist/components/ui/chat-atoms.d.ts.map +0 -1
- package/dist/components/ui/chat-atoms.js +0 -17
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.d.ts +0 -12
- package/dist/components/ui/confirm-delete.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.js +0 -13
- package/dist/components/ui/confirm-dialog.d.ts +0 -24
- package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/components/ui/confirm-dialog.js +0 -55
- package/dist/components/ui/connection-status.d.ts +0 -9
- package/dist/components/ui/connection-status.d.ts.map +0 -1
- package/dist/components/ui/connection-status.js +0 -25
- package/dist/components/ui/copy-button.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -20
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -35
- package/dist/components/ui/empty-state.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.d.ts +0 -18
- package/dist/components/ui/error-boundary.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.js +0 -27
- package/dist/components/ui/grid.d.ts +0 -11
- package/dist/components/ui/grid.d.ts.map +0 -1
- package/dist/components/ui/grid.js +0 -30
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -8
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -9
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/save-footer.d.ts.map +0 -1
- package/dist/components/ui/save-footer.js +0 -9
- package/dist/components/ui/search-bar.d.ts +0 -17
- package/dist/components/ui/search-bar.d.ts.map +0 -1
- package/dist/components/ui/search-bar.js +0 -19
- package/dist/components/ui/search-input.d.ts.map +0 -1
- package/dist/components/ui/search-input.js +0 -9
- package/dist/components/ui/section-card.d.ts.map +0 -1
- package/dist/components/ui/section-card.js +0 -9
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -26
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -25
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -7
- package/dist/components/ui/sonner.d.ts +0 -5
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/sonner.js +0 -15
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/stack.d.ts +0 -13
- package/dist/components/ui/stack.d.ts.map +0 -1
- package/dist/components/ui/stack.js +0 -39
- package/dist/components/ui/status-badge.d.ts +0 -20
- package/dist/components/ui/status-badge.d.ts.map +0 -1
- package/dist/components/ui/status-badge.js +0 -41
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -12
- package/dist/components/ui/tag-editor.d.ts +0 -24
- package/dist/components/ui/tag-editor.d.ts.map +0 -1
- package/dist/components/ui/tag-editor.js +0 -32
- package/dist/components/ui/tag-input.d.ts +0 -19
- package/dist/components/ui/tag-input.d.ts.map +0 -1
- package/dist/components/ui/tag-input.js +0 -28
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -8
- package/dist/components/ui/themed-select.d.ts +0 -27
- package/dist/components/ui/themed-select.d.ts.map +0 -1
- package/dist/components/ui/themed-select.js +0 -57
- package/dist/components/ui/tooltip-extended.d.ts +0 -76
- package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
- package/dist/components/ui/tooltip-extended.js +0 -128
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/typography.d.ts +0 -17
- package/dist/components/ui/typography.d.ts.map +0 -1
- package/dist/components/ui/typography.js +0 -44
- package/dist/index.d.ts +0 -42
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -43
- package/dist/lib/button-styles.d.ts +0 -12
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/button-styles.js +0 -11
- package/dist/lib/utils.d.ts +0 -6
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -8
- package/dist/package.json +0 -65
- package/dist/styles/theme.css +0 -193
- package/src/styles/theme.css +0 -193
- /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
import { DatabaseAdapter } from "../database";
|
|
2
|
+
import { DEFAULT_UUID } from "../types/primitives";
|
|
3
|
+
function asUuid(id) {
|
|
4
|
+
return id;
|
|
5
|
+
}
|
|
6
|
+
function roomTableKey(tableName, roomId) {
|
|
7
|
+
return `${tableName}:${String(roomId)}`;
|
|
8
|
+
}
|
|
9
|
+
function componentNaturalKey(params) {
|
|
10
|
+
return [
|
|
11
|
+
String(params.entityId),
|
|
12
|
+
params.type,
|
|
13
|
+
String(params.worldId ?? ""),
|
|
14
|
+
String(params.sourceEntityId ?? ""),
|
|
15
|
+
].join("::");
|
|
16
|
+
}
|
|
17
|
+
function isPlainObject(value) {
|
|
18
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19
|
+
}
|
|
20
|
+
function dataContainsFilter(value, filter) {
|
|
21
|
+
if (!filter)
|
|
22
|
+
return true;
|
|
23
|
+
if (!isPlainObject(value))
|
|
24
|
+
return false;
|
|
25
|
+
for (const [key, expected] of Object.entries(filter)) {
|
|
26
|
+
const actual = value[key];
|
|
27
|
+
if (isPlainObject(expected)) {
|
|
28
|
+
if (!dataContainsFilter(actual, expected)) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(expected)) {
|
|
34
|
+
if (!Array.isArray(actual))
|
|
35
|
+
return false;
|
|
36
|
+
for (const expectedItem of expected) {
|
|
37
|
+
const found = actual.some((actualItem) => {
|
|
38
|
+
if (isPlainObject(expectedItem)) {
|
|
39
|
+
return dataContainsFilter(actualItem, expectedItem);
|
|
40
|
+
}
|
|
41
|
+
return actualItem === expectedItem;
|
|
42
|
+
});
|
|
43
|
+
if (!found)
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (actual !== expected) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* In-memory database adapter.
|
|
56
|
+
*
|
|
57
|
+
* Intended for:
|
|
58
|
+
* - Unit / integration tests (fast, no external dependencies)
|
|
59
|
+
* - Benchmarks (measure agent logic without DB latency)
|
|
60
|
+
* - Serverless / ephemeral runs (no persistence needed)
|
|
61
|
+
*
|
|
62
|
+
* Implements the full batch-first `IDatabaseAdapter` surface using plain
|
|
63
|
+
* Maps and arrays. No single-item CRUD methods exist here -- those are
|
|
64
|
+
* convenience wrappers on AgentRuntime that delegate to these batch methods.
|
|
65
|
+
*
|
|
66
|
+
* WHY Maps and not a single big array:
|
|
67
|
+
* - `memoriesById` gives O(1) ID lookups (batch getMemoriesByIds)
|
|
68
|
+
* - `memoriesByRoom` gives O(1) room-scoped queries (getMemories, countMemories)
|
|
69
|
+
* - This mirrors how SQL adapters use indexed columns, keeping the
|
|
70
|
+
* in-memory adapter's performance characteristics honest.
|
|
71
|
+
*
|
|
72
|
+
* Persistence is process-local. Data is lost on restart.
|
|
73
|
+
*/
|
|
74
|
+
export class InMemoryDatabaseAdapter extends DatabaseAdapter {
|
|
75
|
+
db = {};
|
|
76
|
+
ready = false;
|
|
77
|
+
agents = new Map();
|
|
78
|
+
entities = new Map();
|
|
79
|
+
components = new Map();
|
|
80
|
+
componentIdsByEntity = new Map();
|
|
81
|
+
componentIdsByNaturalKey = new Map();
|
|
82
|
+
rooms = new Map();
|
|
83
|
+
worlds = new Map();
|
|
84
|
+
tasks = new Map();
|
|
85
|
+
logs = [];
|
|
86
|
+
memoriesById = new Map();
|
|
87
|
+
memoriesByRoom = new Map();
|
|
88
|
+
cache = new Map();
|
|
89
|
+
participantsByRoom = new Map();
|
|
90
|
+
roomsByParticipant = new Map();
|
|
91
|
+
participantUserState = new Map();
|
|
92
|
+
// Pairing storage
|
|
93
|
+
pairingRequests = new Map();
|
|
94
|
+
pairingAllowlist = new Map();
|
|
95
|
+
cloneComponent(component) {
|
|
96
|
+
return {
|
|
97
|
+
...component,
|
|
98
|
+
data: component.data
|
|
99
|
+
? { ...component.data }
|
|
100
|
+
: component.data,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
attachComponents(entity, components) {
|
|
104
|
+
const attachedComponents = components ?? this.getStoredComponentsForEntity(entity.id);
|
|
105
|
+
if (!attachedComponents.length) {
|
|
106
|
+
return { ...entity };
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
...entity,
|
|
110
|
+
components: attachedComponents.map((component) => this.cloneComponent(component)),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
getStoredComponentsForEntity(entityId, options) {
|
|
114
|
+
if (!entityId)
|
|
115
|
+
return [];
|
|
116
|
+
const componentIds = this.componentIdsByEntity.get(String(entityId));
|
|
117
|
+
if (!componentIds)
|
|
118
|
+
return [];
|
|
119
|
+
const components = [];
|
|
120
|
+
for (const componentId of componentIds) {
|
|
121
|
+
const component = this.components.get(componentId);
|
|
122
|
+
if (!component)
|
|
123
|
+
continue;
|
|
124
|
+
if (options?.worldId !== undefined &&
|
|
125
|
+
component.worldId !== options.worldId) {
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (options?.sourceEntityId !== undefined &&
|
|
129
|
+
component.sourceEntityId !== options.sourceEntityId) {
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
components.push(component);
|
|
133
|
+
}
|
|
134
|
+
return components;
|
|
135
|
+
}
|
|
136
|
+
indexComponent(component) {
|
|
137
|
+
const componentId = String(component.id);
|
|
138
|
+
this.components.set(componentId, this.cloneComponent(component));
|
|
139
|
+
const entityKey = String(component.entityId);
|
|
140
|
+
const entityComponents = this.componentIdsByEntity.get(entityKey) ?? new Set();
|
|
141
|
+
entityComponents.add(componentId);
|
|
142
|
+
this.componentIdsByEntity.set(entityKey, entityComponents);
|
|
143
|
+
this.componentIdsByNaturalKey.set(componentNaturalKey(component), componentId);
|
|
144
|
+
}
|
|
145
|
+
removeComponentIndexes(component) {
|
|
146
|
+
if (!component)
|
|
147
|
+
return;
|
|
148
|
+
const componentId = String(component.id);
|
|
149
|
+
const entityKey = String(component.entityId);
|
|
150
|
+
const entityComponents = this.componentIdsByEntity.get(entityKey);
|
|
151
|
+
if (entityComponents) {
|
|
152
|
+
entityComponents.delete(componentId);
|
|
153
|
+
if (entityComponents.size === 0) {
|
|
154
|
+
this.componentIdsByEntity.delete(entityKey);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
this.componentIdsByNaturalKey.delete(componentNaturalKey(component));
|
|
158
|
+
}
|
|
159
|
+
async initialize(_config) {
|
|
160
|
+
this.ready = true;
|
|
161
|
+
}
|
|
162
|
+
async init() {
|
|
163
|
+
this.ready = true;
|
|
164
|
+
}
|
|
165
|
+
async runPluginMigrations() {
|
|
166
|
+
// no-op
|
|
167
|
+
}
|
|
168
|
+
async runMigrations() {
|
|
169
|
+
// no-op
|
|
170
|
+
}
|
|
171
|
+
async isReady() {
|
|
172
|
+
return this.ready;
|
|
173
|
+
}
|
|
174
|
+
async close() {
|
|
175
|
+
this.ready = false;
|
|
176
|
+
}
|
|
177
|
+
async getConnection() {
|
|
178
|
+
return this.db;
|
|
179
|
+
}
|
|
180
|
+
// Batch agent methods
|
|
181
|
+
async getAgentsByIds(agentIds) {
|
|
182
|
+
const agents = [];
|
|
183
|
+
for (const id of agentIds) {
|
|
184
|
+
const agent = this.agents.get(String(id));
|
|
185
|
+
if (agent?.id) {
|
|
186
|
+
agents.push(agent);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return agents;
|
|
190
|
+
}
|
|
191
|
+
async createAgents(agents) {
|
|
192
|
+
const ids = [];
|
|
193
|
+
for (const agent of agents) {
|
|
194
|
+
if (agent.id) {
|
|
195
|
+
this.agents.set(String(agent.id), agent);
|
|
196
|
+
ids.push(agent.id);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return ids;
|
|
200
|
+
}
|
|
201
|
+
async upsertAgents(agents) {
|
|
202
|
+
// WHY simple set: Map.set() overwrites if key exists, inserts if not.
|
|
203
|
+
// This is the InMemory equivalent of ON CONFLICT DO UPDATE.
|
|
204
|
+
for (const agent of agents) {
|
|
205
|
+
if (agent.id) {
|
|
206
|
+
this.agents.set(String(agent.id), agent);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
async updateAgents(updates) {
|
|
211
|
+
for (const { agentId, agent } of updates) {
|
|
212
|
+
const existing = this.agents.get(String(agentId)) ?? {};
|
|
213
|
+
this.agents.set(String(agentId), { ...existing, ...agent, id: agentId });
|
|
214
|
+
}
|
|
215
|
+
return true;
|
|
216
|
+
}
|
|
217
|
+
async deleteAgents(agentIds) {
|
|
218
|
+
for (const id of agentIds) {
|
|
219
|
+
this.agents.delete(String(id));
|
|
220
|
+
}
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
async countAgents() {
|
|
224
|
+
return this.agents.size;
|
|
225
|
+
}
|
|
226
|
+
async cleanupAgents() {
|
|
227
|
+
// WHY no-op: InMemory adapter has no persistent storage, so no cleanup needed.
|
|
228
|
+
// Agents are automatically cleared when process restarts.
|
|
229
|
+
}
|
|
230
|
+
async getAgents() {
|
|
231
|
+
return Array.from(this.agents.values());
|
|
232
|
+
}
|
|
233
|
+
async ensureEmbeddingDimension(_dimension) {
|
|
234
|
+
// no-op
|
|
235
|
+
}
|
|
236
|
+
async transaction(callback, _options) {
|
|
237
|
+
return callback(this);
|
|
238
|
+
}
|
|
239
|
+
async queryEntities(_params) {
|
|
240
|
+
const matchedComponentsByEntity = new Map();
|
|
241
|
+
const hasComponentQuery = _params.componentType !== undefined ||
|
|
242
|
+
_params.componentDataFilter !== undefined ||
|
|
243
|
+
_params.worldId !== undefined;
|
|
244
|
+
if (hasComponentQuery) {
|
|
245
|
+
for (const component of this.components.values()) {
|
|
246
|
+
if (_params.agentId && component.agentId !== _params.agentId)
|
|
247
|
+
continue;
|
|
248
|
+
if (_params.entityIds?.length &&
|
|
249
|
+
!_params.entityIds.includes(component.entityId)) {
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
if (_params.worldId !== undefined &&
|
|
253
|
+
component.worldId !== _params.worldId) {
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
if (_params.componentType !== undefined &&
|
|
257
|
+
component.type !== _params.componentType) {
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
if (_params.componentDataFilter !== undefined &&
|
|
261
|
+
!dataContainsFilter(component.data, _params.componentDataFilter)) {
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
const entityKey = String(component.entityId);
|
|
265
|
+
const bucket = matchedComponentsByEntity.get(entityKey) ?? [];
|
|
266
|
+
bucket.push(this.cloneComponent(component));
|
|
267
|
+
matchedComponentsByEntity.set(entityKey, bucket);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
let entityIds = [];
|
|
271
|
+
if (matchedComponentsByEntity.size > 0) {
|
|
272
|
+
entityIds = Array.from(matchedComponentsByEntity.keys()).map(asUuid);
|
|
273
|
+
}
|
|
274
|
+
else if (_params.entityIds?.length) {
|
|
275
|
+
entityIds = [..._params.entityIds];
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return [];
|
|
279
|
+
}
|
|
280
|
+
const offset = _params.offset ?? 0;
|
|
281
|
+
const limit = _params.limit ?? entityIds.length;
|
|
282
|
+
entityIds = entityIds.slice(offset, offset + limit);
|
|
283
|
+
const entities = [];
|
|
284
|
+
for (const entityId of entityIds) {
|
|
285
|
+
const entity = this.entities.get(String(entityId));
|
|
286
|
+
if (!entity)
|
|
287
|
+
continue;
|
|
288
|
+
if (_params.agentId &&
|
|
289
|
+
entity.agentId &&
|
|
290
|
+
entity.agentId !== _params.agentId) {
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
const matchedComponents = matchedComponentsByEntity.get(String(entityId)) ?? [];
|
|
294
|
+
const components = _params.includeAllComponents
|
|
295
|
+
? this.getStoredComponentsForEntity(entity.id)
|
|
296
|
+
: matchedComponents;
|
|
297
|
+
entities.push(this.attachComponents(entity, components));
|
|
298
|
+
}
|
|
299
|
+
return entities;
|
|
300
|
+
}
|
|
301
|
+
async getEntitiesForRooms(roomIds, _includeComponents) {
|
|
302
|
+
const result = [];
|
|
303
|
+
for (const roomId of roomIds) {
|
|
304
|
+
const participantSet = this.participantsByRoom.get(String(roomId));
|
|
305
|
+
const entities = [];
|
|
306
|
+
if (participantSet) {
|
|
307
|
+
for (const entityIdStr of participantSet) {
|
|
308
|
+
const entity = this.entities.get(entityIdStr);
|
|
309
|
+
if (entity) {
|
|
310
|
+
entities.push(_includeComponents
|
|
311
|
+
? this.attachComponents(entity)
|
|
312
|
+
: { ...entity });
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
result.push({ roomId, entities });
|
|
317
|
+
}
|
|
318
|
+
return result;
|
|
319
|
+
}
|
|
320
|
+
async createEntities(entities) {
|
|
321
|
+
const ids = [];
|
|
322
|
+
for (const e of entities) {
|
|
323
|
+
if (!e.id)
|
|
324
|
+
throw new Error("Entity id is required");
|
|
325
|
+
this.entities.set(String(e.id), e);
|
|
326
|
+
ids.push(e.id);
|
|
327
|
+
}
|
|
328
|
+
return ids;
|
|
329
|
+
}
|
|
330
|
+
async upsertEntities(entities) {
|
|
331
|
+
// WHY simple set: For InMemory, upsert is just Map.set() which naturally
|
|
332
|
+
// handles both insert (new key) and update (existing key) cases.
|
|
333
|
+
for (const entity of entities) {
|
|
334
|
+
this.entities.set(String(entity.id), entity);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
async searchEntitiesByName(params) {
|
|
338
|
+
// WHY O(N) scan: InMemory has no indexing, so we iterate all entities.
|
|
339
|
+
// Case-insensitive substring match on any name in the names array.
|
|
340
|
+
const lowerQuery = params.query.toLowerCase();
|
|
341
|
+
const limit = params.limit ?? 10;
|
|
342
|
+
const matches = [];
|
|
343
|
+
for (const entity of this.entities.values()) {
|
|
344
|
+
if (entity.agentId !== params.agentId)
|
|
345
|
+
continue;
|
|
346
|
+
const hasMatch = entity.names?.some((name) => name.toLowerCase().includes(lowerQuery));
|
|
347
|
+
if (hasMatch) {
|
|
348
|
+
matches.push(entity);
|
|
349
|
+
if (matches.length >= limit)
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return matches;
|
|
354
|
+
}
|
|
355
|
+
async getEntitiesByNames(params) {
|
|
356
|
+
// WHY O(N) scan: InMemory has no indexing. Match ANY name in entity.names.
|
|
357
|
+
// Case-sensitive exact match (consistent with SQL implementations).
|
|
358
|
+
const nameSet = new Set(params.names);
|
|
359
|
+
const matches = [];
|
|
360
|
+
for (const entity of this.entities.values()) {
|
|
361
|
+
if (entity.agentId !== params.agentId)
|
|
362
|
+
continue;
|
|
363
|
+
const hasMatch = entity.names?.some((name) => nameSet.has(name));
|
|
364
|
+
if (hasMatch) {
|
|
365
|
+
matches.push(entity);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return matches;
|
|
369
|
+
}
|
|
370
|
+
async getComponentsByNaturalKeys(keys) {
|
|
371
|
+
return keys.map((key) => {
|
|
372
|
+
const componentId = this.componentIdsByNaturalKey.get(componentNaturalKey(key));
|
|
373
|
+
const component = componentId
|
|
374
|
+
? this.components.get(componentId)
|
|
375
|
+
: undefined;
|
|
376
|
+
return component ? this.cloneComponent(component) : null;
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
async getComponentsForEntities(_entityIds, _worldId, _sourceEntityId) {
|
|
380
|
+
const components = [];
|
|
381
|
+
for (const entityId of _entityIds) {
|
|
382
|
+
components.push(...this.getStoredComponentsForEntity(entityId, {
|
|
383
|
+
worldId: _worldId,
|
|
384
|
+
sourceEntityId: _sourceEntityId,
|
|
385
|
+
}).map((component) => this.cloneComponent(component)));
|
|
386
|
+
}
|
|
387
|
+
return components;
|
|
388
|
+
}
|
|
389
|
+
// Batch entity methods
|
|
390
|
+
async getEntitiesByIds(entityIds) {
|
|
391
|
+
const entities = [];
|
|
392
|
+
for (const entityId of entityIds) {
|
|
393
|
+
const entity = this.entities.get(String(entityId));
|
|
394
|
+
if (entity)
|
|
395
|
+
entities.push({ ...entity });
|
|
396
|
+
}
|
|
397
|
+
return entities;
|
|
398
|
+
}
|
|
399
|
+
async updateEntities(entities) {
|
|
400
|
+
for (const entity of entities) {
|
|
401
|
+
this.entities.set(String(entity.id), entity);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
async deleteEntities(entityIds) {
|
|
405
|
+
for (const entityId of entityIds) {
|
|
406
|
+
this.entities.delete(String(entityId));
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
// Batch component methods
|
|
410
|
+
async createComponents(components) {
|
|
411
|
+
for (const component of components) {
|
|
412
|
+
this.indexComponent(component);
|
|
413
|
+
}
|
|
414
|
+
return components.map((c) => c.id);
|
|
415
|
+
}
|
|
416
|
+
async getComponentsByIds(_componentIds) {
|
|
417
|
+
return _componentIds
|
|
418
|
+
.map((componentId) => this.components.get(String(componentId)))
|
|
419
|
+
.filter((component) => component !== undefined)
|
|
420
|
+
.map((component) => this.cloneComponent(component));
|
|
421
|
+
}
|
|
422
|
+
async updateComponents(_components) {
|
|
423
|
+
for (const component of _components) {
|
|
424
|
+
const existing = this.components.get(String(component.id));
|
|
425
|
+
if (existing) {
|
|
426
|
+
this.removeComponentIndexes(existing);
|
|
427
|
+
}
|
|
428
|
+
this.indexComponent(component);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
async deleteComponents(_componentIds) {
|
|
432
|
+
for (const componentId of _componentIds) {
|
|
433
|
+
const existing = this.components.get(String(componentId));
|
|
434
|
+
this.removeComponentIndexes(existing);
|
|
435
|
+
this.components.delete(String(componentId));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
async upsertComponents(_components, _options) {
|
|
439
|
+
for (const component of _components) {
|
|
440
|
+
const existingId = this.componentIdsByNaturalKey.get(componentNaturalKey(component));
|
|
441
|
+
if (!existingId) {
|
|
442
|
+
this.indexComponent(component);
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
const existing = this.components.get(existingId);
|
|
446
|
+
if (!existing) {
|
|
447
|
+
this.indexComponent(component);
|
|
448
|
+
continue;
|
|
449
|
+
}
|
|
450
|
+
this.removeComponentIndexes(existing);
|
|
451
|
+
this.indexComponent({
|
|
452
|
+
...existing,
|
|
453
|
+
agentId: component.agentId,
|
|
454
|
+
roomId: component.roomId,
|
|
455
|
+
data: component.data,
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
async patchComponents(_updates, _options) {
|
|
460
|
+
// InMemory does not persist components; no-op for compatibility.
|
|
461
|
+
}
|
|
462
|
+
async getMemories(params) {
|
|
463
|
+
const effectiveLimit = params.limit ?? params.count ?? Infinity;
|
|
464
|
+
const roomId = params.roomId ?? DEFAULT_UUID;
|
|
465
|
+
const tableName = params.tableName ?? "messages";
|
|
466
|
+
let all = this.memoriesByRoom.get(roomTableKey(tableName, roomId)) ?? [];
|
|
467
|
+
// Filter by timestamp range (start/end are timestamps in milliseconds)
|
|
468
|
+
// This supports history compaction - only return messages after the compaction point
|
|
469
|
+
if (params.start !== undefined || params.end !== undefined) {
|
|
470
|
+
all = all.filter((memory) => {
|
|
471
|
+
const createdAt = memory.createdAt ?? 0;
|
|
472
|
+
if (params.start !== undefined && createdAt < params.start) {
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
if (params.end !== undefined && createdAt > params.end) {
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
return true;
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
// WHY: In-memory metadata filtering uses deep equality check for each
|
|
482
|
+
// filter key. This is less efficient than SQL containment operators but
|
|
483
|
+
// correct for nested objects/arrays. Matches PG @> and MySQL JSON_CONTAINS semantics.
|
|
484
|
+
if (params.metadata) {
|
|
485
|
+
const filterMeta = params.metadata;
|
|
486
|
+
all = all.filter((memory) => {
|
|
487
|
+
if (!memory.metadata)
|
|
488
|
+
return false;
|
|
489
|
+
const memMeta = memory.metadata;
|
|
490
|
+
// Check if memory.metadata contains all key-value pairs from params.metadata
|
|
491
|
+
for (const [key, value] of Object.entries(filterMeta)) {
|
|
492
|
+
if (!(key in memMeta))
|
|
493
|
+
return false;
|
|
494
|
+
// Deep equality check for nested objects/arrays
|
|
495
|
+
if (JSON.stringify(memMeta[key]) !== JSON.stringify(value)) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return true;
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
// Match plugin-sql ordering: newest first, then id desc as tiebreaker.
|
|
503
|
+
// Without this, `count: N` returns the N oldest instead of the N newest,
|
|
504
|
+
// which silently diverges from plugin-sql once a room exceeds N memories.
|
|
505
|
+
all = all.slice().sort((a, b) => {
|
|
506
|
+
const ta = a.createdAt ?? 0;
|
|
507
|
+
const tb = b.createdAt ?? 0;
|
|
508
|
+
if (ta !== tb)
|
|
509
|
+
return tb - ta;
|
|
510
|
+
return String(b.id ?? "").localeCompare(String(a.id ?? ""));
|
|
511
|
+
});
|
|
512
|
+
const offset = params.offset ?? 0;
|
|
513
|
+
return all.slice(offset, offset + (effectiveLimit === Infinity ? all.length : effectiveLimit));
|
|
514
|
+
}
|
|
515
|
+
async getMemoriesByIds(ids) {
|
|
516
|
+
const out = [];
|
|
517
|
+
for (const id of ids) {
|
|
518
|
+
const m = this.memoriesById.get(String(id));
|
|
519
|
+
if (m)
|
|
520
|
+
out.push(m);
|
|
521
|
+
}
|
|
522
|
+
return out;
|
|
523
|
+
}
|
|
524
|
+
async getMemoriesByRoomIds(params) {
|
|
525
|
+
const limit = params.limit ?? 20;
|
|
526
|
+
const out = [];
|
|
527
|
+
for (const rid of params.roomIds) {
|
|
528
|
+
const list = this.memoriesByRoom.get(roomTableKey(params.tableName, rid)) ?? [];
|
|
529
|
+
for (const m of list) {
|
|
530
|
+
out.push(m);
|
|
531
|
+
if (out.length >= limit)
|
|
532
|
+
return out;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return out;
|
|
536
|
+
}
|
|
537
|
+
async getCachedEmbeddings() {
|
|
538
|
+
return [];
|
|
539
|
+
}
|
|
540
|
+
async getLogs(params) {
|
|
541
|
+
const effectiveLimit = params.limit ?? 10;
|
|
542
|
+
let filtered = this.logs;
|
|
543
|
+
// Filter by entityId if provided
|
|
544
|
+
if (params.entityId !== undefined) {
|
|
545
|
+
filtered = filtered.filter((log) => log.entityId === params.entityId);
|
|
546
|
+
}
|
|
547
|
+
// Filter by roomId if provided
|
|
548
|
+
if (params.roomId !== undefined) {
|
|
549
|
+
filtered = filtered.filter((log) => log.roomId === params.roomId);
|
|
550
|
+
}
|
|
551
|
+
// Filter by type if provided
|
|
552
|
+
if (params.type !== undefined) {
|
|
553
|
+
filtered = filtered.filter((log) => log.type === params.type);
|
|
554
|
+
}
|
|
555
|
+
// Apply offset (skip first N results)
|
|
556
|
+
const offset = params.offset ?? 0;
|
|
557
|
+
filtered = filtered.slice(offset);
|
|
558
|
+
// Apply limit (limit results)
|
|
559
|
+
filtered = filtered.slice(0, effectiveLimit);
|
|
560
|
+
return filtered;
|
|
561
|
+
}
|
|
562
|
+
// Batch log methods
|
|
563
|
+
async getLogsByIds(logIds) {
|
|
564
|
+
const idSet = new Set(logIds.map(String));
|
|
565
|
+
return this.logs.filter((l) => idSet.has(String(l.id)));
|
|
566
|
+
}
|
|
567
|
+
async createLogs(params) {
|
|
568
|
+
for (const param of params) {
|
|
569
|
+
const id = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
570
|
+
? crypto.randomUUID()
|
|
571
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
572
|
+
this.logs.push({
|
|
573
|
+
id: asUuid(id),
|
|
574
|
+
createdAt: new Date(),
|
|
575
|
+
entityId: param.entityId,
|
|
576
|
+
roomId: param.roomId,
|
|
577
|
+
type: param.type,
|
|
578
|
+
body: param.body,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
async updateLogs(logs) {
|
|
583
|
+
for (const { id, updates } of logs) {
|
|
584
|
+
const log = this.logs.find((l) => String(l.id) === String(id));
|
|
585
|
+
if (log) {
|
|
586
|
+
Object.assign(log, updates);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
async deleteLogs(logIds) {
|
|
591
|
+
const idSet = new Set(logIds.map(String));
|
|
592
|
+
this.logs = this.logs.filter((l) => !idSet.has(String(l.id)));
|
|
593
|
+
}
|
|
594
|
+
async searchMemories() {
|
|
595
|
+
return [];
|
|
596
|
+
}
|
|
597
|
+
// Batch memory methods
|
|
598
|
+
async createMemories(memories) {
|
|
599
|
+
const ids = [];
|
|
600
|
+
for (const { memory, tableName } of memories) {
|
|
601
|
+
const gen = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
602
|
+
? crypto.randomUUID()
|
|
603
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
604
|
+
const id = memory.id ? String(memory.id) : gen;
|
|
605
|
+
const stored = {
|
|
606
|
+
...memory,
|
|
607
|
+
id: asUuid(id),
|
|
608
|
+
};
|
|
609
|
+
this.memoriesById.set(id, stored);
|
|
610
|
+
const roomId = memory.roomId ?? DEFAULT_UUID;
|
|
611
|
+
const key = roomTableKey(tableName, roomId);
|
|
612
|
+
const list = this.memoriesByRoom.get(key) ?? [];
|
|
613
|
+
list.push(stored);
|
|
614
|
+
this.memoriesByRoom.set(key, list);
|
|
615
|
+
ids.push(asUuid(id));
|
|
616
|
+
}
|
|
617
|
+
return ids;
|
|
618
|
+
}
|
|
619
|
+
async updateMemories(memories) {
|
|
620
|
+
for (const memory of memories) {
|
|
621
|
+
const existing = this.memoriesById.get(String(memory.id));
|
|
622
|
+
if (!existing) {
|
|
623
|
+
// WHY: Changed from returning false to skipping. Update failures should
|
|
624
|
+
// ideally throw, but silently skipping non-existent memories maintains
|
|
625
|
+
// backward compatibility with callers that may not check return values.
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
const merged = { ...existing, ...memory };
|
|
629
|
+
this.memoriesById.set(String(memory.id), merged);
|
|
630
|
+
// Update reference in memoriesByRoom to keep consistency
|
|
631
|
+
const oldRoomId = existing.roomId ?? DEFAULT_UUID;
|
|
632
|
+
const newRoomId = merged.roomId ?? DEFAULT_UUID;
|
|
633
|
+
for (const [key, list] of this.memoriesByRoom) {
|
|
634
|
+
const idx = list.findIndex((m) => String(m.id) === String(memory.id));
|
|
635
|
+
if (idx !== -1) {
|
|
636
|
+
if (String(oldRoomId) !== String(newRoomId)) {
|
|
637
|
+
const tableName = key.split(":")[0];
|
|
638
|
+
list.splice(idx, 1);
|
|
639
|
+
const newKey = roomTableKey(tableName, newRoomId);
|
|
640
|
+
const newList = this.memoriesByRoom.get(newKey) ?? [];
|
|
641
|
+
newList.push(merged);
|
|
642
|
+
this.memoriesByRoom.set(newKey, newList);
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
list[idx] = merged;
|
|
646
|
+
}
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
async upsertMemories(memories, _options) {
|
|
653
|
+
for (const { memory, tableName } of memories) {
|
|
654
|
+
const id = memory.id;
|
|
655
|
+
if (id == null) {
|
|
656
|
+
await this.createMemories([{ memory, tableName }]);
|
|
657
|
+
continue;
|
|
658
|
+
}
|
|
659
|
+
if (this.memoriesById.has(String(id))) {
|
|
660
|
+
await this.updateMemories([{ ...memory, id }]);
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
await this.createMemories([{ memory, tableName }]);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
async deleteMemories(memoryIds) {
|
|
668
|
+
const idSet = new Set(memoryIds.map(String));
|
|
669
|
+
for (const id of memoryIds) {
|
|
670
|
+
this.memoriesById.delete(String(id));
|
|
671
|
+
}
|
|
672
|
+
// Clean up memoriesByRoom references
|
|
673
|
+
for (const [key, list] of this.memoriesByRoom) {
|
|
674
|
+
const filtered = list.filter((m) => !idSet.has(String(m.id)));
|
|
675
|
+
if (filtered.length === 0) {
|
|
676
|
+
this.memoriesByRoom.delete(key);
|
|
677
|
+
}
|
|
678
|
+
else if (filtered.length !== list.length) {
|
|
679
|
+
this.memoriesByRoom.set(key, filtered);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
async deleteAllMemories(roomIds, tableName) {
|
|
684
|
+
for (const roomId of roomIds) {
|
|
685
|
+
const key = roomTableKey(tableName, roomId);
|
|
686
|
+
const memories = this.memoriesByRoom.get(key) ?? [];
|
|
687
|
+
for (const mem of memories) {
|
|
688
|
+
this.memoriesById.delete(String(mem.id));
|
|
689
|
+
}
|
|
690
|
+
this.memoriesByRoom.delete(key);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
async countMemories(params) {
|
|
694
|
+
const roomIds = params.roomIds ?? [];
|
|
695
|
+
const tbl = params.tableName ?? "messages";
|
|
696
|
+
const u = params.unique;
|
|
697
|
+
let total = 0;
|
|
698
|
+
if (roomIds.length === 0) {
|
|
699
|
+
// No room filter: count all memories matching tableName and other filters (consistent with SQL/store behavior)
|
|
700
|
+
const prefix = `${tbl}:`;
|
|
701
|
+
for (const [key, memories] of this.memoriesByRoom) {
|
|
702
|
+
if (!key.startsWith(prefix))
|
|
703
|
+
continue;
|
|
704
|
+
let list = memories;
|
|
705
|
+
if (params.entityId)
|
|
706
|
+
list = list.filter((m) => m.entityId === params.entityId);
|
|
707
|
+
if (params.agentId)
|
|
708
|
+
list = list.filter((m) => m.agentId === params.agentId);
|
|
709
|
+
total += u ? list.filter((m) => m.unique).length : list.length;
|
|
710
|
+
}
|
|
711
|
+
return total;
|
|
712
|
+
}
|
|
713
|
+
for (const roomId of roomIds) {
|
|
714
|
+
const key = roomTableKey(tbl, roomId);
|
|
715
|
+
const memories = this.memoriesByRoom.get(key) ?? [];
|
|
716
|
+
let list = memories;
|
|
717
|
+
if (params.entityId)
|
|
718
|
+
list = list.filter((m) => m.entityId === params.entityId);
|
|
719
|
+
if (params.agentId)
|
|
720
|
+
list = list.filter((m) => m.agentId === params.agentId);
|
|
721
|
+
total += u ? list.filter((m) => m.unique).length : list.length;
|
|
722
|
+
}
|
|
723
|
+
return total;
|
|
724
|
+
}
|
|
725
|
+
// Batch world methods
|
|
726
|
+
async getWorldsByIds(worldIds) {
|
|
727
|
+
const worlds = [];
|
|
728
|
+
for (const id of worldIds) {
|
|
729
|
+
const world = this.worlds.get(String(id));
|
|
730
|
+
if (world) {
|
|
731
|
+
worlds.push(world);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return worlds;
|
|
735
|
+
}
|
|
736
|
+
async createWorlds(worlds) {
|
|
737
|
+
const ids = [];
|
|
738
|
+
for (const world of worlds) {
|
|
739
|
+
this.worlds.set(String(world.id), world);
|
|
740
|
+
ids.push(world.id);
|
|
741
|
+
}
|
|
742
|
+
return ids;
|
|
743
|
+
}
|
|
744
|
+
async upsertWorlds(worlds) {
|
|
745
|
+
// WHY simple set: Map.set() handles both insert and update atomically.
|
|
746
|
+
for (const world of worlds) {
|
|
747
|
+
this.worlds.set(String(world.id), world);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
async deleteWorlds(worldIds) {
|
|
751
|
+
for (const id of worldIds) {
|
|
752
|
+
this.worlds.delete(String(id));
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
async updateWorlds(worlds) {
|
|
756
|
+
for (const world of worlds) {
|
|
757
|
+
this.worlds.set(String(world.id), world);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
async getAllWorlds() {
|
|
761
|
+
return Array.from(this.worlds.values());
|
|
762
|
+
}
|
|
763
|
+
// Batch room methods
|
|
764
|
+
async updateRooms(rooms) {
|
|
765
|
+
for (const room of rooms) {
|
|
766
|
+
this.rooms.set(String(room.id), room);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
async deleteRooms(roomIds) {
|
|
770
|
+
for (const id of roomIds) {
|
|
771
|
+
this.rooms.delete(String(id));
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
async getRoomsByIds(roomIds) {
|
|
775
|
+
const out = [];
|
|
776
|
+
for (const id of roomIds) {
|
|
777
|
+
const r = this.rooms.get(String(id));
|
|
778
|
+
if (r)
|
|
779
|
+
out.push(r);
|
|
780
|
+
}
|
|
781
|
+
return out;
|
|
782
|
+
}
|
|
783
|
+
async createRooms(rooms) {
|
|
784
|
+
const ids = [];
|
|
785
|
+
for (const r of rooms) {
|
|
786
|
+
this.rooms.set(String(r.id), r);
|
|
787
|
+
ids.push(r.id);
|
|
788
|
+
}
|
|
789
|
+
return ids;
|
|
790
|
+
}
|
|
791
|
+
async upsertRooms(rooms) {
|
|
792
|
+
// WHY simple set: InMemory upsert is just Map.set() - idempotent by nature.
|
|
793
|
+
for (const room of rooms) {
|
|
794
|
+
this.rooms.set(String(room.id), room);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
async getRoomsForParticipants(entityIds) {
|
|
798
|
+
const out = new Set();
|
|
799
|
+
for (const id of entityIds) {
|
|
800
|
+
const set = this.roomsByParticipant.get(String(id));
|
|
801
|
+
if (!set)
|
|
802
|
+
continue;
|
|
803
|
+
for (const roomId of set.values())
|
|
804
|
+
out.add(roomId);
|
|
805
|
+
}
|
|
806
|
+
return Array.from(out.values()).map(asUuid);
|
|
807
|
+
}
|
|
808
|
+
async getRoomsByWorlds(worldIds, limit, offset) {
|
|
809
|
+
let out = [];
|
|
810
|
+
for (const room of this.rooms.values()) {
|
|
811
|
+
if (room.worldId && worldIds.includes(room.worldId)) {
|
|
812
|
+
out.push(room);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
const off = offset ?? 0;
|
|
816
|
+
out = out.slice(off);
|
|
817
|
+
if (limit != null)
|
|
818
|
+
out = out.slice(0, limit);
|
|
819
|
+
return out;
|
|
820
|
+
}
|
|
821
|
+
async getParticipantsForEntities(entityIds) {
|
|
822
|
+
const out = [];
|
|
823
|
+
for (const entityId of entityIds) {
|
|
824
|
+
const entity = this.entities.get(String(entityId));
|
|
825
|
+
if (entity)
|
|
826
|
+
out.push({ id: entityId, entity });
|
|
827
|
+
}
|
|
828
|
+
return out;
|
|
829
|
+
}
|
|
830
|
+
async getParticipantsForRooms(roomIds) {
|
|
831
|
+
const result = [];
|
|
832
|
+
for (const roomId of roomIds) {
|
|
833
|
+
const set = this.participantsByRoom.get(String(roomId));
|
|
834
|
+
const entityIds = set ? Array.from(set.values()).map(asUuid) : [];
|
|
835
|
+
result.push({ roomId, entityIds });
|
|
836
|
+
}
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
async createRoomParticipants(entityIds, roomId) {
|
|
840
|
+
// WHY: InMemory doesn't have real participant record IDs (it's just a set).
|
|
841
|
+
// We generate UUIDs to match the interface contract, even though they're not stored.
|
|
842
|
+
const roomKey = String(roomId);
|
|
843
|
+
const participants = this.participantsByRoom.get(roomKey) ?? new Set();
|
|
844
|
+
const ids = [];
|
|
845
|
+
for (const eid of entityIds) {
|
|
846
|
+
const entityKey = String(eid);
|
|
847
|
+
participants.add(entityKey);
|
|
848
|
+
const rooms = this.roomsByParticipant.get(entityKey) ?? new Set();
|
|
849
|
+
rooms.add(roomKey);
|
|
850
|
+
this.roomsByParticipant.set(entityKey, rooms);
|
|
851
|
+
// Generate a synthetic ID for this participant record
|
|
852
|
+
ids.push(`${roomId}:${eid}`);
|
|
853
|
+
}
|
|
854
|
+
this.participantsByRoom.set(roomKey, participants);
|
|
855
|
+
return ids;
|
|
856
|
+
}
|
|
857
|
+
// Batch participant methods
|
|
858
|
+
async deleteParticipants(participants) {
|
|
859
|
+
for (const { entityId, roomId } of participants) {
|
|
860
|
+
const roomKey = String(roomId);
|
|
861
|
+
const entityKey = String(entityId);
|
|
862
|
+
const roomParticipants = this.participantsByRoom.get(roomKey);
|
|
863
|
+
if (roomParticipants) {
|
|
864
|
+
roomParticipants.delete(entityKey);
|
|
865
|
+
if (roomParticipants.size === 0)
|
|
866
|
+
this.participantsByRoom.delete(roomKey);
|
|
867
|
+
}
|
|
868
|
+
const rooms = this.roomsByParticipant.get(entityKey);
|
|
869
|
+
if (rooms) {
|
|
870
|
+
rooms.delete(roomKey);
|
|
871
|
+
if (rooms.size === 0)
|
|
872
|
+
this.roomsByParticipant.delete(entityKey);
|
|
873
|
+
}
|
|
874
|
+
this.participantUserState.delete(`${roomKey}:${entityKey}`);
|
|
875
|
+
}
|
|
876
|
+
return true;
|
|
877
|
+
}
|
|
878
|
+
async updateParticipants(participants) {
|
|
879
|
+
// InMemory adapter stores participants as just sets of IDs, so we can only
|
|
880
|
+
// update roomState (which is stored separately in participantUserState).
|
|
881
|
+
// Metadata updates are not supported in this simple adapter.
|
|
882
|
+
for (const { entityId, roomId, updates } of participants) {
|
|
883
|
+
const roomState = updates.roomState;
|
|
884
|
+
if (roomState !== undefined) {
|
|
885
|
+
const key = `${String(roomId)}:${String(entityId)}`;
|
|
886
|
+
this.participantUserState.set(key, roomState);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
async areRoomParticipants(pairs) {
|
|
891
|
+
return pairs.map(({ roomId, entityId }) => {
|
|
892
|
+
const set = this.participantsByRoom.get(String(roomId));
|
|
893
|
+
return set ? set.has(String(entityId)) : false;
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
async getParticipantUserStates(pairs) {
|
|
897
|
+
return pairs.map(({ roomId, entityId }) => {
|
|
898
|
+
const key = `${String(roomId)}:${String(entityId)}`;
|
|
899
|
+
return this.participantUserState.get(key) ?? null;
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
async updateParticipantUserStates(updates) {
|
|
903
|
+
for (const { roomId, entityId, state } of updates) {
|
|
904
|
+
const key = `${String(roomId)}:${String(entityId)}`;
|
|
905
|
+
this.participantUserState.set(key, state);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
async getRelationshipsByPairs(_pairs) {
|
|
909
|
+
return _pairs.map(() => null);
|
|
910
|
+
}
|
|
911
|
+
async getRelationships(_params) {
|
|
912
|
+
return [];
|
|
913
|
+
}
|
|
914
|
+
// Batch relationship methods
|
|
915
|
+
async createRelationships(relationships) {
|
|
916
|
+
// WHY: InMemory adapter doesn't actually store relationships, but we return
|
|
917
|
+
// placeholder IDs to match the interface contract.
|
|
918
|
+
return relationships.map(() => {
|
|
919
|
+
const gen = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
920
|
+
? crypto.randomUUID()
|
|
921
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
922
|
+
return gen;
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
async getRelationshipsByIds(_relationshipIds) {
|
|
926
|
+
return [];
|
|
927
|
+
}
|
|
928
|
+
async updateRelationships(_relationships) {
|
|
929
|
+
// no-op
|
|
930
|
+
}
|
|
931
|
+
async deleteRelationships(_relationshipIds) {
|
|
932
|
+
// no-op
|
|
933
|
+
}
|
|
934
|
+
// Batch cache methods
|
|
935
|
+
async getCaches(keys) {
|
|
936
|
+
const result = new Map();
|
|
937
|
+
for (const key of keys) {
|
|
938
|
+
const raw = this.cache.get(key);
|
|
939
|
+
if (raw === undefined)
|
|
940
|
+
continue;
|
|
941
|
+
result.set(key, JSON.parse(raw));
|
|
942
|
+
}
|
|
943
|
+
return result;
|
|
944
|
+
}
|
|
945
|
+
async setCaches(entries) {
|
|
946
|
+
for (const entry of entries) {
|
|
947
|
+
this.cache.set(entry.key, JSON.stringify(entry.value));
|
|
948
|
+
}
|
|
949
|
+
return true;
|
|
950
|
+
}
|
|
951
|
+
async deleteCaches(keys) {
|
|
952
|
+
for (const key of keys) {
|
|
953
|
+
this.cache.delete(key);
|
|
954
|
+
}
|
|
955
|
+
return true;
|
|
956
|
+
}
|
|
957
|
+
async getTasks(params) {
|
|
958
|
+
if (params.agentIds.length === 0)
|
|
959
|
+
return [];
|
|
960
|
+
const all = Array.from(this.tasks.values());
|
|
961
|
+
let filtered = all.filter((t) => {
|
|
962
|
+
if (params.roomId && t.roomId !== params.roomId)
|
|
963
|
+
return false;
|
|
964
|
+
if (params.entityId && t.entityId !== params.entityId)
|
|
965
|
+
return false;
|
|
966
|
+
if (t.agentId == null || !params.agentIds.includes(t.agentId))
|
|
967
|
+
return false;
|
|
968
|
+
if (params.tags && params.tags.length > 0) {
|
|
969
|
+
for (const tag of params.tags) {
|
|
970
|
+
if (!t.tags.includes(tag))
|
|
971
|
+
return false;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
return true;
|
|
975
|
+
});
|
|
976
|
+
// WHY: Apply pagination to limit result size. Previously returned ALL matching tasks.
|
|
977
|
+
const offset = params.offset ?? 0;
|
|
978
|
+
filtered = filtered.slice(offset);
|
|
979
|
+
if (params.limit) {
|
|
980
|
+
filtered = filtered.slice(0, params.limit);
|
|
981
|
+
}
|
|
982
|
+
return filtered;
|
|
983
|
+
}
|
|
984
|
+
async getTasksByName(name) {
|
|
985
|
+
return Array.from(this.tasks.values()).filter((t) => t.name === name);
|
|
986
|
+
}
|
|
987
|
+
// Batch task methods
|
|
988
|
+
async createTasks(tasks) {
|
|
989
|
+
const ids = [];
|
|
990
|
+
for (const task of tasks) {
|
|
991
|
+
const gen = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
992
|
+
? crypto.randomUUID()
|
|
993
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
994
|
+
const id = task.id ? String(task.id) : gen;
|
|
995
|
+
const taskId = asUuid(id);
|
|
996
|
+
const stored = { ...task, id: taskId };
|
|
997
|
+
this.tasks.set(id, stored);
|
|
998
|
+
ids.push(taskId);
|
|
999
|
+
}
|
|
1000
|
+
return ids;
|
|
1001
|
+
}
|
|
1002
|
+
async getTasksByIds(taskIds) {
|
|
1003
|
+
const tasks = [];
|
|
1004
|
+
for (const taskId of taskIds) {
|
|
1005
|
+
const task = this.tasks.get(String(taskId));
|
|
1006
|
+
if (task)
|
|
1007
|
+
tasks.push(task);
|
|
1008
|
+
}
|
|
1009
|
+
return tasks;
|
|
1010
|
+
}
|
|
1011
|
+
async updateTasks(updates) {
|
|
1012
|
+
for (const update of updates) {
|
|
1013
|
+
const existing = this.tasks.get(String(update.id));
|
|
1014
|
+
if (!existing)
|
|
1015
|
+
continue;
|
|
1016
|
+
this.tasks.set(String(update.id), {
|
|
1017
|
+
...existing,
|
|
1018
|
+
...update.task,
|
|
1019
|
+
id: update.id,
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
async deleteTasks(taskIds) {
|
|
1024
|
+
for (const taskId of taskIds) {
|
|
1025
|
+
this.tasks.delete(String(taskId));
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
async getMemoriesByWorldId(params) {
|
|
1029
|
+
const worldIds = params.worldIds ?? [];
|
|
1030
|
+
if (worldIds.length === 0)
|
|
1031
|
+
return [];
|
|
1032
|
+
const rooms = await this.getRoomsByWorlds(worldIds);
|
|
1033
|
+
const roomIds = rooms.map((r) => r.id);
|
|
1034
|
+
const effectiveLimit = params.limit ?? 50;
|
|
1035
|
+
const out = [];
|
|
1036
|
+
for (const rid of roomIds) {
|
|
1037
|
+
if (params.tableName) {
|
|
1038
|
+
const list = this.memoriesByRoom.get(roomTableKey(params.tableName, rid)) ?? [];
|
|
1039
|
+
for (const m of list) {
|
|
1040
|
+
out.push(m);
|
|
1041
|
+
if (out.length >= effectiveLimit)
|
|
1042
|
+
return out;
|
|
1043
|
+
}
|
|
1044
|
+
continue;
|
|
1045
|
+
}
|
|
1046
|
+
for (const [key, list] of this.memoriesByRoom.entries()) {
|
|
1047
|
+
if (!key.endsWith(`:${String(rid)}`))
|
|
1048
|
+
continue;
|
|
1049
|
+
for (const m of list) {
|
|
1050
|
+
out.push(m);
|
|
1051
|
+
if (out.length >= effectiveLimit)
|
|
1052
|
+
return out;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
return out;
|
|
1057
|
+
}
|
|
1058
|
+
async deleteRoomsByWorldIds(worldIds) {
|
|
1059
|
+
for (const worldId of worldIds) {
|
|
1060
|
+
const rooms = await this.getRoomsByWorlds([worldId]);
|
|
1061
|
+
for (const room of rooms) {
|
|
1062
|
+
const roomKey = String(room.id);
|
|
1063
|
+
this.rooms.delete(roomKey);
|
|
1064
|
+
for (const key of this.memoriesByRoom.keys()) {
|
|
1065
|
+
if (key.endsWith(`:${roomKey}`))
|
|
1066
|
+
this.memoriesByRoom.delete(key);
|
|
1067
|
+
}
|
|
1068
|
+
this.participantsByRoom.delete(roomKey);
|
|
1069
|
+
for (const [entityKey, roomSet] of this.roomsByParticipant.entries()) {
|
|
1070
|
+
if (roomSet.delete(roomKey) && roomSet.size === 0)
|
|
1071
|
+
this.roomsByParticipant.delete(entityKey);
|
|
1072
|
+
}
|
|
1073
|
+
for (const key of this.participantUserState.keys()) {
|
|
1074
|
+
if (key.startsWith(`${roomKey}:`))
|
|
1075
|
+
this.participantUserState.delete(key);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
// ===============================
|
|
1081
|
+
// Pairing Methods
|
|
1082
|
+
// ===============================
|
|
1083
|
+
async getPairingRequests(queries) {
|
|
1084
|
+
const result = [];
|
|
1085
|
+
for (const { channel, agentId } of queries) {
|
|
1086
|
+
const requests = [];
|
|
1087
|
+
for (const request of this.pairingRequests.values()) {
|
|
1088
|
+
if (request.channel === channel && request.agentId === agentId) {
|
|
1089
|
+
requests.push(request);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
requests.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
|
|
1093
|
+
result.push({ channel, agentId, requests });
|
|
1094
|
+
}
|
|
1095
|
+
return result;
|
|
1096
|
+
}
|
|
1097
|
+
// Batch pairing request methods
|
|
1098
|
+
async createPairingRequests(requests) {
|
|
1099
|
+
const ids = [];
|
|
1100
|
+
for (const request of requests) {
|
|
1101
|
+
const gen = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
1102
|
+
? crypto.randomUUID()
|
|
1103
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
1104
|
+
const id = request.id ? String(request.id) : gen;
|
|
1105
|
+
const stored = { ...request, id: asUuid(id) };
|
|
1106
|
+
this.pairingRequests.set(id, stored);
|
|
1107
|
+
ids.push(asUuid(id));
|
|
1108
|
+
}
|
|
1109
|
+
return ids;
|
|
1110
|
+
}
|
|
1111
|
+
async updatePairingRequests(requests) {
|
|
1112
|
+
for (const request of requests) {
|
|
1113
|
+
const existing = this.pairingRequests.get(String(request.id));
|
|
1114
|
+
if (existing) {
|
|
1115
|
+
this.pairingRequests.set(String(request.id), {
|
|
1116
|
+
...existing,
|
|
1117
|
+
...request,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
async deletePairingRequests(ids) {
|
|
1123
|
+
for (const id of ids) {
|
|
1124
|
+
this.pairingRequests.delete(String(id));
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
async getPairingAllowlists(queries) {
|
|
1128
|
+
const result = [];
|
|
1129
|
+
for (const { channel, agentId } of queries) {
|
|
1130
|
+
const entries = [];
|
|
1131
|
+
for (const entry of this.pairingAllowlist.values()) {
|
|
1132
|
+
if (entry.channel === channel && entry.agentId === agentId) {
|
|
1133
|
+
entries.push(entry);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
entries.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
|
|
1137
|
+
result.push({ channel, agentId, entries });
|
|
1138
|
+
}
|
|
1139
|
+
return result;
|
|
1140
|
+
}
|
|
1141
|
+
// Batch pairing allowlist methods
|
|
1142
|
+
async createPairingAllowlistEntries(entries) {
|
|
1143
|
+
const ids = [];
|
|
1144
|
+
for (const entry of entries) {
|
|
1145
|
+
const gen = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
1146
|
+
? crypto.randomUUID()
|
|
1147
|
+
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
1148
|
+
const id = entry.id ? String(entry.id) : gen;
|
|
1149
|
+
const stored = { ...entry, id: asUuid(id) };
|
|
1150
|
+
this.pairingAllowlist.set(id, stored);
|
|
1151
|
+
ids.push(asUuid(id));
|
|
1152
|
+
}
|
|
1153
|
+
return ids;
|
|
1154
|
+
}
|
|
1155
|
+
async updatePairingAllowlistEntries(entries) {
|
|
1156
|
+
for (const entry of entries) {
|
|
1157
|
+
if (!entry.id)
|
|
1158
|
+
continue;
|
|
1159
|
+
const id = String(entry.id);
|
|
1160
|
+
const existing = this.pairingAllowlist.get(id);
|
|
1161
|
+
if (existing) {
|
|
1162
|
+
this.pairingAllowlist.set(id, { ...existing, ...entry });
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
async deletePairingAllowlistEntries(ids) {
|
|
1167
|
+
for (const id of ids) {
|
|
1168
|
+
this.pairingAllowlist.delete(String(id));
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|