htm 0.0.31 → 0.1.0
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.
- checksums.yaml +4 -4
- data/.architecture/decisions/adrs/005-rag-based-retrieval-with-hybrid-search.md +4 -0
- data/.architecture/decisions/adrs/017-bitemporal-event-time.md +78 -0
- data/.architecture/decisions/adrs/018-memory-timelines-and-node-links.md +64 -0
- data/.architecture/decisions/adrs/019-epistemic-status.md +66 -0
- data/.claude.json +11 -0
- data/.envrc +9 -7
- data/.irbrc +16 -17
- data/.reek.yml +104 -0
- data/.rubocop.yml +173 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +162 -54
- data/README.md +24 -17
- data/SETUP.md +49 -46
- data/_typos.toml +17 -0
- data/bin/htm +18 -0
- data/db/migrate/00008_create_node_relationships.rb +54 -0
- data/db/migrate/00009_fix_node_relationships_column_types.rb +17 -0
- data/db/migrate/00010_convert_embedding_to_sparsevec.rb +47 -0
- data/db/migrate/00011_strip_frontmatter_from_chunks.rb +66 -0
- data/db/migrate/00012_add_event_time_to_nodes.rb +110 -0
- data/db/migrate/00013_create_node_links.rb +158 -0
- data/db/migrate/00014_add_epistemic_status.rb +110 -0
- data/db/schema.sql +361 -7
- data/db/seed_data/README.md +11 -11
- data/db/seeds.rb +11 -11
- data/docs/api/database.md +43 -65
- data/docs/api/embedding-service.md +139 -263
- data/docs/api/htm.md +128 -12
- data/docs/api/index.md +34 -23
- data/docs/api/long-term-memory.md +8 -19
- data/docs/api/working-memory.md +42 -54
- data/docs/api/yard/HTM/Admin/Console.md +53 -0
- data/docs/api/yard/HTM/Admin/DatabaseCommands/Console.md +38 -0
- data/docs/api/yard/HTM/Admin/DatabaseCommands.md +127 -0
- data/docs/api/yard/HTM/Admin/EnrichCommands.md +85 -0
- data/docs/api/yard/HTM/Admin/Error.md +9 -0
- data/docs/api/yard/HTM/Admin/FileCommands/Console.md +50 -0
- data/docs/api/yard/HTM/Admin/FileCommands.md +83 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands/Base.md +17 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands/Edit.md +74 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands/Search.md +77 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands/TagSearch.md +46 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands/WorkingMemory.md +36 -0
- data/docs/api/yard/HTM/Admin/MemoryCommands.md +67 -0
- data/docs/api/yard/HTM/Admin/TagCommands/Console.md +48 -0
- data/docs/api/yard/HTM/Admin/TagCommands.md +105 -0
- data/docs/api/yard/HTM/Admin/TagGraph.md +149 -0
- data/docs/api/yard/HTM/Admin/YardDocs.md +60 -0
- data/docs/api/yard/HTM/Admin.md +102 -0
- data/docs/api/yard/HTM/AuthorizationError.md +6 -6
- data/docs/api/yard/HTM/CLI/ConfigFile.md +40 -0
- data/docs/api/yard/HTM/CLI/Db.md +63 -0
- data/docs/api/yard/HTM/CLI/Enrich.md +39 -0
- data/docs/api/yard/HTM/CLI/ErrorSuggestion.md +56 -0
- data/docs/api/yard/HTM/CLI/Files.md +36 -0
- data/docs/api/yard/HTM/CLI/Group/ClassMethods.md +11 -0
- data/docs/api/yard/HTM/CLI/Group.md +13 -0
- data/docs/api/yard/HTM/CLI/MemoryCommand/ClassMethods.md +20 -0
- data/docs/api/yard/HTM/CLI/MemoryCommand.md +9 -0
- data/docs/api/yard/HTM/CLI/Robots.md +31 -0
- data/docs/api/yard/HTM/CLI/Support.md +9 -0
- data/docs/api/yard/HTM/CLI/Tags.md +57 -0
- data/docs/api/yard/HTM/CLI/WorkingMemory.md +24 -0
- data/docs/api/yard/HTM/CLI.md +84 -0
- data/docs/api/yard/HTM/CircuitBreaker/Guarded.md +29 -0
- data/docs/api/yard/HTM/CircuitBreaker/Settings.md +21 -0
- data/docs/api/yard/HTM/CircuitBreaker/Status.md +42 -0
- data/docs/api/yard/HTM/CircuitBreaker.md +54 -49
- data/docs/api/yard/HTM/CircuitBreakerOpenError.md +9 -9
- data/docs/api/yard/HTM/Config/Builder.md +87 -0
- data/docs/api/yard/HTM/Config/Coercion.md +59 -0
- data/docs/api/yard/HTM/Config/Database.md +102 -0
- data/docs/api/yard/HTM/Config/Readers.md +30 -0
- data/docs/api/yard/HTM/Config/RubyLlmSettings.md +32 -0
- data/docs/api/yard/HTM/Config/Validator.md +59 -0
- data/docs/api/yard/HTM/Config.md +224 -105
- data/docs/api/yard/HTM/ConfigurationError.md +20 -0
- data/docs/api/yard/HTM/Confirmation.md +22 -0
- data/docs/api/yard/HTM/Database/Connection.md +26 -0
- data/docs/api/yard/HTM/Database/Migrations.md +32 -0
- data/docs/api/yard/HTM/Database/Report.md +26 -0
- data/docs/api/yard/HTM/Database/SchemaFile.md +52 -0
- data/docs/api/yard/HTM/Database/Teardown.md +15 -0
- data/docs/api/yard/HTM/Database.md +58 -70
- data/docs/api/yard/HTM/DatabaseDocs.md +67 -0
- data/docs/api/yard/HTM/DatabaseError.md +6 -6
- data/docs/api/yard/HTM/Deletion.md +32 -0
- data/docs/api/yard/HTM/EmbeddingError.md +6 -6
- data/docs/api/yard/HTM/EmbeddingService.md +37 -38
- data/docs/api/yard/HTM/Epistemics.md +135 -0
- data/docs/api/yard/HTM/Error.md +6 -6
- data/docs/api/yard/HTM/EventTime.md +110 -0
- data/docs/api/yard/HTM/FileMemory.md +76 -0
- data/docs/api/yard/HTM/InputValidator.md +82 -0
- data/docs/api/yard/HTM/JobAdapter/Job.md +26 -0
- data/docs/api/yard/HTM/JobAdapter.md +35 -16
- data/docs/api/yard/HTM/Jobs/FailureLogging.md +14 -0
- data/docs/api/yard/HTM/Jobs/GenerateEmbeddingJob.md +16 -0
- data/docs/api/yard/HTM/Jobs/GeneratePropositionsJob.md +17 -0
- data/docs/api/yard/HTM/Jobs/GenerateRelationshipsJob.md +26 -0
- data/docs/api/yard/HTM/Jobs/GenerateTagsJob.md +17 -0
- data/docs/api/yard/HTM/Jobs/LlmCallTimer.md +58 -0
- data/docs/api/yard/HTM/Jobs/NodeLookup.md +14 -0
- data/docs/api/yard/HTM/Jobs.md +13 -0
- data/docs/api/yard/HTM/Loaders/ChunkSync/Chunk.md +22 -0
- data/docs/api/yard/HTM/Loaders/ChunkSync.md +50 -0
- data/docs/api/yard/HTM/Loaders/MarkdownChunker/Coalescer.md +24 -0
- data/docs/api/yard/HTM/Loaders/MarkdownChunker/Packer.md +20 -0
- data/docs/api/yard/HTM/Loaders/MarkdownChunker/Splitter.md +18 -0
- data/docs/api/yard/HTM/Loaders/MarkdownChunker.md +83 -0
- data/docs/api/yard/HTM/Loaders/MarkdownLoader/Document.md +43 -0
- data/docs/api/yard/HTM/Loaders/MarkdownLoader.md +62 -0
- data/docs/api/yard/HTM/Loaders.md +5 -0
- data/docs/api/yard/HTM/LongTermMemory/FulltextSearch.md +36 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfMerger.md +25 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfRows.md +30 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Query.md +79 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Source.md +45 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql.md +11 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch/TagDepth.md +52 -0
- data/docs/api/yard/HTM/LongTermMemory/HybridSearch.md +52 -0
- data/docs/api/yard/HTM/LongTermMemory/NodeOperations.md +95 -0
- data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/HierarchicalJaccard.md +58 -0
- data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/TagSearch.md +27 -0
- data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer.md +81 -0
- data/docs/api/yard/HTM/LongTermMemory/RobotOperations.md +22 -0
- data/docs/api/yard/HTM/LongTermMemory/TagOperations/ExpiringValue.md +24 -0
- data/docs/api/yard/HTM/LongTermMemory/TagOperations/TagMatchSql.md +40 -0
- data/docs/api/yard/HTM/LongTermMemory/TagOperations.md +129 -0
- data/docs/api/yard/HTM/LongTermMemory/VectorSearch.md +30 -0
- data/docs/api/yard/HTM/LongTermMemory.md +279 -31
- data/docs/api/yard/HTM/MCP/AssembleContextTool.md +16 -0
- data/docs/api/yard/HTM/MCP/ClearGroupWorkingMemoryTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ClearWorkingMemoryTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ConfigResource.md +12 -0
- data/docs/api/yard/HTM/MCP/ConfirmTool.md +12 -0
- data/docs/api/yard/HTM/MCP/CreateGroupTool.md +12 -0
- data/docs/api/yard/HTM/MCP/EnrichPendingTool.md +16 -0
- data/docs/api/yard/HTM/MCP/ExtractPropositionsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/FailoverTool.md +12 -0
- data/docs/api/yard/HTM/MCP/FileInfoTool.md +13 -0
- data/docs/api/yard/HTM/MCP/FileSourcesResource.md +12 -0
- data/docs/api/yard/HTM/MCP/FileSupport.md +7 -0
- data/docs/api/yard/HTM/MCP/FindByTopicTool.md +12 -0
- data/docs/api/yard/HTM/MCP/FirstMentionTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ForgetContentTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ForgetTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GetGroupStatusTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GetGroupWorkingMemoryTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GetNodeTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GetRobotTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GetWorkingMemoryTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GroupRecallTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GroupRememberTool.md +12 -0
- data/docs/api/yard/HTM/MCP/GroupSession.md +23 -0
- data/docs/api/yard/HTM/MCP/JoinGroupTool.md +12 -0
- data/docs/api/yard/HTM/MCP/LeaveGroupTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ListDeletedTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ListFilesTool.md +13 -0
- data/docs/api/yard/HTM/MCP/ListGroupsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ListRobotsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ListTagsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/LoadDirectoryTool.md +13 -0
- data/docs/api/yard/HTM/MCP/LoadFileTool.md +13 -0
- data/docs/api/yard/HTM/MCP/MemoryStatsResource.md +13 -0
- data/docs/api/yard/HTM/MCP/PopularTagsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/PromoteRobotTool.md +12 -0
- data/docs/api/yard/HTM/MCP/PurgeDeletedTool.md +12 -0
- data/docs/api/yard/HTM/MCP/RecallTool.md +16 -0
- data/docs/api/yard/HTM/MCP/RecentMemoriesResource.md +13 -0
- data/docs/api/yard/HTM/MCP/RelatedNodesTool.md +12 -0
- data/docs/api/yard/HTM/MCP/RememberTool.md +12 -0
- data/docs/api/yard/HTM/MCP/RestoreTool.md +12 -0
- data/docs/api/yard/HTM/MCP/RobotGroupsResource.md +13 -0
- data/docs/api/yard/HTM/MCP/RobotTeamsStatusTool.md +13 -0
- data/docs/api/yard/HTM/MCP/RunRobotTeamsTool.md +13 -0
- data/docs/api/yard/HTM/MCP/SearchByTagsTool.md +16 -0
- data/docs/api/yard/HTM/MCP/SearchTagsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/Server.md +37 -0
- data/docs/api/yard/HTM/MCP/Session.md +32 -0
- data/docs/api/yard/HTM/MCP/SetRobotTool.md +12 -0
- data/docs/api/yard/HTM/MCP/ShutdownGroupTool.md +12 -0
- data/docs/api/yard/HTM/MCP/StartupPromptResource.md +16 -0
- data/docs/api/yard/HTM/MCP/StatsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/SyncFilesTool.md +13 -0
- data/docs/api/yard/HTM/MCP/SyncGroupTool.md +12 -0
- data/docs/api/yard/HTM/MCP/TagHierarchyResource.md +16 -0
- data/docs/api/yard/HTM/MCP/TagNodeTool.md +12 -0
- data/docs/api/yard/HTM/MCP/TagTreeTool.md +22 -0
- data/docs/api/yard/HTM/MCP/TeamNames.md +7 -0
- data/docs/api/yard/HTM/MCP/TimelineTool.md +12 -0
- data/docs/api/yard/HTM/MCP/Tool.md +24 -0
- data/docs/api/yard/HTM/MCP/ToolSupport.md +17 -0
- data/docs/api/yard/HTM/MCP/TopicRelationshipsTool.md +12 -0
- data/docs/api/yard/HTM/MCP/TransferWorkingMemoryTool.md +12 -0
- data/docs/api/yard/HTM/MCP/UnloadFileTool.md +13 -0
- data/docs/api/yard/HTM/MCP/UntagNodeTool.md +12 -0
- data/docs/api/yard/HTM/MCP.md +30 -0
- data/docs/api/yard/HTM/Migration.md +44 -0
- data/docs/api/yard/HTM/Models/FileSource.md +66 -0
- data/docs/api/yard/HTM/Models/Node/Scopes.md +74 -0
- data/docs/api/yard/HTM/Models/Node/SoftDeletion.md +22 -0
- data/docs/api/yard/HTM/Models/Node/VectorSimilarity.md +28 -0
- data/docs/api/yard/HTM/Models/Node.md +113 -0
- data/docs/api/yard/HTM/Models/NodeLink.md +65 -0
- data/docs/api/yard/HTM/Models/NodeRelationship.md +31 -0
- data/docs/api/yard/HTM/Models/NodeTag.md +38 -0
- data/docs/api/yard/HTM/Models/Robot.md +50 -0
- data/docs/api/yard/HTM/Models/RobotNode.md +35 -0
- data/docs/api/yard/HTM/Models/Tag/Scopes.md +32 -0
- data/docs/api/yard/HTM/Models/Tag.md +112 -0
- data/docs/api/yard/HTM/Models.md +5 -0
- data/docs/api/yard/HTM/NodeEnrichment.md +36 -0
- data/docs/api/yard/HTM/NodeView.md +113 -0
- data/docs/api/yard/HTM/NotFoundError.md +6 -5
- data/docs/api/yard/HTM/Observability.md +58 -40
- data/docs/api/yard/HTM/PropositionError.md +6 -6
- data/docs/api/yard/HTM/PropositionService.md +63 -29
- data/docs/api/yard/HTM/QueryCache/KeyNormalizer.md +25 -0
- data/docs/api/yard/HTM/QueryCache/NullStore.md +19 -0
- data/docs/api/yard/HTM/QueryCache/Store.md +43 -0
- data/docs/api/yard/HTM/QueryCache.md +41 -46
- data/docs/api/yard/HTM/QueryTimeoutError.md +9 -8
- data/docs/api/yard/HTM/Railtie.md +11 -7
- data/docs/api/yard/HTM/RecallQuery.md +111 -0
- data/docs/api/yard/HTM/ResourceExhaustedError.md +6 -6
- data/docs/api/yard/HTM/RobotGroup/CacheSync.md +35 -0
- data/docs/api/yard/HTM/RobotGroup/Membership.md +96 -0
- data/docs/api/yard/HTM/RobotGroup/TransferOptions.md +14 -0
- data/docs/api/yard/HTM/RobotGroup/WorkingMemoryLedger.md +65 -0
- data/docs/api/yard/HTM/RobotGroup.md +116 -360
- data/docs/api/yard/HTM/Robots/Actions/TagMove.md +31 -0
- data/docs/api/yard/HTM/Robots/Actions.md +153 -0
- data/docs/api/yard/HTM/Robots/Neighbors.md +20 -0
- data/docs/api/yard/HTM/Robots/Supervisor/Idler.md +26 -0
- data/docs/api/yard/HTM/Robots/Supervisor/Roster.md +26 -0
- data/docs/api/yard/HTM/Robots/Supervisor.md +42 -0
- data/docs/api/yard/HTM/Robots/Team.md +60 -0
- data/docs/api/yard/HTM/Robots/Teams/Archivist.md +43 -0
- data/docs/api/yard/HTM/Robots/Teams/Consolidator.md +29 -0
- data/docs/api/yard/HTM/Robots/Teams/ContradictionDetector.md +33 -0
- data/docs/api/yard/HTM/Robots/Teams/TagCurator.md +37 -0
- data/docs/api/yard/HTM/Robots/Teams.md +5 -0
- data/docs/api/yard/HTM/Robots/Tools/ArchiveNodes.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools/Base.md +16 -0
- data/docs/api/yard/HTM/Robots/Tools/MergeNodes.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools/MergeTags.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools/Pass.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools/RecordConflict.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools/SupersedeNode.md +12 -0
- data/docs/api/yard/HTM/Robots/Tools.md +14 -0
- data/docs/api/yard/HTM/Robots.md +72 -0
- data/docs/api/yard/HTM/SearchFilters.md +82 -0
- data/docs/api/yard/HTM/SequelConfig.md +97 -0
- data/docs/api/yard/HTM/Settings.md +39 -0
- data/docs/api/yard/HTM/Sinatra/Helpers.md +37 -0
- data/docs/api/yard/HTM/Sinatra/Middleware.md +29 -0
- data/docs/api/yard/HTM/Sinatra.md +44 -0
- data/docs/api/yard/HTM/SqlBuilder/Sparsevec.md +69 -0
- data/docs/api/yard/HTM/SqlBuilder.md +62 -75
- data/docs/api/yard/HTM/StartupPrompt.md +45 -0
- data/docs/api/yard/HTM/TagError.md +6 -6
- data/docs/api/yard/HTM/TagService.md +100 -37
- data/docs/api/yard/HTM/TagTree/Branch.md +43 -0
- data/docs/api/yard/HTM/TagTree/SvgRenderer/Layout.md +51 -0
- data/docs/api/yard/HTM/TagTree/SvgRenderer.md +25 -0
- data/docs/api/yard/HTM/TagTree.md +65 -0
- data/docs/api/yard/HTM/Telemetry/NullInstrument.md +12 -9
- data/docs/api/yard/HTM/Telemetry/NullMeter.md +17 -9
- data/docs/api/yard/HTM/Telemetry.md +53 -50
- data/docs/api/yard/HTM/Timeframe/Result.md +13 -16
- data/docs/api/yard/HTM/Timeframe.md +17 -20
- data/docs/api/yard/HTM/TimeframeExtractor/Patterns.md +18 -0
- data/docs/api/yard/HTM/TimeframeExtractor/Result.md +13 -16
- data/docs/api/yard/HTM/TimeframeExtractor.md +27 -16
- data/docs/api/yard/HTM/Timeline.md +113 -0
- data/docs/api/yard/HTM/ValidationError.md +6 -5
- data/docs/api/yard/HTM/Workflows/RememberWorkflow/NodeState.md +73 -0
- data/docs/api/yard/HTM/Workflows/RememberWorkflow.md +80 -0
- data/docs/api/yard/HTM/Workflows.md +5 -0
- data/docs/api/yard/HTM/WorkingMemory/Entry.md +67 -0
- data/docs/api/yard/HTM/WorkingMemory/Store.md +54 -0
- data/docs/api/yard/HTM/WorkingMemory.md +113 -87
- data/docs/api/yard/HTM/WorkingMemoryChannel/Subscribers.md +28 -0
- data/docs/api/yard/HTM/WorkingMemoryChannel.md +108 -102
- data/docs/api/yard/HTM.md +483 -5
- data/docs/api/yard/README.md +211 -0
- data/docs/api/yard/Sinatra/Base.md +30 -0
- data/docs/api/yard/Sinatra.md +7 -0
- data/docs/api/yard/index.csv +1834 -181
- data/docs/api/yard-reference.md +228 -9
- data/docs/architecture/adrs/005-rag-retrieval.md +3 -0
- data/docs/architecture/adrs/index.md +1 -1
- data/docs/architecture/index.md +7 -9
- data/docs/architecture/overview.md +8 -11
- data/docs/assets/images/htm-architecture-overview.svg +1 -1
- data/docs/assets/images/htm-context-assembly-flow.svg +2 -2
- data/docs/assets/images/htm-layered-architecture.svg +3 -3
- data/docs/assets/images/project-structure.svg +2 -2
- data/docs/assets/images/two-tier-memory-architecture.svg +1 -1
- data/docs/database/INDEX.md +113 -0
- data/docs/database/README.md +60 -175
- data/docs/database/file_sources.md +51 -0
- data/docs/database/file_sources.svg +120 -0
- data/docs/database/naming-convention.md +12 -12
- data/docs/database/node_links.md +65 -0
- data/docs/database/node_links.svg +171 -0
- data/docs/database/node_relationships.md +62 -0
- data/docs/database/node_relationships.svg +124 -0
- data/docs/database/node_tags.md +50 -0
- data/docs/database/node_tags.svg +125 -0
- data/docs/database/nodes.md +120 -0
- data/docs/database/nodes.svg +394 -0
- data/docs/database/robot_nodes.md +57 -0
- data/docs/database/robot_nodes.svg +155 -0
- data/docs/database/robots.md +40 -0
- data/docs/database/robots.svg +131 -0
- data/docs/database/schema.svg +384 -275
- data/docs/database/schema_migrations.md +19 -0
- data/docs/database/schema_migrations.svg +31 -0
- data/docs/database/tags.md +47 -0
- data/docs/database/tags.svg +90 -0
- data/docs/development/asgard-tasks.md +114 -0
- data/docs/development/contributing.md +11 -11
- data/docs/development/index.md +19 -24
- data/docs/development/schema.md +113 -14
- data/docs/development/setup.md +99 -151
- data/docs/development/testing.md +58 -66
- data/docs/examples/basic-usage.md +9 -9
- data/docs/examples/config-files.md +8 -8
- data/docs/examples/file-loading.md +16 -16
- data/docs/examples/index.md +15 -8
- data/docs/examples/llm-configuration.md +13 -9
- data/docs/examples/mcp-client.md +61 -59
- data/docs/examples/rails-integration.md +5 -4
- data/docs/examples/sinatra-integration.md +5 -4
- data/docs/examples/standalone-app.md +17 -16
- data/docs/getting-started/index.md +3 -3
- data/docs/getting-started/installation.md +76 -83
- data/docs/getting-started/quick-start.md +28 -26
- data/docs/guides/adding-memories.md +28 -4
- data/docs/guides/cli.md +458 -0
- data/docs/guides/configuration.md +77 -42
- data/docs/guides/context-assembly.md +4 -4
- data/docs/guides/epistemic-status.md +138 -0
- data/docs/guides/event-time.md +106 -0
- data/docs/guides/file-loading.md +36 -32
- data/docs/guides/getting-started.md +23 -19
- data/docs/guides/long-term-memory.md +8 -28
- data/docs/guides/mcp-server.md +416 -173
- data/docs/guides/propositions.md +30 -40
- data/docs/guides/recalling-memories.md +27 -12
- data/docs/guides/robot-teams.md +96 -0
- data/docs/guides/search-strategies.md +10 -7
- data/docs/guides/tags.md +37 -32
- data/docs/guides/timeline.md +106 -0
- data/docs/index.md +7 -7
- data/docs/llms.txt +35 -0
- data/docs/multi_framework_support.md +14 -14
- data/docs/robots/hive-mind.md +1 -1
- data/docs/robots/multi-robot.md +2 -2
- data/docs/robots/robot-groups.md +10 -10
- data/docs/robots/two-tier-memory.md +85 -120
- data/docs/setup_local_database.md +41 -85
- data/examples/00_create_examples_db.rb +20 -7
- data/examples/01_basic_usage.rb +21 -18
- data/examples/02_config_file_example/README.md +13 -12
- data/examples/02_config_file_example/config/htm.local.yml +8 -8
- data/examples/02_config_file_example/show_config.rb +3 -4
- data/examples/03_custom_llm_configuration.rb +13 -12
- data/examples/04_file_loader_usage.rb +16 -21
- data/examples/05_timeframe_demo.rb +283 -234
- data/examples/06_example_app/.loki +36 -0
- data/examples/06_example_app/app.rb +22 -33
- data/examples/07_cli_app/README.md +18 -18
- data/examples/07_cli_app/htm_cli.rb +26 -19
- data/examples/08_sinatra_app/Gemfile +1 -0
- data/examples/08_sinatra_app/Gemfile.lock +101 -67
- data/examples/08_sinatra_app/app.rb +64 -62
- data/examples/09_mcp_client.rb +93 -119
- data/examples/10_telemetry/README.md +3 -3
- data/examples/10_telemetry/SETUP_README.md +2 -2
- data/examples/10_telemetry/demo.rb +6 -5
- data/examples/11_robot_groups/README.md +5 -4
- data/examples/11_robot_groups/lib/robot_worker.rb +0 -5
- data/examples/11_robot_groups/multi_process.rb +6 -4
- data/examples/11_robot_groups/same_process.rb +19 -17
- data/examples/12_rails_app/.envrc +12 -0
- data/examples/12_rails_app/Gemfile +8 -3
- data/examples/12_rails_app/Gemfile.lock +226 -172
- data/examples/12_rails_app/README.md +77 -22
- data/examples/12_rails_app/app/controllers/application_controller.rb +6 -0
- data/examples/12_rails_app/app/controllers/chats_controller.rb +275 -0
- data/examples/12_rails_app/app/controllers/dashboard_controller.rb +3 -0
- data/examples/12_rails_app/app/controllers/files_controller.rb +17 -2
- data/examples/12_rails_app/app/controllers/home_controller.rb +8 -0
- data/examples/12_rails_app/app/controllers/memories_controller.rb +16 -5
- data/examples/12_rails_app/app/controllers/messages_controller.rb +177 -0
- data/examples/12_rails_app/app/controllers/robots_controller.rb +11 -1
- data/examples/12_rails_app/app/controllers/search_controller.rb +7 -2
- data/examples/12_rails_app/app/controllers/tags_controller.rb +14 -1
- data/examples/12_rails_app/app/javascript/application.js +1 -1
- data/examples/12_rails_app/app/models/application_record.rb +5 -0
- data/examples/12_rails_app/app/models/chat.rb +3 -0
- data/examples/12_rails_app/app/models/message.rb +3 -0
- data/examples/12_rails_app/app/views/chats/index.html.erb +61 -0
- data/examples/12_rails_app/app/views/chats/show.html.erb +213 -0
- data/examples/12_rails_app/app/views/dashboard/index.html.erb +3 -0
- data/examples/12_rails_app/app/views/files/index.html.erb +10 -5
- data/examples/12_rails_app/app/views/files/new.html.erb +5 -3
- data/examples/12_rails_app/app/views/files/show.html.erb +19 -3
- data/examples/12_rails_app/app/views/home/index.html.erb +45 -0
- data/examples/12_rails_app/app/views/layouts/application.html.erb +20 -18
- data/examples/12_rails_app/app/views/memories/_memory_card.html.erb +2 -2
- data/examples/12_rails_app/app/views/memories/deleted.html.erb +3 -1
- data/examples/12_rails_app/app/views/memories/edit.html.erb +2 -0
- data/examples/12_rails_app/app/views/memories/index.html.erb +2 -0
- data/examples/12_rails_app/app/views/memories/new.html.erb +14 -0
- data/examples/12_rails_app/app/views/memories/show.html.erb +17 -2
- data/examples/12_rails_app/app/views/messages/_message.html.erb +20 -0
- data/examples/12_rails_app/app/views/robots/index.html.erb +2 -0
- data/examples/12_rails_app/app/views/robots/new.html.erb +2 -0
- data/examples/12_rails_app/app/views/robots/show.html.erb +2 -0
- data/examples/12_rails_app/app/views/search/index.html.erb +77 -10
- data/examples/12_rails_app/app/views/shared/_navbar.html.erb +75 -29
- data/examples/12_rails_app/app/views/tags/index.html.erb +2 -0
- data/examples/12_rails_app/app/views/tags/show.html.erb +3 -1
- data/examples/12_rails_app/config/application.rb +1 -1
- data/examples/12_rails_app/config/database.yml +9 -5
- data/examples/12_rails_app/config/importmap.rb +1 -1
- data/examples/12_rails_app/config/initializers/htm.rb +9 -2
- data/examples/12_rails_app/config/initializers/ruby_llm.rb +29 -0
- data/examples/12_rails_app/config/routes.rb +39 -23
- data/examples/12_rails_app/db/migrate/20261205061932_create_ruby_llm_records.rb +160 -0
- data/examples/12_rails_app/db/migrate/20261205061933_create_chats.rb +13 -0
- data/examples/12_rails_app/db/migrate/20261205061934_create_messages.rb +23 -0
- data/examples/12_rails_app/db/schema.rb +210 -0
- data/examples/README.md +53 -44
- data/examples/examples_helper.rb +52 -3
- data/htm.gemspec +68 -0
- data/lib/htm/admin/database_commands.rb +454 -0
- data/lib/htm/admin/enrich_commands.rb +209 -0
- data/lib/htm/admin/file_commands.rb +323 -0
- data/lib/htm/admin/memory_commands/edit.rb +157 -0
- data/lib/htm/admin/memory_commands/search.rb +178 -0
- data/lib/htm/admin/memory_commands/tag_search.rb +98 -0
- data/lib/htm/admin/memory_commands/text.rb +164 -0
- data/lib/htm/admin/memory_commands/working_memory.rb +71 -0
- data/lib/htm/admin/memory_commands.rb +179 -0
- data/lib/htm/admin/tag_commands.rb +352 -0
- data/lib/htm/admin/tag_graph.rb +290 -0
- data/lib/htm/admin/templates/tag_graph.html +295 -0
- data/lib/htm/admin/yard_docs.rb +206 -0
- data/lib/htm/admin.rb +253 -0
- data/lib/htm/circuit_breaker.rb +142 -69
- data/lib/htm/class_methods.rb +136 -0
- data/lib/htm/cli/config_file.rb +86 -0
- data/lib/htm/cli/db.rb +77 -0
- data/lib/htm/cli/enrich.rb +44 -0
- data/lib/htm/cli/environment.rb +74 -0
- data/lib/htm/cli/error_suggestion.rb +97 -0
- data/lib/htm/cli/files.rb +41 -0
- data/lib/htm/cli/group.rb +32 -0
- data/lib/htm/cli/memory.rb +320 -0
- data/lib/htm/cli/memory_command.rb +71 -0
- data/lib/htm/cli/robots.rb +71 -0
- data/lib/htm/cli/support.rb +46 -0
- data/lib/htm/cli/tags.rb +103 -0
- data/lib/htm/cli/working_memory.rb +41 -0
- data/lib/htm/cli.rb +75 -0
- data/lib/htm/config/builder.rb +106 -75
- data/lib/htm/config/coercion.rb +91 -0
- data/lib/htm/config/database.rb +94 -71
- data/lib/htm/config/defaults.yml +52 -16
- data/lib/htm/config/readers.rb +85 -0
- data/lib/htm/config/ruby_llm_settings.rb +58 -0
- data/lib/htm/config/validator.rb +47 -34
- data/lib/htm/config.rb +122 -296
- data/lib/htm/database.rb +330 -427
- data/lib/htm/database_docs.rb +149 -0
- data/lib/htm/embedding_service.rb +29 -74
- data/lib/htm/epistemics.rb +254 -0
- data/lib/htm/errors.rb +4 -4
- data/lib/htm/event_time.rb +201 -0
- data/lib/htm/file_memory.rb +106 -0
- data/lib/htm/input_validator.rb +158 -0
- data/lib/htm/integrations/sinatra.rb +45 -33
- data/lib/htm/job_adapter.rb +79 -91
- data/lib/htm/jobs/failure_logging.rb +49 -0
- data/lib/htm/jobs/generate_embedding_job.rb +28 -51
- data/lib/htm/jobs/generate_propositions_job.rb +59 -57
- data/lib/htm/jobs/generate_relationships_job.rb +141 -0
- data/lib/htm/jobs/generate_tags_job.rb +44 -71
- data/lib/htm/jobs/llm_call_timer.rb +53 -0
- data/lib/htm/jobs/node_lookup.rb +27 -0
- data/lib/htm/knowledge_memory.rb +153 -0
- data/lib/htm/loaders/chunk_sync.rb +168 -0
- data/lib/htm/loaders/markdown_chunker.rb +207 -36
- data/lib/htm/loaders/markdown_loader.rb +99 -190
- data/lib/htm/long_term_memory/fulltext_search.rb +16 -37
- data/lib/htm/long_term_memory/hybrid_search.rb +484 -385
- data/lib/htm/long_term_memory/node_operations.rb +111 -82
- data/lib/htm/long_term_memory/relevance_scorer.rb +254 -227
- data/lib/htm/long_term_memory/tag_operations.rb +225 -187
- data/lib/htm/long_term_memory/vector_search.rb +34 -62
- data/lib/htm/long_term_memory.rb +5 -16
- data/lib/htm/mcp/file_tools.rb +190 -0
- data/lib/htm/mcp/group_tools.rb +223 -233
- data/lib/htm/mcp/node_tools.rb +350 -0
- data/lib/htm/mcp/resources.rb +102 -28
- data/lib/htm/mcp/robot_team_tools.rb +119 -0
- data/lib/htm/mcp/server.rb +26 -15
- data/lib/htm/mcp/tag_tools.rb +130 -0
- data/lib/htm/mcp/tool.rb +40 -0
- data/lib/htm/mcp/tool_support.rb +88 -0
- data/lib/htm/mcp/tools.rb +230 -287
- data/lib/htm/migration.rb +10 -10
- data/lib/htm/models/file_source.rb +35 -20
- data/lib/htm/models/node.rb +288 -195
- data/lib/htm/models/node_link.rb +97 -0
- data/lib/htm/models/node_relationship.rb +73 -0
- data/lib/htm/models/node_tag.rb +24 -4
- data/lib/htm/models/robot.rb +4 -8
- data/lib/htm/models/robot_node.rb +7 -4
- data/lib/htm/models/tag.rb +54 -195
- data/lib/htm/node_enrichment.rb +75 -0
- data/lib/htm/node_view.rb +295 -0
- data/lib/htm/observability.rb +125 -115
- data/lib/htm/proposition_service.rb +41 -81
- data/lib/htm/query_cache.rb +148 -96
- data/lib/htm/railtie.rb +4 -9
- data/lib/htm/request_options.rb +149 -0
- data/lib/htm/robot_group/cache_sync.rb +69 -0
- data/lib/htm/robot_group/membership.rb +147 -0
- data/lib/htm/robot_group/working_memory_ledger.rb +111 -0
- data/lib/htm/robot_group.rb +130 -523
- data/lib/htm/robots/actions.rb +371 -0
- data/lib/htm/robots/neighbors.rb +63 -0
- data/lib/htm/robots/node_brief.rb +49 -0
- data/lib/htm/robots/supervisor.rb +140 -0
- data/lib/htm/robots/team.rb +124 -0
- data/lib/htm/robots/teams/archivist.rb +88 -0
- data/lib/htm/robots/teams/consolidator.rb +52 -0
- data/lib/htm/robots/teams/contradiction_detector.rb +67 -0
- data/lib/htm/robots/teams/tag_curator.rb +75 -0
- data/lib/htm/robots/tools.rb +127 -0
- data/lib/htm/robots.rb +125 -0
- data/lib/htm/search_filters.rb +116 -0
- data/lib/htm/sequel_config.rb +96 -59
- data/lib/htm/sql_builder.rb +162 -53
- data/lib/htm/startup_prompt.rb +73 -0
- data/lib/htm/tag_service.rb +105 -114
- data/lib/htm/tag_tree.rb +206 -0
- data/lib/htm/telemetry.rb +15 -16
- data/lib/htm/timeframe.rb +30 -13
- data/lib/htm/timeframe_extractor.rb +104 -123
- data/lib/htm/timeline.rb +230 -0
- data/lib/htm/version.rb +1 -1
- data/lib/htm/workflows/remember_workflow.rb +147 -141
- data/lib/htm/working_memory/entry.rb +53 -0
- data/lib/htm/working_memory/store.rb +97 -0
- data/lib/htm/working_memory.rb +135 -142
- data/lib/htm/working_memory_channel.rb +90 -40
- data/lib/htm.rb +185 -522
- data/mkdocs.yml +100 -23
- data/scripts/install_local_database.sh +7 -6
- metadata +1032 -669
- data/.tbls.yml +0 -31
- data/Rakefile +0 -159
- data/bin/htm_mcp +0 -27
- data/docs/api/yard/HTM/ActiveRecordConfig.md +0 -29
- data/docs/api/yard/HTM/ConfigSection.md +0 -28
- data/docs/database/public.file_sources.md +0 -42
- data/docs/database/public.file_sources.svg +0 -219
- data/docs/database/public.node_stats.md +0 -48
- data/docs/database/public.node_stats.svg +0 -41
- data/docs/database/public.node_tags.md +0 -41
- data/docs/database/public.node_tags.svg +0 -251
- data/docs/database/public.nodes.md +0 -61
- data/docs/database/public.nodes.svg +0 -283
- data/docs/database/public.nodes_tags.md +0 -39
- data/docs/database/public.nodes_tags.svg +0 -112
- data/docs/database/public.ontology_structure.md +0 -48
- data/docs/database/public.ontology_structure.svg +0 -38
- data/docs/database/public.operations_log.md +0 -42
- data/docs/database/public.operations_log.svg +0 -130
- data/docs/database/public.relationships.md +0 -39
- data/docs/database/public.relationships.svg +0 -41
- data/docs/database/public.robot_activity.md +0 -46
- data/docs/database/public.robot_activity.svg +0 -35
- data/docs/database/public.robot_nodes.md +0 -48
- data/docs/database/public.robot_nodes.svg +0 -251
- data/docs/database/public.robots.md +0 -34
- data/docs/database/public.robots.svg +0 -165
- data/docs/database/public.schema_migrations.md +0 -29
- data/docs/database/public.schema_migrations.svg +0 -26
- data/docs/database/public.tags.md +0 -38
- data/docs/database/public.tags.svg +0 -147
- data/docs/database/public.topic_relationships.md +0 -45
- data/docs/database/public.topic_relationships.svg +0 -32
- data/docs/database/schema.json +0 -1814
- data/docs/database_rake_tasks.md +0 -353
- data/docs/development/rake-tasks.md +0 -1113
- data/docs/using_rake_tasks_in_your_app.md +0 -383
- data/examples/06_example_app/Rakefile +0 -71
- data/lib/htm/mcp/cli.rb +0 -582
- data/lib/htm/tasks.rb +0 -79
- data/lib/tasks/db.rake +0 -17
- data/lib/tasks/doc.rake +0 -300
- data/lib/tasks/files.rake +0 -292
- data/lib/tasks/htm.rake +0 -704
- data/lib/tasks/jobs.rake +0 -435
- data/lib/tasks/tags.rake +0 -189
- data/scripts/backfill_parent_tags.rb +0 -376
- data/scripts/normalize_plural_tags.rb +0 -335
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Example application task file for asgard (https://github.com/MadBomber/asgard).
|
|
4
|
+
#
|
|
5
|
+
# HTM's own commands (db, enrich, files, robots, tags) come from the htm
|
|
6
|
+
# gem's executable: in your own application run `htm db setup` and so on.
|
|
7
|
+
# This example lives inside the htm repository, so it runs the working
|
|
8
|
+
# copy's bin/htm instead.
|
|
9
|
+
#
|
|
10
|
+
# asgard # start the application
|
|
11
|
+
# asgard bootstrap # set up the HTM schema, then start
|
|
12
|
+
# htm db help # every HTM database command
|
|
13
|
+
|
|
14
|
+
class Tasks
|
|
15
|
+
HTM_BIN = File.expand_path("../../bin/htm", __dir__)
|
|
16
|
+
|
|
17
|
+
default_task :start
|
|
18
|
+
|
|
19
|
+
desc "Start the example application"
|
|
20
|
+
def start
|
|
21
|
+
require_relative "app"
|
|
22
|
+
ExampleApp.run
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
desc "Set up the HTM database schema, then start the application"
|
|
26
|
+
def bootstrap
|
|
27
|
+
sh "#{HTM_BIN} db setup"
|
|
28
|
+
start
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
desc "Reset the database for development: drop, set up and seed (destructive)"
|
|
32
|
+
def dev_reset
|
|
33
|
+
sh "#{HTM_BIN} db reset"
|
|
34
|
+
sh "#{HTM_BIN} db seed"
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
# This demonstrates a simple application using the HTM gem with full RubyLLM integration.
|
|
5
5
|
#
|
|
6
6
|
# Prerequisites:
|
|
7
|
-
# 1. Set up examples database:
|
|
7
|
+
# 1. Set up examples database: asgard examples setup
|
|
8
8
|
# 2. Install dependencies: bundle install
|
|
9
9
|
#
|
|
10
10
|
# Run via:
|
|
11
|
-
# ruby examples/
|
|
11
|
+
# ruby examples/06_example_app/app.rb
|
|
12
12
|
|
|
13
13
|
require_relative '../examples_helper'
|
|
14
14
|
require 'ruby_llm'
|
|
@@ -20,6 +20,7 @@ class ExampleApp
|
|
|
20
20
|
ExamplesHelper.print_environment
|
|
21
21
|
|
|
22
22
|
# Verify database is available
|
|
23
|
+
ExamplesHelper.reset_if_requested!
|
|
23
24
|
ExamplesHelper.require_database!
|
|
24
25
|
|
|
25
26
|
puts "Database configured: #{HTM.config.actual_database_name}"
|
|
@@ -31,36 +32,31 @@ class ExampleApp
|
|
|
31
32
|
c.logger = Logger.new($stdout)
|
|
32
33
|
c.logger.level = Logger::INFO
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
-
c.
|
|
36
|
-
c.embedding.model = 'nomic-embed-text'
|
|
37
|
-
c.embedding.dimensions = 768
|
|
38
|
-
c.providers.ollama.url = ENV['OLLAMA_URL'] || 'http://localhost:11434'
|
|
39
|
-
|
|
40
|
-
# Configure tag extraction (using Ollama - using smaller/faster model)
|
|
41
|
-
c.tag.provider = :ollama
|
|
42
|
-
c.tag.model = 'gemma3' # Smaller model (3.3GB) for faster tag generation
|
|
35
|
+
# Providers and models come from the configuration files and HTM_* variables
|
|
36
|
+
c.providers.lms.url = ENV['HTM_PROVIDERS__LMS__URL'] || 'http://localhost:1234/v1'
|
|
43
37
|
|
|
44
38
|
# Apply default implementations
|
|
45
39
|
c.reset_to_defaults
|
|
46
40
|
end
|
|
47
41
|
|
|
48
|
-
puts "✓ Configured with
|
|
42
|
+
puts "✓ Configured with LM Studio:"
|
|
49
43
|
puts " - Embeddings: #{HTM.configuration.embedding_model}"
|
|
50
44
|
puts " - Tags: #{HTM.configuration.tag_model}"
|
|
51
|
-
puts " -
|
|
45
|
+
puts " - LM Studio URL: #{HTM.configuration.lms_url}"
|
|
52
46
|
|
|
53
|
-
# Check if
|
|
54
|
-
puts "\nChecking
|
|
47
|
+
# Check if the LM Studio server is running
|
|
48
|
+
puts "\nChecking LM Studio connection..."
|
|
55
49
|
begin
|
|
56
50
|
require 'net/http'
|
|
57
|
-
uri = URI(HTM.configuration.
|
|
51
|
+
uri = URI("#{HTM::Config.openai_api_base(HTM.configuration.lms_url)}/models")
|
|
58
52
|
response = Net::HTTP.get_response(uri)
|
|
59
|
-
|
|
53
|
+
raise "HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess)
|
|
54
|
+
|
|
55
|
+
puts "✓ LM Studio server is running"
|
|
60
56
|
rescue StandardError => e
|
|
61
|
-
puts "⚠ Warning: Cannot connect to
|
|
57
|
+
puts "⚠ Warning: Cannot connect to LM Studio (#{e.message})"
|
|
62
58
|
puts " Embeddings and tags will not be generated."
|
|
63
|
-
puts " Install
|
|
59
|
+
puts " Install LM Studio from https://lmstudio.ai, then run: lms server start"
|
|
64
60
|
end
|
|
65
61
|
|
|
66
62
|
# Create HTM instance
|
|
@@ -69,7 +65,6 @@ class ExampleApp
|
|
|
69
65
|
|
|
70
66
|
# Remember some conversation (simulating a conversation)
|
|
71
67
|
puts "\nRemembering example conversation..."
|
|
72
|
-
puts "(Tags will be auto-extracted by LLM in background)"
|
|
73
68
|
|
|
74
69
|
node_1 = htm.remember(
|
|
75
70
|
"HTM provides intelligent memory management for LLM-based applications"
|
|
@@ -84,13 +79,8 @@ class ExampleApp
|
|
|
84
79
|
)
|
|
85
80
|
|
|
86
81
|
puts "✓ Remembered 3 conversation messages (nodes #{node_1}, #{node_2}, #{node_3})"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# Wait for background jobs to complete
|
|
90
|
-
# Note: Tag generation with LLM can take 10-15 seconds depending on model size
|
|
91
|
-
puts "\nWaiting for background jobs to complete (15 seconds)..."
|
|
92
|
-
puts "(Embeddings are fast, but tag generation requires LLM inference)"
|
|
93
|
-
sleep 15
|
|
82
|
+
# examples_helper.rb runs jobs inline, so embeddings and tags are done;
|
|
83
|
+
# with the :fiber or :active_job backend they arrive a moment later
|
|
94
84
|
|
|
95
85
|
# Check what was generated
|
|
96
86
|
puts "\n--- Generated Tags ---"
|
|
@@ -124,7 +114,6 @@ class ExampleApp
|
|
|
124
114
|
puts "\n1. Full-text Search for 'memory':"
|
|
125
115
|
fulltext_memories = htm.recall(
|
|
126
116
|
"memory",
|
|
127
|
-
timeframe: (Time.now - 3600)..Time.now,
|
|
128
117
|
strategy: :fulltext,
|
|
129
118
|
limit: 3
|
|
130
119
|
)
|
|
@@ -138,7 +127,6 @@ class ExampleApp
|
|
|
138
127
|
begin
|
|
139
128
|
vector_memories = htm.recall(
|
|
140
129
|
"intelligent memory system",
|
|
141
|
-
timeframe: (Time.now - 3600)..Time.now,
|
|
142
130
|
strategy: :vector,
|
|
143
131
|
limit: 3
|
|
144
132
|
)
|
|
@@ -156,7 +144,6 @@ class ExampleApp
|
|
|
156
144
|
begin
|
|
157
145
|
hybrid_memories = htm.recall(
|
|
158
146
|
"working memory architecture",
|
|
159
|
-
timeframe: (Time.now - 3600)..Time.now,
|
|
160
147
|
strategy: :hybrid,
|
|
161
148
|
limit: 3
|
|
162
149
|
)
|
|
@@ -178,15 +165,17 @@ class ExampleApp
|
|
|
178
165
|
puts " - Stores information in long-term memory"
|
|
179
166
|
puts " - Adds to working memory for immediate use"
|
|
180
167
|
puts " - Generates embeddings and tags in background"
|
|
168
|
+
puts " - occurred_at:/valid_from: record when it happened and held true"
|
|
181
169
|
puts ""
|
|
182
170
|
puts " 2. htm.recall(topic, timeframe:, strategy:, limit:)"
|
|
183
171
|
puts " - Retrieves relevant memories"
|
|
184
172
|
puts " - Strategies: :fulltext, :vector, :hybrid"
|
|
173
|
+
puts " - timeframe: filters on when it happened; as_of: on what was true then"
|
|
185
174
|
puts " - Results added to working memory"
|
|
186
175
|
puts ""
|
|
187
|
-
puts " 3. htm.forget(node_id
|
|
188
|
-
puts " -
|
|
189
|
-
puts " -
|
|
176
|
+
puts " 3. htm.forget(node_id)"
|
|
177
|
+
puts " - Soft deletes a memory node (htm.restore(node_id) brings it back)"
|
|
178
|
+
puts " - htm.forget(node_id, soft: false, confirm: :confirmed) deletes it for good"
|
|
190
179
|
puts ""
|
|
191
180
|
puts "Background Features:"
|
|
192
181
|
puts " - Automatic embedding generation (#{HTM.configuration.embedding_model})"
|
|
@@ -21,14 +21,12 @@ This example demonstrates using HTM in a command-line application with synchrono
|
|
|
21
21
|
source ~/.bashrc__tiger
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
2. **
|
|
24
|
+
2. **LM Studio** (recommended but optional)
|
|
25
25
|
```bash
|
|
26
|
-
# Install
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#
|
|
30
|
-
ollama pull nomic-embed-text # For embeddings
|
|
31
|
-
ollama pull llama3 # For tag extraction
|
|
26
|
+
# Install LM Studio from https://lmstudio.ai (it ships the `lms` CLI)
|
|
27
|
+
lms server start # serves http://localhost:1234/v1
|
|
28
|
+
lms get nomic-embed-text-v1.5 # For embeddings
|
|
29
|
+
lms get google/gemma-3-4b # For tag extraction
|
|
32
30
|
```
|
|
33
31
|
|
|
34
32
|
3. **Ruby Dependencies**
|
|
@@ -133,6 +131,7 @@ Processing...
|
|
|
133
131
|
[✓] Stored as node 1 (1243.56ms)
|
|
134
132
|
Embedding: 768 dimensions
|
|
135
133
|
Tags: database:postgresql, search:semantic, ai:vector-search
|
|
134
|
+
Occurred: 2026-12-05 09:14:02 -0600 (recorded)
|
|
136
135
|
|
|
137
136
|
htm> remember TimescaleDB is built on PostgreSQL for time-series
|
|
138
137
|
|
|
@@ -252,28 +251,29 @@ echo $HTM_DATABASE__URL
|
|
|
252
251
|
psql $HTM_DATABASE__URL -c "SELECT version();"
|
|
253
252
|
|
|
254
253
|
# Initialize schema if needed
|
|
255
|
-
cd ../.. &&
|
|
254
|
+
cd ../.. && bundle exec bin/htm db setup
|
|
256
255
|
```
|
|
257
256
|
|
|
258
|
-
###
|
|
257
|
+
### LM Studio Connection Errors
|
|
259
258
|
|
|
260
259
|
```bash
|
|
261
|
-
# Check if
|
|
262
|
-
curl http://localhost:
|
|
260
|
+
# Check if the LM Studio server is running (lists available models)
|
|
261
|
+
curl http://localhost:1234/v1/models
|
|
263
262
|
|
|
264
|
-
# Start
|
|
265
|
-
|
|
263
|
+
# Start the LM Studio server
|
|
264
|
+
lms server start
|
|
266
265
|
|
|
267
|
-
# Verify models are
|
|
268
|
-
|
|
266
|
+
# Verify models are downloaded
|
|
267
|
+
lms ls
|
|
269
268
|
```
|
|
270
269
|
|
|
270
|
+
If your server is not on the default port, set `HTM_PROVIDERS__LMS__URL` (default `http://localhost:1234/v1`).
|
|
271
|
+
|
|
271
272
|
### Slow Performance
|
|
272
273
|
|
|
273
274
|
```bash
|
|
274
|
-
# Use
|
|
275
|
-
export
|
|
276
|
-
export TAG_MODEL=gemma2:2b
|
|
275
|
+
# Use a smaller tag model (any chat model LM Studio has downloaded)
|
|
276
|
+
export HTM_TAG__MODEL=google/gemma-3-4b
|
|
277
277
|
|
|
278
278
|
# Or disable features
|
|
279
279
|
# (modify htm_cli.rb to skip tag generation)
|
|
@@ -10,32 +10,29 @@
|
|
|
10
10
|
# - Database persistence
|
|
11
11
|
#
|
|
12
12
|
# Prerequisites:
|
|
13
|
-
# 1. Set up examples database:
|
|
13
|
+
# 1. Set up examples database: asgard examples setup
|
|
14
14
|
# 2. Install dependencies: bundle install
|
|
15
15
|
#
|
|
16
16
|
# Usage:
|
|
17
|
-
# ruby examples/
|
|
17
|
+
# ruby examples/07_cli_app/htm_cli.rb
|
|
18
18
|
#
|
|
19
19
|
# Environment:
|
|
20
|
-
#
|
|
20
|
+
# HTM_PROVIDERS__LMS__URL - LM Studio server URL (default: http://localhost:1234/v1)
|
|
21
21
|
#
|
|
22
22
|
|
|
23
23
|
require_relative '../examples_helper'
|
|
24
24
|
require 'io/console'
|
|
25
25
|
require 'ruby_llm'
|
|
26
26
|
|
|
27
|
-
PROVIDER = :
|
|
28
|
-
MODEL = '
|
|
27
|
+
PROVIDER = :lms
|
|
28
|
+
MODEL = 'google/gemma-3-4b'
|
|
29
29
|
|
|
30
|
-
# Configure RubyLLM for
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ollama_api_base = ollama_url.end_with?('/v1') ? ollama_url : "#{ollama_url}/v1"
|
|
34
|
-
config.ollama_api_base = ollama_api_base
|
|
35
|
-
end
|
|
30
|
+
# Configure RubyLLM for the LM Studio provider exactly as HTM does
|
|
31
|
+
# (loads the provider gems and sets lms_api_base from HTM.config.lms_url)
|
|
32
|
+
HTM.config.configure_ruby_llm(PROVIDER)
|
|
36
33
|
|
|
37
|
-
#
|
|
38
|
-
#
|
|
34
|
+
# LM Studio is a local provider: RubyLLM assumes any model id exists and
|
|
35
|
+
# LM Studio just-in-time loads the model on the first request.
|
|
39
36
|
|
|
40
37
|
class HTMCli
|
|
41
38
|
def initialize
|
|
@@ -155,6 +152,9 @@ class HTMCli
|
|
|
155
152
|
else
|
|
156
153
|
puts " Tags: None"
|
|
157
154
|
end
|
|
155
|
+
|
|
156
|
+
# Event time: stated, inferred from the text ("yesterday"), or when stored
|
|
157
|
+
puts " Occurred: #{node.occurred_at} (#{node.time_source})"
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
def handle_recall(topic)
|
|
@@ -167,7 +167,7 @@ class HTMCli
|
|
|
167
167
|
puts "Strategy: hybrid (vector + fulltext + tags)"
|
|
168
168
|
|
|
169
169
|
# Show tags extracted from query and which ones matched
|
|
170
|
-
tag_result = @htm.long_term_memory.
|
|
170
|
+
tag_result = @htm.long_term_memory.query_tag_matches(topic)
|
|
171
171
|
|
|
172
172
|
if tag_result[:extracted].any?
|
|
173
173
|
puts "Extracted tags: #{tag_result[:extracted].join(', ')}"
|
|
@@ -190,8 +190,11 @@ class HTMCli
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
start_time = Time.now
|
|
193
|
+
# :auto takes a time expression out of the topic ("billing last week")
|
|
194
|
+
# and filters on when the memories happened
|
|
193
195
|
memories = @htm.recall(
|
|
194
196
|
topic,
|
|
197
|
+
timeframe: :auto,
|
|
195
198
|
limit: 10,
|
|
196
199
|
strategy: :hybrid,
|
|
197
200
|
raw: true
|
|
@@ -208,7 +211,8 @@ class HTMCli
|
|
|
208
211
|
memories.each_with_index do |memory, index|
|
|
209
212
|
puts
|
|
210
213
|
puts "#{index + 1}. Node #{memory['id']}"
|
|
211
|
-
puts "
|
|
214
|
+
puts " Occurred: #{memory['occurred_at']}"
|
|
215
|
+
puts " Created: #{memory['created_at']}"
|
|
212
216
|
puts " Content: #{memory['content']}"
|
|
213
217
|
|
|
214
218
|
# Show scores from hybrid search
|
|
@@ -353,6 +357,7 @@ class HTMCli
|
|
|
353
357
|
puts " Shows matching tags, scores (similarity, tag_boost, combined)"
|
|
354
358
|
puts " Example: recall PostgreSQL"
|
|
355
359
|
puts " Example: recall database optimization"
|
|
360
|
+
puts " Example: recall billing last week (filters on when it happened)"
|
|
356
361
|
puts
|
|
357
362
|
puts " tags [prefix]"
|
|
358
363
|
puts " List all tags with their linked node content"
|
|
@@ -379,18 +384,20 @@ class HTMCli
|
|
|
379
384
|
end
|
|
380
385
|
|
|
381
386
|
# Check database configuration
|
|
387
|
+
ExamplesHelper.reset_if_requested!
|
|
382
388
|
ExamplesHelper.require_database!
|
|
383
389
|
|
|
384
|
-
# Check
|
|
390
|
+
# Check LM Studio connection (optional but recommended)
|
|
385
391
|
begin
|
|
386
392
|
require 'net/http'
|
|
387
|
-
uri = URI(
|
|
393
|
+
uri = URI("#{HTM::Config.openai_api_base(HTM.config.lms_url)}/models")
|
|
388
394
|
response = Net::HTTP.get_response(uri)
|
|
395
|
+
raise "HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess)
|
|
389
396
|
rescue StandardError => e
|
|
390
397
|
puts
|
|
391
|
-
puts "[⚠] Warning: Cannot connect to
|
|
398
|
+
puts "[⚠] Warning: Cannot connect to LM Studio (#{e.message})"
|
|
392
399
|
puts " Embeddings and tags will not be generated"
|
|
393
|
-
puts " Install
|
|
400
|
+
puts " Install LM Studio from https://lmstudio.ai, then run: lms server start"
|
|
394
401
|
puts
|
|
395
402
|
puts "Continue anyway? (y/n) "
|
|
396
403
|
answer = gets.chomp.downcase
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../..
|
|
3
3
|
specs:
|
|
4
|
-
htm (0.0
|
|
4
|
+
htm (0.1.0)
|
|
5
5
|
activesupport
|
|
6
|
-
anyway_config (>= 2.6)
|
|
7
6
|
async (~> 2.0)
|
|
8
|
-
baran
|
|
9
7
|
chronic
|
|
10
8
|
fast-mcp
|
|
9
|
+
logger
|
|
11
10
|
lru_redux
|
|
11
|
+
myway_config (>= 0.1.2)
|
|
12
12
|
pg (>= 1.5.0)
|
|
13
|
+
robot_lab (>= 0.6.2)
|
|
13
14
|
ruby-progressbar
|
|
14
|
-
ruby_llm
|
|
15
|
+
ruby_llm (>= 2.2.3, < 3)
|
|
16
|
+
ruby_llm-providers-apfel (>= 0.2.1)
|
|
17
|
+
ruby_llm-providers-claude_code (>= 0.0.1)
|
|
18
|
+
ruby_llm-providers-codex (>= 0.0.1)
|
|
19
|
+
ruby_llm-providers-copilot (>= 0.0.1)
|
|
20
|
+
ruby_llm-providers-lms (>= 0.2.1)
|
|
15
21
|
sequel (>= 5.0)
|
|
16
22
|
sequel_pg
|
|
17
23
|
simple_flow
|
|
24
|
+
thor (~> 1.3)
|
|
18
25
|
tiktoken_ruby
|
|
19
26
|
|
|
20
27
|
GEM
|
|
21
28
|
remote: https://rubygems.org/
|
|
22
29
|
specs:
|
|
23
|
-
activesupport (8.1.
|
|
30
|
+
activesupport (8.1.4.1)
|
|
24
31
|
base64
|
|
25
32
|
bigdecimal
|
|
26
33
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -33,29 +40,26 @@ GEM
|
|
|
33
40
|
securerandom (>= 0.3)
|
|
34
41
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
35
42
|
uri (>= 0.13.1)
|
|
36
|
-
addressable (2.
|
|
43
|
+
addressable (2.10.0)
|
|
37
44
|
public_suffix (>= 2.0.2, < 8.0)
|
|
38
|
-
anyway_config (2.
|
|
45
|
+
anyway_config (2.9.1)
|
|
39
46
|
ruby-next-core (~> 1.0)
|
|
40
|
-
async (2.
|
|
47
|
+
async (2.46.0)
|
|
41
48
|
console (~> 1.29)
|
|
42
49
|
fiber-annotation
|
|
43
|
-
io-event (~> 1.
|
|
44
|
-
metrics (~> 0.12)
|
|
45
|
-
traces (~> 0.18)
|
|
46
|
-
baran (0.2.1)
|
|
50
|
+
io-event (~> 1.21)
|
|
47
51
|
base64 (0.3.0)
|
|
48
|
-
bigdecimal (4.
|
|
52
|
+
bigdecimal (4.1.3)
|
|
49
53
|
chronic (0.10.2)
|
|
50
|
-
concurrent-ruby (1.3.
|
|
51
|
-
connection_pool (3.0.
|
|
52
|
-
console (1.
|
|
54
|
+
concurrent-ruby (1.3.8)
|
|
55
|
+
connection_pool (3.0.3)
|
|
56
|
+
console (1.38.0)
|
|
53
57
|
fiber-annotation
|
|
54
58
|
fiber-local (~> 1.1)
|
|
55
59
|
json
|
|
56
60
|
drb (2.2.3)
|
|
57
|
-
dry-configurable (1.
|
|
58
|
-
dry-core (~> 1.
|
|
61
|
+
dry-configurable (1.4.0)
|
|
62
|
+
dry-core (~> 1.0)
|
|
59
63
|
zeitwerk (~> 2.6)
|
|
60
64
|
dry-core (1.2.0)
|
|
61
65
|
concurrent-ruby (~> 1.0)
|
|
@@ -63,34 +67,33 @@ GEM
|
|
|
63
67
|
zeitwerk (~> 2.6)
|
|
64
68
|
dry-inflector (1.3.1)
|
|
65
69
|
dry-initializer (3.2.0)
|
|
66
|
-
dry-logic (1.6.
|
|
70
|
+
dry-logic (1.6.1)
|
|
67
71
|
bigdecimal
|
|
68
72
|
concurrent-ruby (~> 1.0)
|
|
69
73
|
dry-core (~> 1.1)
|
|
70
74
|
zeitwerk (~> 2.6)
|
|
71
|
-
dry-schema (1.
|
|
75
|
+
dry-schema (1.17.0)
|
|
72
76
|
concurrent-ruby (~> 1.0)
|
|
73
77
|
dry-configurable (~> 1.0, >= 1.0.1)
|
|
74
78
|
dry-core (~> 1.1)
|
|
75
79
|
dry-initializer (~> 3.2)
|
|
76
80
|
dry-logic (~> 1.6)
|
|
77
|
-
dry-types (~> 1.
|
|
81
|
+
dry-types (~> 1.9, >= 1.9.1)
|
|
78
82
|
zeitwerk (~> 2.6)
|
|
79
|
-
dry-types (1.9.
|
|
83
|
+
dry-types (1.9.2)
|
|
80
84
|
bigdecimal (>= 3.0)
|
|
81
85
|
concurrent-ruby (~> 1.0)
|
|
82
86
|
dry-core (~> 1.0)
|
|
83
87
|
dry-inflector (~> 1.0)
|
|
84
88
|
dry-logic (~> 1.4)
|
|
85
89
|
zeitwerk (~> 2.6)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
faraday-net_http (>= 2.0, < 3.5)
|
|
90
|
+
faraday (2.15.1)
|
|
91
|
+
faraday-net_http (>= 2.0, < 3.6)
|
|
89
92
|
json
|
|
90
93
|
logger
|
|
91
94
|
faraday-multipart (1.2.0)
|
|
92
95
|
multipart-post (~> 2.0)
|
|
93
|
-
faraday-net_http (3.
|
|
96
|
+
faraday-net_http (3.5.0)
|
|
94
97
|
net-http (~> 0.5)
|
|
95
98
|
faraday-retry (2.4.0)
|
|
96
99
|
faraday (~> 2.0)
|
|
@@ -101,6 +104,7 @@ GEM
|
|
|
101
104
|
json (~> 2.0)
|
|
102
105
|
mime-types (~> 3.4)
|
|
103
106
|
rack (>= 2.0, < 4.0)
|
|
107
|
+
ffi (1.17.3)
|
|
104
108
|
ffi (1.17.3-aarch64-linux-gnu)
|
|
105
109
|
ffi (1.17.3-aarch64-linux-musl)
|
|
106
110
|
ffi (1.17.3-arm-linux-gnu)
|
|
@@ -113,73 +117,103 @@ GEM
|
|
|
113
117
|
fiber-local (1.1.0)
|
|
114
118
|
fiber-storage
|
|
115
119
|
fiber-storage (1.0.1)
|
|
116
|
-
i18n (1.
|
|
120
|
+
i18n (1.15.2)
|
|
117
121
|
concurrent-ruby (~> 1.0)
|
|
118
|
-
io-event (1.
|
|
119
|
-
json (2.
|
|
122
|
+
io-event (1.22.3)
|
|
123
|
+
json (2.21.2)
|
|
120
124
|
listen (3.10.0)
|
|
121
125
|
logger
|
|
122
126
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
123
127
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
124
128
|
logger (1.7.0)
|
|
125
129
|
lru_redux (1.1.0)
|
|
126
|
-
marcel (
|
|
127
|
-
|
|
128
|
-
mime-types (3.7.0)
|
|
130
|
+
marcel (2.1.0)
|
|
131
|
+
mime-types (3.7.1)
|
|
129
132
|
logger
|
|
130
133
|
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
131
|
-
mime-types-data (3.2026.
|
|
132
|
-
minitest (6.0
|
|
133
|
-
|
|
134
|
+
mime-types-data (3.2026.1202)
|
|
135
|
+
minitest (6.1.0)
|
|
136
|
+
drb (~> 2.0)
|
|
137
|
+
prism (>= 1.5, < 3)
|
|
134
138
|
multi_json (1.19.1)
|
|
135
139
|
multipart-post (2.4.1)
|
|
136
140
|
mustermann (3.0.4)
|
|
137
141
|
ruby2_keywords (~> 0.0.1)
|
|
138
|
-
|
|
142
|
+
myway_config (0.1.2)
|
|
143
|
+
anyway_config (>= 2.0)
|
|
144
|
+
net-http (0.10.0)
|
|
145
|
+
net-protocol (>= 0.3.0)
|
|
139
146
|
uri (>= 0.11.1)
|
|
147
|
+
net-protocol (0.4.0)
|
|
148
|
+
timeout
|
|
140
149
|
nio4r (2.7.5)
|
|
141
|
-
|
|
142
|
-
pg (1.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
pg (1.6.3-x86_64-linux)
|
|
147
|
-
pg (1.6.3-x86_64-linux-musl)
|
|
148
|
-
prism (1.8.0)
|
|
149
|
-
public_suffix (7.0.2)
|
|
150
|
+
ostruct (0.6.3)
|
|
151
|
+
pg (1.7.0)
|
|
152
|
+
prism (2.1.0)
|
|
153
|
+
prompt_manager (1.2.0)
|
|
154
|
+
public_suffix (7.1.0)
|
|
150
155
|
puma (6.6.1)
|
|
151
156
|
nio4r (~> 2.0)
|
|
152
|
-
rack (2.2.
|
|
157
|
+
rack (2.2.26)
|
|
153
158
|
rack-protection (3.2.0)
|
|
154
159
|
base64 (>= 0.1.0)
|
|
155
160
|
rack (~> 2.2, >= 2.2.4)
|
|
161
|
+
ractor_queue (0.2.1)
|
|
162
|
+
rice (~> 4.0)
|
|
163
|
+
rake-compiler-dock (1.12.0)
|
|
156
164
|
rb-fsevent (0.11.2)
|
|
157
165
|
rb-inotify (0.11.1)
|
|
158
166
|
ffi (~> 1.0)
|
|
167
|
+
rb_sys (0.9.130)
|
|
168
|
+
rake-compiler-dock (= 1.12.0)
|
|
159
169
|
redis (5.4.1)
|
|
160
170
|
redis-client (>= 0.22.0)
|
|
161
171
|
redis-client (0.26.3)
|
|
162
172
|
connection_pool
|
|
163
173
|
rerun (0.14.0)
|
|
164
174
|
listen (~> 3.0)
|
|
165
|
-
|
|
175
|
+
rice (4.12.0)
|
|
176
|
+
robot_lab (0.6.2)
|
|
177
|
+
async (~> 2.0)
|
|
178
|
+
myway_config (~> 0.1)
|
|
179
|
+
prompt_manager (~> 1.0)
|
|
180
|
+
ractor_queue (~> 0.2)
|
|
181
|
+
ruby_llm (>= 2.2.0, < 3)
|
|
182
|
+
ruby_llm-providers-apfel (~> 0.2.1)
|
|
183
|
+
ruby_llm-providers-lms (~> 0.2.1)
|
|
184
|
+
simple_flow (~> 0.4)
|
|
185
|
+
tsort (>= 0.2)
|
|
186
|
+
typed_bus (~> 0.0.1)
|
|
187
|
+
zeitwerk (~> 2.6)
|
|
188
|
+
ruby-next-core (1.2.1)
|
|
166
189
|
ruby-progressbar (1.13.0)
|
|
167
190
|
ruby2_keywords (0.0.5)
|
|
168
|
-
ruby_llm (
|
|
191
|
+
ruby_llm (2.2.3)
|
|
169
192
|
base64
|
|
170
|
-
|
|
171
|
-
faraday (>= 1.10.0)
|
|
193
|
+
faraday (>= 1.10.0, != 2.0.0)
|
|
172
194
|
faraday-multipart (>= 1)
|
|
173
195
|
faraday-net_http (>= 1)
|
|
174
196
|
faraday-retry (>= 1)
|
|
175
|
-
|
|
176
|
-
|
|
197
|
+
json (< 4)
|
|
198
|
+
logger
|
|
199
|
+
marcel (>= 1.0, < 3)
|
|
200
|
+
schematist (~> 1.1)
|
|
177
201
|
zeitwerk (~> 2)
|
|
178
|
-
ruby_llm-
|
|
202
|
+
ruby_llm-providers-apfel (0.2.1)
|
|
203
|
+
ruby_llm (>= 2.0.0)
|
|
204
|
+
ruby_llm-providers-claude_code (0.0.2)
|
|
205
|
+
ruby_llm (>= 2.1, < 3)
|
|
206
|
+
ruby_llm-providers-codex (0.0.1)
|
|
207
|
+
ruby_llm (>= 2.1, < 3)
|
|
208
|
+
ruby_llm-providers-copilot (0.0.1)
|
|
209
|
+
ruby_llm (>= 2.1, < 3)
|
|
210
|
+
ruby_llm-providers-lms (0.2.1)
|
|
211
|
+
ruby_llm (>= 2.0.0)
|
|
212
|
+
schematist (1.1.0)
|
|
179
213
|
securerandom (0.4.1)
|
|
180
|
-
sequel (5.
|
|
214
|
+
sequel (5.111.0)
|
|
181
215
|
bigdecimal
|
|
182
|
-
sequel_pg (1.
|
|
216
|
+
sequel_pg (1.21.0)
|
|
183
217
|
pg (>= 0.18.0, != 1.2.0)
|
|
184
218
|
sequel (>= 4.38.0)
|
|
185
219
|
sidekiq (7.3.9)
|
|
@@ -188,7 +222,7 @@ GEM
|
|
|
188
222
|
logger
|
|
189
223
|
rack (>= 2.2.4)
|
|
190
224
|
redis-client (>= 0.22.2)
|
|
191
|
-
simple_flow (0.
|
|
225
|
+
simple_flow (0.4.0)
|
|
192
226
|
sinatra (3.2.0)
|
|
193
227
|
mustermann (~> 3.0)
|
|
194
228
|
rack (~> 2.2, >= 2.2.4)
|
|
@@ -200,19 +234,18 @@ GEM
|
|
|
200
234
|
rack-protection (= 3.2.0)
|
|
201
235
|
sinatra (= 3.2.0)
|
|
202
236
|
tilt (~> 2.0)
|
|
203
|
-
|
|
204
|
-
tiktoken_ruby (0.0.
|
|
205
|
-
|
|
206
|
-
tiktoken_ruby (0.0.15.1-arm64-darwin)
|
|
207
|
-
tiktoken_ruby (0.0.15.1-x86_64-darwin)
|
|
208
|
-
tiktoken_ruby (0.0.15.1-x86_64-linux)
|
|
209
|
-
tiktoken_ruby (0.0.15.1-x86_64-linux-musl)
|
|
237
|
+
thor (1.5.0)
|
|
238
|
+
tiktoken_ruby (0.0.18)
|
|
239
|
+
rb_sys (~> 0.9)
|
|
210
240
|
tilt (2.7.0)
|
|
211
|
-
|
|
241
|
+
timeout (0.6.1)
|
|
242
|
+
tsort (0.2.0)
|
|
243
|
+
typed_bus (0.0.1)
|
|
244
|
+
async (~> 2.0)
|
|
212
245
|
tzinfo (2.0.6)
|
|
213
246
|
concurrent-ruby (~> 1.0)
|
|
214
|
-
uri (1.1.
|
|
215
|
-
zeitwerk (2.
|
|
247
|
+
uri (1.1.2)
|
|
248
|
+
zeitwerk (2.8.3)
|
|
216
249
|
|
|
217
250
|
PLATFORMS
|
|
218
251
|
aarch64-linux
|
|
@@ -230,6 +263,7 @@ PLATFORMS
|
|
|
230
263
|
DEPENDENCIES
|
|
231
264
|
htm!
|
|
232
265
|
multi_json
|
|
266
|
+
ostruct
|
|
233
267
|
puma (~> 6.0)
|
|
234
268
|
redis (~> 5.0)
|
|
235
269
|
rerun
|
|
@@ -238,4 +272,4 @@ DEPENDENCIES
|
|
|
238
272
|
sinatra-contrib (~> 3.0)
|
|
239
273
|
|
|
240
274
|
BUNDLED WITH
|
|
241
|
-
|
|
275
|
+
4.1.1
|