Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
},
"metadata": {
"description": "Terminal49 MCP server and agent skills for container tracking and trade intelligence",
"version": "0.3.2"
"version": "0.3.3"
},
"plugins": [
{
"name": "terminal49",
"source": "./plugins/terminal49",
"description": "Container and shipment lookups, starting tracking, and US import trade intelligence from the Terminal49 MCP server, with agent skills",
"version": "0.3.2"
"version": "0.3.3"
}
]
}
4 changes: 2 additions & 2 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
},
"metadata": {
"description": "Terminal49 MCP server and agent skills for container tracking and trade intelligence",
"version": "0.3.2"
"version": "0.3.3"
},
"plugins": [
{
"name": "terminal49",
"source": "./plugins/terminal49",
"description": "Container and shipment lookups, starting tracking, and US import trade intelligence from the Terminal49 MCP server, with agent skills",
"version": "0.3.2"
"version": "0.3.3"
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ account with trade intelligence enabled.
├── openai/listing.json # OpenAI package name, version, category, and MCP URL for the existing plugin
├── scripts/
│ ├── build-openai-zip.mjs # Builds the OpenAI directory ZIP
│ ├── check-eval-delta.mjs # Checks that every eval case has a positive delta
│ └── validate.mjs
└── plugins/terminal49/
├── .claude-plugin/plugin.json
Expand Down
2 changes: 1 addition & 1 deletion gemini-extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terminal49",
"version": "0.3.2",
"version": "0.3.3",
"description": "Terminal49 container and shipment tracking: look up containers by container, booking or bill of lading number, check status, milestones, ETAs, holds and last free day, and start new tracking.",
"contextFileName": "GEMINI.md",
"mcpServers": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/terminal49/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
"name": "terminal49",
"displayName": "Terminal49",
"version": "0.3.2",
"version": "0.3.3",
"description": "Look up and investigate container shipments, start tracking, and research US ocean import markets with the Terminal49 MCP server.",
"author": {
"name": "Terminal49",
Expand Down
2 changes: 1 addition & 1 deletion plugins/terminal49/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terminal49",
"version": "0.3.2",
"version": "0.3.3",
"description": "Look up and investigate container shipments, start tracking, and research US ocean import markets with the Terminal49 MCP server.",
"author": {
"name": "Terminal49",
Expand Down
2 changes: 1 addition & 1 deletion plugins/terminal49/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "terminal49",
"displayName": "Terminal49",
"version": "0.3.2",
"version": "0.3.3",
"description": "Look up and investigate container shipments, start tracking, and research US ocean import markets with the Terminal49 MCP server.",
"author": {
"name": "Terminal49",
Expand Down
4 changes: 2 additions & 2 deletions plugins/terminal49/evals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ descriptions and input schemas. Refresh it when the server's tools change:

```sh
gh api repos/Terminal49/API/contents/packages/mcp/src/__snapshots__/tools-list.json \
-H "Accept: application/vnd.github.raw" | jq -c '.result | walk(if type == "object" then del(."$schema") else . end)' > evals/mocks/terminal49/_tools.json
-H "Accept: application/vnd.github.raw" | jq -c '.result | walk(if type == "object" then del(."$schema", .outputSchema) else . end)' > evals/mocks/terminal49/_tools.json
```

## Prerequisites
Expand Down Expand Up @@ -100,7 +100,7 @@ claude plugin eval . \
--no-publish \
--json /tmp/terminal49-plugin-evals.json

node evals/check-delta.mjs /tmp/terminal49-plugin-evals.json
node ../../scripts/check-eval-delta.mjs /tmp/terminal49-plugin-evals.json
```

## Reading the result
Expand Down
2 changes: 1 addition & 1 deletion plugins/terminal49/evals/mocks/terminal49/_tools.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import process from "node:process";
const resultPath = process.argv[2];

if (!resultPath) {
console.error("Usage: node evals/check-delta.mjs <aggregate-result.json>");
console.error("Usage: node scripts/check-eval-delta.mjs <aggregate-result.json>");
process.exit(2);
}

Expand Down
6 changes: 6 additions & 0 deletions scripts/validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ if (prompts.length > 3 || prompts.some((prompt) => prompt.length > 128)) {

// Directory checks on the plugin folder: https://claude.com/docs/plugins/pre-submission-checklist
const imageExtensions = new Set([".png", ".jpg", ".jpeg", ".gif", ".webp", ".svg"]);
const scriptExtensions = new Set([".js", ".mjs", ".cjs", ".ts", ".sh", ".py"]);
const credentialRead = /T49_API_KEY|\.t49_api_key|process\.env|os\.environ|getenv\(/;
async function walk(directory) {
const entries = await readdir(directory, { withFileTypes: true });
Expand All @@ -287,12 +288,17 @@ for (const file of pluginFiles) {
if (stats.isSymbolicLink()) errors.push(`${path} is a symbolic link; commit a regular file`);
if (stats.size > 256 * 1024) errors.push(`${path} is larger than 256 KiB`);
if (/(^|\/)(\.DS_Store|Thumbs\.db|desktop\.ini)$/.test(path)) errors.push(`${path} is a system file`);
if (scriptExtensions.has(extname(file))) errors.push(`${path} is a script; keep scripts outside the plugin folder`);
if (imageExtensions.has(extname(file))) continue;
const bytes = await readFile(file);
if (bytes.includes(0)) {
errors.push(`${path} is a binary file; only images may be binary`);
continue;
}
// The directory checker reads credential-named output fields as a credential read.
if (path.includes("/evals/mocks/") && bytes.includes("outputSchema")) {
errors.push(`${path} keeps tool output schemas; strip outputSchema from eval mocks`);
}
if (credentialRead.test(bytes.toString("utf8"))) {
errors.push(`${path} reads a credential from the user's machine; use the MCP server's OAuth connection instead`);
}
Expand Down
Loading