@intempt-technologies/cli 0.1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +112 -0
  3. package/dist/index.js +558 -0
  4. package/package.json +45 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Intempt Technologies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # @intempt-technologies/cli
2
+
3
+ CLI for [Intempt](https://www.intempt.com) — AI-assisted analytics instrumentation (tracking plans + typed SDK wrappers for 14 platforms), plus a full platform-operations command surface over Intempt's real API.
4
+
5
+ > **Check before you install:** `npm view @intempt-technologies/cli version`. If that
6
+ > 404s, the package is not published yet -- build from source (see Development) and
7
+ > the install commands below will start working once the first `cli@*` tag runs
8
+ > `cli-publish.yml`. Stating the check rather than the state, so this line stays
9
+ > true after the release instead of rotting on the day it ships.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install -g @intempt-technologies/cli
15
+ ```
16
+
17
+ Or run without installing:
18
+
19
+ ```bash
20
+ npx @intempt-technologies/cli <command>
21
+ ```
22
+
23
+ Requires Node.js >= 18.
24
+
25
+ ### From Claude Code
26
+
27
+ Install the [Intempt plugin](https://github.com/intempt/claude-plugin) instead — it installs this CLI, registers the MCP server, and runs a guided setup skill in one step:
28
+
29
+ ```
30
+ /plugin marketplace add intempt/claude-plugin
31
+ /plugin install intempt@intempt-plugins
32
+ ```
33
+
34
+ Then say **"run intempt setup"**.
35
+
36
+ ## Authentication
37
+
38
+ ```bash
39
+ intempt login
40
+ ```
41
+
42
+ Opens a browser (device-code flow, no passwords in chat/terminal). Session is stored at `~/.intempt/auth.json` (mode 0600, encrypted), **shared with `@intempt-technologies/mcp`** — one login covers both.
43
+
44
+ If your account belongs to more than one org/project, `intempt login` can't guess which one you mean and leaves it unset. Resolve it with:
45
+
46
+ ```bash
47
+ intempt use --org your-org --project your-project # or omit both flags for an interactive picker
48
+ ```
49
+
50
+ `INTEMPT_ORG`/`INTEMPT_PROJECT` env vars always take precedence over the stored default, for CI/automation.
51
+
52
+ ## Commands
53
+
54
+ ### Analytics instrumentation
55
+
56
+ | Command | What it does |
57
+ |---------|---------------|
58
+ | `intempt init` | Interactive wizard — AI codebase scan, guided, or empty tracking plan (`intempt.yaml`) |
59
+ | `intempt generate` | Generate a typed SDK wrapper or REST client from `intempt.yaml` |
60
+ | `intempt add <event>` | Add an event to `intempt.yaml` interactively |
61
+ | `intempt remove <event>` | Remove an event from `intempt.yaml` |
62
+ | `intempt validate` | Validate `intempt.yaml` |
63
+ | `intempt status [--ci] [--json] [--warn-only]` | Check instrumentation coverage |
64
+ | `intempt push` | Sync schema to the Intempt console (backend endpoint not live yet) |
65
+
66
+ ### Auth
67
+
68
+ | Command | What it does |
69
+ |---------|---------------|
70
+ | `intempt login` | Authenticate (device-code OAuth, opens a browser) |
71
+ | `intempt logout` | Clear stored credentials |
72
+ | `intempt whoami` | Show current user, orgs, and projects |
73
+ | `intempt use [--org NAME] [--project NAME]` | Set the default org/project (interactive picker if flags omitted) |
74
+
75
+ ### Platform operations (registry-backed, 205 entries across 13 domains)
76
+
77
+ | Command | What it does |
78
+ |---------|---------------|
79
+ | `intempt registry list [--json]` | List every available command, grouped by domain |
80
+ | `intempt registry describe <tool> [--json]` | Show one command's arguments |
81
+ | `intempt <domain> <action> [--flags] [--json]` | Call a command directly, e.g. `intempt users get_user_overview --email sarah@acme.com` |
82
+
83
+ Email/name arguments for `users`/`accounts` commands resolve to an internal ID automatically — you never need internal IDs.
84
+
85
+ ### Content generation (via Blu Chat)
86
+
87
+ | Command | What it does |
88
+ |---------|---------------|
89
+ | `intempt content generate-email "<prompt>" [--format html\|plain]` | Generate an email |
90
+ | `intempt content generate-sms "<prompt>"` | Generate an SMS message |
91
+ | `intempt content generate-push "<prompt>"` | Generate a push notification |
92
+ | `intempt content generate-landing-page "<prompt>"` | Generate landing page HTML |
93
+ | `intempt content generate-slack "<prompt>"` | Generate a Slack message |
94
+ | `intempt content generate-text "<prompt>"` | Generate generic text/copy |
95
+ | `intempt content generate-image "<prompt>"` | Generate an image |
96
+
97
+ `intempt gen-email` / `intempt gen-image` are shorthand aliases for the two most common ones.
98
+
99
+ ## Development
100
+
101
+ This package lives in the [intempt/cli](https://github.com/intempt/cli) monorepo, alongside `packages/mcp` (the MCP server) and `packages/commands` (the shared API registry both depend on).
102
+
103
+ ```bash
104
+ bun install
105
+ bun run src/index.tsx init # interactive wizard
106
+ bun test # test suite
107
+ bun run build # dist/index.js — Node-runnable, not Bun-only
108
+ ```
109
+
110
+ ## License
111
+
112
+ MIT