@quspect/qupai 0.7.0 → 0.7.11

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/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: qupai
3
- description: Ask QuPai's agents (the agents of the products the person's organization runs, such as QuPilot, and their labs' own agents) from this machine with the qupai command, hand approvals to the person, and read the person's QuPai threads, projects, artifacts, labs, compute, credits and what they set up (agents, knowledge bases, schedules, goals, workspaces). Use when the person asks to use QuPai, a QuPai agent, a QuPai lab or project, or a quantum computer through QuPai.
3
+ description: Ask QuPai's agents (the agents of the products the person's organization runs, such as QuPilot, and their labs' own agents) from this machine with the qupai command, hand approvals to the person, and read the person's QuPai threads, projects, artifacts, labs, compute, credits and what they set up (agents, knowledge bases, schedules, goals, workspaces); for QuPai staff, work the staff console on a staff session (qupai admin). Use when the person asks to use QuPai, a QuPai agent, a QuPai lab or project, or a quantum computer through QuPai, or for QuPai staff work.
4
4
  ---
5
5
 
6
6
  # Using QuPai through the qupai command
@@ -104,6 +104,25 @@ qupai schedule list -json # likewise goal list, workspace lis
104
104
  - Deleting (`thread delete`, `agent delete`, `library skill delete`, `schedule delete`, `goal stop`, `lab leave`…)
105
105
  cannot be undone: run it only when asked for that very thing, with `-yes`; `redeem` and `artifact share` likewise.
106
106
 
107
+ ## 7. Staff: the staff console (QuPai staff only)
108
+
109
+ When the person is QuPai staff and asks for staff work (organizations, accounts, users, access, labs, the catalog),
110
+ they run `! qupai login -staff` themselves and tick in the browser what the session may do; it lasts 8 hours.
111
+ `qupai status -json` then has `staff_session.state` `active` and its `reach`, and `qupai admin <area> <verb>` works
112
+ within it (`qupai help admin` lists them; each takes `-json`):
113
+
114
+ ```sh
115
+ qupai admin org list -json # likewise user list -q TEXT, lab list, access app show -org ORG
116
+ qupai admin lab grant csmot -org acme -user bob@acme.example -role operate
117
+ ```
118
+
119
+ - Exit 3: no staff session, or it ended: ask the person to run `qupai login -staff`. Exit 5: outside its reach (the
120
+ message names the box to tick on a new session) or their staff role does not allow it. Staff roles and changing
121
+ money stay in the browser.
122
+ - Writes change customers' organizations: run one only when asked for that very thing. Suspending, disabling,
123
+ removing and disconnecting need `-yes`. A password or key comes from a file the person gives (`-password-file`,
124
+ `-secret-file`), never an argument: never make one up, print one, or read one yourself.
125
+
107
126
  ## MCP
108
127
 
109
128
  `claude mcp add qupai -- qupai mcp` (Codex: `codex mcp add qupai -- qupai mcp`) offers the same as tools: `status`,
package/bin/qupai.js CHANGED
@@ -7,6 +7,8 @@
7
7
  // It also tells the binary where the full-screen app is (this package's tui/qupai-tui.mjs) and which Node.js runs it
8
8
  // (the one running this file), so `qupai` alone on a terminal opens it: QUPAI_TUI_ENTRY, QUPAI_TUI_NODE and
9
9
  // QUPAI_TUI_NODE_VERSION, none of them secret. The binary checks the version (pi-tui needs Node.js 22.19 or later).
10
+ // QUPAI_NPM_ROOT is this package's folder: `qupai update` installs the newest version over it, with the npm beside
11
+ // this Node.js, when it is npm's global install.
10
12
  const { spawnSync } = require("node:child_process");
11
13
  const { existsSync } = require("node:fs");
12
14
  const path = require("node:path");
@@ -23,7 +25,7 @@ try {
23
25
  process.exit(1);
24
26
  }
25
27
 
26
- const env = { ...process.env };
28
+ const env = { ...process.env, QUPAI_NPM_ROOT: path.join(__dirname, "..") };
27
29
  const tui = path.join(__dirname, "..", "tui", "qupai-tui.mjs");
28
30
  if (existsSync(tui)) {
29
31
  env.QUPAI_TUI_ENTRY = tui;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quspect/qupai",
3
- "version": "0.7.0",
3
+ "version": "0.7.11",
4
4
  "description": "QuPai's command line: sign in to a QuPai platform and ask its agents from a terminal, or from Codex and Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Quspect",
@@ -29,11 +29,11 @@
29
29
  "node": ">=18"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@quspect/qupai-darwin-arm64": "0.7.0",
33
- "@quspect/qupai-darwin-x64": "0.7.0",
34
- "@quspect/qupai-linux-x64": "0.7.0",
35
- "@quspect/qupai-linux-arm64": "0.7.0",
36
- "@quspect/qupai-win32-x64": "0.7.0",
37
- "@quspect/qupai-win32-arm64": "0.7.0"
32
+ "@quspect/qupai-darwin-arm64": "0.7.11",
33
+ "@quspect/qupai-darwin-x64": "0.7.11",
34
+ "@quspect/qupai-linux-x64": "0.7.11",
35
+ "@quspect/qupai-linux-arm64": "0.7.11",
36
+ "@quspect/qupai-win32-x64": "0.7.11",
37
+ "@quspect/qupai-win32-arm64": "0.7.11"
38
38
  }
39
39
  }