@rallycry/conveyor-agent 11.1.5 → 11.1.7
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/{boot-3FWYGHSN.js → boot-6QUJHRWD.js} +4 -4
- package/dist/{chunk-ILDV4TNW.js → chunk-OFGV5G4O.js} +1 -1
- package/dist/{chunk-MILKMRPU.js → chunk-PIHFGSXB.js} +3037 -2321
- package/dist/{chunk-5TGLNTVH.js → chunk-TGU3DX5B.js} +220 -49
- package/dist/chunk-UP4XACLL.js +1613 -0
- package/dist/{chunk-TPOWIJ5P.js → chunk-YQLVANEA.js} +105 -8
- package/dist/cli.js +8 -7
- package/dist/heartbeat-worker.js +2 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +4 -3
- package/dist/remote-2H36LTGP-XZSIM243.js +9 -0
- package/dist/{serve-boot-GDVLSYPX.js → serve-boot-JWGICOM7.js} +4 -3
- package/dist/{server-3SSY4JV7.js → server-CGCSZ3WJ.js} +2 -2
- package/package.json +3 -3
- package/skills/conveyor-workflows/SKILL.md +8 -0
- package/dist/{chunk-MFGRXD4Y.js → chunk-LUAOWQ6W.js} +3 -3
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
query,
|
|
29
29
|
transportFailureOf,
|
|
30
30
|
waitForConnection
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PIHFGSXB.js";
|
|
32
32
|
import {
|
|
33
33
|
WorkbenchError,
|
|
34
34
|
getWorkbenchClient
|
|
@@ -1369,6 +1369,15 @@ var AskUserQuestionRequestSchema = z5.object({
|
|
|
1369
1369
|
requestId: z5.string().min(1),
|
|
1370
1370
|
questions: z5.array(AgentQuestionSchema).min(1)
|
|
1371
1371
|
});
|
|
1372
|
+
var RecordAgentQuestionRequestSchema = z5.object({
|
|
1373
|
+
sessionId: z5.string(),
|
|
1374
|
+
requestId: z5.string().min(1),
|
|
1375
|
+
questions: z5.array(AgentQuestionSchema).min(1)
|
|
1376
|
+
});
|
|
1377
|
+
var MarkAgentQuestionAnsweredRequestSchema = z5.object({
|
|
1378
|
+
sessionId: z5.string(),
|
|
1379
|
+
requestId: z5.string().min(1)
|
|
1380
|
+
});
|
|
1372
1381
|
var PostAgentMessageRequestSchema = z5.object({
|
|
1373
1382
|
sessionId: z5.string().min(1),
|
|
1374
1383
|
content: z5.string(),
|
|
@@ -2873,6 +2882,9 @@ var PERSONAL_LOCAL_REGISTRY_HOST = `${PERSONAL_LOCAL_REGISTRY_NAME}.${PERSONAL_L
|
|
|
2873
2882
|
var PERSONAL_LOCAL_REGISTRY_NODE_ENDPOINT = `http://127.0.0.1:${PERSONAL_LOCAL_REGISTRY_PORT}`;
|
|
2874
2883
|
var MS_PER_DAY = 24 * 60 * 60 * 1e3;
|
|
2875
2884
|
var MENTION_TOKEN_REGEX = /@\[(\w+):([^\]]+)\]/g;
|
|
2885
|
+
function serializeMention(type, id) {
|
|
2886
|
+
return `@[${type}:${id}]`;
|
|
2887
|
+
}
|
|
2876
2888
|
function parseMentions(content) {
|
|
2877
2889
|
const tokens = [];
|
|
2878
2890
|
for (const match of content.matchAll(MENTION_TOKEN_REGEX)) {
|
|
@@ -2880,7 +2892,24 @@ function parseMentions(content) {
|
|
|
2880
2892
|
}
|
|
2881
2893
|
return tokens;
|
|
2882
2894
|
}
|
|
2895
|
+
function normalizeRef(ref) {
|
|
2896
|
+
return ref.trim().replace(/^@/, "").trim().replace(/\s+/g, " ").toLowerCase();
|
|
2897
|
+
}
|
|
2898
|
+
function toMemberMentionRows(members, query28) {
|
|
2899
|
+
const needle = query28 ? normalizeRef(query28) : "";
|
|
2900
|
+
const rows = needle ? members.filter(
|
|
2901
|
+
(member) => normalizeRef(member.name ?? "").includes(needle) || member.email.toLowerCase().includes(needle)
|
|
2902
|
+
) : members;
|
|
2903
|
+
return rows.map((member) => ({
|
|
2904
|
+
userId: member.userId,
|
|
2905
|
+
name: member.name,
|
|
2906
|
+
email: member.email,
|
|
2907
|
+
level: member.level,
|
|
2908
|
+
mention: serializeMention("user", member.userId)
|
|
2909
|
+
}));
|
|
2910
|
+
}
|
|
2883
2911
|
var POSTGRES_ENV = {
|
|
2912
|
+
PGDATA: "/var/lib/postgresql/data",
|
|
2884
2913
|
POSTGRES_HOST_AUTH_METHOD: "trust",
|
|
2885
2914
|
POSTGRES_DB: "conveyor"
|
|
2886
2915
|
};
|
|
@@ -2899,7 +2928,7 @@ var FIREBASE_EMULATOR_ENV = {
|
|
|
2899
2928
|
var CATALOG = {
|
|
2900
2929
|
postgresql: {
|
|
2901
2930
|
name: "postgresql",
|
|
2902
|
-
image: "postgres:
|
|
2931
|
+
image: "postgres:18-alpine",
|
|
2903
2932
|
command: [
|
|
2904
2933
|
"sh",
|
|
2905
2934
|
"-c",
|
|
@@ -2909,7 +2938,7 @@ var CATALOG = {
|
|
|
2909
2938
|
// WAL flush. fsync=off + synchronous_commit=off + full_page_writes=off
|
|
2910
2939
|
// remove all blocking storage I/O — without them, per-commit flushes on
|
|
2911
2940
|
// the node's network boot disk dominated int-test wall time (~100ms/commit).
|
|
2912
|
-
|
|
2941
|
+
'if [ ! -s /var/lib/postgresql/data/PG_VERSION ]; then for seed in /opt/conveyor/postgresql/pod-data /var/lib/postgresql/pod-data; do if [ -s "$seed/PG_VERSION" ]; then cp -a "$seed/." /var/lib/postgresql/data/ || exit 1; break; fi; done; fi; chown -R postgres:postgres /var/lib/postgresql/data; docker-entrypoint.sh postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off & PID=$!; for i in $(seq 1 30); do pg_isready -U postgres && break; sleep 1; done; createdb -U postgres conveyor_test 2>/dev/null || true; wait $PID'
|
|
2913
2942
|
],
|
|
2914
2943
|
ports: [5432],
|
|
2915
2944
|
livenessProbe: {
|
|
@@ -2921,7 +2950,7 @@ var CATALOG = {
|
|
|
2921
2950
|
},
|
|
2922
2951
|
env: { ...POSTGRES_ENV },
|
|
2923
2952
|
resources: {
|
|
2924
|
-
// postgres runs from the baked seed at /
|
|
2953
|
+
// postgres runs from the baked seed at /opt/conveyor/postgresql/pod-data via
|
|
2925
2954
|
// overlayfs CoW (no emptyDir — see k8s-pod-spec.ts), so WAL + catalog +
|
|
2926
2955
|
// re-seed churn charges the container's ephemeral-storage. It must exceed
|
|
2927
2956
|
// the ~1Gi ceiling where pods evicted, but is bounded by TWO Autopilot rules:
|
|
@@ -5236,6 +5265,7 @@ var channelMessageDTOSchema = schemaOf()(
|
|
|
5236
5265
|
z28.object({
|
|
5237
5266
|
id: z28.string(),
|
|
5238
5267
|
authorName: z28.string().nullable(),
|
|
5268
|
+
authorMention: z28.string().optional(),
|
|
5239
5269
|
authorIsBot: z28.boolean(),
|
|
5240
5270
|
text: z28.string(),
|
|
5241
5271
|
ts: z28.string(),
|
|
@@ -7166,6 +7196,18 @@ var messageMetadataSchema = schemaOf()(
|
|
|
7166
7196
|
answers: z43.record(z43.string(), z43.string()).optional(),
|
|
7167
7197
|
agentName: z43.string().optional(),
|
|
7168
7198
|
agentImage: z43.string().optional(),
|
|
7199
|
+
sessionId: z43.string().optional(),
|
|
7200
|
+
source: z43.enum(["pty", "sdk"]).optional(),
|
|
7201
|
+
answeredByUserId: z43.string().optional(),
|
|
7202
|
+
answeredAt: z43.string().optional(),
|
|
7203
|
+
answeredVia: z43.enum(["chat", "card", "terminal"]).optional(),
|
|
7204
|
+
answerMessageId: z43.string().optional(),
|
|
7205
|
+
forwards: z43.array(messageForwardSchema).optional()
|
|
7206
|
+
}),
|
|
7207
|
+
z43.object({
|
|
7208
|
+
type: z43.literal("question_answer"),
|
|
7209
|
+
requestId: z43.string(),
|
|
7210
|
+
questionMessageId: z43.string(),
|
|
7169
7211
|
forwards: z43.array(messageForwardSchema).optional()
|
|
7170
7212
|
}),
|
|
7171
7213
|
z43.object({
|
|
@@ -9223,6 +9265,16 @@ var agentSessionContract = defineContract("agentSessionService", {
|
|
|
9223
9265
|
output: standard(z60.object({ answers: z60.record(z60.string(), z60.string()) })),
|
|
9224
9266
|
describe: "Lets a card's agent ask the team questions in the card's chat and wait for their answers. Alerts the team, and returns no answers if nobody replies within five minutes."
|
|
9225
9267
|
}),
|
|
9268
|
+
recordAgentQuestion: mutation({
|
|
9269
|
+
input: RecordAgentQuestionRequestSchema,
|
|
9270
|
+
output: standard(z60.object({ messageId: z60.string().nullable() })),
|
|
9271
|
+
describe: "Lets a card's agent save a question it asked in its terminal as a poll in the card's chat, so the team can answer it after the agent's workspace sleeps. Repeat calls return the same poll."
|
|
9272
|
+
}),
|
|
9273
|
+
markAgentQuestionAnswered: mutation({
|
|
9274
|
+
input: MarkAgentQuestionAnsweredRequestSchema,
|
|
9275
|
+
output: standard(z60.object({ success: z60.boolean() })),
|
|
9276
|
+
describe: "Lets a card's agent mark one of its saved polls as answered in the terminal, so the card stops asking for an answer."
|
|
9277
|
+
}),
|
|
9226
9278
|
reportApiOutage: mutation({
|
|
9227
9279
|
input: ReportApiOutageRequestSchema,
|
|
9228
9280
|
output: standard(reportApiOutageResponseSchema),
|
|
@@ -9939,7 +9991,7 @@ var agentSessionContract = defineContract("agentSessionService", {
|
|
|
9939
9991
|
listProjectMembers: query({
|
|
9940
9992
|
input: ListProjectMembersRequestSchema,
|
|
9941
9993
|
output: standard(listProjectMembersResponseSchema),
|
|
9942
|
-
describe: "Lists a project's members with user id, name, email, and role
|
|
9994
|
+
describe: "Lists a project's members with user id, name, email, and role. Pod agents and the conveyor-mcp server use it to resolve a person for a mention (`@[user:<id>]`), an assignment, or a review."
|
|
9943
9995
|
}),
|
|
9944
9996
|
listProjectTags: query({
|
|
9945
9997
|
input: ListProjectTagsRequestSchema,
|
|
@@ -10273,7 +10325,7 @@ var agentSessionContract = defineContract("agentSessionService", {
|
|
|
10273
10325
|
answerAgentQuestion: mutation({
|
|
10274
10326
|
input: AnswerAgentQuestionRequestSchema,
|
|
10275
10327
|
output: standard(z60.object({ success: z60.boolean() })),
|
|
10276
|
-
describe: "Answers a question a card's agent asked in the card chat
|
|
10328
|
+
describe: "Answers a question a card's agent asked in the card chat. Saves the answers on the question, posts them as the caller's chat message and hands them to the agent, waking its sleeping workspace. Refuses a question that is already answered."
|
|
10277
10329
|
}),
|
|
10278
10330
|
clearAgentTodos: mutation({
|
|
10279
10331
|
input: ClearAgentTodosRequestSchema,
|
|
@@ -10777,7 +10829,7 @@ var cardContract = defineContract("cardService", {
|
|
|
10777
10829
|
["id", "asc"]
|
|
10778
10830
|
],
|
|
10779
10831
|
// One card per page unless the subscriber asks for more: a board loads
|
|
10780
|
-
// the cards it shows by id (`loadItems`). No `index`: on quickdraw 5.1.1
|
|
10832
|
+
// the cards it shows by id (`loadItems`). No `index`: on quickdraw 5.1 (still so in 5.1.4)
|
|
10781
10833
|
// the index of an item with a `map` reads the item's whole `select`, the
|
|
10782
10834
|
// card's relations, for every card of the scope on each subscribe. The
|
|
10783
10835
|
// board's index is `boardRows`, whose item is a small select.
|
|
@@ -17030,10 +17082,24 @@ var AgentConnection = class _AgentConnection {
|
|
|
17030
17082
|
}
|
|
17031
17083
|
const max = _AgentConnection.DEDUP_PREVIEW_LIMIT;
|
|
17032
17084
|
const preview = content.length > max ? content.slice(0, max) + "\u2026" : content;
|
|
17033
|
-
this.recentMessages.push({ words, timestamp: now, preview });
|
|
17085
|
+
this.recentMessages.push({ words, timestamp: now, preview, content });
|
|
17034
17086
|
if (this.recentMessages.length > 3) this.recentMessages.shift();
|
|
17035
17087
|
return { duplicate: false };
|
|
17036
17088
|
}
|
|
17089
|
+
/**
|
|
17090
|
+
* Forget a post `checkAndTrackDuplicate` tracked that then FAILED — the
|
|
17091
|
+
* server refused it (a mention that matched nobody) or the call never landed.
|
|
17092
|
+
* Without this the corrected retry, which repeats most of the same words, is
|
|
17093
|
+
* refused as a duplicate of a message nobody ever saw.
|
|
17094
|
+
*/
|
|
17095
|
+
untrackRecentMessage(content) {
|
|
17096
|
+
for (let i = this.recentMessages.length - 1; i >= 0; i--) {
|
|
17097
|
+
if (this.recentMessages[i].content === content) {
|
|
17098
|
+
this.recentMessages.splice(i, 1);
|
|
17099
|
+
return;
|
|
17100
|
+
}
|
|
17101
|
+
}
|
|
17102
|
+
}
|
|
17037
17103
|
/**
|
|
17038
17104
|
* @param loopStatus overrides the status derived from the last emitted
|
|
17039
17105
|
* runner status. SessionRunner passes it so an idle runner that still has
|
|
@@ -17202,6 +17268,36 @@ ${q.question}${q.options.length ? "\n" + q.options.map((o) => `- ${o.label}: ${o
|
|
|
17202
17268
|
this.pendingAnswerResolvers.delete(requestId);
|
|
17203
17269
|
}
|
|
17204
17270
|
}
|
|
17271
|
+
/**
|
|
17272
|
+
* Save a terminal AskUserQuestion as a poll in the card's chat, so it stays
|
|
17273
|
+
* answerable after this pod sleeps. Resolves false on ANY failure, an API
|
|
17274
|
+
* that predates the method included: the caller then keeps the old
|
|
17275
|
+
* behavior (the question lives only in this pod).
|
|
17276
|
+
*/
|
|
17277
|
+
async recordAgentQuestion(requestId, questions) {
|
|
17278
|
+
try {
|
|
17279
|
+
const { messageId } = await this.call("recordAgentQuestion", {
|
|
17280
|
+
sessionId: this.config.sessionId,
|
|
17281
|
+
requestId,
|
|
17282
|
+
questions
|
|
17283
|
+
});
|
|
17284
|
+
return messageId !== null;
|
|
17285
|
+
} catch (err) {
|
|
17286
|
+
logger.warn("could not save the question as a card poll", {
|
|
17287
|
+
requestId,
|
|
17288
|
+
error: err instanceof Error ? err.message : String(err)
|
|
17289
|
+
});
|
|
17290
|
+
return false;
|
|
17291
|
+
}
|
|
17292
|
+
}
|
|
17293
|
+
/** The human answered the saved poll in the terminal. Fire-and-forget. */
|
|
17294
|
+
markAgentQuestionAnswered(requestId) {
|
|
17295
|
+
void this.call("markAgentQuestionAnswered", {
|
|
17296
|
+
sessionId: this.config.sessionId,
|
|
17297
|
+
requestId
|
|
17298
|
+
}).catch(() => {
|
|
17299
|
+
});
|
|
17300
|
+
}
|
|
17205
17301
|
// ── Typed service method wrappers ───────────────────────────────────
|
|
17206
17302
|
getTaskProperties() {
|
|
17207
17303
|
return this.call("getTaskProperties", { sessionId: this.config.sessionId });
|
|
@@ -18576,6 +18672,7 @@ export {
|
|
|
18576
18672
|
isCodexReasoningEffort,
|
|
18577
18673
|
HUMAN_PROSE_WRITING_STYLE,
|
|
18578
18674
|
parseMentions,
|
|
18675
|
+
toMemberMentionRows,
|
|
18579
18676
|
POD_PROFILE_ENV,
|
|
18580
18677
|
podProfileRunsWorkload,
|
|
18581
18678
|
isPodProfile,
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspaceCommandSupervisor,
|
|
8
8
|
startWorkspaceCommandsAfterConnect,
|
|
9
9
|
stopWorkspaceCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OFGV5G4O.js";
|
|
11
11
|
import {
|
|
12
12
|
PtyHarness,
|
|
13
13
|
SessionRunner,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveTuiKindFromEnv,
|
|
26
26
|
sampleKeyUsage,
|
|
27
27
|
usesNativeUsageReporting
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TGU3DX5B.js";
|
|
29
29
|
import "./chunk-V5WR2F2P.js";
|
|
30
30
|
import {
|
|
31
31
|
inheritedEnv,
|
|
@@ -41,11 +41,12 @@ import {
|
|
|
41
41
|
createServiceLogger,
|
|
42
42
|
loadAndAnnotateDiscoveredPorts,
|
|
43
43
|
loadConveyorConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YQLVANEA.js";
|
|
45
45
|
import "./chunk-VIUZS7V4.js";
|
|
46
46
|
import "./chunk-W4LZ7R6Z.js";
|
|
47
47
|
import "./chunk-372R6E4C.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-PIHFGSXB.js";
|
|
49
|
+
import "./chunk-UP4XACLL.js";
|
|
49
50
|
import "./chunk-SQM2BQ7H.js";
|
|
50
51
|
import "./chunk-KMB3BU4S.js";
|
|
51
52
|
import "./chunk-6Q6LQBWO.js";
|
|
@@ -1187,7 +1188,7 @@ function wireSpawnChildren(mode, connection, supervisors, logger7) {
|
|
|
1187
1188
|
|
|
1188
1189
|
// src/cli.ts
|
|
1189
1190
|
if (process.argv[2] === "boot") {
|
|
1190
|
-
const { runBoot } = await import("./boot-
|
|
1191
|
+
const { runBoot } = await import("./boot-6QUJHRWD.js");
|
|
1191
1192
|
process.exit(await runBoot(process.argv.slice(3)));
|
|
1192
1193
|
}
|
|
1193
1194
|
if (isLegacyEntrypointLaunch(process.env)) {
|
|
@@ -1256,7 +1257,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
1256
1257
|
process.exit(1);
|
|
1257
1258
|
});
|
|
1258
1259
|
if (process.env.CONVEYOR_MODE === "workbench") {
|
|
1259
|
-
const { startWorkbenchServer } = await import("./server-
|
|
1260
|
+
const { startWorkbenchServer } = await import("./server-CGCSZ3WJ.js");
|
|
1260
1261
|
const { oomWatchdogOptionsFromEnv } = await import("./oom-watchdog-YQYPVUKH.js");
|
|
1261
1262
|
const { DEFAULT_WORKBENCH_PORT } = await import("./protocol-U6Z4MJ5S.js");
|
|
1262
1263
|
const port = Number(process.env.CONVEYOR_WORKBENCH_PORT) || DEFAULT_WORKBENCH_PORT;
|
|
@@ -1398,7 +1399,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
|
|
|
1398
1399
|
process.exit(1);
|
|
1399
1400
|
}
|
|
1400
1401
|
if (CONVEYOR_MODE === "serving") {
|
|
1401
|
-
const { runServingSession } = await import("./serve-boot-
|
|
1402
|
+
const { runServingSession } = await import("./serve-boot-JWGICOM7.js");
|
|
1402
1403
|
exitContext.runnerMode = "serving";
|
|
1403
1404
|
exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
|
|
1404
1405
|
const outcome = await runServingSession({
|
package/dist/heartbeat-worker.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,13 @@ declare class AgentConnection {
|
|
|
319
319
|
duplicate: true;
|
|
320
320
|
matchedMessagePreview: string;
|
|
321
321
|
};
|
|
322
|
+
/**
|
|
323
|
+
* Forget a post `checkAndTrackDuplicate` tracked that then FAILED — the
|
|
324
|
+
* server refused it (a mention that matched nobody) or the call never landed.
|
|
325
|
+
* Without this the corrected retry, which repeats most of the same words, is
|
|
326
|
+
* refused as a duplicate of a message nobody ever saw.
|
|
327
|
+
*/
|
|
328
|
+
untrackRecentMessage(content: string): void;
|
|
322
329
|
/**
|
|
323
330
|
* @param loopStatus overrides the status derived from the last emitted
|
|
324
331
|
* runner status. SessionRunner passes it so an idle runner that still has
|
|
@@ -378,6 +385,15 @@ declare class AgentConnection {
|
|
|
378
385
|
resetsAt: string;
|
|
379
386
|
}>;
|
|
380
387
|
askUserQuestion(questions: AgentQuestion[]): Promise<Record<string, string>>;
|
|
388
|
+
/**
|
|
389
|
+
* Save a terminal AskUserQuestion as a poll in the card's chat, so it stays
|
|
390
|
+
* answerable after this pod sleeps. Resolves false on ANY failure, an API
|
|
391
|
+
* that predates the method included: the caller then keeps the old
|
|
392
|
+
* behavior (the question lives only in this pod).
|
|
393
|
+
*/
|
|
394
|
+
recordAgentQuestion(requestId: string, questions: AgentQuestion[]): Promise<boolean>;
|
|
395
|
+
/** The human answered the saved poll in the terminal. Fire-and-forget. */
|
|
396
|
+
markAgentQuestionAnswered(requestId: string): void;
|
|
381
397
|
getTaskProperties(): Promise<{
|
|
382
398
|
plan?: string;
|
|
383
399
|
storyPointId?: string;
|
|
@@ -771,6 +787,10 @@ declare class SessionRunner {
|
|
|
771
787
|
* liveness hold above is bounded by timestamp arithmetic, so a lost timer
|
|
772
788
|
* still expires the hold — it just skips the un-park injection. */
|
|
773
789
|
private questionGraceTimer;
|
|
790
|
+
/** What the parked questionnaire asked, and whether the API saved it as a
|
|
791
|
+
* card poll — read when the grace expires, to word the timeout prompt.
|
|
792
|
+
* Cleared with the hold. */
|
|
793
|
+
private pendingQuestion;
|
|
774
794
|
constructor(config: SessionRunnerConfig, callbacks: SessionRunnerCallbacks, deps?: SessionRunnerDependencies);
|
|
775
795
|
get state(): AgentRunnerStatus;
|
|
776
796
|
/**
|
|
@@ -1180,7 +1200,8 @@ interface AgentRunnerConfig {
|
|
|
1180
1200
|
* Question-pending transitions surfaced to the runner by the event loop
|
|
1181
1201
|
* (`applyQuestionTransitions` in execution/event-processor.ts):
|
|
1182
1202
|
* - `armed` — the PTY hook observed an AskUserQuestion; a questionnaire is
|
|
1183
|
-
* parked on a human.
|
|
1203
|
+
* parked on a human. `questions` are what it asked, and `persisted` says
|
|
1204
|
+
* the API saved them as a card poll, which outlives this pod.
|
|
1184
1205
|
* - `answered` — the questionnaire resolved (PostToolUse envelope, or a new
|
|
1185
1206
|
* assistant record without the question block).
|
|
1186
1207
|
* - `turn_ended` — the turn's `result` arrived while the questionnaire was
|
|
@@ -1191,6 +1212,8 @@ interface AgentRunnerConfig {
|
|
|
1191
1212
|
type UserQuestionSignal = {
|
|
1192
1213
|
kind: "armed";
|
|
1193
1214
|
questionText?: string;
|
|
1215
|
+
questions?: _project_shared.AgentQuestion[];
|
|
1216
|
+
persisted?: boolean;
|
|
1194
1217
|
} | {
|
|
1195
1218
|
kind: "answered";
|
|
1196
1219
|
} | {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionRunner,
|
|
3
3
|
unshallowRepo
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGU3DX5B.js";
|
|
5
5
|
import "./chunk-V5WR2F2P.js";
|
|
6
6
|
import "./chunk-76JCOHPE.js";
|
|
7
7
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stageAndCommit,
|
|
18
18
|
updateRemoteToken,
|
|
19
19
|
workspacePathExists
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YQLVANEA.js";
|
|
21
21
|
import "./chunk-VIUZS7V4.js";
|
|
22
22
|
import {
|
|
23
23
|
runAuthTokenCommand,
|
|
@@ -25,7 +25,8 @@ import {
|
|
|
25
25
|
runStartCommand
|
|
26
26
|
} from "./chunk-W4LZ7R6Z.js";
|
|
27
27
|
import "./chunk-372R6E4C.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-PIHFGSXB.js";
|
|
29
|
+
import "./chunk-UP4XACLL.js";
|
|
29
30
|
import {
|
|
30
31
|
getWorkbenchClient
|
|
31
32
|
} from "./chunk-SQM2BQ7H.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkspaceCommandSupervisor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OFGV5G4O.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentConnection,
|
|
6
6
|
DEFAULT_LIFECYCLE_CONFIG,
|
|
@@ -11,10 +11,11 @@ import {
|
|
|
11
11
|
ensureOnTaskBranch,
|
|
12
12
|
loadAndAnnotateDiscoveredPorts,
|
|
13
13
|
loadConveyorConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YQLVANEA.js";
|
|
15
15
|
import "./chunk-VIUZS7V4.js";
|
|
16
16
|
import "./chunk-W4LZ7R6Z.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PIHFGSXB.js";
|
|
18
|
+
import "./chunk-UP4XACLL.js";
|
|
18
19
|
import "./chunk-SQM2BQ7H.js";
|
|
19
20
|
import "./chunk-KMB3BU4S.js";
|
|
20
21
|
import "./chunk-6Q6LQBWO.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startWorkbenchServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LUAOWQ6W.js";
|
|
4
|
+
import "./chunk-6W6UZ4SJ.js";
|
|
4
5
|
import "./chunk-76JCOHPE.js";
|
|
5
6
|
import "./chunk-W4LZ7R6Z.js";
|
|
6
7
|
import "./chunk-372R6E4C.js";
|
|
7
8
|
import "./chunk-SQM2BQ7H.js";
|
|
8
9
|
import "./chunk-KMB3BU4S.js";
|
|
9
10
|
import "./chunk-6Q6LQBWO.js";
|
|
10
|
-
import "./chunk-6W6UZ4SJ.js";
|
|
11
11
|
import "./chunk-JSBRDJBE.js";
|
|
12
12
|
export {
|
|
13
13
|
startWorkbenchServer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.7",
|
|
4
4
|
"description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"socket.io-client": "^4.8.4",
|
|
44
44
|
"socket.io-parser": "^4.2.4",
|
|
45
45
|
"tar": "^7.5.22",
|
|
46
|
-
"zod": "^4.6.
|
|
46
|
+
"zod": "^4.6.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@fitzzero/quickdraw-core": "^5.1.
|
|
49
|
+
"@fitzzero/quickdraw-core": "^5.1.4",
|
|
50
50
|
"@project/shared": "workspace:*",
|
|
51
51
|
"@tanstack/query-core": "^5.104.0",
|
|
52
52
|
"tsup": "^8.5.1",
|
|
@@ -101,6 +101,14 @@ labels. Each tag carries a `description` (≤255 — the summary), an `overview`
|
|
|
101
101
|
write `@[tag:<name>]` with the tag's exact name — chat posts and card
|
|
102
102
|
plans/descriptions are canonicalized to the id token at write time, so you
|
|
103
103
|
never need the id. An unknown name stays plain text.
|
|
104
|
+
- **Mention people**: a project member, as a Conveyor user, is the only person
|
|
105
|
+
you can mention. Write `@[user:<name, email or user id>]` in `post_to_chat`
|
|
106
|
+
or `post_channel_message`; `mcp__conveyor__list_project_members` gives each
|
|
107
|
+
member's exact token. Conveyor turns it into a real Slack/Discord ping (and an
|
|
108
|
+
in-app alert for a card post). A name that matches nobody, or several
|
|
109
|
+
members, fails the post with suggestions — fix the token and post again.
|
|
110
|
+
Never guess raw Slack or Discord IDs (`<@U…>`): only an id that belongs to a
|
|
111
|
+
Conveyor user still pings, and any other renders as plain text.
|
|
104
112
|
- **Write**: `mcp__conveyor__manage_tags` (Moderate+). Whenever your work
|
|
105
113
|
changes how a tagged system behaves, update that tag's `overview` and pass a
|
|
106
114
|
one-line `reason` — it lands in the tag's revision history (in-pod agents
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
startOomWatchdog
|
|
3
|
+
} from "./chunk-6W6UZ4SJ.js";
|
|
1
4
|
import {
|
|
2
5
|
loadPtySpawn
|
|
3
6
|
} from "./chunk-76JCOHPE.js";
|
|
@@ -12,9 +15,6 @@ import {
|
|
|
12
15
|
timingSafeTokenEqual,
|
|
13
16
|
writeFrame
|
|
14
17
|
} from "./chunk-6Q6LQBWO.js";
|
|
15
|
-
import {
|
|
16
|
-
startOomWatchdog
|
|
17
|
-
} from "./chunk-6W6UZ4SJ.js";
|
|
18
18
|
|
|
19
19
|
// src/workbench/server.ts
|
|
20
20
|
import { spawn } from "child_process";
|