@tenderprompt/cli 0.1.32 → 0.1.34

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.
Files changed (3) hide show
  1. package/README.md +28 -5
  2. package/dist/index.js +1327 -162
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -59,12 +59,14 @@ 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 login --device --profile create --shopify-store tender-prompt --json
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
- tender app init artifact_123 --dir ./widget --preview --json
67
+ tender app init artifact_123 --dir ./product-survey-runtime --preview --json
66
68
 
67
- cd ./widget
69
+ cd ./product-survey-runtime
68
70
  npm run check
69
71
  git push tender main
70
72
 
@@ -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,11 +160,13 @@ 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 "Exit Intent Widget" --init --dir ./widget --preview --json
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
145
165
  tender app share create artifact_123 --expires 7d --claims 1 --json
146
166
  tender app share inspect tok_share_123 --json
147
167
  tender app claim tok_share_123 --dir ./widget --confirm source-and-setup --json
148
168
  tender app update artifact_123 --name "Sale Widget" --json
169
+ tender app init artifact_123 --dir ./product-survey-runtime --preview --json
149
170
  tender app init artifact_123 --dir ./widget --preview --json
150
171
  tender app bindings outbound --id shopify --host admin.shopify.com --dry-run --json
151
172
  tender app context status artifact_123 --dir ./widget --json
@@ -154,6 +175,7 @@ tender app validate artifact_123 --json
154
175
  tender app build artifact_123 --commit "$(git rev-parse HEAD)" --json
155
176
  tender app preview artifact_123 --commit "$(git rev-parse HEAD)" --stream --json
156
177
  tender app publish artifact_123 --dry-run --json
178
+ tender app publish artifact_123 --commit HEAD --confirm publish --stream --json
157
179
  tender app db capabilities artifact_123 --json
158
180
  tender app db tables artifact_123 --env published --json
159
181
  tender app db schema artifact_123 --env published --table votes --json
@@ -315,6 +337,7 @@ Start with capabilities:
315
337
 
316
338
  ```bash
317
339
  tender auth login --device --profile db-read --artifact artifact_123 --ttl 7d --save-profile db --json
340
+ tender auth status --profile db --json
318
341
 
319
342
  tender app db capabilities artifact_123 --profile db --json
320
343
  ```