@collective-intelligence/cli 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +10 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -4,25 +4,26 @@ The public `ci` binary manages Extension Package development and immutable
4
4
  release operations. It talks to the Backend only through generated OpenAPI
5
5
  operations; it does not import private Backend runtime code.
6
6
 
7
- ## Sign In and Enroll a Local App
7
+ ## Sign In and Enroll Your App
8
8
 
9
9
  Interactive developers sign in once; pipelines keep using a token. Every
10
10
  command accepts either credential.
11
11
 
12
12
  ```sh
13
- # Device login: copy this command from the Dashboard (Organization settings →
14
- # CLI), approve the code in the Dashboard, then the CLI stores a 30-day CLI
15
- # Session in ~/.config/ci/profiles.json (mode 0600).
16
- ci login https://api.devpunks.example.com --organization <organization-id>
13
+ # Device login: copy this command from the Dashboard (Organization →
14
+ # Developers → CLI), approve the code in the Dashboard, then the CLI stores a
15
+ # 30-day CLI Session in ~/.config/ci/profiles.json (mode 0600).
16
+ ci login <api-url> --organization <organization-id>
17
17
  ci whoami
18
18
  ci orgs list
19
19
  ci orgs use <organization-id>
20
20
 
21
21
  # Create or replace one Organization-scoped Public Application by FQN and
22
- # write its connection values.
22
+ # write its connection values. Replace the placeholders with your app's FQN
23
+ # and sign-in callback URL.
23
24
  ci apps enroll \
24
- --fqn acme.portal.local \
25
- --redirect-uri http://localhost:3000/login/callback \
25
+ --fqn <your.app.fqn> \
26
+ --redirect-uri <your-app-callback-url> \
26
27
  --scopes context:read \
27
28
  --env-file .env.local
28
29
  ci logout
@@ -31,7 +32,7 @@ ci logout
31
32
  - `ci login <API URL>` resolves the API origin, issuer and JWKS URL from the
32
33
  API host's `/.well-known/ci-configuration`. A Dashboard URL is rejected as
33
34
  "not a CI API URL"; the Dashboard shows the exact command under Organization
34
- settings → CLI. `--organization <id>` selects the Current Organization;
35
+ → Developers → CLI. `--organization <id>` selects the Current Organization;
35
36
  without it, a re-login keeps the Profile's previous Organization for the same
36
37
  API origin. `--no-browser` only prints the URL.
37
38
  - Resolution order for the backend URL, credential and Organization: flag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collective-intelligence/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Distributable command-line tooling for Collective Intelligence Extension Packages.",
5
5
  "type": "module",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "ci": "./dist/cli.js"
11
11
  },
12
12
  "dependencies": {
13
- "@collective-intelligence/extensions-sdk-backend": "0.1.0",
13
+ "@collective-intelligence/extensions-sdk-backend": "0.1.1",
14
14
  "@module-federation/vite": "1.23.2",
15
15
  "@vitejs/plugin-react": "6.0.5",
16
16
  "acorn": "8.18.0",