aglio-worker 0.86.0 → 0.88.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.
- package/agent.js +46 -5
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -70931,7 +70931,8 @@ var REMOTE_CONSULT_READ_TOOLS = [
|
|
|
70931
70931
|
"project_history",
|
|
70932
70932
|
"card_history",
|
|
70933
70933
|
"agent_list",
|
|
70934
|
-
"member_list"
|
|
70934
|
+
"member_list",
|
|
70935
|
+
"job_list"
|
|
70935
70936
|
];
|
|
70936
70937
|
var REMOTE_CONSULT_TOOLS = [
|
|
70937
70938
|
...REMOTE_CONSULT_READ_TOOLS,
|
|
@@ -70943,7 +70944,8 @@ var REMOTE_CONSULT_TOOLS = [
|
|
|
70943
70944
|
"spec_propose",
|
|
70944
70945
|
"run_start",
|
|
70945
70946
|
"assign_card",
|
|
70946
|
-
"card_delete"
|
|
70947
|
+
"card_delete",
|
|
70948
|
+
"job_run"
|
|
70947
70949
|
];
|
|
70948
70950
|
|
|
70949
70951
|
// ../../packages/shared/src/workers.ts
|
|
@@ -85817,7 +85819,7 @@ async function cleanupRemoteContainers(input2) {
|
|
|
85817
85819
|
}
|
|
85818
85820
|
|
|
85819
85821
|
// src/remote-card-run.ts
|
|
85820
|
-
var GIT_USER = { name: "Aglio Agent", email: "agent@aglio.
|
|
85822
|
+
var GIT_USER = { name: "Aglio Agent", email: "agent@aglio.xyz" };
|
|
85821
85823
|
function shellArg2(value) {
|
|
85822
85824
|
return /^[A-Za-z0-9_./:@-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`;
|
|
85823
85825
|
}
|
|
@@ -99342,6 +99344,18 @@ function createConsultServer(run) {
|
|
|
99342
99344
|
},
|
|
99343
99345
|
async () => forward("member_list", {})
|
|
99344
99346
|
);
|
|
99347
|
+
server.registerTool(
|
|
99348
|
+
"job_list",
|
|
99349
|
+
{
|
|
99350
|
+
description: "List recurring job cards with project, schedule, last run and next run. Read-only.",
|
|
99351
|
+
inputSchema: {
|
|
99352
|
+
projectId: external_exports.string().optional(),
|
|
99353
|
+
includeArchived: external_exports.boolean().optional(),
|
|
99354
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
99355
|
+
}
|
|
99356
|
+
},
|
|
99357
|
+
async (input2) => forward("job_list", input2)
|
|
99358
|
+
);
|
|
99345
99359
|
server.registerTool(
|
|
99346
99360
|
"card_create",
|
|
99347
99361
|
{
|
|
@@ -99410,7 +99424,7 @@ function createConsultServer(run) {
|
|
|
99410
99424
|
server.registerTool(
|
|
99411
99425
|
"spec_propose",
|
|
99412
99426
|
{
|
|
99413
|
-
description: "Propose a spec for any card in this workspace. Optional blocks/blockedBy (top-level or split entries) accept AGLIO-123, #123 or card ids. A human still approves it.",
|
|
99427
|
+
description: "Propose a spec for any card in this workspace. Optional blocks/blockedBy (top-level or split entries) accept AGLIO-123, #123 or card ids; split entries also accept split:N, a 1-based sibling reference. A human still approves it.",
|
|
99414
99428
|
inputSchema: {
|
|
99415
99429
|
cardId: external_exports.string().min(1),
|
|
99416
99430
|
title: external_exports.string().min(1).max(300),
|
|
@@ -99464,6 +99478,14 @@ function createConsultServer(run) {
|
|
|
99464
99478
|
},
|
|
99465
99479
|
async (input2) => forward("card_delete", input2)
|
|
99466
99480
|
);
|
|
99481
|
+
server.registerTool(
|
|
99482
|
+
"job_run",
|
|
99483
|
+
{
|
|
99484
|
+
description: "Trigger a job card now. The job run opens no pull request; read its result on the job card.",
|
|
99485
|
+
inputSchema: { cardId: external_exports.string().min(1) }
|
|
99486
|
+
},
|
|
99487
|
+
async (input2) => forward("job_run", input2)
|
|
99488
|
+
);
|
|
99467
99489
|
for (const [name2, description] of [
|
|
99468
99490
|
["pr_open", "Workspace consultant runs cannot push code or open pull requests. Use run_start."],
|
|
99469
99491
|
["pr_merge", "Workspace consultant runs cannot merge pull requests."]
|
|
@@ -99622,6 +99644,25 @@ function createServerForRun(run) {
|
|
|
99622
99644
|
},
|
|
99623
99645
|
async (input2) => forward("card_block_remove", input2)
|
|
99624
99646
|
);
|
|
99647
|
+
server.registerTool(
|
|
99648
|
+
"job_list",
|
|
99649
|
+
{
|
|
99650
|
+
description: "List the recurring job cards of this project with schedule, last run and next run. Read-only.",
|
|
99651
|
+
inputSchema: {
|
|
99652
|
+
includeArchived: external_exports.boolean().optional(),
|
|
99653
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
99654
|
+
}
|
|
99655
|
+
},
|
|
99656
|
+
async (input2) => forward("job_list", input2)
|
|
99657
|
+
);
|
|
99658
|
+
server.registerTool(
|
|
99659
|
+
"job_run",
|
|
99660
|
+
{
|
|
99661
|
+
description: "Trigger a job card of this project now. The job run opens no pull request; read its result on the job card.",
|
|
99662
|
+
inputSchema: { cardId: external_exports.string().min(1) }
|
|
99663
|
+
},
|
|
99664
|
+
async (input2) => forward("job_run", input2)
|
|
99665
|
+
);
|
|
99625
99666
|
server.registerTool(
|
|
99626
99667
|
"request_human_action",
|
|
99627
99668
|
{
|
|
@@ -99650,7 +99691,7 @@ function createServerForRun(run) {
|
|
|
99650
99691
|
server.registerTool(
|
|
99651
99692
|
"spec_propose",
|
|
99652
99693
|
{
|
|
99653
|
-
description: "Propose a new card spec. In planning this is the main output. During build it suspends the run until a human decides. Optional blocks/blockedBy (top-level or split entries) accept AGLIO-123, #123 or card ids;
|
|
99694
|
+
description: "Propose a new card spec. In planning this is the main output. During build it suspends the run until a human decides. Optional blocks/blockedBy (top-level or split entries) accept AGLIO-123, #123 or card ids; split entries also accept split:N, a 1-based sibling reference. Unresolved refs come back as warnings.",
|
|
99654
99695
|
inputSchema: {
|
|
99655
99696
|
title: external_exports.string().min(1).max(300),
|
|
99656
99697
|
body: external_exports.string().min(1).max(5e4),
|