@primitivedotdev/cli 0.24.0
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 +47 -0
- package/bin/run.js +5 -0
- package/dist/oclif/api-command.js +755 -0
- package/dist/oclif/auth.js +223 -0
- package/dist/oclif/commands/emails-latest.js +184 -0
- package/dist/oclif/commands/emails-poll.js +121 -0
- package/dist/oclif/commands/emails-wait.js +171 -0
- package/dist/oclif/commands/emails-watch.js +165 -0
- package/dist/oclif/commands/functions-deploy.js +123 -0
- package/dist/oclif/commands/functions-init.js +262 -0
- package/dist/oclif/commands/functions-redeploy.js +112 -0
- package/dist/oclif/commands/functions-set-secret.js +212 -0
- package/dist/oclif/commands/login.js +236 -0
- package/dist/oclif/commands/logout.js +87 -0
- package/dist/oclif/commands/send.js +221 -0
- package/dist/oclif/commands/whoami.js +94 -0
- package/dist/oclif/fish-completion.js +87 -0
- package/dist/oclif/index.js +167 -0
- package/dist/oclif/lint/raw-send-mail-fetch.js +98 -0
- package/oclif.manifest.json +4287 -0
- package/package.json +108 -0
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@primitivedotdev/cli",
|
|
3
|
+
"version": "0.24.0",
|
|
4
|
+
"description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"files": [
|
|
8
|
+
"bin",
|
|
9
|
+
"dist",
|
|
10
|
+
"oclif.manifest.json"
|
|
11
|
+
],
|
|
12
|
+
"bin": {
|
|
13
|
+
"primitive": "./bin/run.js"
|
|
14
|
+
},
|
|
15
|
+
"oclif": {
|
|
16
|
+
"bin": "primitive",
|
|
17
|
+
"commands": {
|
|
18
|
+
"strategy": "explicit",
|
|
19
|
+
"target": "./dist/oclif/index.js",
|
|
20
|
+
"identifier": "COMMANDS"
|
|
21
|
+
},
|
|
22
|
+
"dirname": "primitive",
|
|
23
|
+
"plugins": [
|
|
24
|
+
"@oclif/plugin-help",
|
|
25
|
+
"@oclif/plugin-autocomplete"
|
|
26
|
+
],
|
|
27
|
+
"topics": {
|
|
28
|
+
"cli": {
|
|
29
|
+
"description": "Browser-assisted CLI authentication"
|
|
30
|
+
},
|
|
31
|
+
"account": {
|
|
32
|
+
"description": "Manage your account settings, storage, and webhook secret"
|
|
33
|
+
},
|
|
34
|
+
"domains": {
|
|
35
|
+
"description": "Claim, verify, and manage email domains"
|
|
36
|
+
},
|
|
37
|
+
"emails": {
|
|
38
|
+
"description": "List, inspect, and manage received emails. Use `primitive emails:latest` for a one-line-per-email summary of recent inbound mail."
|
|
39
|
+
},
|
|
40
|
+
"sending": {
|
|
41
|
+
"description": "Send outbound emails. For replies to inbound mail, use `sending:reply-to-email --id <inbound-id>` (threading and Re: subject derived server-side); for fresh sends, use `sending:send-email` or the `primitive send` shortcut."
|
|
42
|
+
},
|
|
43
|
+
"endpoints": {
|
|
44
|
+
"description": "Manage webhook endpoints that receive email events"
|
|
45
|
+
},
|
|
46
|
+
"filters": {
|
|
47
|
+
"description": "Manage whitelist and blocklist filter rules"
|
|
48
|
+
},
|
|
49
|
+
"webhook-deliveries": {
|
|
50
|
+
"description": "View and replay webhook delivery attempts"
|
|
51
|
+
},
|
|
52
|
+
"functions": {
|
|
53
|
+
"description": "Deploy JavaScript handlers that run on inbound mail. Use `primitive functions:init <name>` to scaffold a deployable project (handler, package.json, build script). Use `primitive functions:deploy --name <name> --file <bundle.js>` to create, `primitive functions:redeploy --id <id> --file <bundle.js>` to push a new bundle, and `primitive functions:set-secret --id <id> --key <KEY> --value <value> [--redeploy]` to write a secret (with optional one-call redeploy so the value lands in the running handler). The auto-generated functions:create-function / functions:update-function / functions:create-function-secret / functions:set-function-secret operations stay available for the full body-string surface."
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"topicSeparator": " "
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsc -p tsconfig.oclif.json",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
|
|
64
|
+
"lint": "biome check --error-on-warnings src tests",
|
|
65
|
+
"lint:fix": "biome check --write --error-on-warnings src tests",
|
|
66
|
+
"prepack": "pnpm build && oclif manifest",
|
|
67
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
68
|
+
"prepublishOnly": "pnpm build"
|
|
69
|
+
},
|
|
70
|
+
"keywords": [
|
|
71
|
+
"primitive",
|
|
72
|
+
"cli",
|
|
73
|
+
"email",
|
|
74
|
+
"functions",
|
|
75
|
+
"webhook"
|
|
76
|
+
],
|
|
77
|
+
"author": "Primitive <support@primitive.dev>",
|
|
78
|
+
"license": "MIT",
|
|
79
|
+
"repository": {
|
|
80
|
+
"type": "git",
|
|
81
|
+
"url": "git+https://github.com/primitivedotdev/sdks.git",
|
|
82
|
+
"directory": "cli-node"
|
|
83
|
+
},
|
|
84
|
+
"bugs": {
|
|
85
|
+
"url": "https://github.com/primitivedotdev/sdks/issues"
|
|
86
|
+
},
|
|
87
|
+
"homepage": "https://primitive.dev",
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": ">=22"
|
|
90
|
+
},
|
|
91
|
+
"dependencies": {
|
|
92
|
+
"@oclif/core": "^4.10.5",
|
|
93
|
+
"@oclif/plugin-autocomplete": "^3.2.45",
|
|
94
|
+
"@oclif/plugin-help": "^6.2.44",
|
|
95
|
+
"@primitivedotdev/sdk": "^0.23.0"
|
|
96
|
+
},
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"@biomejs/biome": "^2.4.10",
|
|
99
|
+
"@types/node": "^22.10.2",
|
|
100
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
101
|
+
"oclif": "^4.23.0",
|
|
102
|
+
"shx": "^0.3.4",
|
|
103
|
+
"tsx": "^4.21.0",
|
|
104
|
+
"typescript": "^5.7.2",
|
|
105
|
+
"vite": "^8.0.8",
|
|
106
|
+
"vitest": "^4.1.4"
|
|
107
|
+
}
|
|
108
|
+
}
|