@keystrokehq/cli 1.0.17 → 1.0.18

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The primary interface for working with keystroke — locally and against a remote deployment.
4
4
 
5
- **Local** commands hit your **keystroke server** (`serverUrl`). **Cloud** commands hit the **keystroke platform** control plane (`platformUrl`), which manages and routes to deployed keystroke servers per project.
5
+ **Local** commands hit your local platform API (`PUBLIC_PLATFORM_URL` in the project `.env`, or the dev session URL while `keystroke dev` is running). **Cloud** commands hit the **keystroke platform** control plane (`platformUrl`), which manages and routes to deployed keystroke servers per project.
6
6
 
7
7
  Distributed via npm as the `keystroke` binary.
8
8
 
@@ -33,9 +33,8 @@ keystroke auth logout
33
33
  | ------------- | -------------------------- | ---------------------------------------------------------------- |
34
34
  | `webUrl` | `https://keystroke.ai` | Web dashboard; device login and session checks |
35
35
  | `platformUrl` | `https://api.keystroke.ai` | Platform API (direct; used by CLI platform commands) |
36
- | `serverUrl` | `http://localhost:3001` | Local keystroke server API (`keystroke dev` / `keystroke start`) |
37
36
 
38
- `auth login` persists both `webUrl` and `platformUrl`. Omit `--web-url` to always reset to production defaults (`https://keystroke.ai` / `https://api.keystroke.ai`), even if a previous login pointed at localhost. Local dev: `--web-url http://localhost:3000` (platform URL resolves to `http://localhost:3002`). Cloud auth does not change `serverUrl` — local project commands still hit your dev server.
37
+ `auth login` persists both `webUrl` and `platformUrl`. Omit `--web-url` to always reset to production defaults (`https://keystroke.ai` / `https://api.keystroke.ai`), even if a previous login pointed at localhost. Local dev: `--web-url http://localhost:3000` (platform URL resolves to `http://localhost:3002`).
39
38
 
40
39
  Existing commands do not require auth yet. Use `resolveCliAuth()` when adding protected commands.
41
40
 
@@ -123,7 +122,7 @@ Watch `src/`, rebuild `dist/` on change, and restart the API. **Not true hot rel
123
122
 
124
123
  ```bash
125
124
  keystroke dev
126
- keystroke dev --port 3001
125
+ keystroke dev --port 3002
127
126
  ```
128
127
 
129
128
  Same flags as `start`.
@@ -136,13 +135,13 @@ Database defaults to SQLite at `./data/dev.db` unless `DATABASE_URL` points at P
136
135
 
137
136
  ```bash
138
137
  keystroke start
139
- keystroke start --port 3001
138
+ keystroke start --port 3002
140
139
  ```
141
140
 
142
141
  | Flag | Purpose |
143
142
  | -------- | ----------------------- |
144
143
  | `--dir` | Project root |
145
- | `--port` | API port (default 3001) |
144
+ | `--port` | API port (default 3002) |
146
145
 
147
146
  Use `keystroke build` for a clean API rebuild.
148
147
 
@@ -166,7 +165,7 @@ Custom output directory: `node apps/cli/scripts/pack.mjs /path/to/install`.
166
165
  | [`conf`](https://github.com/sindresorhus/conf) | Persistent non-secret config (profiles, defaults, project prefs). MIT. |
167
166
  | [`@napi-rs/keyring`](https://github.com/Brooooooklyn/keyring-node) | API tokens and other secrets via the OS keychain. MIT. |
168
167
 
169
- `conf` stores `serverUrl`, `webUrl`, and other non-secrets under `~/.keystroke`. `@napi-rs/keyring` stores bearer tokens — macOS Keychain, Windows Credential Manager, or Secret Service on Linux — so tokens never sit in a plaintext config file.
168
+ `conf` stores `webUrl`, `platformUrl`, and other non-secrets under `~/.keystroke`. `@napi-rs/keyring` stores bearer tokens — macOS Keychain, Windows Credential Manager, or Secret Service on Linux — so tokens never sit in a plaintext config file.
170
169
 
171
170
  ## Development
172
171
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { An as discriminatedUnion, Dn as _function, En as _enum, Fn as toJSONSchema, Ft as ROUTE_MANIFEST_REL_PATH, Mn as object, Mt as PromptResponseSchema, Nn as string, On as array, Pn as union, Tn as ZodType, bn as normalizeCredentialList, jn as literal, kn as custom } from "./dist-CLPEmwi4.mjs";
2
+ import { An as array, Dn as ZodType, Fn as string, In as union, It as ROUTE_MANIFEST_REL_PATH, Ln as toJSONSchema, Mn as discriminatedUnion, Nn as literal, Nt as PromptResponseSchema, On as _enum, Pn as object, jn as custom, kn as _function, xn as normalizeCredentialList } from "./dist-DfEfdcEL.mjs";
3
3
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
4
4
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
5
5
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -1918,4 +1918,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
1918
1918
  //#endregion
1919
1919
  export { packAssetDirs as A, toStoredRouteManifest as C, webhookMatchSchemaForBindings as D, webhookManifestAttachmentSchemasFromBindings as E, shouldSkipKeystrokeModuleFile as F, walkTypeScriptFiles as I, discoverModuleFileEntries as M, entryIdFromFile as N, webhookRouteFromEndpoint as O, readKeystrokeIgnoreDirective as P, serializeRouteManifest as S, validateImportedWorkflowDefinition as T, importTriggerAttachment as _, buildStoredRouteManifestFromContext as a, pollGroupId as b, collectAgentToolSlugs as c, discoverSkillManifestEntries as d, discoverTriggerAttachments as f, importAgentDefinition as g, emitStoredRouteManifestForProject as h, buildStoredRouteManifestForProject as i, discoverEntries as j, workflowRouteFromKey as k, countAgentCredentials as l, discoverWorkflows as m, agentRouteFromKey as n, buildWebhookBindingsByRoute as o, discoverWorkflowEntries as p, buildPollGroups as r, collectAgentAppSlugs as s, agentManifestEntry as t, discoverAgentEntries as u, importWorkflowDefinition as v, validateImportedTriggerAttachment as w, schemaToJson as x, persistStoredRouteManifest as y };
1920
1920
 
1921
- //# sourceMappingURL=dist-DtU9BFPv.mjs.map
1921
+ //# sourceMappingURL=dist-CuGYI4rV.mjs.map