@cmdoss/agent-pass-plugin 0.1.1 → 0.1.2-dev.21.1
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 +3 -2
- package/dist/http.js +1 -1
- package/dist/mcp.js +3 -3
- package/dist/shared/constants.js +7 -0
- package/dist/testnet/authorization.js +78 -0
- package/dist/testnet/engine.js +14 -3
- package/dist/testnet/read-model.js +19 -8
- package/dist/testnet/runner.js +5 -4
- package/docs/agent-pass-integration.md +8 -2
- package/docs/npm-release.md +11 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/public/assets/agent-pass-plugin-client.js +4 -4
- package/public/assets/agent-pass-plugin-sdk.js +1 -1
- package/public/styles/plans.css +4 -0
- package/skills/agent-pass-plugin-trading/SKILL.md +42 -4
package/README.md
CHANGED
|
@@ -60,7 +60,8 @@ See the [trading skill](skills/agent-pass-plugin-trading/SKILL.md) for tool sequ
|
|
|
60
60
|
|
|
61
61
|
- Keep the machine and local service running. Closing chat/browser or logging out
|
|
62
62
|
does not stop an active plan. Restarted plans pause and require explicit Resume.
|
|
63
|
-
- Pause/Stop prevent new trades. Revoke requires owner
|
|
63
|
+
- Pause/Stop prevent new trades. Revoke requires the owner to choose **Stop the agent now**
|
|
64
|
+
(or **Close the pass**) on the official Agent Pass page, approve in the wallet, and chain confirmation.
|
|
64
65
|
Holdings are not automatically sold; submitted transactions still reconcile.
|
|
65
66
|
- Delegated keys stay in the official local SDK's `agent-pass/` data directory.
|
|
66
67
|
Never commit runtime data or signer sessions. No owner seed is requested.
|
|
@@ -104,7 +105,7 @@ npm run build
|
|
|
104
105
|
npm run start:web # public catalog, port 3000
|
|
105
106
|
```
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
Production uses Railway's GitHub integration and root Dockerfile, port 8080 and
|
|
108
109
|
`/api/health` as the health check. No persistent storage or keys are needed.
|
|
109
110
|
See [deployment instructions](docs/deployment.md). `npm start` remains the local
|
|
110
111
|
trading runtime and must not be used as the hosted container command.
|
package/dist/http.js
CHANGED
|
@@ -16,7 +16,7 @@ export function setupInfo(port, mode = "paper") {
|
|
|
16
16
|
? `Install locked dependencies if missing and run npm run build, then run PORT=${port} AGENT_PASS_PLUGIN_MODE=${mode} node scripts/setup.mjs --client codex (or claude) --register --start.`
|
|
17
17
|
: `This package is already compiled; do not run npm ci or build inside it. Run PORT=${port} AGENT_PASS_PLUGIN_MODE=${mode} node "${root}/dist/cli.js" setup --client codex (or claude) --register --start.`;
|
|
18
18
|
return {
|
|
19
|
-
prompt: `Set up Agent Pass Plugin from ${root}. Read skills/agent-pass-plugin-trading/SKILL.md. Identify whether this is Codex or Claude Code. ${prepare} Verify agent-pass-plugin MCP tools; if a client restart is required, explain that and continue from saved setup.json. ${mode === "testnet" ? "Call onboard first: it must automatically open the Agent Pass Plugin wallet connection page if no fresh browser connection exists. Poll onboarding_status and report onboarding complete only after onboardingComplete is true; browser launch or an old address hint is insufficient.
|
|
19
|
+
prompt: `Set up Agent Pass Plugin from ${root}. Read skills/agent-pass-plugin-trading/SKILL.md. Identify whether this is Codex or Claude Code. ${prepare} Verify agent-pass-plugin MCP tools; if a client restart is required, explain that and continue from saved setup.json. ${mode === "testnet" ? "Call onboard first: it must automatically open the Agent Pass Plugin wallet connection page if no fresh browser connection exists. Poll onboarding_status and report onboarding complete only after onboardingComplete is true; browser launch or an old address hint is insufficient. Read testnet_capabilities, then ask me for every missing create_testnet_plan value in one message (wallet owner, direction, decimal amounts, price bound, route, duration and gas caps) and keep my earlier answers. Never invent a price or spending limit, and give every number its unit (input asset, demo USDC per SUI, test SUI). Label each step: proposal, confirmed configuration, wallet authorization, Start. After I confirm the configuration, create one draft, request official Agent Pass authorization, show exact returned rules/warnings and wallet review link, and poll verified chain status. Name yourself (Codex or Claude Code) when telling me to return from the browser. When resuming, read list_plans and pending reviews first; continue the existing plan and reuse the same requestId instead of creating another plan or authorization request. Owner signatures and Start are separate explicit user actions. Mainnet is disabled." : "Guide me through paper account/funding/plan review links. This is simulated trading, not onchain."} Never confirm/sign reviews for me, request a private key, or start a plan without my explicit instruction.`,
|
|
20
20
|
promptPreview: "Set up Agent Pass Plugin, connect its MCP, and help me start a strategy.",
|
|
21
21
|
commands: {
|
|
22
22
|
codex: `codex mcp add agent-pass-plugin --env AGENT_PASS_PLUGIN_LOCAL_URL=http://127.0.0.1:${port} -- node ${root}/dist/mcp.js`,
|
package/dist/mcp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_APP_PORT, SERVICE_ID } from "./shared/constants.js";
|
|
1
|
+
import { DEFAULT_APP_PORT, REVOCATION_CLOSE_BUTTON, REVOCATION_STOP_BUTTON, SERVICE_ID, } from "./shared/constants.js";
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -65,7 +65,7 @@ async function api(path, body) {
|
|
|
65
65
|
}
|
|
66
66
|
catch (error) {
|
|
67
67
|
const value = {
|
|
68
|
-
error: `Local runtime unavailable. Start npm run dev in
|
|
68
|
+
error: `Local runtime unavailable at ${base.origin}. Start it with \`agent-pass-plugin start\` (npm install) or \`npm run dev\` (source checkout), then retry this exact call; reuse the same requestId. Plans, passes and submitted digests stay in local storage. A restart pauses running plans and never authorizes, Starts or Resumes them. ${error.message}`,
|
|
69
69
|
};
|
|
70
70
|
return {
|
|
71
71
|
isError: true,
|
|
@@ -245,7 +245,7 @@ server.registerTool("list_transactions", {
|
|
|
245
245
|
}, ({ planId }) => api(`/api/transactions${planId ? `?planId=${encodeURIComponent(planId)}` : ""}`));
|
|
246
246
|
for (const action of ["start", "pause", "resume", "stop", "revoke"]) {
|
|
247
247
|
server.registerTool(`${action}_plan`, {
|
|
248
|
-
description: `${action} a plan in the runtime mode. Testnet Start/resume requires matching verified onchain authorization and explicit user intent. Pause/Stop block new submissions; submitted digests still reconcile. Testnet Revoke stops local submissions and returns the official owner
|
|
248
|
+
description: `${action} a plan in the runtime mode. Testnet Start/resume requires matching verified onchain authorization and explicit user intent. Pause/Stop block new submissions; submitted digests still reconcile. Testnet Revoke stops local submissions and returns the official Agent Pass page URL (reviewUrl/revocationUrl) plus revocationSteps. That page has no "Revoke" button: tell the owner to open it, choose "${REVOCATION_STOP_BUTTON}" (revokes the agent key and deletes its allowances; the pass stays) or "${REVOCATION_CLOSE_BUTTON}" (same, and also returns everything the pass holds to the owner wallet), then approve in their wallet. Never press either button yourself. Only report onchain revoked after fresh confirmation. Paper revoke is simulation. Holdings are not sold.`,
|
|
249
249
|
inputSchema: { planId: z.string().uuid() },
|
|
250
250
|
outputSchema: QuoteDataSchema,
|
|
251
251
|
annotations: {
|
package/dist/shared/constants.js
CHANGED
|
@@ -7,3 +7,10 @@ export const SDK_UI_ORIGIN = `http://127.0.0.1:${SDK_UI_PORT}`;
|
|
|
7
7
|
export const STRATEGY_VERSION = "1.1.0";
|
|
8
8
|
export const LOOP_INTERVAL_MS = 1_000;
|
|
9
9
|
export const VALUATION_MAX_AGE_MS = 60_000;
|
|
10
|
+
/**
|
|
11
|
+
* Owner-only Testnet revocation steps. SDK 0.1.35's pass page has no "Revoke" button;
|
|
12
|
+
* it offers exactly these two endings. The agent opens the page but never presses either.
|
|
13
|
+
*/
|
|
14
|
+
export const REVOCATION_STOP_BUTTON = "Stop the agent now";
|
|
15
|
+
export const REVOCATION_CLOSE_BUTTON = "Close the pass";
|
|
16
|
+
export const REVOCATION_OWNER_STEPS = `Open the Agent Pass page, choose "${REVOCATION_STOP_BUTTON}" (revokes the agent key and deletes its allowances; the pass stays) or "${REVOCATION_CLOSE_BUTTON}" (does the same and also returns everything the pass holds to the owner wallet), then approve in the owner wallet. Only the owner presses these buttons; the agent never does.`;
|
|
@@ -237,6 +237,46 @@ export function assertBindingPolicy(binding, input) {
|
|
|
237
237
|
equal(binding.expected, expected(input, setup.name, Number(setup.expiresMs)), "bound plan rules");
|
|
238
238
|
equal(binding.policyHash, digest(binding.expected), "bound policy hash");
|
|
239
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* The owner's revocation digest, only when the transaction read back from chain proves it:
|
|
242
|
+
* it succeeded, the plan owner sent it, it called the bundled package's pass::revoke_agent and
|
|
243
|
+
* it wrote this pass. Anything else (a later owner edit, a closed pass) yields undefined.
|
|
244
|
+
*/
|
|
245
|
+
export function verifiedRevocationDigest(deployment, binding, digest, value) {
|
|
246
|
+
try {
|
|
247
|
+
if (typeof digest !== "string" ||
|
|
248
|
+
!/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(digest))
|
|
249
|
+
return undefined;
|
|
250
|
+
const result = obj(value, "revocation transaction");
|
|
251
|
+
if (result.$kind !== "Transaction")
|
|
252
|
+
return undefined;
|
|
253
|
+
const tx = obj(result.Transaction, "revocation transaction");
|
|
254
|
+
if (tx.digest !== undefined && tx.digest !== digest)
|
|
255
|
+
return undefined;
|
|
256
|
+
if (obj(obj(tx.effects, "effects").status, "status").success !== true)
|
|
257
|
+
return undefined;
|
|
258
|
+
const data = obj(tx.transaction, "transaction data");
|
|
259
|
+
if (address(data.sender) !== address(binding.owner))
|
|
260
|
+
return undefined;
|
|
261
|
+
const packages = [
|
|
262
|
+
deployment.packageId,
|
|
263
|
+
deployment.publishedAt,
|
|
264
|
+
]
|
|
265
|
+
.filter((id) => typeof id === "string")
|
|
266
|
+
.map(address);
|
|
267
|
+
const revokes = (Array.isArray(data.commands) ? data.commands : []).some((command) => command?.$kind === "MoveCall" &&
|
|
268
|
+
command.MoveCall?.module === "pass" &&
|
|
269
|
+
command.MoveCall?.function === "revoke_agent" &&
|
|
270
|
+
packages.includes(address(command.MoveCall?.package)));
|
|
271
|
+
const changed = obj(tx.effects, "effects").changedObjects;
|
|
272
|
+
const wrotePass = (Array.isArray(changed) ? changed : []).some((o) => typeof o?.objectId === "string" &&
|
|
273
|
+
address(o.objectId) === address(binding.passId));
|
|
274
|
+
return revokes && wrotePass ? digest : undefined;
|
|
275
|
+
}
|
|
276
|
+
catch {
|
|
277
|
+
return undefined;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
240
280
|
export class OfficialAuthorization {
|
|
241
281
|
options;
|
|
242
282
|
root;
|
|
@@ -603,6 +643,44 @@ export class OfficialAuthorization {
|
|
|
603
643
|
alreadyRevoked: result.alreadyRevoked === true,
|
|
604
644
|
};
|
|
605
645
|
}
|
|
646
|
+
async revocationDigest(binding) {
|
|
647
|
+
const d = await this.deployment();
|
|
648
|
+
if (binding.network !== "testnet" ||
|
|
649
|
+
binding.chainIdentifier !== d.chainIdentifier ||
|
|
650
|
+
address(binding.packageId) !== address(d.packageId))
|
|
651
|
+
return undefined;
|
|
652
|
+
try {
|
|
653
|
+
const read = this.options.readPassTransaction
|
|
654
|
+
? await this.options.readPassTransaction(d, address(binding.passId))
|
|
655
|
+
: await this.readPassTransaction(d, address(binding.passId));
|
|
656
|
+
return verifiedRevocationDigest(d, binding, read.digest, read.transaction);
|
|
657
|
+
}
|
|
658
|
+
catch {
|
|
659
|
+
return undefined;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
async readPassTransaction(deployment, passId) {
|
|
663
|
+
const moduleName = "@mysten-incubation/sui-agent-pass/chain";
|
|
664
|
+
const chain = (await import(moduleName));
|
|
665
|
+
const client = chain.clientFor(deployment);
|
|
666
|
+
await chain.assertChain(client, deployment);
|
|
667
|
+
const found = await client.getObject({
|
|
668
|
+
objectId: passId,
|
|
669
|
+
include: { previousTransaction: true },
|
|
670
|
+
signal: AbortSignal.timeout(12_000),
|
|
671
|
+
});
|
|
672
|
+
const digest = found.object?.previousTransaction;
|
|
673
|
+
if (typeof digest !== "string")
|
|
674
|
+
return { digest, transaction: null };
|
|
675
|
+
return {
|
|
676
|
+
digest,
|
|
677
|
+
transaction: await client.getTransaction({
|
|
678
|
+
digest,
|
|
679
|
+
include: { transaction: true, effects: true },
|
|
680
|
+
signal: AbortSignal.timeout(12_000),
|
|
681
|
+
}),
|
|
682
|
+
};
|
|
683
|
+
}
|
|
606
684
|
themedUrl(url) {
|
|
607
685
|
if (this.options.reviewOrigin) {
|
|
608
686
|
const origin = new URL(this.options.reviewOrigin);
|
package/dist/testnet/engine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { STRATEGY_VERSION } from "../shared/constants.js";
|
|
1
|
+
import { REVOCATION_OWNER_STEPS, STRATEGY_VERSION, } from "../shared/constants.js";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { fingerprint, testnetInput, units, } from "./model.js";
|
|
4
4
|
import { validatePlan } from "./policy.js";
|
|
@@ -223,6 +223,15 @@ export class TestnetEngine {
|
|
|
223
223
|
if (request.payloadHash !== plan.reviewHash)
|
|
224
224
|
throw new Error("The reviewed plan changed");
|
|
225
225
|
const authorization = await this.authorization.inspect(plan.policy, request.authorization);
|
|
226
|
+
// Best effort, read-only and before the fresh re-read: a digest is recorded only when the
|
|
227
|
+
// chain shows the owner's revoke_agent transaction. Otherwise it stays absent, never guessed.
|
|
228
|
+
const revocationDigest = ["revoked", "closed"].includes(authorization.status) &&
|
|
229
|
+
plan.status !== "revoked" &&
|
|
230
|
+
plan.binding
|
|
231
|
+
? await this.authorization
|
|
232
|
+
.revocationDigest?.(plan.binding)
|
|
233
|
+
.catch(() => undefined)
|
|
234
|
+
: undefined;
|
|
226
235
|
const fresh = this.repository.get(plan.id);
|
|
227
236
|
validatePlan(fresh);
|
|
228
237
|
if (fresh.reviewHash !== request.payloadHash)
|
|
@@ -256,9 +265,11 @@ export class TestnetEngine {
|
|
|
256
265
|
else if (["revoked", "closed"].includes(authorization.status)) {
|
|
257
266
|
request.status = request.kind === "revocation" ? "confirmed" : "revoked";
|
|
258
267
|
if (fresh.status !== "revoked") {
|
|
268
|
+
if (revocationDigest)
|
|
269
|
+
authorization.revocationDigest = revocationDigest;
|
|
259
270
|
fresh.status = "revoked";
|
|
260
271
|
fresh.epoch++;
|
|
261
|
-
this.repository.event(fresh, "revoked", "Onchain revocation confirmed; no new transactions will be submitted");
|
|
272
|
+
this.repository.event(fresh, "revoked", "Onchain revocation confirmed; no new transactions will be submitted", revocationDigest ? { digest: revocationDigest } : {});
|
|
262
273
|
}
|
|
263
274
|
}
|
|
264
275
|
else if (["mismatch", "expired"].includes(authorization.status)) {
|
|
@@ -291,7 +302,7 @@ export class TestnetEngine {
|
|
|
291
302
|
: "revoking";
|
|
292
303
|
plan.epoch++;
|
|
293
304
|
this.repository.event(plan, action === "revoke" ? "revocation_requested" : action, action === "revoke"
|
|
294
|
-
?
|
|
305
|
+
? `New submissions stopped locally. Owner must sign onchain revocation: ${REVOCATION_OWNER_STEPS}`
|
|
295
306
|
: "New submissions stopped; holdings remain with the owner");
|
|
296
307
|
this.repository.save(plan);
|
|
297
308
|
if (action === "revoke") {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { REVOCATION_OWNER_STEPS } from "../shared/constants.js";
|
|
1
2
|
import { STRATEGY_VERSION, VALUATION_MAX_AGE_MS } from "../shared/constants.js";
|
|
2
3
|
import { testnetCatalog, testnetStrategy } from "../public/catalog.js";
|
|
3
4
|
import { display, fingerprint } from "./model.js";
|
|
@@ -26,6 +27,7 @@ export class TestnetReadModel {
|
|
|
26
27
|
sessionAddress: a.sessionAddress,
|
|
27
28
|
passId: plan.binding?.passId,
|
|
28
29
|
owner: plan.binding?.owner,
|
|
30
|
+
revocationDigest: a.revocationDigest,
|
|
29
31
|
}
|
|
30
32
|
: null;
|
|
31
33
|
}
|
|
@@ -44,7 +46,11 @@ export class TestnetReadModel {
|
|
|
44
46
|
}
|
|
45
47
|
: null;
|
|
46
48
|
const spentIn = display(plan.spent, policy.coinIn.decimals), holdingsOut = display(plan.output, policy.coinOut.decimals);
|
|
47
|
-
const
|
|
49
|
+
const pendingSubmissions = this.repository
|
|
50
|
+
.intents()
|
|
51
|
+
.filter((i) => i.planId === plan.id && i.state === "submitted").length;
|
|
52
|
+
// An unreconciled submission makes holdings/spend unknown; never show it as zero profit.
|
|
53
|
+
const pnl = pendingSubmissions === 0 && valuation && input.direction === "usdc_to_sui"
|
|
48
54
|
? Number(holdingsOut) * Number(valuation.price) - Number(spentIn)
|
|
49
55
|
: null;
|
|
50
56
|
return {
|
|
@@ -64,6 +70,8 @@ export class TestnetReadModel {
|
|
|
64
70
|
expiresAt: plan.expiresAt,
|
|
65
71
|
lastReason: plan.lastReason,
|
|
66
72
|
nextRunAt: plan.nextRunAt,
|
|
73
|
+
// Count only: digests, bytes and signatures of unresolved work stay in local state.
|
|
74
|
+
pendingSubmissions,
|
|
67
75
|
coinIn: policy.coinIn,
|
|
68
76
|
coinOut: policy.coinOut,
|
|
69
77
|
spentIn,
|
|
@@ -72,16 +80,19 @@ export class TestnetReadModel {
|
|
|
72
80
|
gasSui: input.gasSui,
|
|
73
81
|
gasSpentSui: plan.gas,
|
|
74
82
|
pnlUsdc: pnl,
|
|
75
|
-
pnlReason:
|
|
76
|
-
? "
|
|
77
|
-
:
|
|
78
|
-
? "
|
|
79
|
-
:
|
|
80
|
-
?
|
|
81
|
-
:
|
|
83
|
+
pnlReason: pendingSubmissions > 0
|
|
84
|
+
? "A submitted transaction is not reconciled yet; profit is unavailable until it settles"
|
|
85
|
+
: input.direction === "sui_to_usdc"
|
|
86
|
+
? "Acquisition cost basis for input SUI is unavailable; sale proceeds are not profit"
|
|
87
|
+
: !valuation
|
|
88
|
+
? "No confirmed venue valuation"
|
|
89
|
+
: fresh
|
|
90
|
+
? null
|
|
91
|
+
: `Profit uses the last confirmed venue mark from ${valuation.asOf}; it is not a live quote`,
|
|
82
92
|
valuation,
|
|
83
93
|
authorization: this.publicAuthorization(plan),
|
|
84
94
|
revocationUrl: plan.status === "revoking" ? plan.revocationUrl : undefined,
|
|
95
|
+
revocationSteps: plan.status === "revoking" ? REVOCATION_OWNER_STEPS : undefined,
|
|
85
96
|
history: plan.history
|
|
86
97
|
.slice(-200)
|
|
87
98
|
.reverse()
|
package/dist/testnet/runner.js
CHANGED
|
@@ -164,10 +164,11 @@ export class TestnetRunner {
|
|
|
164
164
|
guardPlan(plan, this.now(), epoch);
|
|
165
165
|
if (!inspection.active || inspection.revoked || inspection.expired)
|
|
166
166
|
throw new Error(inspection.reason || "Onchain permission is no longer active");
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
// Same guard as before; separate messages give the owner a specific next step.
|
|
168
|
+
if (BigInt(inspection.ownerInputBalance) < BigInt(plan.policy.amountIn))
|
|
169
|
+
throw new Error("Insufficient testnet input address balance for one order");
|
|
170
|
+
if (BigInt(inspection.agentGasBalance) < 10000000n)
|
|
171
|
+
throw new Error("Insufficient agent gas (below 0.01 test SUI)");
|
|
171
172
|
const today = day(inspection.chainTimeMs), todaySpent = sum(plan.history
|
|
172
173
|
.filter((h) => h.type === "filled" && h.at.slice(0, 10) === today)
|
|
173
174
|
.map((h) => units(h.amountIn, plan.policy.coinIn.decimals)));
|
|
@@ -14,8 +14,14 @@ liquidity. Test SUI and demo USDC have no real-dollar value. Mainnet is disabled
|
|
|
14
14
|
Review the returned rules and official SDK URL; authorize with the owner wallet.
|
|
15
15
|
4. Poll `get_review_request`. Only a verified matching pass enables **Start**.
|
|
16
16
|
5. Explicitly Start; inspect receipts, digests and remaining budget in My plans.
|
|
17
|
-
6. Pause/Resume/Stop locally as needed. Revoke
|
|
18
|
-
|
|
17
|
+
6. Pause/Resume/Stop locally as needed. Revoke blocks new submissions locally and
|
|
18
|
+
returns the official Agent Pass page. That page has no "Revoke" button: the owner
|
|
19
|
+
chooses **Stop the agent now** (revokes the agent key and deletes its allowances;
|
|
20
|
+
the pass stays) or **Close the pass** (same, and also returns everything the pass
|
|
21
|
+
holds to the owner wallet), then approves in the wallet. The agent never presses
|
|
22
|
+
either button. Wait for chain confirmation; the plan's `revoked` history entry
|
|
23
|
+
records the owner's `revoke_agent` digest when it can be read back from chain.
|
|
24
|
+
Already submitted transactions still reconcile.
|
|
19
25
|
|
|
20
26
|
No MCP tool grants owner approval. Paper confirmation routes cannot authorize
|
|
21
27
|
Testnet. The browser, persisted JSON and a closed review tab prove no permission.
|
package/docs/npm-release.md
CHANGED
|
@@ -6,19 +6,20 @@ the repository release configuration below.
|
|
|
6
6
|
|
|
7
7
|
## Workflows
|
|
8
8
|
|
|
9
|
-
| Workflow
|
|
10
|
-
|
|
|
11
|
-
| `npm-ci.yml`
|
|
12
|
-
| `npm-release.yml`
|
|
13
|
-
| `ci.yml`
|
|
14
|
-
| `
|
|
15
|
-
| `web-rollback.yml` | Restore the image from a successful main release without rebuilding or republishing npm |
|
|
9
|
+
| Workflow | Purpose |
|
|
10
|
+
| -------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| `npm-ci.yml` | Node 22.23.4 / 24.22.1 checks, Paper MCP smoke, tarball inspection and installed-production-package smoke |
|
|
12
|
+
| `npm-release.yml` | Revalidate the checkout, prepare a channel version, test the exact tarball, dry-run and optionally publish it with OIDC |
|
|
13
|
+
| `ci.yml` | Source Dockerfile and npm archive images tested independently as read-only, non-root public containers |
|
|
14
|
+
| `verify-railway.yml` | Verify the exact public source commit after Railway's GitHub deployment succeeds |
|
|
16
15
|
|
|
17
16
|
This follows Walrus Memory's separation of checks and release channels, adapted
|
|
18
17
|
for one package. `dev` publishes `X.Y.Z-dev.RUN.ATTEMPT` under `dev`; `main` uses
|
|
19
18
|
the source `X.Y.Z` and `latest`. Run/attempt suffixes avoid registry allocation races. Branch releases
|
|
20
19
|
are serialized; existing versions with different integrity fail rather than overwrite.
|
|
21
|
-
`dev` is the default development branch; `main` is used for stable releases and
|
|
20
|
+
`dev` is the default development branch; `main` is used for stable releases and
|
|
21
|
+
Railway's native GitHub deployment. Website source builds and npm publication
|
|
22
|
+
are independent; see [web operations](deployment.md).
|
|
22
23
|
|
|
23
24
|
## Validate locally
|
|
24
25
|
|
|
@@ -65,7 +66,8 @@ versions are immutable; rollback means selecting a prior version, not overwritin
|
|
|
65
66
|
npm can accept a publication while its security processing is still pending.
|
|
66
67
|
The separate, read-only registry verification job waits up to 15 minutes and
|
|
67
68
|
compares downloaded bytes with the tested archive. Re-run this job after a
|
|
68
|
-
processing delay; it does not repeat publication.
|
|
69
|
+
processing delay; it does not repeat publication. Railway's Wait for CI gate
|
|
70
|
+
waits for the publication workflow and the other push checks to finish.
|
|
69
71
|
|
|
70
72
|
Release jobs use GitHub-hosted runners and npm OIDC. Provenance is disabled for
|
|
71
73
|
this private source repository because npm does not support provenance from private
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmdoss/agent-pass-plugin",
|
|
3
|
-
"version": "0.1.1",
|
|
3
|
+
"version": "0.1.2-dev.21.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@cmdoss/agent-pass-plugin",
|
|
9
|
-
"version": "0.1.1",
|
|
9
|
+
"version": "0.1.2-dev.21.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fastify/static": "10.1.10",
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.2",
|
package/package.json
CHANGED