@tenderprompt/cli 0.1.33 → 0.1.35
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 +26 -5
- package/dist/index.js +1247 -174
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,8 +59,10 @@ interactive prompts unless the command is explicitly an auth flow.
|
|
|
59
59
|
tender --version
|
|
60
60
|
tender capabilities --json
|
|
61
61
|
|
|
62
|
-
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d
|
|
63
|
-
tender auth
|
|
62
|
+
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d --save-profile agent --json
|
|
63
|
+
tender auth status --profile agent --json
|
|
64
|
+
tender auth login --device --profile create --shopify-store tender-prompt --save-profile account --json
|
|
65
|
+
tender auth status --profile account --json
|
|
64
66
|
|
|
65
67
|
tender app init artifact_123 --dir ./product-survey-runtime --preview --json
|
|
66
68
|
|
|
@@ -73,6 +75,9 @@ tender app preview artifact_123 --commit "$(git rev-parse HEAD)" --stream --json
|
|
|
73
75
|
tender app publish artifact_123 --commit "$(git rev-parse HEAD)" --confirm publish --stream --json
|
|
74
76
|
```
|
|
75
77
|
|
|
78
|
+
Lifecycle commands that accept `--commit` also accept Git refs such as `HEAD`
|
|
79
|
+
and resolve them locally before calling the API.
|
|
80
|
+
|
|
76
81
|
For agents, keep the pattern simple:
|
|
77
82
|
|
|
78
83
|
1. start with `tender capabilities --json`
|
|
@@ -98,6 +103,16 @@ Use the device login flow to mint a local token:
|
|
|
98
103
|
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d
|
|
99
104
|
```
|
|
100
105
|
|
|
106
|
+
For coding agents, use JSON mode and a saved profile. The login command returns
|
|
107
|
+
the approval URL/code immediately and stores a short-lived pending exchange in
|
|
108
|
+
the user-level Tender config; after the user approves, complete the profile with
|
|
109
|
+
`auth status`:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d --save-profile agent --json
|
|
113
|
+
tender auth status --profile agent --json
|
|
114
|
+
```
|
|
115
|
+
|
|
101
116
|
TTL values are intentionally bounded:
|
|
102
117
|
|
|
103
118
|
- `7d`
|
|
@@ -117,6 +132,10 @@ Credential precedence is explicit-first:
|
|
|
117
132
|
4. saved default profile
|
|
118
133
|
|
|
119
134
|
`--base-url` overrides the base URL for whichever credential source is used.
|
|
135
|
+
Hosted Shopify workspace commands are the exception: `tender shopify workspace
|
|
136
|
+
...` runs only in Tender's hosted source terminal, requires
|
|
137
|
+
`TENDER_BASE_URL=http://tender-api.tender.test`, and does not read
|
|
138
|
+
`TENDER_API_TOKEN`, saved profiles, or a container-visible workspace id.
|
|
120
139
|
|
|
121
140
|
## Git Transport
|
|
122
141
|
|
|
@@ -141,14 +160,14 @@ tender --version
|
|
|
141
160
|
tender capabilities --json
|
|
142
161
|
tender app list --json
|
|
143
162
|
tender app create --name "Exit Intent Widget" --json
|
|
144
|
-
tender app create --name "
|
|
145
|
-
tender app create --name "
|
|
163
|
+
tender app create --name "Data Collection App" --init --dir ./data-collection-app --preview --json
|
|
164
|
+
tender app create --name "Product Page Survey Runtime" --init --dir ./product-survey-runtime --scaffold shopify-pdp-survey-runtime --preview --json
|
|
146
165
|
tender app share create artifact_123 --expires 7d --claims 1 --json
|
|
147
166
|
tender app share inspect tok_share_123 --json
|
|
148
167
|
tender app claim tok_share_123 --dir ./widget --confirm source-and-setup --json
|
|
149
168
|
tender app update artifact_123 --name "Sale Widget" --json
|
|
150
169
|
tender app init artifact_123 --dir ./product-survey-runtime --preview --json
|
|
151
|
-
tender app init artifact_123 --dir ./widget --
|
|
170
|
+
tender app init artifact_123 --dir ./widget --preview --json
|
|
152
171
|
tender app bindings outbound --id shopify --host admin.shopify.com --dry-run --json
|
|
153
172
|
tender app context status artifact_123 --dir ./widget --json
|
|
154
173
|
tender app doctor --dir ./widget --json
|
|
@@ -156,6 +175,7 @@ tender app validate artifact_123 --json
|
|
|
156
175
|
tender app build artifact_123 --commit "$(git rev-parse HEAD)" --json
|
|
157
176
|
tender app preview artifact_123 --commit "$(git rev-parse HEAD)" --stream --json
|
|
158
177
|
tender app publish artifact_123 --dry-run --json
|
|
178
|
+
tender app publish artifact_123 --commit HEAD --confirm publish --stream --json
|
|
159
179
|
tender app db capabilities artifact_123 --json
|
|
160
180
|
tender app db tables artifact_123 --env published --json
|
|
161
181
|
tender app db schema artifact_123 --env published --table votes --json
|
|
@@ -317,6 +337,7 @@ Start with capabilities:
|
|
|
317
337
|
|
|
318
338
|
```bash
|
|
319
339
|
tender auth login --device --profile db-read --artifact artifact_123 --ttl 7d --save-profile db --json
|
|
340
|
+
tender auth status --profile db --json
|
|
320
341
|
|
|
321
342
|
tender app db capabilities artifact_123 --profile db --json
|
|
322
343
|
```
|