@tempo-ai/mcp 0.0.135 → 0.0.136-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-RHCHIZ77.js → call-CPSN77IM.js} +2 -2
- package/dist/{chunk-OAAW3EPH.js → chunk-3KFLJC3H.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{serve-446C4C5G.js → serve-VVKSMWYG.js} +96 -45
- package/dist/{serve-446C4C5G.js.map → serve-VVKSMWYG.js.map} +1 -1
- package/package.json +1 -1
- /package/dist/{call-RHCHIZ77.js.map → call-CPSN77IM.js.map} +0 -0
- /package/dist/{chunk-OAAW3EPH.js.map → chunk-3KFLJC3H.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-3KFLJC3H.js";
|
|
6
6
|
import "./chunk-4R6XIZCX.js";
|
|
7
7
|
import "./chunk-JKT5N6IQ.js";
|
|
8
8
|
|
|
@@ -9,7 +9,7 @@ import "./chunk-JKT5N6IQ.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-VVKSMWYG.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-CPSN77IM.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-VVKSMWYG.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-CPSN77IM.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-CPSN77IM.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-3KFLJC3H.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-3KFLJC3H.js";
|
|
5
5
|
import "./chunk-4R6XIZCX.js";
|
|
6
6
|
import "./chunk-JKT5N6IQ.js";
|
|
7
7
|
export {
|
|
@@ -48527,7 +48527,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
48527
48527
|
sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
48528
48528
|
}
|
|
48529
48529
|
var version = util.getArg(sourceMap, "version");
|
|
48530
|
-
var
|
|
48530
|
+
var sections3 = util.getArg(sourceMap, "sections");
|
|
48531
48531
|
if (version != this._version) {
|
|
48532
48532
|
throw new Error("Unsupported version: " + version);
|
|
48533
48533
|
}
|
|
@@ -48537,7 +48537,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
48537
48537
|
line: -1,
|
|
48538
48538
|
column: 0
|
|
48539
48539
|
};
|
|
48540
|
-
this._sections =
|
|
48540
|
+
this._sections = sections3.map(function(s) {
|
|
48541
48541
|
if (s.url) {
|
|
48542
48542
|
throw new Error("Support for url field in sections not implemented.");
|
|
48543
48543
|
}
|
|
@@ -87723,10 +87723,46 @@ import path31 from "path";
|
|
|
87723
87723
|
import { access as access6, mkdir as mkdir8, readFile as readFile21, rm as rm6, writeFile as writeFile8 } from "fs/promises";
|
|
87724
87724
|
|
|
87725
87725
|
// ../tempo-devserver/managed-dependency-migration.ts
|
|
87726
|
-
var import_yaml2 = __toESM(require_dist2(), 1);
|
|
87727
87726
|
import { readFile as readFile8, unlink } from "fs/promises";
|
|
87728
87727
|
import path10 from "path";
|
|
87729
87728
|
|
|
87729
|
+
// ../tempo-devserver/managed-lockfile-parser.ts
|
|
87730
|
+
var import_yaml = __toESM(require_dist2(), 1);
|
|
87731
|
+
var sections = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
87732
|
+
function parseManagedLockfile(request) {
|
|
87733
|
+
if (request.packageManager === "pnpm") {
|
|
87734
|
+
const parsed = (0, import_yaml.parse)(request.source);
|
|
87735
|
+
const importer = request.importer || ".";
|
|
87736
|
+
const entry = parsed?.importers?.[importer] ?? (importer === "." ? parsed : null);
|
|
87737
|
+
if (!entry) return null;
|
|
87738
|
+
return Object.fromEntries(
|
|
87739
|
+
sections.map((section) => [
|
|
87740
|
+
section,
|
|
87741
|
+
Object.fromEntries(
|
|
87742
|
+
Object.entries(entry[section] ?? {}).map(([name, value]) => [
|
|
87743
|
+
name,
|
|
87744
|
+
typeof value === "object" && value !== null ? value.specifier : entry.specifiers?.[name]
|
|
87745
|
+
]).sort(([a], [b2]) => a.localeCompare(b2))
|
|
87746
|
+
)
|
|
87747
|
+
])
|
|
87748
|
+
);
|
|
87749
|
+
} else if (request.packageManager === "npm") {
|
|
87750
|
+
const importer = request.importer;
|
|
87751
|
+
const entry = JSON.parse(request.source).packages?.[importer];
|
|
87752
|
+
return entry ? Object.fromEntries(
|
|
87753
|
+
sections.map((section) => [
|
|
87754
|
+
section,
|
|
87755
|
+
Object.fromEntries(
|
|
87756
|
+
Object.entries(entry[section] ?? {}).sort(
|
|
87757
|
+
([a], [b2]) => a.localeCompare(b2)
|
|
87758
|
+
)
|
|
87759
|
+
)
|
|
87760
|
+
])
|
|
87761
|
+
) : null;
|
|
87762
|
+
}
|
|
87763
|
+
return null;
|
|
87764
|
+
}
|
|
87765
|
+
|
|
87730
87766
|
// ../../modules/abortable-wait/index.ts
|
|
87731
87767
|
function abortableWait(cancelledMessage) {
|
|
87732
87768
|
const error = () => {
|
|
@@ -88135,7 +88171,7 @@ var MissingRootDepsError = class extends TempoDevServerError {
|
|
|
88135
88171
|
// ../tempo-sdk/package.json
|
|
88136
88172
|
var package_default = {
|
|
88137
88173
|
name: "tempo-sdk",
|
|
88138
|
-
version: "0.0.
|
|
88174
|
+
version: "0.0.87",
|
|
88139
88175
|
publishConfig: {
|
|
88140
88176
|
tag: "sdk-v2-latest"
|
|
88141
88177
|
},
|
|
@@ -88382,7 +88418,7 @@ import path9 from "path";
|
|
|
88382
88418
|
|
|
88383
88419
|
// ../tempo-devserver/package-manager.ts
|
|
88384
88420
|
var import_picomatch = __toESM(require_picomatch2(), 1);
|
|
88385
|
-
var
|
|
88421
|
+
var import_yaml2 = __toESM(require_dist2(), 1);
|
|
88386
88422
|
import { access, readdir as readdir3, readFile as readFile6, realpath } from "fs/promises";
|
|
88387
88423
|
import path8 from "path";
|
|
88388
88424
|
var LOCKFILE_PRIORITY = [
|
|
@@ -88507,7 +88543,7 @@ async function isOutsideAncestorPnpmWorkspace(packageRoot) {
|
|
|
88507
88543
|
async function pnpmWorkspaceListsPackage(workspaceFile, relativeDir) {
|
|
88508
88544
|
let parsed;
|
|
88509
88545
|
try {
|
|
88510
|
-
parsed = (0,
|
|
88546
|
+
parsed = (0, import_yaml2.parse)(await readFile6(workspaceFile, "utf-8"));
|
|
88511
88547
|
} catch {
|
|
88512
88548
|
return true;
|
|
88513
88549
|
}
|
|
@@ -88532,7 +88568,7 @@ async function readWorkspacePatterns(root3) {
|
|
|
88532
88568
|
const workspaceFile = path8.join(root3, "pnpm-workspace.yaml");
|
|
88533
88569
|
if (await fileExists(workspaceFile)) {
|
|
88534
88570
|
try {
|
|
88535
|
-
const parsed = (0,
|
|
88571
|
+
const parsed = (0, import_yaml2.parse)(await readFile6(workspaceFile, "utf-8"));
|
|
88536
88572
|
return Array.isArray(parsed?.packages) ? normalizeWorkspacePatterns(parsed.packages) : [];
|
|
88537
88573
|
} catch {
|
|
88538
88574
|
return null;
|
|
@@ -88754,11 +88790,11 @@ async function exclusive(key, work, signal) {
|
|
|
88754
88790
|
if (preparations.get(key) === result2) preparations.delete(key);
|
|
88755
88791
|
}
|
|
88756
88792
|
}
|
|
88757
|
-
var
|
|
88793
|
+
var sections2 = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
88758
88794
|
function dependencies(source) {
|
|
88759
88795
|
const pkg = source === null ? {} : JSON.parse(source);
|
|
88760
88796
|
return Object.fromEntries(
|
|
88761
|
-
|
|
88797
|
+
sections2.map((section) => [
|
|
88762
88798
|
section,
|
|
88763
88799
|
Object.fromEntries(
|
|
88764
88800
|
Object.entries(pkg[section] ?? {}).sort(
|
|
@@ -88824,40 +88860,23 @@ async function managedLockfilePlan(packageRoot) {
|
|
|
88824
88860
|
packageManager: upgrade.packageManager
|
|
88825
88861
|
};
|
|
88826
88862
|
}
|
|
88827
|
-
async function lockedDependencies(packageRoot) {
|
|
88863
|
+
async function lockedDependencies(packageRoot, parse4) {
|
|
88828
88864
|
const plan = await managedLockfilePlan(packageRoot);
|
|
88829
88865
|
const lock = await readOptional(plan.lockfile);
|
|
88830
88866
|
if (lock === null) return null;
|
|
88831
|
-
|
|
88832
|
-
|
|
88833
|
-
|
|
88834
|
-
|
|
88835
|
-
|
|
88836
|
-
return Object.fromEntries(
|
|
88837
|
-
sections.map((section) => [
|
|
88838
|
-
section,
|
|
88839
|
-
Object.fromEntries(
|
|
88840
|
-
Object.entries(entry[section] ?? {}).map(([name, value]) => [
|
|
88841
|
-
name,
|
|
88842
|
-
typeof value === "object" && value !== null ? value.specifier : entry.specifiers?.[name]
|
|
88843
|
-
]).sort(([a], [b2]) => a.localeCompare(b2))
|
|
88844
|
-
)
|
|
88845
|
-
])
|
|
88846
|
-
);
|
|
88847
|
-
} else if (plan.packageManager === "npm") {
|
|
88848
|
-
const importer = path10.relative(plan.directory, packageRoot).split(path10.sep).join("/");
|
|
88849
|
-
const entry = JSON.parse(lock).packages?.[importer];
|
|
88850
|
-
return entry ? dependencies(JSON.stringify(entry)) : null;
|
|
88851
|
-
}
|
|
88852
|
-
return null;
|
|
88867
|
+
return await (parse4 ?? parseManagedLockfile)({
|
|
88868
|
+
packageManager: plan.packageManager,
|
|
88869
|
+
source: lock,
|
|
88870
|
+
importer: path10.relative(plan.directory, packageRoot).split(path10.sep).join("/")
|
|
88871
|
+
});
|
|
88853
88872
|
}
|
|
88854
|
-
async function hasLegacySdkLock(packageRoot) {
|
|
88873
|
+
async function hasLegacySdkLock(packageRoot, parse4) {
|
|
88855
88874
|
const raw = await readOptional(path10.join(packageRoot, "package.json"));
|
|
88856
88875
|
if (raw === null) return false;
|
|
88857
88876
|
const pkg = JSON.parse(raw);
|
|
88858
88877
|
const declared = pkg.dependencies?.["tempo-sdk"] ?? pkg.devDependencies?.["tempo-sdk"];
|
|
88859
88878
|
if (declared !== TEMPO_SDK_CHANNEL) return false;
|
|
88860
|
-
const entries = await lockedDependencies(packageRoot);
|
|
88879
|
+
const entries = await lockedDependencies(packageRoot, parse4);
|
|
88861
88880
|
const locked = entries?.dependencies?.["tempo-sdk"] ?? entries?.devDependencies?.["tempo-sdk"];
|
|
88862
88881
|
return typeof locked === "string" && locked !== declared && managedTempoSdkSpec(locked) === TEMPO_SDK_CHANNEL;
|
|
88863
88882
|
}
|
|
@@ -88880,7 +88899,12 @@ async function prepareManagedDependencyMigration(options2) {
|
|
|
88880
88899
|
const current = await readOptional(manifest);
|
|
88881
88900
|
if (current === null) continue;
|
|
88882
88901
|
if (JSON.stringify(dependencies(current)) !== JSON.stringify(expected)) {
|
|
88883
|
-
if (JSON.stringify(
|
|
88902
|
+
if (JSON.stringify(
|
|
88903
|
+
await lockedDependencies(
|
|
88904
|
+
path10.dirname(manifest),
|
|
88905
|
+
options2.parseManagedLockfile
|
|
88906
|
+
)
|
|
88907
|
+
) === JSON.stringify(dependencies(current)))
|
|
88884
88908
|
continue;
|
|
88885
88909
|
throw new ValidationError(
|
|
88886
88910
|
`Dependencies changed during Tempo's migration: ${manifest}. Update this package's lockfile with your package manager, then retry.`
|
|
@@ -88893,7 +88917,8 @@ async function prepareManagedDependencyMigration(options2) {
|
|
|
88893
88917
|
key,
|
|
88894
88918
|
...options2.packageRoots ?? []
|
|
88895
88919
|
])) {
|
|
88896
|
-
if (!roots.has(root3) && await hasLegacySdkLock(root3
|
|
88920
|
+
if (!roots.has(root3) && await hasLegacySdkLock(root3, options2.parseManagedLockfile))
|
|
88921
|
+
roots.add(root3);
|
|
88897
88922
|
}
|
|
88898
88923
|
if (!roots.size && !Object.keys(pending).length) return;
|
|
88899
88924
|
if (roots.size && options2.updateSdk) {
|
|
@@ -98530,6 +98555,11 @@ var TempoHostProcess = class _TempoHostProcess {
|
|
|
98530
98555
|
// scripts.stop exists. In this mode the child was only a launcher; HTTP is
|
|
98531
98556
|
// the liveness authority until stop/restart runs the external teardown.
|
|
98532
98557
|
this.launcherFinished = false;
|
|
98558
|
+
// A clean launcher exit sets `stopped` at once but persists the ownership
|
|
98559
|
+
// record before `launcherFinished` flips. Readiness treats that window as
|
|
98560
|
+
// live and awaits it instead of reporting the launcher dead. Cleared if the
|
|
98561
|
+
// handoff fails.
|
|
98562
|
+
this.launcherHandoff = null;
|
|
98533
98563
|
this.readinessConfirmed = false;
|
|
98534
98564
|
this.launcherStopRequired = false;
|
|
98535
98565
|
this.terminalExitNotified = false;
|
|
@@ -98674,8 +98704,16 @@ ${output}` : "";
|
|
|
98674
98704
|
this.stopped = true;
|
|
98675
98705
|
const cleanLauncherExit = !this.intentionalStop && !this.readinessConfirmed && code === 0 && signal == null;
|
|
98676
98706
|
if (cleanLauncherExit && this.stopCommand) {
|
|
98677
|
-
|
|
98678
|
-
|
|
98707
|
+
this.launcherHandoff = (async () => {
|
|
98708
|
+
try {
|
|
98709
|
+
await this.onLauncherHandoff?.();
|
|
98710
|
+
} catch (error) {
|
|
98711
|
+
this.launcherHandoff = null;
|
|
98712
|
+
throw error;
|
|
98713
|
+
}
|
|
98714
|
+
this.launcherFinished = true;
|
|
98715
|
+
})();
|
|
98716
|
+
await this.launcherHandoff;
|
|
98679
98717
|
this.lastExitCrashed = false;
|
|
98680
98718
|
devLog("process:launcher_finished", {
|
|
98681
98719
|
pid: this.child.pid ?? null,
|
|
@@ -98923,6 +98961,8 @@ Hint: ${current.hint}` : "";
|
|
|
98923
98961
|
message: error.message
|
|
98924
98962
|
};
|
|
98925
98963
|
}
|
|
98964
|
+
await this.launcherHandoff?.catch(() => {
|
|
98965
|
+
});
|
|
98926
98966
|
if (this.stopped && !this.launcherFinished) {
|
|
98927
98967
|
return {
|
|
98928
98968
|
ok: false,
|
|
@@ -99008,9 +99048,12 @@ Hint: ${current.hint}` : "";
|
|
|
99008
99048
|
timeoutMs,
|
|
99009
99049
|
this.expectedProjectRoot,
|
|
99010
99050
|
this.expectedIdentity,
|
|
99011
|
-
() => !this.stopped || this.launcherFinished
|
|
99051
|
+
() => !this.stopped || this.launcherFinished || this.launcherHandoff !== null
|
|
99012
99052
|
);
|
|
99013
|
-
const
|
|
99053
|
+
const handoff = this.launcherHandoff;
|
|
99054
|
+
await handoff?.catch(() => {
|
|
99055
|
+
});
|
|
99056
|
+
const publicUrl = handoff && !this.launcherFinished ? null : probeResult.url;
|
|
99014
99057
|
if (!publicUrl) {
|
|
99015
99058
|
const crashed = this.lastExitCrashed;
|
|
99016
99059
|
const probeBlocked = !crashed && !this.stopped && !probeResult.sawResponder;
|
|
@@ -100098,6 +100141,7 @@ var TempoDevServer = class _TempoDevServer {
|
|
|
100098
100141
|
projectRoot: this.projectRoot,
|
|
100099
100142
|
tempoRoot: this.tempoRoot,
|
|
100100
100143
|
packageRoots: options2.packageRoots,
|
|
100144
|
+
parseManagedLockfile: this.config.parseManagedLockfile,
|
|
100101
100145
|
// The legacy repair is needed once per runtime, not on every canvas
|
|
100102
100146
|
// edit/admission. New managed edits always have the cheap journal check.
|
|
100103
100147
|
checkLegacySdkLock: !this.checkedLegacyDependencyLock,
|
|
@@ -115921,7 +115965,8 @@ function nuxtAppDirToRecord(config, run, start) {
|
|
|
115921
115965
|
return start === run.start ? run.appDir : null;
|
|
115922
115966
|
}
|
|
115923
115967
|
var TempoProject = class _TempoProject {
|
|
115924
|
-
constructor(projectRoot) {
|
|
115968
|
+
constructor(projectRoot, parseManagedLockfile2) {
|
|
115969
|
+
this.parseManagedLockfile = parseManagedLockfile2;
|
|
115925
115970
|
this.devserver = null;
|
|
115926
115971
|
this.devserverConfig = null;
|
|
115927
115972
|
this.initializePromise = null;
|
|
@@ -115929,7 +115974,10 @@ var TempoProject = class _TempoProject {
|
|
|
115929
115974
|
}
|
|
115930
115975
|
static async open(projectRoot) {
|
|
115931
115976
|
const normalizedRoot = typeof projectRoot === "string" ? projectRoot : projectRoot.projectRoot;
|
|
115932
|
-
return new _TempoProject(
|
|
115977
|
+
return new _TempoProject(
|
|
115978
|
+
normalizedRoot,
|
|
115979
|
+
typeof projectRoot === "string" ? void 0 : projectRoot.parseManagedLockfile
|
|
115980
|
+
);
|
|
115933
115981
|
}
|
|
115934
115982
|
getProjectRoot() {
|
|
115935
115983
|
return this.projectRoot;
|
|
@@ -116126,7 +116174,10 @@ var TempoProject = class _TempoProject {
|
|
|
116126
116174
|
const resolvedConfig = config ?? await this.getResolvedConfig();
|
|
116127
116175
|
const needsNewDevServer = !this.devserver || !this.devserverConfig || !configsEqual(this.devserverConfig, resolvedConfig);
|
|
116128
116176
|
if (needsNewDevServer) {
|
|
116129
|
-
this.devserver = new TempoDevServer(
|
|
116177
|
+
this.devserver = new TempoDevServer({
|
|
116178
|
+
...toDevServerConfig(resolvedConfig),
|
|
116179
|
+
parseManagedLockfile: this.parseManagedLockfile
|
|
116180
|
+
});
|
|
116130
116181
|
this.devserverConfig = resolvedConfig;
|
|
116131
116182
|
}
|
|
116132
116183
|
return this.devserver;
|
|
@@ -135628,7 +135679,7 @@ function buildBackends(runtime, toolsets, workspace) {
|
|
|
135628
135679
|
}
|
|
135629
135680
|
|
|
135630
135681
|
// src/version.ts
|
|
135631
|
-
var CLI_VERSION = "0.0.
|
|
135682
|
+
var CLI_VERSION = "0.0.136-staging.1";
|
|
135632
135683
|
|
|
135633
135684
|
// src/canvas-hooks.ts
|
|
135634
135685
|
var import_pngjs4 = __toESM(require_png(), 1);
|
|
@@ -136867,4 +136918,4 @@ unpdf/dist/index.mjs:
|
|
|
136867
136918
|
* @license Apache-2.0
|
|
136868
136919
|
*)
|
|
136869
136920
|
*/
|
|
136870
|
-
//# sourceMappingURL=serve-
|
|
136921
|
+
//# sourceMappingURL=serve-VVKSMWYG.js.map
|