mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
fix linear CI fetch ownership and help contract
This commit is contained in:
@@ -450,7 +450,7 @@ describe('orca root help', () => {
|
||||
expect(listIssuesHelp).toContain('--workspace <id|all> Connected Linear workspace id, or all')
|
||||
expect(listIssuesHelp).toContain('0=none, 1=urgent, 2=high, 3=medium, 4=low')
|
||||
expect(listIssuesHelp).toContain(
|
||||
'--limit <n> Max issues to return; omit to return every match'
|
||||
'--limit <n> Max issues to return; omit to read until exhaustion or a capacity/time stop'
|
||||
)
|
||||
expect(listIssuesHelp).not.toContain('Line cursor from a previous read')
|
||||
expect(callMock).not.toHaveBeenCalled()
|
||||
|
||||
@@ -73,7 +73,7 @@ export const LINEAR_MCP_COMMAND_SPECS: CommandSpec[] = [
|
||||
'orca linear list-issues --cursor <cursor> --json'
|
||||
],
|
||||
notes: [
|
||||
'Omitting --limit returns every match (result.meta.limit is null); --limit <n> caps the read.',
|
||||
'Omitting --limit reads until exhaustion or a capacity/time stop (result.meta.limit is null); --limit <n> caps the read.',
|
||||
'JSON sets result.truncated when a cap held results back; text prints truncated: showing N.',
|
||||
'Reuse --cursor from the previous page. Issued cursors bind the workspace; raw Linear cursors still need --workspace.',
|
||||
'--priority is 0=none, 1=urgent, 2=high, 3=medium, 4=low. JSON includes priorityLabel on each issue.'
|
||||
|
||||
@@ -4,6 +4,7 @@ import { ISSUE_FIELDS } from './issue-context-raw'
|
||||
import { linearError } from './issue-context-errors'
|
||||
import { readFetchResponseBytesWithinLimit } from '../../shared/fetch-response-body'
|
||||
import { assertJsonTextStructureWithinLimits } from '../../shared/json-text-structure-limit'
|
||||
import { getMainHttpClient } from '../network/http-client'
|
||||
|
||||
const nullableText = z.string().nullish()
|
||||
const named = z.object({
|
||||
@@ -78,7 +79,7 @@ export async function acquireIssueListPage(
|
||||
: (apiKey ?? '')
|
||||
})
|
||||
new Headers(suppliedHeaders).forEach((value, name) => headers.set(name, value))
|
||||
const response = await fetch(apiUrl ?? 'https://api.linear.app/graphql', {
|
||||
const response = await getMainHttpClient().fetch(apiUrl ?? 'https://api.linear.app/graphql', {
|
||||
...init,
|
||||
method: 'POST',
|
||||
headers,
|
||||
|
||||
Reference in New Issue
Block a user