@lesscap/baton-cli 0.7.6 → 0.7.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lesscap/baton-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
|
-
"scripts"
|
|
15
|
+
"scripts",
|
|
16
|
+
"skills"
|
|
16
17
|
],
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"@types/node": "^25.9.1",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@anthropic-ai/claude-agent-sdk": "^0.3.220",
|
|
29
30
|
"@openai/codex-sdk": "^0.146.0",
|
|
31
|
+
"mime": "^4.1.0",
|
|
30
32
|
"node-pty": "^1.1.0",
|
|
31
33
|
"ws": "^8.21.0"
|
|
32
34
|
},
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: baton-publish-artifact
|
|
3
|
+
description: Publish agent-generated files as public Baton Project Artifact links. Use after producing a file the user needs to preview, open, share, or download from a Baton session.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Baton Publish Artifact
|
|
7
|
+
|
|
8
|
+
Create and validate the requested file, then publish it from the current Baton worktree.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Confirm the final file is complete and opens correctly.
|
|
13
|
+
2. Publish each deliverable separately:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
baton artifact publish <file> --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Read the JSON result and include its `url` as a clickable link in the final response. Use `downloadUrl` only when the user specifically needs a forced download.
|
|
20
|
+
|
|
21
|
+
## Safety
|
|
22
|
+
|
|
23
|
+
- Treat every Artifact URL as public to anyone who has the link.
|
|
24
|
+
- Never publish `.env` files, credentials, access tokens, private keys, secret configuration, or user-provided input attachments.
|
|
25
|
+
- Inspect ambiguous files before publishing. If the output may contain sensitive data, ask the user before publishing it.
|