Conversation
* feat(transport): replace shared chat transport with mothership-stream module * improvement(contracts): regenerate contracts from go * feat(tools): add tool catalog codegen from go tool contracts * feat(tools): add tool-executor dispatch framework for sim side tool routing * feat(orchestrator): rewrite tool dispatch with catalog-driven executor and simplified resume loop * feat(orchestrator): checkpoint resume flow * refactor(copilot): consolidate orchestrator into request/ layer * refactor(mothership): reorganize lib/copilot into structured subdirectories * refactor(mothership): canonical transcript layer, dead code cleanup, type consolidation * refactor(mothership): rebase onto latest staging * refactor(mothership): rename request continue to lifecycle * feat(trace): add initial version of request traces * improvement(stream): batch stream from redis * fix(resume): fix the resume checkpoint * fix(resume): fix resume client tool * fix(subagents): subagent resume should join on existing subagent text block * improvement(reconnect): harden reconnect logic * fix(superagent): fix superagent integration tools * improvement(stream): improve stream perf * Rebase with origin dev * fix(tests): fix failing test * fix(build): fix type errors * fix(build): fix build errors * fix(build): fix type errors * feat(mothership): add cli execution * fix(mothership): fix function execute tests
Adds `log` as a first-class mothership resource type so copilot can open and display workflow execution logs as tabs alongside workflows, tables, files, and knowledge bases. - Add `log` to MothershipResourceType, all Zod enums, and VALID_RESOURCE_TYPES - Register log in RESOURCE_REGISTRY (Library icon) and RESOURCE_INVALIDATORS - Add EmbeddedLog and EmbeddedLogActions components in resource-content - Export WorkflowOutputSection from log-details for reuse in EmbeddedLog - Add log resolution branch in open_resource handler via new getLogById service - Include log id in get_workflow_logs response and extract resources from output - Exclude log from manual add-resource dropdown (enters via copilot tools only) - Regenerate copilot contracts after adding log to open_resource Go enum
…closed on new task (#4113) Co-authored-by: Theodore Li <theo@sim.ai>
Co-authored-by: Theodore Li <theo@sim.ai>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds a copilot revert-to-deployment-version tool ( Confidence Score: 5/5Safe to merge; all findings are style/guideline violations with no runtime impact. The core logic — shared apps/sim/lib/copilot/chat/persisted-message.ts (crypto.randomUUID), apps/sim/lib/copilot/tools/server/user/set-environment-variables.ts (any types) Important Files Changed
Sequence DiagramsequenceDiagram
participant Client as Browser / Copilot
participant Route as POST /deployments/[version]/revert
participant CopilotTool as executeRevertToVersion (manage.ts)
participant Orchestration as performRevertToVersion (deploy.ts)
participant DB as Database
Client->>Route: POST with version param
Route->>Route: validateWorkflowPermissions (admin)
Route->>Orchestration: performRevertToVersion
Orchestration->>DB: SELECT deployment version state
DB-->>Orchestration: deployedState
Orchestration->>DB: saveWorkflowToNormalizedTables
Orchestration->>DB: UPDATE workflow lastSynced
Orchestration-->>Route: { success, lastSaved }
Route-->>Client: 200 { message, lastSaved }
Client->>CopilotTool: executeRevertToVersion
CopilotTool->>CopilotTool: ensureWorkflowAccess (admin)
CopilotTool->>Orchestration: performRevertToVersion
Orchestration->>DB: SELECT deployment version state
DB-->>Orchestration: deployedState
Orchestration->>DB: saveWorkflowToNormalizedTables
Orchestration-->>CopilotTool: { success, lastSaved }
CopilotTool-->>Client: { success, output: { message, lastSaved } }
|
Summary
Fix revert to deployment and set env var tools
Type of Change
Testing
Manual
Checklist