@mrrlin-dev/mcp 0.4.169 → 0.4.170
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 +46 -1
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -37769,6 +37769,7 @@ var openApiOperationIds = {
|
|
|
37769
37769
|
recordIntentClarification: "recordIntentClarification",
|
|
37770
37770
|
answerIntentClarification: "answerIntentClarification",
|
|
37771
37771
|
confirmIntentProposal: "confirmIntentProposal",
|
|
37772
|
+
refreshIntentProposal: "refreshIntentProposal",
|
|
37772
37773
|
getIntentConfirmation: "getIntentConfirmation",
|
|
37773
37774
|
resolveAccount: "resolveAccount",
|
|
37774
37775
|
linkAccountIdentity: "linkAccountIdentity",
|
|
@@ -38616,6 +38617,29 @@ var mrrlinIntentConfirmResponseSchema = external_exports.discriminatedUnion("ok"
|
|
|
38616
38617
|
var intentConfirmResultResponseSchema = external_exports.object({
|
|
38617
38618
|
data: mrrlinIntentConfirmResponseSchema
|
|
38618
38619
|
});
|
|
38620
|
+
var mrrlinIntentRefreshRequestSchema = external_exports.object({
|
|
38621
|
+
expectedVersion: external_exports.number().int().min(1),
|
|
38622
|
+
expectedDigest: external_exports.string().min(1)
|
|
38623
|
+
}).strict();
|
|
38624
|
+
var mrrlinIntentRefreshOutcomeSchema = external_exports.enum(["refreshed", "current", "newer"]);
|
|
38625
|
+
var mrrlinIntentRefreshResponseSchema = external_exports.discriminatedUnion("ok", [
|
|
38626
|
+
external_exports.object({
|
|
38627
|
+
ok: external_exports.literal(true),
|
|
38628
|
+
outcome: mrrlinIntentRefreshOutcomeSchema,
|
|
38629
|
+
fresh: external_exports.boolean(),
|
|
38630
|
+
proposal: mrrlinIntentProposalSchema
|
|
38631
|
+
}),
|
|
38632
|
+
external_exports.object({
|
|
38633
|
+
ok: external_exports.literal(false),
|
|
38634
|
+
code: external_exports.string(),
|
|
38635
|
+
message: external_exports.string(),
|
|
38636
|
+
current_state: external_exports.string().optional(),
|
|
38637
|
+
current_version: external_exports.number().int().optional()
|
|
38638
|
+
})
|
|
38639
|
+
]);
|
|
38640
|
+
var intentRefreshResultResponseSchema = external_exports.object({
|
|
38641
|
+
data: mrrlinIntentRefreshResponseSchema
|
|
38642
|
+
});
|
|
38619
38643
|
var mrrlinIntentConfirmationSchema = external_exports.object({
|
|
38620
38644
|
id: external_exports.string().uuid(),
|
|
38621
38645
|
projectSlug: external_exports.string().min(1),
|
|
@@ -42671,6 +42695,27 @@ function createMrrlinClient(config2) {
|
|
|
42671
42695
|
throw error51;
|
|
42672
42696
|
}
|
|
42673
42697
|
},
|
|
42698
|
+
async refreshIntentProposal(projectSlug, proposalId, input) {
|
|
42699
|
+
try {
|
|
42700
|
+
const body = await request(`${projectPath(projectSlug)}/intent/proposals/${encodeURIComponent(proposalId)}/refresh`, {
|
|
42701
|
+
method: "POST",
|
|
42702
|
+
headers: { "content-type": "application/json" },
|
|
42703
|
+
body: JSON.stringify(input)
|
|
42704
|
+
});
|
|
42705
|
+
return intentRefreshResultResponseSchema.parse(body).data;
|
|
42706
|
+
} catch (error51) {
|
|
42707
|
+
if (error51 instanceof MrrlinApiError && (error51.status === 404 || error51.status === 409 || error51.status === 422)) {
|
|
42708
|
+
try {
|
|
42709
|
+
const parsed = JSON.parse(error51.responseBody);
|
|
42710
|
+
const refusal = mrrlinIntentRefreshResponseSchema.safeParse(parsed?.data);
|
|
42711
|
+
if (refusal.success && !refusal.data.ok)
|
|
42712
|
+
return refusal.data;
|
|
42713
|
+
} catch {
|
|
42714
|
+
}
|
|
42715
|
+
}
|
|
42716
|
+
throw error51;
|
|
42717
|
+
}
|
|
42718
|
+
},
|
|
42674
42719
|
async getIntentConfirmation(projectSlug, proposalId, version2) {
|
|
42675
42720
|
try {
|
|
42676
42721
|
const body = await request(`${projectPath(projectSlug)}/intent/confirmations/${encodeURIComponent(proposalId)}/${encodeURIComponent(String(version2))}`);
|
|
@@ -65803,7 +65848,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
65803
65848
|
}
|
|
65804
65849
|
|
|
65805
65850
|
// src/_generated/version.ts
|
|
65806
|
-
var PKG_VERSION = "0.4.
|
|
65851
|
+
var PKG_VERSION = "0.4.170";
|
|
65807
65852
|
|
|
65808
65853
|
// src/bridge-allowed-origins.ts
|
|
65809
65854
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|