runbios-mcp 0.2.16 → 0.2.17-dev.264
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/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/http/assistant.d.ts +16 -0
- package/dist/http/assistant.d.ts.map +1 -1
- package/dist/http/assistant.js +170 -42
- package/dist/http/assistant.js.map +1 -1
- package/dist/http/main.js +2 -0
- package/dist/http/main.js.map +1 -1
- package/dist/http/metadata.js +1 -1
- package/dist/http/metadata.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/http/metadata.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CANONICAL_SCOPES } from "./oauth.js";
|
|
|
2
2
|
// Docs live on the console; the origin is derived per environment from the
|
|
3
3
|
// hosted config's public base when available, with the production console as
|
|
4
4
|
// the default for published builds (customers use prod).
|
|
5
|
-
const DOCS_URL = `${(process.env.RUNBIOS_PLATFORM_ORIGIN || process.env.BIOS_PLATFORM_ORIGIN || "https://platform.runbios.ai").replace(/\/$/, "")}/docs/mcp`;
|
|
5
|
+
const DOCS_URL = `${(process.env.RUNBIOS_PLATFORM_ORIGIN || process.env.BIOS_PLATFORM_ORIGIN || "https://platform-dev.runbios.ai").replace(/\/$/, "")}/docs/mcp`;
|
|
6
6
|
/** RFC 9728 protected resource metadata. */
|
|
7
7
|
export function protectedResourceMetadata(cfg) {
|
|
8
8
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/http/metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY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C9D,gCAAgC,EAAE,CAAC,MAAM,CAAC;QAC1C,qCAAqC,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,oBAAoB,CAAC;QAC5F,gBAAgB,EAAE,CAAC,GAAG,gBAAgB,CAAC;QACvC,qBAAqB,EAAE,QAAQ;KAChC,CAAC;AACJ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function platformOriginFromApiBase(apiBase) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
catch { /* fall through */ }
|
|
24
|
-
return "https://platform.runbios.ai";
|
|
24
|
+
return "https://platform-dev.runbios.ai";
|
|
25
25
|
}
|
|
26
26
|
const API_KEY = envValue("API_KEY");
|
|
27
27
|
const ACCESS_TOKEN = envValue("ACCESS_TOKEN");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,8EAA8E;AAC9E,sDAAsD;AACtD,SAAS,QAAQ,CAAC,IAAY;IAC5B,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;AAC7E,CAAC;AAED,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;AAElC,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,SAAS,yBAAyB,CAAC,OAAe;IAChD,IAAI,CAA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AC;IAEH,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -2973,7 +2973,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2973
2973
|
author: z.string().optional(),
|
|
2974
2974
|
labels: z.array(z.string()).optional().describe("Which training pipeline this feedback feeds, named HERE rather than in a second call. A build rule selects conversations by label and a training rule trains from that build rule, so a label is the pipeline a conversation goes down. Sent with the verdict it is written in one transaction: either both land or neither does. A separate labelling call is the one that gets skipped, and what it leaves is a reviewed conversation in no pipeline — counted in every 'reviewed' total and selected by nothing."),
|
|
2975
2975
|
attributes: z.record(z.string(), z.string()).optional().describe("The same, by named dimension: {\"category\": \"billing\"}. Dimensions AND together when a set is built, which is what lets one corpus become a different dataset per task."),
|
|
2976
|
-
parent: z.string().optional().describe("The master group the bare labels belong to, so selecting the group picks them up without anybody maintaining a list."),
|
|
2976
|
+
parent: z.string().optional().describe("The master group the bare labels belong to, so selecting the group picks them up without anybody maintaining a list. Leave it out and a label the conversation already carries keeps the group it has; send an empty string to take the labels out of their group."),
|
|
2977
2977
|
}, async ({ trace_id, verdict, source, correction, score, ground_truth, reason, author, labels, attributes, parent }) => {
|
|
2978
2978
|
const data = await client.api(`/api/loop/traces/${encodeURIComponent(trace_id)}/signals`, {
|
|
2979
2979
|
method: "POST",
|
|
@@ -3011,7 +3011,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
3011
3011
|
trace_id: z.string(),
|
|
3012
3012
|
labels: z.array(z.string()).optional().describe("Bare tags, e.g. ['refunds','escalated']. Lowercase letters, digits, dot, dash or underscore."),
|
|
3013
3013
|
attributes: z.record(z.string(), z.string()).optional().describe("NAMED DIMENSIONS, e.g. {\"category\":\"billing\",\"task\":\"refund-handling\",\"language\":\"es\"}. This is what lets one captured corpus become a different dataset for every task somebody trains for: filters on different dimensions AND together, and a dimension is matched EXACTLY within its key, so source=support never matches team=support. Setting one dimension leaves the others untouched, so correcting a mistake needs no delete first."),
|
|
3014
|
-
parent: z.string().optional().describe("The master group
|
|
3014
|
+
parent: z.string().optional().describe("The master group the bare labels belong to, e.g. 'billing'. It applies to 'labels' only; sent with attributes and no labels it groups nothing and is refused. LEAVE IT OUT to keep whatever group a label the conversation already carries is in — re-sending 'refunds' without it does not take 'refunds' out of 'billing'. Send an empty string to take the labels out of their group; the labels themselves stay."),
|
|
3015
3015
|
}, async ({ trace_id, labels, attributes, parent }) => {
|
|
3016
3016
|
const data = await client.api(`/api/loop/traces/${encodeURIComponent(trace_id)}/labels`, {
|
|
3017
3017
|
method: "POST", body: { labels, attributes, parent },
|