@mrrlin-dev/mcp 0.4.155 → 0.4.157
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.cjs +77 -2
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -37536,6 +37536,10 @@ var openApiOperationIds = {
|
|
|
37536
37536
|
exchangeAgentToken: "exchangeAgentToken",
|
|
37537
37537
|
// ADR 0016 — operator-scoped credential routes.
|
|
37538
37538
|
issueOperatorAgentCredential: "issueOperatorAgentCredential",
|
|
37539
|
+
createOperatorSetupCode: "createOperatorSetupCode",
|
|
37540
|
+
getOperatorSetupCode: "getOperatorSetupCode",
|
|
37541
|
+
cancelOperatorSetupCode: "cancelOperatorSetupCode",
|
|
37542
|
+
redeemSetupCode: "redeemSetupCode",
|
|
37539
37543
|
listOperatorAgentCredentials: "listOperatorAgentCredentials",
|
|
37540
37544
|
revokeOperatorAgentCredential: "revokeOperatorAgentCredential",
|
|
37541
37545
|
recordLegalConsent: "recordLegalConsent",
|
|
@@ -38603,6 +38607,9 @@ var manualTaskClosureRequestSchema = external_exports.object({
|
|
|
38603
38607
|
reason: external_exports.string().optional()
|
|
38604
38608
|
});
|
|
38605
38609
|
|
|
38610
|
+
// ../../packages/schemas/dist/report-auth.js
|
|
38611
|
+
var encoder2 = new TextEncoder();
|
|
38612
|
+
|
|
38606
38613
|
// ../../packages/schemas/dist/index.js
|
|
38607
38614
|
var mrrlinTaskStatusSchema = external_exports.enum([
|
|
38608
38615
|
"backlog",
|
|
@@ -40062,6 +40069,46 @@ var exchangeAgentTokenResponseSchema = external_exports.object({
|
|
|
40062
40069
|
projectSlug: external_exports.string().min(1).optional(),
|
|
40063
40070
|
login: external_exports.string().min(1)
|
|
40064
40071
|
});
|
|
40072
|
+
var setupCodeProviderSchema = external_exports.enum(["codex", "claude", "agy"]);
|
|
40073
|
+
var setupCodeSourceSchema = external_exports.enum(["onboarding", "chat", "settings"]);
|
|
40074
|
+
var createSetupCodeRequestSchema = external_exports.object({
|
|
40075
|
+
provider: setupCodeProviderSchema,
|
|
40076
|
+
source: setupCodeSourceSchema,
|
|
40077
|
+
replacesId: external_exports.string().uuid().optional()
|
|
40078
|
+
});
|
|
40079
|
+
var setupCodeCreatedSchema = external_exports.object({
|
|
40080
|
+
id: external_exports.string(),
|
|
40081
|
+
code: external_exports.string(),
|
|
40082
|
+
expiresAt: external_exports.string()
|
|
40083
|
+
});
|
|
40084
|
+
var setupCodeStatusSchema = external_exports.object({
|
|
40085
|
+
id: external_exports.string(),
|
|
40086
|
+
provider: setupCodeProviderSchema,
|
|
40087
|
+
source: setupCodeSourceSchema,
|
|
40088
|
+
state: external_exports.enum(["pending", "redeemed", "claimed", "expired", "cancelled"]),
|
|
40089
|
+
expiresAt: external_exports.string(),
|
|
40090
|
+
redeemedAt: external_exports.string().nullable(),
|
|
40091
|
+
hostname: external_exports.string().nullable(),
|
|
40092
|
+
credentialId: external_exports.string().nullable(),
|
|
40093
|
+
helperSeenAt: external_exports.string().nullable(),
|
|
40094
|
+
providerReadyAt: external_exports.string().nullable()
|
|
40095
|
+
});
|
|
40096
|
+
var redeemSetupCodeRequestSchema = external_exports.object({
|
|
40097
|
+
code: external_exports.string(),
|
|
40098
|
+
hostname: external_exports.string(),
|
|
40099
|
+
os: external_exports.string(),
|
|
40100
|
+
cliVersion: external_exports.string(),
|
|
40101
|
+
credentialSecret: external_exports.string().optional()
|
|
40102
|
+
});
|
|
40103
|
+
var redeemSetupCodeResponseSchema = external_exports.discriminatedUnion("kind", [
|
|
40104
|
+
external_exports.object({
|
|
40105
|
+
kind: external_exports.literal("redeemed"),
|
|
40106
|
+
credentialId: external_exports.string(),
|
|
40107
|
+
deviceLabel: external_exports.string(),
|
|
40108
|
+
secret: external_exports.string()
|
|
40109
|
+
}),
|
|
40110
|
+
external_exports.object({ kind: external_exports.literal("claimed"), credentialId: external_exports.string() })
|
|
40111
|
+
]);
|
|
40065
40112
|
var MRRLIN_ARTIFACT_FILE_MAX_BYTES = 5 * 1024 * 1024;
|
|
40066
40113
|
var mrrlinArtifactFileMimeTypes = [
|
|
40067
40114
|
"text/markdown",
|
|
@@ -40953,7 +41000,12 @@ function createMrrlinClient(config2) {
|
|
|
40953
41000
|
}
|
|
40954
41001
|
async function executeFetch(path34, init) {
|
|
40955
41002
|
const method = (init?.method ?? "GET").toUpperCase();
|
|
40956
|
-
const
|
|
41003
|
+
const dynamicHeaders = typeof config2.headers === "function" ? await config2.headers() : config2.headers;
|
|
41004
|
+
const headers = new Headers(dynamicHeaders ?? {});
|
|
41005
|
+
if (init?.headers) {
|
|
41006
|
+
const extraHeaders = new Headers(init.headers);
|
|
41007
|
+
extraHeaders.forEach((val, key) => headers.set(key, val));
|
|
41008
|
+
}
|
|
40957
41009
|
if (token && !headers.has("authorization")) {
|
|
40958
41010
|
headers.set("authorization", `Bearer ${token}`);
|
|
40959
41011
|
}
|
|
@@ -41963,6 +42015,29 @@ function createMrrlinClient(config2) {
|
|
|
41963
42015
|
method: "DELETE"
|
|
41964
42016
|
});
|
|
41965
42017
|
},
|
|
42018
|
+
async createOperatorSetupCode(input) {
|
|
42019
|
+
const body = await request("/operator/setup-codes", {
|
|
42020
|
+
body: JSON.stringify(input),
|
|
42021
|
+
headers: { "content-type": "application/json" },
|
|
42022
|
+
method: "POST"
|
|
42023
|
+
});
|
|
42024
|
+
return setupCodeCreatedSchema.parse(body.data);
|
|
42025
|
+
},
|
|
42026
|
+
async getOperatorSetupCode(id) {
|
|
42027
|
+
const body = await request(`/operator/setup-codes/${encodeURIComponent(id)}`);
|
|
42028
|
+
return setupCodeStatusSchema.parse(body.data);
|
|
42029
|
+
},
|
|
42030
|
+
async cancelOperatorSetupCode(id) {
|
|
42031
|
+
await requestText(`/operator/setup-codes/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
42032
|
+
},
|
|
42033
|
+
async redeemSetupCode(input) {
|
|
42034
|
+
const body = await request("/auth/setup-codes/redeem", {
|
|
42035
|
+
body: JSON.stringify(input),
|
|
42036
|
+
headers: { "content-type": "application/json" },
|
|
42037
|
+
method: "POST"
|
|
42038
|
+
});
|
|
42039
|
+
return redeemSetupCodeResponseSchema.parse(body);
|
|
42040
|
+
},
|
|
41966
42041
|
async recordLegalConsent(input) {
|
|
41967
42042
|
const body = await request("/operator/legal-consent", {
|
|
41968
42043
|
body: JSON.stringify(input),
|
|
@@ -64051,7 +64126,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
64051
64126
|
}
|
|
64052
64127
|
|
|
64053
64128
|
// src/_generated/version.ts
|
|
64054
|
-
var PKG_VERSION = "0.4.
|
|
64129
|
+
var PKG_VERSION = "0.4.157";
|
|
64055
64130
|
|
|
64056
64131
|
// src/bridge-allowed-origins.ts
|
|
64057
64132
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|