@integrity-labs/agt-cli 0.28.136 → 0.28.138
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/dist/bin/agt.js +4 -4
- package/dist/{chunk-2WWCHEQT.js → chunk-NGES4EZD.js} +2 -2
- package/dist/{chunk-FDRT52UA.js → chunk-QJCTWNIJ.js} +3 -3
- package/dist/{chunk-QKA46UNQ.js → chunk-ROOFBKRE.js} +11 -1
- package/dist/chunk-ROOFBKRE.js.map +1 -0
- package/dist/{claude-pair-runtime-ODRPKNKT.js → claude-pair-runtime-7TJXAPIK.js} +2 -2
- package/dist/lib/manager-worker.js +60 -49
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +68 -5
- package/dist/{persistent-session-VQCCFN4M.js → persistent-session-SVZCOP7I.js} +3 -3
- package/dist/{responsiveness-probe-FIXXJ7ZV.js → responsiveness-probe-AS7ASMDE.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-QKA46UNQ.js.map +0 -1
- /package/dist/{chunk-2WWCHEQT.js.map → chunk-NGES4EZD.js.map} +0 -0
- /package/dist/{chunk-FDRT52UA.js.map → chunk-QJCTWNIJ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ODRPKNKT.js.map → claude-pair-runtime-7TJXAPIK.js.map} +0 -0
- /package/dist/{persistent-session-VQCCFN4M.js.map → persistent-session-SVZCOP7I.js.map} +0 -0
- /package/dist/{responsiveness-probe-FIXXJ7ZV.js.map → responsiveness-probe-AS7ASMDE.js.map} +0 -0
package/dist/mcp/index.js
CHANGED
|
@@ -21612,7 +21612,7 @@ server.tool(
|
|
|
21612
21612
|
source_external_id: external_exports.string().optional().describe('ID in the external system (e.g., "ENG-123")'),
|
|
21613
21613
|
source_url: external_exports.string().optional().describe("Deep link URL to the external source"),
|
|
21614
21614
|
project_id: external_exports.string().uuid().optional().describe(
|
|
21615
|
-
"Optional project to file this task under (id from projects_list). Groups the task with related tasks/artefacts across agents.
|
|
21615
|
+
"Optional project to file this task under (id from projects_list). Groups the task with related tasks/artefacts across agents. Reuse an existing project where one fits; use projects_create only after checking projects_list and confirming with the human."
|
|
21616
21616
|
)
|
|
21617
21617
|
},
|
|
21618
21618
|
async (params) => {
|
|
@@ -23052,10 +23052,15 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
23052
23052
|
"artefacts_list",
|
|
23053
23053
|
"artefacts_get",
|
|
23054
23054
|
"artefacts_get_source_chunk",
|
|
23055
|
-
// ADR-0017 Projects container (the reclaimed projects_* namespace
|
|
23056
|
-
// in v1;
|
|
23055
|
+
// ADR-0017 Projects container (the reclaimed projects_* namespace). Read tools
|
|
23056
|
+
// shipped in v1; ENG-6769 adds agent-initiated create + post-creation tagging
|
|
23057
|
+
// of artefacts/tasks to a project. No projects_get_source_chunk — a project is
|
|
23058
|
+
// a container, not a document.
|
|
23057
23059
|
"projects_list",
|
|
23058
23060
|
"projects_get",
|
|
23061
|
+
"projects_create",
|
|
23062
|
+
"artefacts_assign_project",
|
|
23063
|
+
"kanban_assign_project",
|
|
23059
23064
|
// ENG-6229: self-restart. Conditionally registered (dark unless
|
|
23060
23065
|
// AGT_AGENT_SELF_RESTART_ENABLED), but the lockstep guard parses the
|
|
23061
23066
|
// server.tool('request_restart', …) call statically, so it lives here too.
|
|
@@ -23195,7 +23200,7 @@ async function listProjectsText(params) {
|
|
|
23195
23200
|
limit: params.limit
|
|
23196
23201
|
});
|
|
23197
23202
|
if (!data.projects.length) {
|
|
23198
|
-
return "No projects yet.
|
|
23203
|
+
return "No projects yet. Create one with projects_create (ask the human first), or a human can create one in the console, to group your work under.";
|
|
23199
23204
|
}
|
|
23200
23205
|
return data.projects.map((p) => `- ${p.name} [${p.status}] (id: ${p.id}, created ${p.created_at})`).join("\n");
|
|
23201
23206
|
}
|
|
@@ -23215,7 +23220,7 @@ async function getProjectText(projectId) {
|
|
|
23215
23220
|
}
|
|
23216
23221
|
server.tool(
|
|
23217
23222
|
"projects_list",
|
|
23218
|
-
"List the projects belonging to this agent's team. A project is a container that groups related tasks and published artefacts across agents under one unit of work.
|
|
23223
|
+
"List the projects belonging to this agent's team. A project is a container that groups related tasks and published artefacts across agents under one unit of work. Call this before projects_create to reuse an existing project instead of opening a duplicate.",
|
|
23219
23224
|
{
|
|
23220
23225
|
status: external_exports.enum(["active", "archived"]).optional().describe("Filter by project status"),
|
|
23221
23226
|
limit: external_exports.number().int().min(1).max(100).optional().describe("Maximum projects to return (default 50, max 100)")
|
|
@@ -23234,6 +23239,64 @@ server.tool(
|
|
|
23234
23239
|
content: [{ type: "text", text: await getProjectText(params.project_id) }]
|
|
23235
23240
|
})
|
|
23236
23241
|
);
|
|
23242
|
+
async function createProjectText(params) {
|
|
23243
|
+
const data = await apiPost("/host/projects/create", {
|
|
23244
|
+
agent_id: AGT_AGENT_ID,
|
|
23245
|
+
name: params.name,
|
|
23246
|
+
status: params.status,
|
|
23247
|
+
linear_project_id: params.linear_project_id
|
|
23248
|
+
});
|
|
23249
|
+
const p = data.project;
|
|
23250
|
+
return `Created project "${p.name}" [${p.status}] (id: ${p.id}). Tag artefacts with artefacts_assign_project and tasks with kanban_assign_project.`;
|
|
23251
|
+
}
|
|
23252
|
+
server.tool(
|
|
23253
|
+
"projects_create",
|
|
23254
|
+
"Create a new team-scoped project (a container that groups related tasks and published artefacts). BEFORE calling this, you MUST: (1) call projects_list to see existing projects, and (2) if any could plausibly fit the work, ask the human whether to reuse one rather than creating a new project. Only create a new project when the human confirms none of the existing ones fit. Opening a project per task or session fragments the recall surface, so prefer reusing an existing container.",
|
|
23255
|
+
{
|
|
23256
|
+
name: external_exports.string().min(1).max(200).describe('Human-readable project name (e.g. "Q3 launch microsite")'),
|
|
23257
|
+
status: external_exports.enum(["active", "archived"]).optional().describe('Project status (default "active")'),
|
|
23258
|
+
linear_project_id: external_exports.string().optional().describe("Optional id of a Linear project to deep-link this project to")
|
|
23259
|
+
},
|
|
23260
|
+
async (params) => ({
|
|
23261
|
+
content: [{ type: "text", text: await createProjectText(params) }]
|
|
23262
|
+
})
|
|
23263
|
+
);
|
|
23264
|
+
async function assignArtefactProjectText(params) {
|
|
23265
|
+
const data = await apiPost(
|
|
23266
|
+
`/host/artefact/${encodeURIComponent(params.artefact_id)}/assign-project`,
|
|
23267
|
+
{ agent_id: AGT_AGENT_ID, project_id: params.project_id }
|
|
23268
|
+
);
|
|
23269
|
+
return data.project_id ? `Assigned artefact ${data.artefact_id} to project ${data.project_id}.` : `Cleared the project link on artefact ${data.artefact_id}.`;
|
|
23270
|
+
}
|
|
23271
|
+
server.tool(
|
|
23272
|
+
"artefacts_assign_project",
|
|
23273
|
+
"Assign an already-published artefact to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the artefact from its current project. Use this to group existing work; to set a project when first publishing, pass project_id to the publish tool instead.",
|
|
23274
|
+
{
|
|
23275
|
+
artefact_id: external_exports.string().uuid().describe("The artefact id returned by artefacts_list"),
|
|
23276
|
+
project_id: external_exports.string().uuid().nullable().describe("Project id to assign (from projects_list), or null to clear the link")
|
|
23277
|
+
},
|
|
23278
|
+
async (params) => ({
|
|
23279
|
+
content: [{ type: "text", text: await assignArtefactProjectText(params) }]
|
|
23280
|
+
})
|
|
23281
|
+
);
|
|
23282
|
+
async function assignKanbanProjectText(params) {
|
|
23283
|
+
const data = await apiPost(
|
|
23284
|
+
`/host/kanban/${encodeURIComponent(params.kanban_item_id)}/assign-project`,
|
|
23285
|
+
{ agent_id: AGT_AGENT_ID, project_id: params.project_id }
|
|
23286
|
+
);
|
|
23287
|
+
return data.project_id ? `Assigned task ${data.kanban_item_id} to project ${data.project_id}.` : `Cleared the project link on task ${data.kanban_item_id}.`;
|
|
23288
|
+
}
|
|
23289
|
+
server.tool(
|
|
23290
|
+
"kanban_assign_project",
|
|
23291
|
+
"Assign an existing kanban task to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the task from its current project. To set a project when first creating a task, pass project_id to kanban_add instead.",
|
|
23292
|
+
{
|
|
23293
|
+
kanban_item_id: external_exports.string().uuid().describe("The kanban task id returned by kanban_list"),
|
|
23294
|
+
project_id: external_exports.string().uuid().nullable().describe("Project id to assign (from projects_list), or null to clear the link")
|
|
23295
|
+
},
|
|
23296
|
+
async (params) => ({
|
|
23297
|
+
content: [{ type: "text", text: await assignKanbanProjectText(params) }]
|
|
23298
|
+
})
|
|
23299
|
+
);
|
|
23237
23300
|
if (isSelfRestartEnabled(process.env) && AGT_AGENT_CODE_NAME) {
|
|
23238
23301
|
const codeName = AGT_AGENT_CODE_NAME;
|
|
23239
23302
|
server.tool(
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
writeDirectChatSessionState,
|
|
35
35
|
writeEgressAllowlist,
|
|
36
36
|
writePersistentClaudeWrapper
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-NGES4EZD.js";
|
|
38
|
+
import "./chunk-ROOFBKRE.js";
|
|
39
39
|
import "./chunk-XWVM4KPK.js";
|
|
40
40
|
export {
|
|
41
41
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
writeEgressAllowlist,
|
|
75
75
|
writePersistentClaudeWrapper
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=persistent-session-
|
|
77
|
+
//# sourceMappingURL=persistent-session-SVZCOP7I.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NGES4EZD.js";
|
|
4
|
+
import "./chunk-ROOFBKRE.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -304,4 +304,4 @@ export {
|
|
|
304
304
|
readAndResetChannelDeflections,
|
|
305
305
|
readAndResetChannelLaneClassifications
|
|
306
306
|
};
|
|
307
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
307
|
+
//# sourceMappingURL=responsiveness-probe-AS7ASMDE.js.map
|