mirror of
https://github.com/stablyai/orca.git
synced 2026-10-01 08:01:56 +00:00
Add read-only orca linear CLI with trusted launch-prompt pointer (V1) (#5126)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -54,7 +54,38 @@ describe('runRemoteOrcaCli', () => {
|
||||
}),
|
||||
getOrchestrationDb: () => db,
|
||||
deliverPendingMessagesForHandle: vi.fn(),
|
||||
notifyMessageArrived: vi.fn()
|
||||
notifyMessageArrived: vi.fn(),
|
||||
linearIssueContext: vi.fn(async (request: unknown) => ({
|
||||
request,
|
||||
issue: {
|
||||
id: 'issue-1',
|
||||
identifier: 'ENG-123',
|
||||
title: 'Fix thing',
|
||||
url: 'https://linear.app/acme/issue/ENG-123',
|
||||
labels: []
|
||||
},
|
||||
meta: {
|
||||
requested: {
|
||||
current: true,
|
||||
include: { comments: true, children: true, attachments: true, relations: true },
|
||||
depth: 2
|
||||
},
|
||||
resolved: {
|
||||
id: 'issue-1',
|
||||
identifier: 'ENG-123',
|
||||
workspaceId: 'workspace-1',
|
||||
workspaceName: 'Acme'
|
||||
},
|
||||
partial: false,
|
||||
includeErrors: [],
|
||||
sections: {}
|
||||
}
|
||||
})),
|
||||
linearSearchForAgents: vi.fn(async (request: unknown) => ({
|
||||
request,
|
||||
issues: [],
|
||||
meta: { query: 'auth bug', limit: 5, returned: 0, limitReached: false }
|
||||
}))
|
||||
} as unknown as OrcaRuntimeService
|
||||
return { runtime, db }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user