@pennixrv/trellis-paseo-adapter 0.7.2-beta.5 → 0.7.2-beta.6
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 +1 -1
- package/src/adapter.js +2 -2
package/package.json
CHANGED
package/src/adapter.js
CHANGED
|
@@ -67,7 +67,7 @@ export async function perform(request, api, client, identity) {
|
|
|
67
67
|
const cwd = realpathSync(text(p.cwd));
|
|
68
68
|
const config = { provider: `codex/${text(p.model)}`, thinkingOptionId: text(p.effort), modeId: 'full-access', systemPrompt: text(p.role) };
|
|
69
69
|
if (p.codegraph) config.mcpServers = { codegraph: { type: 'stdio', command: 'codegraph', args: ['serve', '--mcp', '--bound-worktree', cwd] } };
|
|
70
|
-
const ref = await api.workspaces.ref(text(p.workspace_id)).agents.create({ config, env: { TRELLIS_DELEGATION_CONTEXT: text(p.context) }, prompt: text(p.prompt), labels: p.labels, idempotencyKey: createHash('sha256').update(request.attempt_id + request.binding_revision).digest('hex')
|
|
70
|
+
const ref = await api.workspaces.ref(text(p.workspace_id)).agents.create({ config, env: { TRELLIS_DELEGATION_CONTEXT: text(p.context) }, prompt: text(p.prompt), labels: p.labels, idempotencyKey: createHash('sha256').update(request.attempt_id + request.binding_revision).digest('hex') });
|
|
71
71
|
await ref.refresh();
|
|
72
72
|
return { identity, agent: projectAgent(ref.current()) };
|
|
73
73
|
}
|
|
@@ -91,7 +91,7 @@ export async function perform(request, api, client, identity) {
|
|
|
91
91
|
const agents = [], workspaces = [];
|
|
92
92
|
let cursor;
|
|
93
93
|
do {
|
|
94
|
-
const page = await api.agents.list({ cursor, limit: 100, includeArchived: true });
|
|
94
|
+
const page = await api.agents.list({ cursor, limit: 100, includeArchived: true, includeBackground: true });
|
|
95
95
|
agents.push(...page.entries.map(e => projectAgent(e.agent ?? e)));
|
|
96
96
|
cursor = page.pageInfo?.nextCursor;
|
|
97
97
|
if (agents.length > 1000) refuse('unsupported');
|