@diafunc/cli 0.31.1 → 0.32.1

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
@@ -109,7 +109,7 @@ Config is stored at `~/.diafunc/config.json` with 0600 permissions.
109
109
 
110
110
  ### Profiles
111
111
 
112
- Manage multiple environments (production, staging, local):
112
+ A profile is one endpoint with one sign-in. Use several for different environments or different accounts:
113
113
 
114
114
  ```bash
115
115
  diafunc config profile add staging --endpoint https://staging.diafunc.com
@@ -117,6 +117,16 @@ diafunc config profile use staging
117
117
  diafunc config profile list
118
118
  ```
119
119
 
120
+ `-p, --profile <name>` runs one command on another profile without changing the active one. It applies to
121
+ every command, sign-in included: `diafunc -p staging auth login` signs in on `staging` and leaves the
122
+ sign-in of the active profile as it was.
123
+
124
+ ```bash
125
+ diafunc config profile add examples --endpoint https://diafunc.com
126
+ diafunc -p examples auth login
127
+ diafunc -p examples whoami
128
+ ```
129
+
120
130
  ### Defaults
121
131
 
122
132
  Reduce repetition by setting default project and branch:
@@ -204,6 +214,7 @@ Nothing is asked when stdin or stdout is not a terminal, with `--output json`, o
204
214
  | `diafunc chat` | AI chat REPL (default), plus `send` / `stream` / `upload`, `usage`, and `session list/show/rename/delete` |
205
215
  | `diafunc search` | Search entities across projects; equally relevant results lead with the project whose model has the better quality, or the newest with `--sort newest` |
206
216
  | `diafunc analyze` | Run an automatic analysis on a data file and follow it live (interactive when run from a terminal), plus `list`, `get`, `watch`, `open`, `report` (the report as Markdown), `export-model` (the model as code or a formula), `runs`, `cancel`, `upload`, `stop-import`, `visibility` (`--license` to publish), `presets`, `triggers`, and your private notes with `intent` (read into proposals that apply only when you confirm them), `expectations`, `charts` and `focus` (see [doc/analyze.md](./doc/analyze.md)) |
217
+ | `diafunc deployment` | Serve a finished analysis's model as a predict endpoint: `list`, `get`, `create`, `delete`, `predict` (one row with `--input`, or a CSV file with `--file`; every prediction costs 0.001 credits), `outcomes` (record the values that came true), `monitor`, `set`, `serve-newest` and `delete-prediction` (see [doc/deployments.md](./doc/deployments.md)) |
207
218
  | `diafunc public` | Read the analyses their owners made public, without signing in: `list` (paged, `--all`, `--changed-since`, with each one's license) and `show` (see [doc/public.md](./doc/public.md)) |
208
219
  | `diafunc license` | The licenses a public project can be published under, without signing in: `list` and `show`; `project create`, `analyze` and `analyze visibility` take `--license <id>` (see [doc/licenses.md](./doc/licenses.md)) |
209
220
  | `diafunc subscription` | View your current and upcoming subscription, plus available plans |
@@ -256,6 +267,8 @@ Configure the `@diafunc/cli` package as a trusted publisher on npm:
256
267
 
257
268
  The first publish must be done manually (run `npm publish` locally) to create the package on npm; after that, all subsequent publishes happen via CI.
258
269
 
270
+ The `publish` job runs on a GitLab.com shared runner (`saas-linux-small-amd64`), never on the self-hosted T420 runner. npm accepts trusted publishing from GitLab.com shared runners only, and refuses a self-hosted runner's token with `ENEEDAUTH`.
271
+
259
272
  ### Cutting a release
260
273
 
261
274
  **Option A, from the terminal:**
@@ -4,13 +4,13 @@ import {
4
4
  PromptCanceled,
5
5
  createProgram,
6
6
  handleError
7
- } from "../chunk-QBPGK5OC.js";
7
+ } from "../chunk-MRKZZ4XD.js";
8
8
  import {
9
9
  getUpdateNotice
10
- } from "../chunk-YXI42NZN.js";
10
+ } from "../chunk-J3ZSLT24.js";
11
11
  import {
12
12
  package_default
13
- } from "../chunk-L4XSFORF.js";
13
+ } from "../chunk-QALKS4CY.js";
14
14
 
15
15
  // bin/diafunc.ts
16
16
  import chalk2 from "chalk";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-L4XSFORF.js";
3
+ } from "./chunk-QALKS4CY.js";
4
4
 
5
5
  // src/util/update-check.ts
6
6
  import * as fs from "fs";
@@ -72,4 +72,4 @@ async function getUpdateNotice() {
72
72
  export {
73
73
  getUpdateNotice
74
74
  };
75
- //# sourceMappingURL=chunk-YXI42NZN.js.map
75
+ //# sourceMappingURL=chunk-J3ZSLT24.js.map