@sdods/cli 0.10.0 → 0.11.2
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.
|
@@ -2,7 +2,7 @@ import { execa } from 'execa';
|
|
|
2
2
|
import pc from 'picocolors';
|
|
3
3
|
import { VERSION } from '@sdods/core';
|
|
4
4
|
import { json, out } from '../ui.js';
|
|
5
|
-
const REPO = 'https://github.com/
|
|
5
|
+
const REPO = 'https://github.com/YarlisAISolutions/SDODS';
|
|
6
6
|
const DISCUSSIONS = `${REPO}/discussions/categories/ideas`;
|
|
7
7
|
/**
|
|
8
8
|
* `sdods feedback` — open a prefilled GitHub issue (feature request or bug report).
|
package/dist/commands/users.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SdodsError } from '@sdods/core';
|
|
2
2
|
import { MIN_PASSWORD_LENGTH } from '@sdods/contracts/names';
|
|
3
|
+
import { ROLES } from '@sdods/contracts/scopes';
|
|
3
4
|
import { createContext } from '../context.js';
|
|
4
5
|
import { info, json, ok, table, warn } from '../ui.js';
|
|
5
6
|
async function openDb() {
|
|
@@ -92,6 +93,10 @@ export function register(program) {
|
|
|
92
93
|
.description('Change a platform role (viewer | editor | admin)')
|
|
93
94
|
.action(async (username, role, _opts, cmd) => {
|
|
94
95
|
const ctx = createContext(cmd);
|
|
96
|
+
// Checked before opening the database: an unknown role used to be accepted and silently
|
|
97
|
+
// left the user's role unchanged while reporting success.
|
|
98
|
+
if (!ROLES.includes(role))
|
|
99
|
+
throw new SdodsError('CONFIG_INVALID', `Unknown role "${role}". Use one of: ${ROLES.join(', ')}.`, { exitCode: 2 });
|
|
95
100
|
const adb = await openDb();
|
|
96
101
|
try {
|
|
97
102
|
const db = await import('@sdods/db');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdods/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "SDODS command line: run, record, analyze, agents, MCP server, scheduler and the web server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SDODS <admin@sdods.com>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"node": ">=22"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@sdods/contracts": "0.
|
|
28
|
-
"@sdods/core": "0.
|
|
27
|
+
"@sdods/contracts": "0.11.2",
|
|
28
|
+
"@sdods/core": "0.11.2",
|
|
29
29
|
"commander": "^15.0.0",
|
|
30
30
|
"execa": "^10.0.1",
|
|
31
31
|
"picocolors": "^1.1.1",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"zod": "^4.6.5",
|
|
35
35
|
"@playwright/test": "^1.63.0",
|
|
36
36
|
"playwright-core": "^1.63.0",
|
|
37
|
-
"@sdods/integrations": "0.
|
|
38
|
-
"@sdods/mcp": "0.
|
|
39
|
-
"@sdods/agents": "0.
|
|
40
|
-
"@sdods/db": "0.
|
|
37
|
+
"@sdods/integrations": "0.11.2",
|
|
38
|
+
"@sdods/mcp": "0.11.2",
|
|
39
|
+
"@sdods/agents": "0.11.2",
|
|
40
|
+
"@sdods/db": "0.11.2",
|
|
41
41
|
"csv-parse": "^7.0.2",
|
|
42
|
-
"@sdods/server": "0.
|
|
42
|
+
"@sdods/server": "0.11.2"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://sdods.com",
|
|
45
45
|
"bugs": {
|
|
46
|
-
"url": "https://github.com/
|
|
46
|
+
"url": "https://github.com/YarlisAISolutions/SDODS/issues"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
|
50
|
-
"url": "git+https://github.com/
|
|
50
|
+
"url": "git+https://github.com/YarlisAISolutions/SDODS.git",
|
|
51
51
|
"directory": "packages/cli"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
@@ -101,7 +101,7 @@ Read the rows in order and take the first that matches:
|
|
|
101
101
|
|---|---|---|
|
|
102
102
|
| `package.json` says `sdods-monorepo` — **even if `sdods` is on PATH** | a **source checkout** | `bun run web:build`, then `bun run sdods serve --open` |
|
|
103
103
|
| `sdods` on PATH, anywhere else | a **global install** (installer, npm, Homebrew) | `sdods serve --open` |
|
|
104
|
-
| neither, Docker is running | the **container** | `docker run --rm -p 8080:8080 -v sdods-data:/data ghcr.io/
|
|
104
|
+
| neither, Docker is running | the **container** | `docker run --rm -p 8080:8080 -v sdods-data:/data ghcr.io/yarlisaisolutions/sdods-server` |
|
|
105
105
|
| you want no terminal at all | the **desktop app** | install from <https://sdods.com/download>, launch it |
|
|
106
106
|
|
|
107
107
|
> **Inside a checkout, always use `bun run sdods`, never the global `sdods`.** The two drift, and
|
|
@@ -155,7 +155,7 @@ The CLI is identical on every OS; only the shell and the paths differ.
|
|
|
155
155
|
| Windows (PowerShell) | `sdods serve --open` |
|
|
156
156
|
| Windows (cmd) | `sdods serve --open` — the installer writes both `sdods.cmd` and `sdods.ps1` |
|
|
157
157
|
| WSL | use the Linux command inside WSL, not the PowerShell one |
|
|
158
|
-
| Docker (any host) | `docker run --rm -p 8080:8080 -v sdods-data:/data ghcr.io/
|
|
158
|
+
| Docker (any host) | `docker run --rm -p 8080:8080 -v sdods-data:/data ghcr.io/yarlisaisolutions/sdods-server` |
|
|
159
159
|
|
|
160
160
|
Defaults: **`http://127.0.0.1:4444`** for the CLI, **`http://localhost:8080`** for Docker (the
|
|
161
161
|
image binds `0.0.0.0:8080`). `--open` launches the browser (`open` / `start` / `xdg-open` by
|
|
@@ -166,7 +166,7 @@ Apple silicon and arm64 servers. Tags up to `0.9.0` carry amd64 only, and Docker
|
|
|
166
166
|
on arm64 rather than emulating; for those, add the platform flag:
|
|
167
167
|
|
|
168
168
|
```bash
|
|
169
|
-
docker run --rm --platform linux/amd64 -p 8080:8080 -v sdods-data:/data ghcr.io/
|
|
169
|
+
docker run --rm --platform linux/amd64 -p 8080:8080 -v sdods-data:/data ghcr.io/yarlisaisolutions/sdods-server:0.9.0
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
If the run must come from a source checkout, `bun run web:build` is not optional — see
|