@agentmark-ai/cli 0.10.0 → 0.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/README.md +143 -1
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/app-build-manifest.json +3 -3
- package/dist/.next/build-manifest.json +2 -2
- package/dist/.next/cache/.previewinfo +1 -1
- package/dist/.next/cache/.rscinfo +1 -1
- package/dist/.next/cache/.tsbuildinfo +1 -1
- package/dist/.next/cache/config.json +3 -3
- package/dist/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/.next/prerender-manifest.json +10 -10
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +1 -1
- package/dist/.next/server/app/experiments/compare.html +1 -1
- package/dist/.next/server/app/experiments/compare.rsc +1 -1
- package/dist/.next/server/app/experiments.html +1 -1
- package/dist/.next/server/app/experiments.rsc +1 -1
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +1 -1
- package/dist/.next/server/app/requests/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/requests.html +1 -1
- package/dist/.next/server/app/requests.rsc +2 -2
- package/dist/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/sessions.html +1 -1
- package/dist/.next/server/app/sessions.rsc +2 -2
- package/dist/.next/server/app/traces/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/traces.html +1 -1
- package/dist/.next/server/app/traces.rsc +2 -2
- package/dist/.next/server/chunks/478.js +2 -2
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/{41-8ba62a009d80b6dc.js → 41-f512c46d7ea943f6.js} +1 -1
- package/dist/.next/trace +56 -56
- package/dist/api-server.js +0 -1
- package/dist/api-server.js.map +1 -1
- package/dist/commands/deploy.d.ts +27 -0
- package/dist/commands/deploy.js +223 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts +0 -1
- package/dist/commands/dev.js +79 -66
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/run-experiment.js +7 -28
- package/dist/commands/run-experiment.js.map +1 -1
- package/dist/commands/run-prompt.js +6 -27
- package/dist/commands/run-prompt.js.map +1 -1
- package/dist/config.d.ts +2 -12
- package/dist/config.js +4 -44
- package/dist/config.js.map +1 -1
- package/dist/connect/job-handler.d.ts +23 -0
- package/dist/connect/job-handler.js +187 -0
- package/dist/connect/job-handler.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/runner-server.d.ts +0 -6
- package/dist/runner-server.js +3 -39
- package/dist/runner-server.js.map +1 -1
- package/package.json +3 -2
- package/dist/cloudflared/download.d.ts +0 -12
- package/dist/cloudflared/download.js +0 -130
- package/dist/cloudflared/download.js.map +0 -1
- package/dist/cloudflared/index.d.ts +0 -9
- package/dist/cloudflared/index.js +0 -20
- package/dist/cloudflared/index.js.map +0 -1
- package/dist/cloudflared/platform.d.ts +0 -20
- package/dist/cloudflared/platform.js +0 -79
- package/dist/cloudflared/platform.js.map +0 -1
- package/dist/cloudflared/tunnel.d.ts +0 -16
- package/dist/cloudflared/tunnel.js +0 -129
- package/dist/cloudflared/tunnel.js.map +0 -1
- package/dist/cloudflared/types.d.ts +0 -53
- package/dist/cloudflared/types.js +0 -8
- package/dist/cloudflared/types.js.map +0 -1
- package/dist/runner-server/middleware/signature-verification.d.ts +0 -37
- package/dist/runner-server/middleware/signature-verification.js +0 -55
- package/dist/runner-server/middleware/signature-verification.js.map +0 -1
- package/dist/tunnel.d.ts +0 -6
- package/dist/tunnel.js +0 -11
- package/dist/tunnel.js.map +0 -1
- /package/dist/.next/static/{p7ZqHwMUDueov4RV9Be-X → 2NZm040KzCzDPOX6MqoKG}/_buildManifest.js +0 -0
- /package/dist/.next/static/{p7ZqHwMUDueov4RV9Be-X → 2NZm040KzCzDPOX6MqoKG}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -1 +1,143 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgentMark CLI
|
|
2
|
+
|
|
3
|
+
The command-line tool for developing, testing, and evaluating AI agents with AgentMark.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @agentmark-ai/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or use it directly with `npx`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @agentmark-ai/cli dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Scaffold a new project
|
|
21
|
+
npm create agentmark@latest
|
|
22
|
+
|
|
23
|
+
# Start the dev server (API + trace UI + hot reload)
|
|
24
|
+
agentmark dev
|
|
25
|
+
|
|
26
|
+
# Run a prompt with its test props
|
|
27
|
+
agentmark run-prompt my-prompt.prompt.mdx
|
|
28
|
+
|
|
29
|
+
# Run an experiment against a dataset
|
|
30
|
+
agentmark run-experiment my-prompt.prompt.mdx
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
### `agentmark dev`
|
|
36
|
+
|
|
37
|
+
Start the local development environment: API server, webhook server, and trace UI.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
agentmark dev
|
|
41
|
+
agentmark dev --api-port 9418 --app-port 3000
|
|
42
|
+
agentmark dev --remote # Connect to AgentMark Cloud (login + trace forwarding)
|
|
43
|
+
agentmark dev --tunnel # Expose webhook server publicly
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The dev server auto-detects your project language (TypeScript or Python), finds your virtual environment, and handles port conflicts automatically.
|
|
47
|
+
|
|
48
|
+
### `agentmark run-prompt <filepath>`
|
|
49
|
+
|
|
50
|
+
Execute a single prompt and display the result.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Run with test props from the prompt's frontmatter
|
|
54
|
+
agentmark run-prompt customer-support.prompt.mdx
|
|
55
|
+
|
|
56
|
+
# Run with custom props
|
|
57
|
+
agentmark run-prompt customer-support.prompt.mdx --props '{"customer_question": "Where is my order?"}'
|
|
58
|
+
|
|
59
|
+
# Run with props from a file
|
|
60
|
+
agentmark run-prompt customer-support.prompt.mdx --props-file test-data.json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Output includes the LLM response, token usage, cost, and a link to the trace in the local UI.
|
|
64
|
+
|
|
65
|
+
### `agentmark run-experiment <filepath>`
|
|
66
|
+
|
|
67
|
+
Run a prompt against every item in its dataset, with optional evaluations.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Run with evals (default)
|
|
71
|
+
agentmark run-experiment my-prompt.prompt.mdx
|
|
72
|
+
|
|
73
|
+
# Skip evals
|
|
74
|
+
agentmark run-experiment my-prompt.prompt.mdx --skip-eval
|
|
75
|
+
|
|
76
|
+
# Output as JSON instead of table
|
|
77
|
+
agentmark run-experiment my-prompt.prompt.mdx --format json
|
|
78
|
+
|
|
79
|
+
# Fail if pass rate is below 80%
|
|
80
|
+
agentmark run-experiment my-prompt.prompt.mdx --threshold 80
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Output formats: `table` (default), `csv`, `json`, `jsonl`.
|
|
84
|
+
|
|
85
|
+
### `agentmark build`
|
|
86
|
+
|
|
87
|
+
Pre-compile `.prompt.mdx` files into JSON for production use with the file loader.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
agentmark build
|
|
91
|
+
agentmark build --out dist/prompts
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### `agentmark generate-types`
|
|
95
|
+
|
|
96
|
+
Generate TypeScript type definitions from your prompts for type-safe usage in code.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
agentmark generate-types
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### `agentmark generate-schema`
|
|
103
|
+
|
|
104
|
+
Generate a JSON Schema for `.prompt.mdx` frontmatter, enabling IDE validation and autocomplete.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
agentmark generate-schema
|
|
108
|
+
agentmark generate-schema --out .agentmark
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### `agentmark pull-models`
|
|
112
|
+
|
|
113
|
+
Interactively select and add LLM models from a provider to your `agentmark.json`.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
agentmark pull-models
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### `agentmark login` / `agentmark logout`
|
|
120
|
+
|
|
121
|
+
Authenticate with AgentMark Cloud.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
agentmark login
|
|
125
|
+
agentmark logout
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### `agentmark link`
|
|
129
|
+
|
|
130
|
+
Link your project to an AgentMark Cloud app for trace forwarding.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
agentmark link
|
|
134
|
+
agentmark link --app-id <uuid>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Documentation
|
|
138
|
+
|
|
139
|
+
Full documentation at [docs.agentmark.co](https://docs.agentmark.co/agentmark/).
|
|
140
|
+
|
|
141
|
+
## License
|
|
142
|
+
|
|
143
|
+
[MIT](../../LICENSE.md)
|
package/dist/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2NZm040KzCzDPOX6MqoKG
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"static/chunks/352-d7aa9d2da963e9e5.js",
|
|
76
76
|
"static/chunks/49-6efbcf2b4f20d950.js",
|
|
77
77
|
"static/chunks/349-9266e48c00c8ac76.js",
|
|
78
|
-
"static/chunks/41-
|
|
78
|
+
"static/chunks/41-f512c46d7ea943f6.js",
|
|
79
79
|
"static/chunks/app/requests/page-aa9725ed8b67059b.js"
|
|
80
80
|
],
|
|
81
81
|
"/sessions/page": [
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"static/chunks/352-d7aa9d2da963e9e5.js",
|
|
93
93
|
"static/chunks/49-6efbcf2b4f20d950.js",
|
|
94
94
|
"static/chunks/349-9266e48c00c8ac76.js",
|
|
95
|
-
"static/chunks/41-
|
|
95
|
+
"static/chunks/41-f512c46d7ea943f6.js",
|
|
96
96
|
"static/chunks/app/sessions/page-bf2019c391763736.js"
|
|
97
97
|
],
|
|
98
98
|
"/traces/page": [
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"static/chunks/352-d7aa9d2da963e9e5.js",
|
|
110
110
|
"static/chunks/49-6efbcf2b4f20d950.js",
|
|
111
111
|
"static/chunks/349-9266e48c00c8ac76.js",
|
|
112
|
-
"static/chunks/41-
|
|
112
|
+
"static/chunks/41-f512c46d7ea943f6.js",
|
|
113
113
|
"static/chunks/app/traces/page-c43b6aa5cd13fdf1.js"
|
|
114
114
|
]
|
|
115
115
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/2NZm040KzCzDPOX6MqoKG/_buildManifest.js",
|
|
9
|
+
"static/2NZm040KzCzDPOX6MqoKG/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [
|
|
12
12
|
"static/chunks/webpack-f10b0ea54196b48e.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"previewModeId":"
|
|
1
|
+
{"previewModeId":"3d2ff63eaf01f7abb0ba0caeb3c17d0c","previewModeSigningKey":"981a172e225e7b17909282f71dbf463040b54bf9bf7eba4644fd99aa08e76454","previewModeEncryptionKey":"aca121c70f6014285fd5e771c8346ae5ee08d3e6a8a14de58b70d582604c589b","expireAt":1775126363538}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"encryption.key":"
|
|
1
|
+
{"encryption.key":"ht9K53UtRRttTiNu7t5Oj65n4lCPbGM1sV7diyI4Lcs=","encryption.expire_at":1775126363195}
|