@cmdoss/agent-pass-plugin 0.1.0 → 0.1.1-dev.10.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/dist/public/http.js +19 -1
- package/docs/npm-release.md +12 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/public/http.js
CHANGED
|
@@ -5,6 +5,22 @@ import { z, ZodError } from "zod";
|
|
|
5
5
|
import { PRODUCT_NAME, SERVICE_ID } from "../shared/constants.js";
|
|
6
6
|
import { packageMetadata } from "../runtime/paths.js";
|
|
7
7
|
import { testnetCatalog, testnetStrategy } from "./catalog.js";
|
|
8
|
+
function publicReleaseIdentity(env) {
|
|
9
|
+
const hexadecimal = (name, length) => {
|
|
10
|
+
const value = env[name];
|
|
11
|
+
if (value === undefined)
|
|
12
|
+
return null;
|
|
13
|
+
if (value.length !== length ||
|
|
14
|
+
!new RegExp(`^[a-f0-9]{${length}}$`, "i").test(value))
|
|
15
|
+
throw new Error(`${name} must contain exactly ${length} hexadecimal characters.`);
|
|
16
|
+
return value.toLowerCase();
|
|
17
|
+
};
|
|
18
|
+
return {
|
|
19
|
+
version: packageMetadata().version,
|
|
20
|
+
releaseSha: hexadecimal("RELEASE_SHA", 40),
|
|
21
|
+
artifactSha256: hexadecimal("RELEASE_ARTIFACT_SHA256", 64),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
8
24
|
export function publicSetup() {
|
|
9
25
|
return {
|
|
10
26
|
prompt: `Set up Agent Pass Plugin locally from the public npm package @cmdoss/agent-pass-plugin@${packageMetadata().version}. Use Node 22.13+ and npm. Identify whether this is Claude Code or Codex and run PORT=4317 AGENT_PASS_PLUGIN_MODE=testnet npx --yes @cmdoss/agent-pass-plugin@${packageMetadata().version} setup --client claude (or codex) --register --start. Read the installed README.md and trading skill at skillPath in the setup output. Do not clone the private GitHub repository or build inside the installed package. Verify the agent-pass-plugin MCP tools, then marketplace_status and onboard; poll onboarding_status until the wallet is actually connected. Keep all keys, signing, plan data and the runner on my machine. Use Sui Testnet demo assets. Help me choose a strategy and collect its explicit amounts, price, budget, duration and gas limits. Owner authorization and Start are separate user actions. Do not authorize, sign or Start on my behalf, and never request a private key.`,
|
|
@@ -12,7 +28,8 @@ export function publicSetup() {
|
|
|
12
28
|
};
|
|
13
29
|
}
|
|
14
30
|
/** Hosted catalog only. This module never opens a store, signer or runner. */
|
|
15
|
-
export async function buildPublicServer() {
|
|
31
|
+
export async function buildPublicServer(env = process.env) {
|
|
32
|
+
const release = publicReleaseIdentity(env);
|
|
16
33
|
const app = Fastify({ logger: false, bodyLimit: 16384 });
|
|
17
34
|
app.addHook("onRequest", async (req, reply) => {
|
|
18
35
|
if (!["GET", "HEAD"].includes(req.method))
|
|
@@ -56,6 +73,7 @@ export async function buildPublicServer() {
|
|
|
56
73
|
});
|
|
57
74
|
app.get("/api/health", async () => ({
|
|
58
75
|
product: SERVICE_ID,
|
|
76
|
+
...release,
|
|
59
77
|
deployment: "public",
|
|
60
78
|
status: "ok",
|
|
61
79
|
executionEnabled: false,
|
package/docs/npm-release.md
CHANGED
|
@@ -6,11 +6,13 @@ 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`
|
|
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` | Public web image built from an npm archive and tested as a read-only, non-root container |
|
|
14
|
+
| `web-release.yml` | After stable npm publication, build/test/publish one immutable image and deploy it through Coolify |
|
|
15
|
+
| `web-rollback.yml` | Restore the image from a successful main release without rebuilding or republishing npm |
|
|
14
16
|
|
|
15
17
|
This follows Walrus Memory's separation of checks and release channels, adapted
|
|
16
18
|
for one package. `dev` publishes `X.Y.Z-dev.RUN.ATTEMPT` under `dev`; `main` uses
|
|
@@ -60,6 +62,11 @@ With publication enabled, matching pushes also publish their branch channel afte
|
|
|
60
62
|
validation. Stable payload changes require a source version bump. Published
|
|
61
63
|
versions are immutable; rollback means selecting a prior version, not overwriting it.
|
|
62
64
|
|
|
65
|
+
npm can accept a publication while its security processing is still pending.
|
|
66
|
+
The separate, read-only registry verification job waits up to 15 minutes and
|
|
67
|
+
compares downloaded bytes with the tested archive. Re-run this job after a
|
|
68
|
+
processing delay; it does not repeat publication. Web deployment waits for this gate.
|
|
69
|
+
|
|
63
70
|
Release jobs use GitHub-hosted runners and npm OIDC. Provenance is disabled for
|
|
64
71
|
this private source repository because npm does not support provenance from private
|
|
65
72
|
repos. If repository visibility changes, the workflow derives that setting from
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmdoss/agent-pass-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-dev.10.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.
|
|
9
|
+
"version": "0.1.1-dev.10.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fastify/static": "10.1.10",
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.2",
|
package/package.json
CHANGED