open-tag 0.1.1 → 0.1.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.
- package/README.md +23 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +342 -119
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{program-CXdTyo53.mjs → program-BpXcUOCH.mjs} +3171 -1628
- package/dist/program-BpXcUOCH.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/program-CXdTyo53.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -10,6 +10,29 @@ binary and `~/.opentag`; preview builds use the separate `open-tag-staging` pack
|
|
|
10
10
|
Login installs and starts the daemon service by default. Use `--no-start` for credential-only login. The public daemon
|
|
11
11
|
commands are `install`, `start`, `stop`, `restart`, `status`, and `uninstall`; v0.1 does not provide a Windows service.
|
|
12
12
|
|
|
13
|
+
## Persistent runtime credentials
|
|
14
|
+
|
|
15
|
+
Put daemon-only runtime environment values in `<OPENTAG_HOME>/config/daemon.env` (production default:
|
|
16
|
+
`~/.opentag/config/daemon.env`). Keep the Home and config directories private and the file mode at `0600`.
|
|
17
|
+
The daemon loads this file at startup; non-empty values already supplied by its supervisor take precedence.
|
|
18
|
+
Restart the daemon after changing the file, once its current work can safely stop. Never share credential values.
|
|
19
|
+
For unattended Claude subscription access, use the token created by `claude setup-token` as
|
|
20
|
+
`CLAUDE_CODE_OAUTH_TOKEN`, rather than copying a short-lived access token from native login storage.
|
|
21
|
+
|
|
22
|
+
Service installation and upgrade refresh preserve existing custom environment values in launchd plists and
|
|
23
|
+
environment directives in the systemd unit. Installation and refresh enforce mode `0600` even when the definition content is unchanged, because it may contain secrets. OpenTag still regenerates its executable and managed `PATH`,
|
|
24
|
+
`OPENTAG_HOME`, and `OPENTAG_SERVICE_MODE`. On Linux, the service entrypoint sets these three values after systemd
|
|
25
|
+
applies environment files and removals, so custom directives cannot change the daemon's Home or service mode.
|
|
26
|
+
Systemd drop-ins are separate files and remain untouched.
|
|
27
|
+
An unsupported or ambiguous launchd environment is rejected before any definition is overwritten. Only supported UTF-8 XML environments are preserved; binary plists and other encodings must be converted first or use `config/daemon.env`.
|
|
28
|
+
|
|
29
|
+
Claude readiness always consults the CLI's authentication status using the same setting sources as execution.
|
|
30
|
+
Explicit credentials targeting the default Anthropic endpoint are additionally checked with one bounded, read-only
|
|
31
|
+
Models API request per readiness check. Equivalent official URLs (including the default port and host case) receive the same check. When both `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_API_KEY` are set, the check sends both authentication headers. A rejected credential requires sign-in or replacement; connectivity, permission, rate-limit,
|
|
32
|
+
and service failures remain retryable unavailability. This check makes no model generation request and does not
|
|
33
|
+
prove access to a particular model or available quota. Native login storage, custom gateways, Bedrock, Vertex,
|
|
34
|
+
and Foundry remain under the Claude CLI's credential handling; OpenTag does not read or renew their tokens.
|
|
35
|
+
|
|
13
36
|
## Targeted Computer preparation
|
|
14
37
|
|
|
15
38
|
`opentag connect <code>` (also `opentag computer connect <code>`) binds the Computer named by the one-time setup flow.
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as presentCommand, F as CommandError, H as configureClientLoggerForService, I as EXIT_CODES, L as commandExitCode, U as resolveOpenTagHome, V as toCommandError, W as resolveOpenTagHomeLayout, a as installCliProcessErrorReporting, j as CommanderError, k as resolveChannelEnvironment, o as reportCommandFailure, s as resolveCommandPath, t as createProgram, z as observeCommandFailures } from "../program-
|
|
2
|
+
import { B as presentCommand, F as CommandError, H as configureClientLoggerForService, I as EXIT_CODES, L as commandExitCode, U as resolveOpenTagHome, V as toCommandError, W as resolveOpenTagHomeLayout, a as installCliProcessErrorReporting, j as CommanderError, k as resolveChannelEnvironment, o as reportCommandFailure, s as resolveCommandPath, t as createProgram, z as observeCommandFailures } from "../program-BpXcUOCH.mjs";
|
|
3
3
|
//#region src/cli/run.ts
|
|
4
4
|
/**
|
|
5
5
|
* The CLI entry point's whole behaviour, so it can run under test with a real program.
|