@tenderprompt/cli 0.1.14 → 0.1.16
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 +9 -3
- package/bin/tender.js +1 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +784 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ npm install -g @tenderprompt/cli
|
|
|
16
16
|
Then run:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
+
tender --version
|
|
19
20
|
tender capabilities --json
|
|
20
21
|
```
|
|
21
22
|
|
|
@@ -25,6 +26,8 @@ Use the CLI to work with Tender Apps from a local checkout or coding-agent
|
|
|
25
26
|
session:
|
|
26
27
|
|
|
27
28
|
- sign in with a bounded device token and optional artifact scope
|
|
29
|
+
- print the installed CLI package version with `tender --version`, `tender -v`,
|
|
30
|
+
or `tender version --json`
|
|
28
31
|
- list, create, and rename apps
|
|
29
32
|
- bootstrap a local app checkout with Tender project context
|
|
30
33
|
- configure the Tender artifact Git remote and credential helper
|
|
@@ -48,11 +51,12 @@ interactive prompts unless the command is explicitly an auth flow.
|
|
|
48
51
|
## Typical Flow
|
|
49
52
|
|
|
50
53
|
```bash
|
|
54
|
+
tender --version
|
|
51
55
|
tender capabilities --json
|
|
52
56
|
|
|
53
57
|
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d
|
|
54
58
|
|
|
55
|
-
tender app init artifact_123 --dir ./widget --json
|
|
59
|
+
tender app init artifact_123 --dir ./widget --preview --json
|
|
56
60
|
|
|
57
61
|
cd ./widget
|
|
58
62
|
npm run check
|
|
@@ -66,7 +70,7 @@ tender app publish artifact_123 --commit "$(git rev-parse HEAD)" --confirm publi
|
|
|
66
70
|
For agents, keep the pattern simple:
|
|
67
71
|
|
|
68
72
|
1. start with `tender capabilities --json`
|
|
69
|
-
2. use `tender app init` to clone/bootstrap an existing app checkout
|
|
73
|
+
2. use `tender app init --preview` to clone/bootstrap an existing app checkout
|
|
70
74
|
3. inspect and edit files locally
|
|
71
75
|
4. run `tender app doctor` and local project checks
|
|
72
76
|
5. push source with Git
|
|
@@ -120,11 +124,13 @@ indexing the accepted commit after upstream Git accepts the push.
|
|
|
120
124
|
## Useful Commands
|
|
121
125
|
|
|
122
126
|
```bash
|
|
127
|
+
tender --version
|
|
123
128
|
tender capabilities --json
|
|
124
129
|
tender app list --json
|
|
125
130
|
tender app create --name "Exit Intent Widget" --json
|
|
131
|
+
tender app create --name "Exit Intent Widget" --init --dir ./widget --preview --json
|
|
126
132
|
tender app update artifact_123 --name "Sale Widget" --json
|
|
127
|
-
tender app init artifact_123 --dir ./widget --json
|
|
133
|
+
tender app init artifact_123 --dir ./widget --preview --json
|
|
128
134
|
tender app bindings outbound --id shopify --host admin.shopify.com --dry-run --json
|
|
129
135
|
tender app context status artifact_123 --dir ./widget --json
|
|
130
136
|
tender app doctor --dir ./widget --json
|
package/bin/tender.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { runTenderCli } from "../dist/index.js";
|
|
4
|
-
|
|
5
|
-
function shouldReadEntrypointStdin(args) {
|
|
6
|
-
return (
|
|
7
|
-
args[0] === "artifacts" &&
|
|
8
|
-
args[1] === "git" &&
|
|
9
|
-
args[2] === "credential"
|
|
10
|
-
);
|
|
11
|
-
}
|
|
3
|
+
import { runTenderCli, shouldReadEntrypointStdin } from "../dist/index.js";
|
|
12
4
|
|
|
13
5
|
async function readEntrypointStdin() {
|
|
14
6
|
if (process.stdin.isTTY) {
|
package/dist/index.d.ts
CHANGED