maritime-cli 1.6.0 → 1.6.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/AGENTS.md +17 -1
- package/dist/commands/guide.js +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -123,6 +123,22 @@ Success shape:
|
|
|
123
123
|
|
|
124
124
|
Without `--json`, `chat` prints only the reply text on stdout (clean for piping).
|
|
125
125
|
|
|
126
|
+
### Messaging AS an end-user — `message`
|
|
127
|
+
|
|
128
|
+
`chat` targets one agent; `message` routes by YOUR end-user id through the
|
|
129
|
+
agent's project front door: the same `--user` always reaches the same
|
|
130
|
+
dedicated agent, and an unknown id gets one assigned/spawned per the
|
|
131
|
+
project's `newChatPolicy`.
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
maritime message <agent> --user cust_42 "where is my order?" --json | jq -r '.reply'
|
|
135
|
+
maritime message <agent> --user cust_42 --wait 0 "hi" --json # ack now; reply via message.reply webhook
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
`status:"replied"` carries `.reply` inline; `"provisioning"`/`"queued"` means
|
|
139
|
+
the user's agent is still booting — poll the message id or subscribe to the
|
|
140
|
+
`message.reply` webhook (`POST /api/v1/webhooks`).
|
|
141
|
+
|
|
126
142
|
## Sizing (optional)
|
|
127
143
|
|
|
128
144
|
You don't size agents. `maritime create <name>` picks an applicable size for the
|
|
@@ -224,7 +240,7 @@ dir the agent is implied: `maritime env set FOO=bar --json`, `maritime env pull`
|
|
|
224
240
|
Project: `init`, `link`, `deploy` (a directory ⇄ an agent)
|
|
225
241
|
Auth / keys: `login`, `logout`, `whoami`, `keys {create,list,revoke}`
|
|
226
242
|
Lifecycle: `create`, `list`, `deploy`, `delete`
|
|
227
|
-
Interaction: `chat`/`send`
|
|
243
|
+
Interaction: `chat`/`send`, `message` (per-end-user front door)
|
|
228
244
|
Config: `env {set,import,list,remove,reload,pull}`
|
|
229
245
|
Observe: `status`, `logs`
|
|
230
246
|
|
package/dist/commands/guide.js
CHANGED
|
@@ -13,7 +13,7 @@ const CONTRACT = {
|
|
|
13
13
|
auth: 'Set the MARITIME_TOKEN env var to a long-lived API key (mk_…, minted via `maritime keys create`) or a login JWT. The CLI reads it before anything else; never run interactive login in automation.',
|
|
14
14
|
json: 'Pass --json on every command. Success → one JSON value on stdout, stderr empty. Failure → one JSON object {ok:false,error:{code,message,status?}} on stderr, stdout empty.',
|
|
15
15
|
exitCodes: { '0': 'ok', '1': 'error', '2': 'auth', '3': 'not_found', '4': 'usage' },
|
|
16
|
-
interaction: 'Talk to a deployed agent with `maritime chat <agent> <message>` (or pipe the message via stdin). Returns the reply text (or {response} under --json). Sleeping serverless agents auto-wake.',
|
|
16
|
+
interaction: 'Talk to a deployed agent with `maritime chat <agent> <message>` (or pipe the message via stdin). Returns the reply text (or {response} under --json). Sleeping serverless agents auto-wake. To message AS one of YOUR end-users (sticky per-user agents via the project front door), use `maritime message <agent> --user <externalUserId> <message>` — status:replied carries .reply inline; provisioning/queued means the reply arrives via the message.reply webhook.',
|
|
17
17
|
resources: 'create accepts per-agent overrides: --ram <mb>, --cpu <cores>, --idle <seconds> | --always-on, --disk <gb>, --max-compute <minutes>. Omitted = inherit the tier/plan.',
|
|
18
18
|
fleet: 'create --count <n> (2–50) spins up n identical agents named <name>-1..<name>-n in one call. Supported alongside --count: --template, --tier, --idle/--always-on, --repo, -e/--env; other create flags exit 4. --json returns {created:[{id,name,status}],failed:[{name,error}],requested,monthlyCostCents}. Exit 0 = all created, 1 = partial/none (402 insufficient wallet balance, 403 over the 50-agent cap → exit 1).',
|
|
19
19
|
project: 'A directory can be linked to an agent (like vercel/railway). `maritime init <name>` scaffolds maritime.json + AGENTS.md and links it; `maritime link <agent>` links an existing one; `maritime deploy` reconciles the agent to maritime.json. Once linked, the <agent> argument is optional on every command (resolved from .maritime/project.json, walking up from cwd).',
|