@trinaryex/mcp 3.8.0 → 4.0.0
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/README.md +73 -7
- package/dist/capture.d.ts +1 -1
- package/dist/capture.js +1 -1
- package/dist/context.d.ts +10 -2
- package/dist/context.js +2 -1
- package/dist/context.js.map +1 -1
- package/dist/registry.js +34 -2
- package/dist/registry.js.map +1 -1
- package/dist/schemas.d.ts +30 -0
- package/dist/schemas.js +45 -0
- package/dist/schemas.js.map +1 -1
- package/dist/tools/coins.d.ts +2 -0
- package/dist/tools/coins.js +146 -0
- package/dist/tools/coins.js.map +1 -0
- package/dist/tools/coinsPrepare.d.ts +2 -0
- package/dist/tools/coinsPrepare.js +446 -0
- package/dist/tools/coinsPrepare.js.map +1 -0
- package/dist/tools/org.d.ts +2 -0
- package/dist/tools/org.js +422 -0
- package/dist/tools/org.js.map +1 -0
- package/dist/tools/orgCommon.d.ts +144 -0
- package/dist/tools/orgCommon.js +210 -0
- package/dist/tools/orgCommon.js.map +1 -0
- package/dist/tools/orgLifecycle.d.ts +2 -0
- package/dist/tools/orgLifecycle.js +753 -0
- package/dist/tools/orgLifecycle.js.map +1 -0
- package/dist/tools/orgPrepare.d.ts +2 -0
- package/dist/tools/orgPrepare.js +1056 -0
- package/dist/tools/orgPrepare.js.map +1 -0
- package/dist/tools/prepare.d.ts +12 -0
- package/dist/tools/prepare.js +119 -7
- package/dist/tools/prepare.js.map +1 -1
- package/dist/tools/read.js +369 -26
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/world.d.ts +2 -0
- package/dist/tools/world.js +208 -0
- package/dist/tools/world.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NothingToPrepare, captureTransaction } from '../capture.js';
|
|
3
|
+
import { extractTargets, toPrepared } from '../prepare.js';
|
|
4
|
+
import { ok } from '../result.js';
|
|
5
|
+
import { objectId, suiAddress } from '../schemas.js';
|
|
6
|
+
/**
|
|
7
|
+
* Shared plumbing for the Armature prepare tools (`orgPrepare.ts`,
|
|
8
|
+
* `orgLifecycle.ts`).
|
|
9
|
+
*
|
|
10
|
+
* A governance action does not have a fixed outcome. The SAME call executes in
|
|
11
|
+
* one transaction for an officer whose lone vote clears quorum, creates a
|
|
12
|
+
* proposal for someone whose does not, and is refused outright for a third
|
|
13
|
+
* caller who holds no seat. The prepared bytes therefore carry an `outcome`
|
|
14
|
+
* saying which of those the bytes will do, and a `blocked` result returns
|
|
15
|
+
* `prepared: false` with the reason rather than an error.
|
|
16
|
+
*/
|
|
17
|
+
export const PREPARE_SUFFIX = ' Returns unsigned transaction bytes — this server never signs or submits. Verify the returned intent against the bytes, then sponsor, sign and submit with your own key.';
|
|
18
|
+
const GOVERNANCE_NOTE = 'Governance actions resolve per caller: intent.outcome is "executed" when your single vote passes it now, or "proposed" when the board must vote first. prepared:false means no path was available and the reason says why.';
|
|
19
|
+
const PROPOSED_NOTE = 'outcome is "proposed": these bytes CREATE a proposal — nothing has happened yet. The proposal id is a created object in the effects once submitted; the board then votes (prepare_org_vote) and a member executes it (prepare_org_execute_proposal).';
|
|
20
|
+
export const actingShape = {
|
|
21
|
+
orgId: objectId.describe('Organization object id — the root or any unit in its tree.'),
|
|
22
|
+
sender: suiAddress.describe('Sui address the transaction is built for; only this address can sign it. Also the address whose board seat is resolved.'),
|
|
23
|
+
seat: objectId
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Unit id to act THROUGH (whose board votes). Defaults to the caller’s highest-authority seat.'),
|
|
26
|
+
};
|
|
27
|
+
export const ACTING_SYNTHETIC = {
|
|
28
|
+
orgId: 'Names the organization whose handle is opened; the SDK reads it from client.org(id).',
|
|
29
|
+
sender: 'The address a prepared transaction is built for, and whose seat is resolved; per-request because this server is keyless and multi-tenant.',
|
|
30
|
+
seat: 'Which unit to act through; the SDK takes it from the handle.',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* `RunOptions` — what every cycle-7 governance write accepts beside its own
|
|
34
|
+
* parameters.
|
|
35
|
+
*/
|
|
36
|
+
export const runOptionsShape = {
|
|
37
|
+
unitId: objectId
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('The unit to act ON (default: the acting seat). A parent’s board can target a child it does not sit on — the action then routes through the parent’s SubOUControl.'),
|
|
40
|
+
metadataIpfs: z
|
|
41
|
+
.string()
|
|
42
|
+
.min(1)
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('IPFS reference recorded on the proposal (ProposalCreated.metadata_ipfs). Upload it first — this server hosts nothing.'),
|
|
45
|
+
};
|
|
46
|
+
/** Pick the `RunOptions` out of a tool's arguments. */
|
|
47
|
+
export const runOptions = (args) => ({
|
|
48
|
+
unitId: args.unitId,
|
|
49
|
+
metadataIpfs: args.metadataIpfs,
|
|
50
|
+
});
|
|
51
|
+
const bps = z.number().int().min(0).max(10000);
|
|
52
|
+
/** `ProposalConfigInput` — one type's voting rules, as a nested object. */
|
|
53
|
+
export const proposalConfig = z.object({
|
|
54
|
+
quorum: bps.describe('Share of the WHOLE board that must vote, in bps.'),
|
|
55
|
+
approvalThreshold: bps.describe('Share of CAST votes that must approve.'),
|
|
56
|
+
proposeThreshold: z.number().int().min(0),
|
|
57
|
+
expiryMs: z.number().int().min(0),
|
|
58
|
+
executionDelayMs: z.number().int().min(0),
|
|
59
|
+
cooldownMs: z.number().int().min(0),
|
|
60
|
+
composableAllowed: z.boolean().optional(),
|
|
61
|
+
permissions: z
|
|
62
|
+
.number()
|
|
63
|
+
.int()
|
|
64
|
+
.min(0)
|
|
65
|
+
.optional()
|
|
66
|
+
.describe('armature::permissions bits the type’s requests carry. Any high-impact bit needs approvalThreshold ≥ 8000.'),
|
|
67
|
+
borrowScope: z
|
|
68
|
+
.array(z.string())
|
|
69
|
+
.optional()
|
|
70
|
+
.describe('Capability Move types a VAULT_BORROW type may borrow.'),
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* The same rules FLATTENED onto the tool input, for the tools whose SDK method
|
|
74
|
+
* takes a required nested `config`. A flat schema is materially easier for a
|
|
75
|
+
* tool caller to get right than a nested one.
|
|
76
|
+
*/
|
|
77
|
+
export const flatConfigShape = {
|
|
78
|
+
quorum: bps,
|
|
79
|
+
approvalThreshold: bps,
|
|
80
|
+
proposeThreshold: z.number().int().min(0).default(0),
|
|
81
|
+
expiryMs: z.number().int().min(0),
|
|
82
|
+
executionDelayMs: z.number().int().min(0).default(0),
|
|
83
|
+
cooldownMs: z.number().int().min(0).default(0),
|
|
84
|
+
permissions: z
|
|
85
|
+
.number()
|
|
86
|
+
.int()
|
|
87
|
+
.min(0)
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('armature::permissions bits (any high-impact bit needs approvalThreshold ≥ 8000).'),
|
|
90
|
+
borrowScope: z
|
|
91
|
+
.array(z.string())
|
|
92
|
+
.optional()
|
|
93
|
+
.describe('Capability Move types a VAULT_BORROW type may borrow.'),
|
|
94
|
+
};
|
|
95
|
+
const FLAT = 'Flattened into the SDK’s nested `config`.';
|
|
96
|
+
export const FLAT_CONFIG_SYNTHETIC = {
|
|
97
|
+
quorum: FLAT,
|
|
98
|
+
approvalThreshold: FLAT,
|
|
99
|
+
proposeThreshold: FLAT,
|
|
100
|
+
expiryMs: FLAT,
|
|
101
|
+
executionDelayMs: FLAT,
|
|
102
|
+
cooldownMs: FLAT,
|
|
103
|
+
permissions: FLAT,
|
|
104
|
+
borrowScope: FLAT,
|
|
105
|
+
};
|
|
106
|
+
/** Reassemble {@link flatConfigShape} inputs into a `ProposalConfigInput`. */
|
|
107
|
+
export function assembleConfig(args) {
|
|
108
|
+
return {
|
|
109
|
+
quorum: args.quorum,
|
|
110
|
+
approvalThreshold: args.approvalThreshold,
|
|
111
|
+
proposeThreshold: args.proposeThreshold ?? 0,
|
|
112
|
+
expiryMs: args.expiryMs,
|
|
113
|
+
executionDelayMs: args.executionDelayMs ?? 0,
|
|
114
|
+
cooldownMs: args.cooldownMs ?? 0,
|
|
115
|
+
...(args.permissions !== undefined
|
|
116
|
+
? { permissions: args.permissions }
|
|
117
|
+
: {}),
|
|
118
|
+
...(args.borrowScope !== undefined
|
|
119
|
+
? { borrowScope: args.borrowScope }
|
|
120
|
+
: {}),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/** A vault ACL subject. `machine` is checked like `player` but is a distinct value. */
|
|
124
|
+
export const vaultPrincipal = z.object({
|
|
125
|
+
kind: z
|
|
126
|
+
.enum(['player', 'machine', 'ou'])
|
|
127
|
+
.describe('"player" (a wallet), "machine" (a bot/service key — a distinct principal from player for the same address), or "ou" (any board member of that organization unit).'),
|
|
128
|
+
value: suiAddress.describe('Wallet / machine address, or organization unit id for "ou".'),
|
|
129
|
+
});
|
|
130
|
+
/** Open the organization handle a prepare tool acts through. */
|
|
131
|
+
export const openOrg = (ctx, args) => ctx.writeClient(args.sender).org(args.orgId, { seat: args.seat });
|
|
132
|
+
/**
|
|
133
|
+
* Move calls that CREATE a proposal rather than carry an action out. Anything
|
|
134
|
+
* else a governance write builds executes in the same transaction
|
|
135
|
+
* (`submit_vote_execute*`, a control path's privileged submit, a plain
|
|
136
|
+
* cap-holder or member-gated call).
|
|
137
|
+
*/
|
|
138
|
+
const PROPOSING_TARGET = /::board_voting::submit_proposal$|::composite::submit_composite$/;
|
|
139
|
+
/**
|
|
140
|
+
* What a prepared governance transaction will do, read off the bytes.
|
|
141
|
+
*
|
|
142
|
+
* The SDK's `run()` decides between executing and proposing, but under the
|
|
143
|
+
* capture executor it never returns — the build is intercepted before the
|
|
144
|
+
* `RunOutcome` is shaped — so the answer is taken from the transaction itself.
|
|
145
|
+
* That is the stronger evidence anyway: it is what the signer will commit to.
|
|
146
|
+
*/
|
|
147
|
+
export function outcomeOf(targets) {
|
|
148
|
+
return targets.some((t) => PROPOSING_TARGET.test(t)) ? 'proposed' : 'executed';
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Run a governance write with the capture executor and serialize the result.
|
|
152
|
+
*
|
|
153
|
+
* The SDK returns `RunOutcome` rather than throwing on a refusal, so a blocked
|
|
154
|
+
* action produces no transaction at all — reported as `prepared: false`, the
|
|
155
|
+
* same shape the trading tools use for "nothing to do". Non-governance writes
|
|
156
|
+
* (permissionless, cap-holder or member-gated) go through here too and always
|
|
157
|
+
* report `executed`.
|
|
158
|
+
*/
|
|
159
|
+
export async function preparedGovernance(ctx, sender, action, params, run) {
|
|
160
|
+
let returned;
|
|
161
|
+
try {
|
|
162
|
+
const tx = await captureTransaction(async () => {
|
|
163
|
+
returned = (await run());
|
|
164
|
+
return returned;
|
|
165
|
+
});
|
|
166
|
+
const outcome = outcomeOf(extractTargets(tx));
|
|
167
|
+
const intent = {
|
|
168
|
+
action,
|
|
169
|
+
outcome,
|
|
170
|
+
params: { ...params, outcome },
|
|
171
|
+
};
|
|
172
|
+
return ok(await toPrepared(tx, sender, ctx.suiClient(), intent, outcome === 'proposed'
|
|
173
|
+
? [GOVERNANCE_NOTE, PROPOSED_NOTE]
|
|
174
|
+
: [GOVERNANCE_NOTE]));
|
|
175
|
+
}
|
|
176
|
+
catch (e) {
|
|
177
|
+
if (e instanceof NothingToPrepare) {
|
|
178
|
+
// A blocked resolution never reaches the executor, so there is nothing to
|
|
179
|
+
// capture — surface the resolver's reason, which is the useful answer.
|
|
180
|
+
const blocked = returned;
|
|
181
|
+
return ok({
|
|
182
|
+
prepared: false,
|
|
183
|
+
reason: blocked?.status === 'blocked'
|
|
184
|
+
? blocked.reason
|
|
185
|
+
: 'No transaction is needed for this action in its current state.',
|
|
186
|
+
code: blocked?.code ?? null,
|
|
187
|
+
detail: e.result ?? null,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
throw e;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Deep-convert SDK values JSON cannot carry: `Map` → object, `Set` → array.
|
|
195
|
+
* Bigints are left for `toJsonText`, which renders them as decimal strings.
|
|
196
|
+
*/
|
|
197
|
+
export function plain(value) {
|
|
198
|
+
if (value instanceof Map) {
|
|
199
|
+
return Object.fromEntries([...value.entries()].map(([k, v]) => [String(k), plain(v)]));
|
|
200
|
+
}
|
|
201
|
+
if (value instanceof Set)
|
|
202
|
+
return [...value].map(plain);
|
|
203
|
+
if (Array.isArray(value))
|
|
204
|
+
return value.map(plain);
|
|
205
|
+
if (value && typeof value === 'object' && !(value instanceof Uint8Array)) {
|
|
206
|
+
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, plain(v)]));
|
|
207
|
+
}
|
|
208
|
+
return value;
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=orgCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgCommon.js","sourceRoot":"","sources":["../../src/tools/orgCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEpD;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,cAAc,GACzB,0KAA0K,CAAA;AAE5K,MAAM,eAAe,GACnB,4NAA4N,CAAA;AAE9N,MAAM,aAAa,GACjB,sPAAsP,CAAA;AAExP,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,QAAQ,CAAC,QAAQ,CACtB,4DAA4D,CAC7D;IACD,MAAM,EAAE,UAAU,CAAC,QAAQ,CACzB,yHAAyH,CAC1H;IACD,IAAI,EAAE,QAAQ;SACX,QAAQ,EAAE;SACV,QAAQ,CACP,8FAA8F,CAC/F;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,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