@settlemint/dalp-cli 3.1.32-main.42499448331 → 3.1.32-main.42509611913
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.
|
@@ -44829,14 +44829,15 @@
|
|
|
44829
44829
|
"type": "string",
|
|
44830
44830
|
"enum": [
|
|
44831
44831
|
"admin",
|
|
44832
|
+
"agent",
|
|
44832
44833
|
"participant",
|
|
44833
44834
|
"system"
|
|
44834
44835
|
],
|
|
44835
44836
|
"pattern": null,
|
|
44836
44837
|
"examples": [
|
|
44837
44838
|
"admin",
|
|
44838
|
-
"
|
|
44839
|
-
"
|
|
44839
|
+
"agent",
|
|
44840
|
+
"participant"
|
|
44840
44841
|
],
|
|
44841
44842
|
"fields": []
|
|
44842
44843
|
},
|
|
@@ -45043,14 +45044,15 @@
|
|
|
45043
45044
|
"type": "string",
|
|
45044
45045
|
"enum": [
|
|
45045
45046
|
"admin",
|
|
45047
|
+
"agent",
|
|
45046
45048
|
"participant",
|
|
45047
45049
|
"system"
|
|
45048
45050
|
],
|
|
45049
45051
|
"pattern": null,
|
|
45050
45052
|
"examples": [
|
|
45051
45053
|
"admin",
|
|
45052
|
-
"
|
|
45053
|
-
"
|
|
45054
|
+
"agent",
|
|
45055
|
+
"participant"
|
|
45054
45056
|
],
|
|
45055
45057
|
"fields": []
|
|
45056
45058
|
},
|
|
@@ -45184,14 +45186,15 @@
|
|
|
45184
45186
|
"type": "string",
|
|
45185
45187
|
"enum": [
|
|
45186
45188
|
"admin",
|
|
45189
|
+
"agent",
|
|
45187
45190
|
"participant",
|
|
45188
45191
|
"system"
|
|
45189
45192
|
],
|
|
45190
45193
|
"pattern": null,
|
|
45191
45194
|
"examples": [
|
|
45192
45195
|
"admin",
|
|
45193
|
-
"
|
|
45194
|
-
"
|
|
45196
|
+
"agent",
|
|
45197
|
+
"participant"
|
|
45195
45198
|
],
|
|
45196
45199
|
"fields": []
|
|
45197
45200
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "3.1.32-main.
|
|
3
|
+
"version": "3.1.32-main.42509611913",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
6
6
|
"homepage": "https://settlemint.com",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"typecheck": "taskguard effect-tsgo tsrs --customConditions dalp-types"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@modelcontextprotocol/server": "2.
|
|
53
|
-
"@settlemint/dalp-sdk": "3.1.32-main.
|
|
52
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
53
|
+
"@settlemint/dalp-sdk": "3.1.32-main.42509611913",
|
|
54
54
|
"incur": "0.7.1",
|
|
55
55
|
"zod": "4.6.7"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@arethetypeswrong/cli": "0.18.5",
|
|
59
|
-
"@testkit/effect-bun-test": "3.1.32-main.
|
|
60
|
-
"@tools/typescript-config": "3.1.32-main.
|
|
59
|
+
"@testkit/effect-bun-test": "3.1.32-main.42509611913",
|
|
60
|
+
"@tools/typescript-config": "3.1.32-main.42509611913",
|
|
61
61
|
"@types/bun": "1.4.4",
|
|
62
62
|
"publint": "0.3.25"
|
|
63
63
|
},
|
|
@@ -44829,14 +44829,15 @@
|
|
|
44829
44829
|
"type": "string",
|
|
44830
44830
|
"enum": [
|
|
44831
44831
|
"admin",
|
|
44832
|
+
"agent",
|
|
44832
44833
|
"participant",
|
|
44833
44834
|
"system"
|
|
44834
44835
|
],
|
|
44835
44836
|
"pattern": null,
|
|
44836
44837
|
"examples": [
|
|
44837
44838
|
"admin",
|
|
44838
|
-
"
|
|
44839
|
-
"
|
|
44839
|
+
"agent",
|
|
44840
|
+
"participant"
|
|
44840
44841
|
],
|
|
44841
44842
|
"fields": []
|
|
44842
44843
|
},
|
|
@@ -45043,14 +45044,15 @@
|
|
|
45043
45044
|
"type": "string",
|
|
45044
45045
|
"enum": [
|
|
45045
45046
|
"admin",
|
|
45047
|
+
"agent",
|
|
45046
45048
|
"participant",
|
|
45047
45049
|
"system"
|
|
45048
45050
|
],
|
|
45049
45051
|
"pattern": null,
|
|
45050
45052
|
"examples": [
|
|
45051
45053
|
"admin",
|
|
45052
|
-
"
|
|
45053
|
-
"
|
|
45054
|
+
"agent",
|
|
45055
|
+
"participant"
|
|
45054
45056
|
],
|
|
45055
45057
|
"fields": []
|
|
45056
45058
|
},
|
|
@@ -45184,14 +45186,15 @@
|
|
|
45184
45186
|
"type": "string",
|
|
45185
45187
|
"enum": [
|
|
45186
45188
|
"admin",
|
|
45189
|
+
"agent",
|
|
45187
45190
|
"participant",
|
|
45188
45191
|
"system"
|
|
45189
45192
|
],
|
|
45190
45193
|
"pattern": null,
|
|
45191
45194
|
"examples": [
|
|
45192
45195
|
"admin",
|
|
45193
|
-
"
|
|
45194
|
-
"
|
|
45196
|
+
"agent",
|
|
45197
|
+
"participant"
|
|
45195
45198
|
],
|
|
45196
45199
|
"fields": []
|
|
45197
45200
|
},
|
package/src/hosted-mcp.ts
CHANGED
|
@@ -31,6 +31,8 @@ export interface PrepareCall {
|
|
|
31
31
|
readonly assetId: string;
|
|
32
32
|
readonly fields: Readonly<Record<string, string>>;
|
|
33
33
|
readonly execution: HostedExecutionMode;
|
|
34
|
+
readonly agentId: string | undefined;
|
|
35
|
+
readonly idempotencyKey: string | undefined;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export type PrepareOutcome =
|
|
@@ -73,13 +75,23 @@ const prepareCommand = (tool: PrepareTool) => ({
|
|
|
73
75
|
assetId: z.string().describe("The asset the write acts on: its contract address."),
|
|
74
76
|
...Object.fromEntries(Object.entries(tool.fields).map(([name, field]) => [name, fieldOption(field)])),
|
|
75
77
|
execution: executionOption,
|
|
78
|
+
agentId: z
|
|
79
|
+
.string()
|
|
80
|
+
.optional()
|
|
81
|
+
.describe("With execution mandate only: the agent principal that acts, its pp_ id from the Agents page."),
|
|
82
|
+
idempotencyKey: z
|
|
83
|
+
.string()
|
|
84
|
+
.optional()
|
|
85
|
+
.describe(
|
|
86
|
+
"Required with execution mandate: a key you choose for this write and send again, unchanged, on a retry, so the write never runs twice."
|
|
87
|
+
),
|
|
76
88
|
}),
|
|
77
89
|
run: async (context: {
|
|
78
90
|
readonly options: PrepareOptions;
|
|
79
91
|
readonly var: { readonly prepare?: PrepareExecutor | undefined };
|
|
80
92
|
readonly error: (error: { readonly code: string; readonly message: string }) => unknown;
|
|
81
93
|
}) => {
|
|
82
|
-
const { assetId, execution, ...rest } = context.options;
|
|
94
|
+
const { assetId, execution, agentId, idempotencyKey, ...rest } = context.options;
|
|
83
95
|
if (context.var.prepare === undefined || typeof assetId !== "string") {
|
|
84
96
|
return context.error({ code: "PREPARE_UNAVAILABLE", message: "This server does not prepare writes." });
|
|
85
97
|
}
|
|
@@ -91,6 +103,8 @@ const prepareCommand = (tool: PrepareTool) => ({
|
|
|
91
103
|
assetId,
|
|
92
104
|
fields,
|
|
93
105
|
execution: execution === "mandate" ? "mandate" : "inbox",
|
|
106
|
+
agentId,
|
|
107
|
+
idempotencyKey,
|
|
94
108
|
});
|
|
95
109
|
return "refused" in outcome ? context.error(outcome.refused) : outcome.prepared;
|
|
96
110
|
},
|