@tenderprompt/cli 0.1.2 → 0.1.4
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 +22 -17
- package/dist/index.js +1264 -234
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tender CLI
|
|
2
2
|
|
|
3
|
-
Command-line tools for managing Tender
|
|
3
|
+
Command-line tools for managing Tender App projects from a local checkout.
|
|
4
4
|
|
|
5
5
|
The CLI is built for humans and local coding agents. The agent runs locally,
|
|
6
6
|
edits files locally, and uses normal Git plus explicit Tender API commands for
|
|
@@ -24,15 +24,15 @@ tender --help
|
|
|
24
24
|
```bash
|
|
25
25
|
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d
|
|
26
26
|
|
|
27
|
-
tender
|
|
27
|
+
tender app git setup artifact_123 --dir ./widget
|
|
28
28
|
|
|
29
29
|
cd ./widget
|
|
30
30
|
npm run check
|
|
31
31
|
git push tender main
|
|
32
32
|
|
|
33
|
-
tender
|
|
33
|
+
tender app preview artifact_123 --commit "$(git rev-parse HEAD)" --stream --json
|
|
34
34
|
|
|
35
|
-
tender
|
|
35
|
+
tender app publish artifact_123 --commit "$(git rev-parse HEAD)" --confirm publish --stream --json
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Auth
|
|
@@ -60,23 +60,27 @@ Tender source movement uses Git:
|
|
|
60
60
|
git push tender main
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
A push updates
|
|
63
|
+
A push updates app source and can trigger preview work. Publishing remains
|
|
64
64
|
an explicit lifecycle command so local agents do not accidentally publish
|
|
65
65
|
production changes.
|
|
66
66
|
|
|
67
|
+
`tender app git setup` configures the checkout to avoid thin/external-delta
|
|
68
|
+
push packs when possible. The server also handles valid external-delta packs by
|
|
69
|
+
indexing the accepted commit after upstream Git accepts the push.
|
|
70
|
+
|
|
67
71
|
## Useful Commands
|
|
68
72
|
|
|
69
73
|
```bash
|
|
70
|
-
tender
|
|
71
|
-
tender
|
|
72
|
-
tender
|
|
73
|
-
tender
|
|
74
|
-
tender
|
|
75
|
-
tender
|
|
76
|
-
tender
|
|
77
|
-
tender
|
|
78
|
-
tender
|
|
79
|
-
tender
|
|
74
|
+
tender app list --json
|
|
75
|
+
tender app create --name "Exit Intent Widget" --json
|
|
76
|
+
tender app update artifact_123 --name "Sale Widget" --json
|
|
77
|
+
tender app init artifact_123 --dir ./widget --json
|
|
78
|
+
tender app context status artifact_123 --dir ./widget --json
|
|
79
|
+
tender app doctor --dir ./widget --json
|
|
80
|
+
tender app validate artifact_123 --json
|
|
81
|
+
tender app build artifact_123 --commit "$(git rev-parse HEAD)" --json
|
|
82
|
+
tender app preview artifact_123 --commit "$(git rev-parse HEAD)" --stream --json
|
|
83
|
+
tender app publish artifact_123 --dry-run --json
|
|
80
84
|
```
|
|
81
85
|
|
|
82
86
|
## Safety Model
|
|
@@ -84,8 +88,9 @@ tender artifacts publish artifact_123 --dry-run --json
|
|
|
84
88
|
- Local agents run in the user's environment, not in Tender.
|
|
85
89
|
- Source moves through artifact Git.
|
|
86
90
|
- Preview, build, and publish are explicit API lifecycle operations.
|
|
87
|
-
- `write` lets a token edit and
|
|
88
|
-
|
|
91
|
+
- `write` lets a token edit, preview, push source, and publish. `publish`
|
|
92
|
+
remains accepted as an explicit scope for descriptive or older token grants.
|
|
93
|
+
- `tender app publish` requires `--dry-run` or `--confirm publish`.
|
|
89
94
|
- Tokens are stored outside the project checkout and are not written into Git
|
|
90
95
|
remote URLs.
|
|
91
96
|
|