@50arms/platform-mcp 0.1.444 → 0.1.445
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.
|
@@ -30,10 +30,10 @@ export async function readCheckoutRepo(cwd, git = runGit) {
|
|
|
30
30
|
}
|
|
31
31
|
/** What `cwd`'s checkout says, or null for a folder that is not a checkout of a GitHub repo. */
|
|
32
32
|
export async function readCheckoutDocsRoot(cwd, git = runGit, exists = existsSync) {
|
|
33
|
+
const repo = await readCheckoutRepo(cwd, git);
|
|
34
|
+
if (repo === null)
|
|
35
|
+
return null;
|
|
33
36
|
try {
|
|
34
|
-
const repo = githubSlugOf(await git(cwd, ["remote", "get-url", "origin"]));
|
|
35
|
-
if (repo === null)
|
|
36
|
-
return null;
|
|
37
37
|
const top = await git(cwd, ["rev-parse", "--show-toplevel"]);
|
|
38
38
|
return { repo, docs_root: exists(join(top, ...DOCS_ROOT.split("/"))) ? DOCS_ROOT : "" };
|
|
39
39
|
}
|
package/dist/machine-toolkit.js
CHANGED
|
@@ -250,7 +250,7 @@ function resolveToolkitVersion(stamped, readManifest) {
|
|
|
250
250
|
return stamped ?? readManifest();
|
|
251
251
|
}
|
|
252
252
|
var readOwnManifest = () => JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8")).version;
|
|
253
|
-
var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.
|
|
253
|
+
var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.445", readOwnManifest);
|
|
254
254
|
function envelope(now) {
|
|
255
255
|
return { contract_version: CONTRACT_VERSION, toolkit_version: TOOLKIT_VERSION, profile: PROFILE, measured_at: now.toISOString() };
|
|
256
256
|
}
|
package/dist/session-access.js
CHANGED
|
@@ -309,7 +309,7 @@ export class SessionAccess {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
async createRequest(sessionId, title, note) {
|
|
312
|
-
const repo =
|
|
312
|
+
const repo = await this.deps.readRepo();
|
|
313
313
|
const created = await createAccessRequest(this.fetchImpl, this.deps.dashboardUrl, {
|
|
314
314
|
kind: "session",
|
|
315
315
|
labelId: sessionId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/platform-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.445",
|
|
4
4
|
"description": "Stdio MCP server fronting the 50 Arms dashboard API for agents (operator sessions and dispatched workers alike): the generic 50arms_api/50arms_api_list/50arms_api_spec tools reach any route the caller's credential may call, plus dedicated agent-specific tools (session_connect, request_permission, attach_file, and 50arms_slack_reply) (DX-3465, PLN-11 R-25).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|