@tempo-ai/mcp 0.0.119 → 0.0.120-staging.1
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.js +1 -1
- package/dist/{call-R2TV6JWC.js → call-WTXVYDUB.js} +2 -2
- package/dist/{chunk-T2IVTB7R.js → chunk-HOJPQKJU.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{serve-HJBBLFBY.js → serve-N6T363OQ.js} +105 -53
- package/dist/serve-N6T363OQ.js.map +1 -0
- package/package.json +1 -1
- package/dist/serve-HJBBLFBY.js.map +0 -1
- /package/dist/{call-R2TV6JWC.js.map → call-WTXVYDUB.js.map} +0 -0
- /package/dist/{chunk-T2IVTB7R.js.map → chunk-HOJPQKJU.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __tempoCreateRequire } from 'node:module'; const require = __tempoCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
run
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HOJPQKJU.js";
|
|
6
6
|
import "./chunk-2P3T5CJG.js";
|
|
7
7
|
import "./chunk-WRI3HTCJ.js";
|
|
8
8
|
|
|
@@ -9,7 +9,7 @@ import "./chunk-WRI3HTCJ.js";
|
|
|
9
9
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
10
10
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
11
11
|
async function connectAggregate(options) {
|
|
12
|
-
const { createTempoAggregate } = await import("./serve-
|
|
12
|
+
const { createTempoAggregate } = await import("./serve-N6T363OQ.js");
|
|
13
13
|
const handle = await createTempoAggregate(options, { stageDocuments: false });
|
|
14
14
|
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
|
|
15
15
|
const client = new Client({ name: "tempo-mcp-cli", version: "0" });
|
|
@@ -128,4 +128,4 @@ export {
|
|
|
128
128
|
runCall,
|
|
129
129
|
runTools
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=call-
|
|
131
|
+
//# sourceMappingURL=call-WTXVYDUB.js.map
|
|
@@ -122,7 +122,7 @@ async function run(argv) {
|
|
|
122
122
|
process.stderr.write(USAGE);
|
|
123
123
|
return 1;
|
|
124
124
|
}
|
|
125
|
-
const { runServe } = await import("./serve-
|
|
125
|
+
const { runServe } = await import("./serve-N6T363OQ.js");
|
|
126
126
|
return await runServe(options);
|
|
127
127
|
}
|
|
128
128
|
switch (subcommand) {
|
|
@@ -137,11 +137,11 @@ async function run(argv) {
|
|
|
137
137
|
return await runToken(rest);
|
|
138
138
|
}
|
|
139
139
|
case "tools": {
|
|
140
|
-
const { runTools } = await import("./call-
|
|
140
|
+
const { runTools } = await import("./call-WTXVYDUB.js");
|
|
141
141
|
return await runTools(rest);
|
|
142
142
|
}
|
|
143
143
|
case "call": {
|
|
144
|
-
const { runCall } = await import("./call-
|
|
144
|
+
const { runCall } = await import("./call-WTXVYDUB.js");
|
|
145
145
|
return await runCall(rest);
|
|
146
146
|
}
|
|
147
147
|
default:
|
|
@@ -164,4 +164,4 @@ async function run(argv) {
|
|
|
164
164
|
export {
|
|
165
165
|
run
|
|
166
166
|
};
|
|
167
|
-
//# sourceMappingURL=chunk-
|
|
167
|
+
//# sourceMappingURL=chunk-HOJPQKJU.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __tempoCreateRequire } from 'node:module'; const require = __tempoCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HOJPQKJU.js";
|
|
5
5
|
import "./chunk-2P3T5CJG.js";
|
|
6
6
|
import "./chunk-WRI3HTCJ.js";
|
|
7
7
|
export {
|
|
@@ -1713,7 +1713,7 @@ var require_parse = __commonJS({
|
|
|
1713
1713
|
try {
|
|
1714
1714
|
new RegExp(value);
|
|
1715
1715
|
} catch (ex) {
|
|
1716
|
-
return args.map((
|
|
1716
|
+
return args.map((v2) => utils.escapeRegex(v2)).join("..");
|
|
1717
1717
|
}
|
|
1718
1718
|
return value;
|
|
1719
1719
|
};
|
|
@@ -3064,8 +3064,8 @@ var require_common = __commonJS({
|
|
|
3064
3064
|
}
|
|
3065
3065
|
return enabledCache;
|
|
3066
3066
|
},
|
|
3067
|
-
set: (
|
|
3068
|
-
enableOverride =
|
|
3067
|
+
set: (v2) => {
|
|
3068
|
+
enableOverride = v2;
|
|
3069
3069
|
}
|
|
3070
3070
|
});
|
|
3071
3071
|
if (typeof createDebug.init === "function") {
|
|
@@ -3318,9 +3318,9 @@ var require_browser = __commonJS({
|
|
|
3318
3318
|
}
|
|
3319
3319
|
module.exports = require_common()(exports);
|
|
3320
3320
|
var { formatters } = module.exports;
|
|
3321
|
-
formatters.j = function(
|
|
3321
|
+
formatters.j = function(v2) {
|
|
3322
3322
|
try {
|
|
3323
|
-
return JSON.stringify(
|
|
3323
|
+
return JSON.stringify(v2);
|
|
3324
3324
|
} catch (error) {
|
|
3325
3325
|
return "[UnexpectedJSONParseError]: " + error.message;
|
|
3326
3326
|
}
|
|
@@ -3619,13 +3619,13 @@ var require_node = __commonJS({
|
|
|
3619
3619
|
}
|
|
3620
3620
|
module.exports = require_common()(exports);
|
|
3621
3621
|
var { formatters } = module.exports;
|
|
3622
|
-
formatters.o = function(
|
|
3622
|
+
formatters.o = function(v2) {
|
|
3623
3623
|
this.inspectOpts.colors = this.useColors;
|
|
3624
|
-
return util.inspect(
|
|
3624
|
+
return util.inspect(v2, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3625
3625
|
};
|
|
3626
|
-
formatters.O = function(
|
|
3626
|
+
formatters.O = function(v2) {
|
|
3627
3627
|
this.inspectOpts.colors = this.useColors;
|
|
3628
|
-
return util.inspect(
|
|
3628
|
+
return util.inspect(v2, this.inspectOpts);
|
|
3629
3629
|
};
|
|
3630
3630
|
}
|
|
3631
3631
|
});
|
|
@@ -6457,6 +6457,22 @@ function isExternallyExposed(toolName, opts) {
|
|
|
6457
6457
|
// ../issues-mcp/server.ts
|
|
6458
6458
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6459
6459
|
|
|
6460
|
+
// ../auth/convex/aiClient.ts
|
|
6461
|
+
import { v } from "convex/values";
|
|
6462
|
+
var aiClientValidator = v.union(
|
|
6463
|
+
v.literal("claude"),
|
|
6464
|
+
v.literal("codex"),
|
|
6465
|
+
v.literal("opencode"),
|
|
6466
|
+
v.literal("grok"),
|
|
6467
|
+
v.literal("cursor"),
|
|
6468
|
+
v.literal("mcp")
|
|
6469
|
+
);
|
|
6470
|
+
function aiOriginArgs(getOriginChatTabId, getAiClient) {
|
|
6471
|
+
const chatTabId = getOriginChatTabId?.() ?? null;
|
|
6472
|
+
const aiClient = getAiClient?.() ?? "mcp";
|
|
6473
|
+
return chatTabId ? { chatTabId, aiClient } : { aiClient };
|
|
6474
|
+
}
|
|
6475
|
+
|
|
6460
6476
|
// ../issues-mcp/tools/issues.ts
|
|
6461
6477
|
import { z } from "zod";
|
|
6462
6478
|
|
|
@@ -6484,10 +6500,6 @@ async function gateWrite(getWritePermission) {
|
|
|
6484
6500
|
}
|
|
6485
6501
|
return null;
|
|
6486
6502
|
}
|
|
6487
|
-
function chatTabIdArg(getOriginChatTabId) {
|
|
6488
|
-
const chatTabId = getOriginChatTabId?.() ?? null;
|
|
6489
|
-
return chatTabId ? { chatTabId } : {};
|
|
6490
|
-
}
|
|
6491
6503
|
function requireConfirm(args, action) {
|
|
6492
6504
|
if (!args.confirm) {
|
|
6493
6505
|
throw new McpToolError({
|
|
@@ -6957,7 +6969,13 @@ function emitIssueLifecycle(args) {
|
|
|
6957
6969
|
}
|
|
6958
6970
|
}
|
|
6959
6971
|
function registerIssueTools(server, deps) {
|
|
6960
|
-
const {
|
|
6972
|
+
const {
|
|
6973
|
+
convex,
|
|
6974
|
+
captureEvent,
|
|
6975
|
+
getOriginChatTabId,
|
|
6976
|
+
getAiClient,
|
|
6977
|
+
getWritePermission
|
|
6978
|
+
} = deps;
|
|
6961
6979
|
async function snapshotIssue(issueId, orgId) {
|
|
6962
6980
|
try {
|
|
6963
6981
|
const issue = await convex.query(api.issues.getIssue, {
|
|
@@ -7354,7 +7372,7 @@ function registerIssueTools(server, deps) {
|
|
|
7354
7372
|
assigneeIds: args.assigneeIds,
|
|
7355
7373
|
labels,
|
|
7356
7374
|
...createdFromWorkspace ? { createdFromWorkspace } : {},
|
|
7357
|
-
...
|
|
7375
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7358
7376
|
});
|
|
7359
7377
|
const prefix = await getBoardPrefix(ctx);
|
|
7360
7378
|
const human_id = prefix ? `${prefix}-${result.number}` : void 0;
|
|
@@ -7451,7 +7469,7 @@ function registerIssueTools(server, deps) {
|
|
|
7451
7469
|
organizationId: ctx.orgId,
|
|
7452
7470
|
updates: cleanUpdates,
|
|
7453
7471
|
clearFields: clearFields.length > 0 ? clearFields : void 0,
|
|
7454
|
-
...
|
|
7472
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7455
7473
|
});
|
|
7456
7474
|
emitIssueEdited({
|
|
7457
7475
|
captureEvent,
|
|
@@ -7717,7 +7735,7 @@ function registerIssueTools(server, deps) {
|
|
|
7717
7735
|
stage,
|
|
7718
7736
|
assigneeId: args.assigneeId,
|
|
7719
7737
|
assigneeIds: args.assigneeIds,
|
|
7720
|
-
...
|
|
7738
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7721
7739
|
});
|
|
7722
7740
|
emitIssueEdited({
|
|
7723
7741
|
captureEvent,
|
|
@@ -7797,7 +7815,7 @@ function registerIssueTools(server, deps) {
|
|
|
7797
7815
|
const result = await convex.mutation(api.issues.duplicateIssue, {
|
|
7798
7816
|
issueId,
|
|
7799
7817
|
organizationId: ctx.orgId,
|
|
7800
|
-
...
|
|
7818
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7801
7819
|
});
|
|
7802
7820
|
const prefix = await getBoardPrefix(ctx);
|
|
7803
7821
|
const newNumber = result?.number;
|
|
@@ -7849,7 +7867,7 @@ function registerIssueTools(server, deps) {
|
|
|
7849
7867
|
issueIds: resolvedIds,
|
|
7850
7868
|
organizationId: ctx.orgId,
|
|
7851
7869
|
updates,
|
|
7852
|
-
...
|
|
7870
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7853
7871
|
});
|
|
7854
7872
|
emitIssueEdited({
|
|
7855
7873
|
captureEvent,
|
|
@@ -7934,7 +7952,7 @@ function registerIssueTools(server, deps) {
|
|
|
7934
7952
|
organizationId: ctx.orgId,
|
|
7935
7953
|
assigneeId: args.assigneeId,
|
|
7936
7954
|
assigneeIds: args.assigneeIds,
|
|
7937
|
-
...
|
|
7955
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7938
7956
|
});
|
|
7939
7957
|
emitIssueEdited({
|
|
7940
7958
|
captureEvent,
|
|
@@ -7977,7 +7995,12 @@ function humanIdFromInput(id) {
|
|
|
7977
7995
|
// ../issues-mcp/tools/comments.ts
|
|
7978
7996
|
import { z as z2 } from "zod";
|
|
7979
7997
|
function registerCommentTools(server, deps) {
|
|
7980
|
-
const {
|
|
7998
|
+
const {
|
|
7999
|
+
convex,
|
|
8000
|
+
getOriginChatTabId,
|
|
8001
|
+
getAiClient,
|
|
8002
|
+
getWritePermission
|
|
8003
|
+
} = deps;
|
|
7981
8004
|
server.tool(
|
|
7982
8005
|
"issues_add_comment",
|
|
7983
8006
|
"Add a comment to a Issues issue.",
|
|
@@ -7994,7 +8017,7 @@ function registerCommentTools(server, deps) {
|
|
|
7994
8017
|
issueId,
|
|
7995
8018
|
organizationId: ctx.orgId,
|
|
7996
8019
|
content: args.content,
|
|
7997
|
-
...
|
|
8020
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
7998
8021
|
});
|
|
7999
8022
|
return jsonResult({
|
|
8000
8023
|
commented: true,
|
|
@@ -8032,7 +8055,12 @@ function registerCommentTools(server, deps) {
|
|
|
8032
8055
|
// ../issues-mcp/tools/labels.ts
|
|
8033
8056
|
import { z as z3 } from "zod";
|
|
8034
8057
|
function registerLabelTools(server, deps) {
|
|
8035
|
-
const {
|
|
8058
|
+
const {
|
|
8059
|
+
convex,
|
|
8060
|
+
getOriginChatTabId,
|
|
8061
|
+
getAiClient,
|
|
8062
|
+
getWritePermission
|
|
8063
|
+
} = deps;
|
|
8036
8064
|
server.tool(
|
|
8037
8065
|
"issues_list_labels",
|
|
8038
8066
|
"List all labels on the active Issues board.",
|
|
@@ -8098,7 +8126,7 @@ function registerLabelTools(server, deps) {
|
|
|
8098
8126
|
issueId,
|
|
8099
8127
|
organizationId: ctx.orgId,
|
|
8100
8128
|
updates: { labels },
|
|
8101
|
-
...
|
|
8129
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
8102
8130
|
});
|
|
8103
8131
|
return jsonResult({
|
|
8104
8132
|
added: true,
|
|
@@ -8134,7 +8162,7 @@ function registerLabelTools(server, deps) {
|
|
|
8134
8162
|
issueId,
|
|
8135
8163
|
organizationId: ctx.orgId,
|
|
8136
8164
|
updates: { labels },
|
|
8137
|
-
...
|
|
8165
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
8138
8166
|
});
|
|
8139
8167
|
return jsonResult({
|
|
8140
8168
|
removed: true,
|
|
@@ -9713,6 +9741,7 @@ function createIssuesMcpServer(context) {
|
|
|
9713
9741
|
resolveCanvasLinkEndpoint: context.resolveCanvasLinkEndpoint,
|
|
9714
9742
|
getWorkspaceEndpoint: context.getWorkspaceEndpoint,
|
|
9715
9743
|
getOriginChatTabId: context.getOriginChatTabId,
|
|
9744
|
+
getAiClient: context.getAiClient,
|
|
9716
9745
|
captureEvent: context.captureEvent
|
|
9717
9746
|
};
|
|
9718
9747
|
const instrumentedServer = wrapWithTelemetry(
|
|
@@ -11656,7 +11685,13 @@ function registerReadTools2(server, deps) {
|
|
|
11656
11685
|
import { z as z11 } from "zod";
|
|
11657
11686
|
var MAX_ATTACHMENTS_PER_COMMENT = 10;
|
|
11658
11687
|
function registerWriteTools2(server, deps) {
|
|
11659
|
-
const {
|
|
11688
|
+
const {
|
|
11689
|
+
convex,
|
|
11690
|
+
getWritePermission,
|
|
11691
|
+
resolveCanvasContentPath,
|
|
11692
|
+
getOriginChatTabId,
|
|
11693
|
+
getAiClient
|
|
11694
|
+
} = deps;
|
|
11660
11695
|
const canvasKey = async (contentPath) => {
|
|
11661
11696
|
const resolved = resolveCanvasContentPath ? await resolveCanvasContentPath(contentPath) : contentPath;
|
|
11662
11697
|
return normalizeCanvasContentPath(resolved);
|
|
@@ -11699,7 +11734,8 @@ function registerWriteTools2(server, deps) {
|
|
|
11699
11734
|
positionY: args.positionY,
|
|
11700
11735
|
body: args.body,
|
|
11701
11736
|
// biome-ignore lint/suspicious/noExplicitAny: cross-package id casting
|
|
11702
|
-
attachmentIds: args.attachmentIds
|
|
11737
|
+
attachmentIds: args.attachmentIds,
|
|
11738
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
11703
11739
|
});
|
|
11704
11740
|
if (result === null) {
|
|
11705
11741
|
return errorResult3({
|
|
@@ -11733,7 +11769,8 @@ function registerWriteTools2(server, deps) {
|
|
|
11733
11769
|
threadId: args.threadId,
|
|
11734
11770
|
body: args.body,
|
|
11735
11771
|
// biome-ignore lint/suspicious/noExplicitAny: cross-package id casting
|
|
11736
|
-
attachmentIds: args.attachmentIds
|
|
11772
|
+
attachmentIds: args.attachmentIds,
|
|
11773
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
11737
11774
|
});
|
|
11738
11775
|
if (commentId === null) {
|
|
11739
11776
|
return errorResult3({
|
|
@@ -11974,7 +12011,7 @@ function registerReadStateTools(server, deps) {
|
|
|
11974
12011
|
var COMMENTS_MCP_INSTRUCTIONS = [
|
|
11975
12012
|
"Tempo canvas comments: review threads pinned to canvases and storyboards, org-scoped and keyed by (orgProjectId, branch, contentPath) where contentPath is the canvas FOLDER path.",
|
|
11976
12013
|
"When the user asks for a pull request's visual-review (VRT) status, verdicts, or review feedback, call comments_get_pr_visual_review first: it joins the GitHub `visual-review` check, the Tempo report gate, and the review threads in one read-only call.",
|
|
11977
|
-
|
|
12014
|
+
`Writes run as the signed-in user but are shown as their AI ("<user>'s Claude Agent", or the Custom Agent's name in an agent run), never as a direct edit by them.`
|
|
11978
12015
|
].join("\n\n");
|
|
11979
12016
|
function createCommentsMcpServer(context) {
|
|
11980
12017
|
const server = new McpServer3(
|
|
@@ -12003,7 +12040,13 @@ function createCommentsMcpServer(context) {
|
|
|
12003
12040
|
context.getCurrentOrgGeneration
|
|
12004
12041
|
);
|
|
12005
12042
|
const getWritePermission = context.getWritePermission ?? (() => true);
|
|
12006
|
-
const {
|
|
12043
|
+
const {
|
|
12044
|
+
resolveCanvasContentPath,
|
|
12045
|
+
getRepoUrl,
|
|
12046
|
+
githubApi,
|
|
12047
|
+
getOriginChatTabId,
|
|
12048
|
+
getAiClient
|
|
12049
|
+
} = context;
|
|
12007
12050
|
registerReadTools2(instrumented, {
|
|
12008
12051
|
convex,
|
|
12009
12052
|
resolveCanvasContentPath,
|
|
@@ -12013,7 +12056,9 @@ function createCommentsMcpServer(context) {
|
|
|
12013
12056
|
registerWriteTools2(instrumented, {
|
|
12014
12057
|
convex,
|
|
12015
12058
|
getWritePermission,
|
|
12016
|
-
resolveCanvasContentPath
|
|
12059
|
+
resolveCanvasContentPath,
|
|
12060
|
+
getOriginChatTabId,
|
|
12061
|
+
getAiClient
|
|
12017
12062
|
});
|
|
12018
12063
|
registerReactionTools(instrumented, { convex, getWritePermission });
|
|
12019
12064
|
registerLifecycleTools(instrumented, { convex, getWritePermission });
|
|
@@ -13892,12 +13937,12 @@ function templateSummary(template) {
|
|
|
13892
13937
|
};
|
|
13893
13938
|
}
|
|
13894
13939
|
var AGENT_LIST_PROMPT_PREVIEW_CHARS = 400;
|
|
13895
|
-
function runTargetNote(
|
|
13896
|
-
const where =
|
|
13897
|
-
if (
|
|
13940
|
+
function runTargetNote(v2) {
|
|
13941
|
+
const where = v2.owned ? "your machine" : "the agent owner's machine (a teammate \u2014 their runs are redacted for you)";
|
|
13942
|
+
if (v2.ownerMachineOnline === false) {
|
|
13898
13943
|
return `Queued for ${where}, which is OFFLINE right now \u2014 the run will NOT start until that machine comes back online. Tell the user this plainly. For work the user wants to watch, use an agent the user owns (create one from a template if needed).`;
|
|
13899
13944
|
}
|
|
13900
|
-
if (
|
|
13945
|
+
if (v2.ownerMachineOnline === null) {
|
|
13901
13946
|
return `Queued for ${where}; that user has no registered machine yet, so the run cannot start until they open Tempo on one.`;
|
|
13902
13947
|
}
|
|
13903
13948
|
return `Executes on ${where} (online).`;
|
|
@@ -13919,7 +13964,7 @@ async function describeRunTarget(convex, agentId) {
|
|
|
13919
13964
|
}
|
|
13920
13965
|
}
|
|
13921
13966
|
function registerAgentTools(server, deps) {
|
|
13922
|
-
const { convex } = deps;
|
|
13967
|
+
const { convex, getOriginChatTabId, getAiClient } = deps;
|
|
13923
13968
|
server.tool(
|
|
13924
13969
|
"agents_search_templates",
|
|
13925
13970
|
"Search the built-in Custom Agent templates before creating an agent. Returns matching template summaries; use agents_get_template for a template's complete prompt and config. Omit query to list all templates.",
|
|
@@ -14321,7 +14366,8 @@ function registerAgentTools(server, deps) {
|
|
|
14321
14366
|
try {
|
|
14322
14367
|
await convex.mutation(api4.agentAssignments.assignAgentToIssue, {
|
|
14323
14368
|
issueId: args.issueId,
|
|
14324
|
-
agentId: args.agentId
|
|
14369
|
+
agentId: args.agentId,
|
|
14370
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
14325
14371
|
});
|
|
14326
14372
|
return jsonResult4({
|
|
14327
14373
|
assigned: true,
|
|
@@ -14346,7 +14392,8 @@ function registerAgentTools(server, deps) {
|
|
|
14346
14392
|
try {
|
|
14347
14393
|
await convex.mutation(api4.agentAssignments.unassignAgentFromIssue, {
|
|
14348
14394
|
issueId: args.issueId,
|
|
14349
|
-
agentId: args.agentId
|
|
14395
|
+
agentId: args.agentId,
|
|
14396
|
+
...aiOriginArgs(getOriginChatTabId, getAiClient)
|
|
14350
14397
|
});
|
|
14351
14398
|
return jsonResult4({
|
|
14352
14399
|
unassigned: true,
|
|
@@ -14534,7 +14581,12 @@ function createAgentsMcpServer(context) {
|
|
|
14534
14581
|
context.captureEvent,
|
|
14535
14582
|
context.getCurrentOrgGeneration
|
|
14536
14583
|
);
|
|
14537
|
-
registerAgentTools(instrumented, {
|
|
14584
|
+
registerAgentTools(instrumented, {
|
|
14585
|
+
convex,
|
|
14586
|
+
convexUrl: context.convexUrl,
|
|
14587
|
+
getOriginChatTabId: context.getOriginChatTabId,
|
|
14588
|
+
getAiClient: context.getAiClient
|
|
14589
|
+
});
|
|
14538
14590
|
return {
|
|
14539
14591
|
server,
|
|
14540
14592
|
onRequestStart: (requestId) => snapshotMap.beginRequest(requestId),
|
|
@@ -36565,9 +36617,9 @@ function appendTaskOptions(options, commands = []) {
|
|
|
36565
36617
|
} else if (filterPrimitives(value, ["boolean"])) {
|
|
36566
36618
|
commands2.push(key + "=" + value);
|
|
36567
36619
|
} else if (Array.isArray(value)) {
|
|
36568
|
-
for (const
|
|
36569
|
-
if (!filterPrimitives(
|
|
36570
|
-
commands2.push(key + "=" +
|
|
36620
|
+
for (const v2 of value) {
|
|
36621
|
+
if (!filterPrimitives(v2, ["string", "number"])) {
|
|
36622
|
+
commands2.push(key + "=" + v2);
|
|
36571
36623
|
}
|
|
36572
36624
|
}
|
|
36573
36625
|
} else {
|
|
@@ -43944,7 +43996,7 @@ function normalizePathsRecord(raw) {
|
|
|
43944
43996
|
const out = {};
|
|
43945
43997
|
for (const [key, value] of Object.entries(raw)) {
|
|
43946
43998
|
if (Array.isArray(value)) {
|
|
43947
|
-
const targets = value.filter((
|
|
43999
|
+
const targets = value.filter((v2) => typeof v2 === "string");
|
|
43948
44000
|
if (targets.length > 0) out[key] = targets;
|
|
43949
44001
|
} else if (typeof value === "string") {
|
|
43950
44002
|
out[key] = [value];
|
|
@@ -44060,14 +44112,14 @@ function isTempoOwnedViteTsconfig(parsed) {
|
|
|
44060
44112
|
return false;
|
|
44061
44113
|
}
|
|
44062
44114
|
const include = obj.include;
|
|
44063
|
-
if (!Array.isArray(include) || include.length !== VITE_HOST_TSCONFIG_INCLUDE.length || !VITE_HOST_TSCONFIG_INCLUDE.every((
|
|
44115
|
+
if (!Array.isArray(include) || include.length !== VITE_HOST_TSCONFIG_INCLUDE.length || !VITE_HOST_TSCONFIG_INCLUDE.every((v2, i) => include[i] === v2)) {
|
|
44064
44116
|
return false;
|
|
44065
44117
|
}
|
|
44066
44118
|
const co = obj.compilerOptions;
|
|
44067
44119
|
if (!co || typeof co !== "object" || Array.isArray(co)) return false;
|
|
44068
44120
|
const coObj = co;
|
|
44069
|
-
for (const [k2,
|
|
44070
|
-
if (coObj[k2] !==
|
|
44121
|
+
for (const [k2, v2] of Object.entries(VITE_HOST_COMPILER_OPTIONS)) {
|
|
44122
|
+
if (coObj[k2] !== v2) return false;
|
|
44071
44123
|
}
|
|
44072
44124
|
const allowed = /* @__PURE__ */ new Set([
|
|
44073
44125
|
...Object.keys(VITE_HOST_COMPILER_OPTIONS),
|
|
@@ -44176,13 +44228,13 @@ function isTempoOwnedNextTsconfig(parsed) {
|
|
|
44176
44228
|
const co = obj.compilerOptions;
|
|
44177
44229
|
if (!co || typeof co !== "object" || Array.isArray(co)) return false;
|
|
44178
44230
|
const coObj = co;
|
|
44179
|
-
for (const [k2,
|
|
44180
|
-
if (Array.isArray(
|
|
44231
|
+
for (const [k2, v2] of Object.entries(NEXT_HOST_COMPILER_OPTIONS)) {
|
|
44232
|
+
if (Array.isArray(v2)) {
|
|
44181
44233
|
const actual = coObj[k2];
|
|
44182
|
-
if (!Array.isArray(actual) || actual.length !==
|
|
44234
|
+
if (!Array.isArray(actual) || actual.length !== v2.length || !v2.every((item, i) => actual[i] === item)) {
|
|
44183
44235
|
return false;
|
|
44184
44236
|
}
|
|
44185
|
-
} else if (coObj[k2] !==
|
|
44237
|
+
} else if (coObj[k2] !== v2) {
|
|
44186
44238
|
return false;
|
|
44187
44239
|
}
|
|
44188
44240
|
}
|
|
@@ -52701,7 +52753,7 @@ function buildBackends(runtime, toolsets, workspace) {
|
|
|
52701
52753
|
}
|
|
52702
52754
|
|
|
52703
52755
|
// src/version.ts
|
|
52704
|
-
var CLI_VERSION = "0.0.
|
|
52756
|
+
var CLI_VERSION = "0.0.120-staging.1";
|
|
52705
52757
|
|
|
52706
52758
|
// src/canvas-hooks.ts
|
|
52707
52759
|
var import_pngjs4 = __toESM(require_png(), 1);
|
|
@@ -52711,7 +52763,7 @@ import { gzipSync } from "zlib";
|
|
|
52711
52763
|
import { anyApi as anyApi9 } from "convex/server";
|
|
52712
52764
|
|
|
52713
52765
|
// ../workspaces/git-worktree/worktree.ts
|
|
52714
|
-
import { createHash as createHash5 } from "crypto";
|
|
52766
|
+
import { createHash as createHash5, randomUUID as randomUUID5 } from "crypto";
|
|
52715
52767
|
import fs6 from "fs/promises";
|
|
52716
52768
|
import os3 from "os";
|
|
52717
52769
|
import path60 from "path";
|
|
@@ -53652,4 +53704,4 @@ unpdf/dist/index.mjs:
|
|
|
53652
53704
|
* @license Apache-2.0
|
|
53653
53705
|
*)
|
|
53654
53706
|
*/
|
|
53655
|
-
//# sourceMappingURL=serve-
|
|
53707
|
+
//# sourceMappingURL=serve-N6T363OQ.js.map
|