@ariobarin/glossa 0.1.0-beta.9 → 0.1.0

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 (3) hide show
  1. package/README.md +25 -23
  2. package/dist/app.js +10068 -5528
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -1,40 +1,42 @@
1
1
  # @ariobarin/glossa
2
2
 
3
- This package contains the `glossa` executable. Node.js 22.9 or newer is required.
4
- Install the open beta with either the hosted installer:
3
+ The `glossa` CLI connects one project on your computer to the Glossa MCP relay through an authenticated outbound worker. The npm package supports Windows, macOS, and Linux and requires Node.js 22.9 or newer.
5
4
 
6
- ```powershell
7
- irm https://glossa.sh/install | iex
5
+ ```shell
6
+ npm install --global @ariobarin/glossa
8
7
  ```
9
8
 
10
- Or install directly from npm:
9
+ Start it in the project you want ChatGPT to use:
11
10
 
12
- ```powershell
13
- npm install --global @ariobarin/glossa@beta
11
+ ```shell
12
+ glossa
14
13
  ```
15
14
 
16
- Then choose a recognizable name during this computer's first enrollment:
15
+ ## Access profiles
17
16
 
18
- ```powershell
19
- Set-Location C:\path\to\a\repository
20
- glossa --device-name "my-workstation" .
21
- ```
22
-
23
- The hosted command runs the tracked installer at `site/install.ps1`. Use
24
- `glossa update` or its `glossa upgrade` alias to update the global beta later.
17
+ | Profile | Read files | Edit files inside the project | Run commands |
18
+ | --- | --- | --- | --- |
19
+ | `read-only` | Yes | No | No |
20
+ | `workspace` (default) | Yes | Yes | No |
21
+ | `system` | Yes | Yes | Yes |
25
22
 
26
- Glossa opens Google sign-in automatically when needed using OAuth Device Authorization Flow. Public client and resource identifiers are built in, so testers do not configure OAuth values. Use the same Google account when authorizing Glossa in ChatGPT.
23
+ Use `glossa --access read-only` for inspection. Use `glossa --access system` only when the task needs local tests, builds, Git, or another project command.
27
24
 
28
- OAuth and device credentials use the operating-system credential store. If it is unavailable, Glossa warns before using a restricted credential file.
25
+ > **`system` is not sandboxed.** Commands inherit the full environment, credentials, filesystem permissions, and network access of the operating-system account that started Glossa. They are not confined to the selected root.
29
26
 
30
- `--device-name` is used only during initial enrollment. Later starts reuse the enrolled name; use `glossa devices rename <id> <name>` to change it. Without the option, the first managed session enrolls the computer under its hostname. Running `glossa` inside a Git worktree exposes only that worktree root. `glossa start .` is the explicit form. Each process registers an independent workspace, so the same computer may expose several workspaces at once. The process prints the canonical root, connection state, shell authority warning, and write or command activity. Press Ctrl+C to disconnect.
27
+ Expose only a narrow project you trust. Keep credentials and regulated or sensitive data out of the workspace. Review the [security overview](https://glossa.sh/security) before enabling commands.
31
28
 
32
- The experimental `glossa ui .` command opens a compact live session HUD and immediately exposes the selected workspace. Press `d` for recent activity, `?` for help, and `q` to disconnect. The screen keeps the worker-account authority warning visible.
29
+ Pass a directory to expose another project, and add `--label <name>` when several online workspaces need a non-sensitive identifier. The terminal shows the selected project, access profile, connection state, and recent activity. Press `q` or Ctrl+C to disconnect.
33
30
 
34
- Glossa signs in automatically whenever an authenticated command needs an account. `glossa login` is an optional preflight. `glossa status` validates the session and relay, then reports enrolled devices and active workers. `glossa doctor` performs a read-only readiness check, including the local device credential, and supports `--json`. Use `glossa devices list`, `glossa devices rename <id> <name>`, and `glossa devices revoke <id>` to manage enrolled computers.
31
+ Glossa opens sign-in when needed. Use the same Glossa account in ChatGPT and the CLI.
35
32
 
36
- Generate shell completion with `glossa completions <powershell|bash|zsh|fish>` and source the output from your shell profile. For example, use `glossa completions powershell | Out-String | Invoke-Expression` in PowerShell, `source <(glossa completions bash)` in Bash, `source <(glossa completions zsh)` after `compinit` in Zsh, or `glossa completions fish | source` in Fish.
33
+ Useful controls:
37
34
 
38
- The managed endpoint defaults to `https://mcp.glossa.sh`. Development deployments may override `GLOSSA_RELAY_ORIGIN` and `GLOSSA_WORKER_ORIGIN`. Plain HTTP is accepted only for loopback relay origins and loopback or private IPv4 worker origins.
35
+ ```shell
36
+ glossa status
37
+ glossa devices revoke <id>
38
+ glossa logout
39
+ glossa update --check
40
+ ```
39
41
 
40
- Run `glossa logout` to remove the CLI's local OAuth credentials. Running workers remain connected until stopped or revoked. Run `glossa logout --browser` before switching Google accounts so the next Glossa authorization does not silently reuse the previous browser session.
42
+ See the [quickstart](https://glossa.sh/docs/quickstart), [operations guide](https://github.com/ariobarin/glossa/blob/main/docs/operations.md), and [security overview](https://glossa.sh/security).