@finic-ai/finic 0.0.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 +67 -0
- package/dist/index.js +15 -0
- package/package.json +13 -0
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# finic-agent
|
|
2
|
+
|
|
3
|
+
The Finic agent runtime, distributed as a self-contained binary named `finic`.
|
|
4
|
+
It runs the Finic agent in three shapes from a single codebase: an embedded
|
|
5
|
+
subprocess, a long-running daemon, and an interactive terminal UI.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -g @finic-ai/finic
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This installs the `finic` binary for your platform (macOS and Linux, arm64 and
|
|
14
|
+
x64).
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
finic # start the interactive TUI
|
|
20
|
+
finic whoami # check authentication against the configured backend
|
|
21
|
+
finic mcp # list available MCP tools
|
|
22
|
+
finic --help # full command list
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Configuration
|
|
26
|
+
|
|
27
|
+
`finic` needs the URL of a Finic backend. It is resolved in this order, highest
|
|
28
|
+
priority first:
|
|
29
|
+
|
|
30
|
+
1. `--finic-url <url>` — CLI flag
|
|
31
|
+
2. `FINIC_URL` — environment variable
|
|
32
|
+
3. `finic_url` under `[runtime]` in `~/.finic/config.toml`
|
|
33
|
+
|
|
34
|
+
Set it persistently:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
finic config runtime --finic-url <url>
|
|
38
|
+
finic config show # show the resolved configuration
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The MCP endpoint defaults to `<finic-url>/mcp/finic` and can be overridden with
|
|
42
|
+
`--mcp-url`, `FINIC_MCP_URL`, or `mcp_url` in the same config file.
|
|
43
|
+
|
|
44
|
+
### AI endpoint
|
|
45
|
+
|
|
46
|
+
`finic` does not assume an AI provider — you must point it at one explicitly,
|
|
47
|
+
or it will refuse to run. Resolved with the same precedence as the backend URL:
|
|
48
|
+
|
|
49
|
+
1. `--anthropic-base-url <url>` — CLI flag
|
|
50
|
+
2. `ANTHROPIC_BASE_URL` — environment variable
|
|
51
|
+
3. `anthropic_base_url` under `[runtime]` in `~/.finic/config.toml`
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
finic config runtime --anthropic-base-url <url>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
To call Anthropic directly, set it to `https://api.anthropic.com`.
|
|
58
|
+
|
|
59
|
+
## Authentication
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
finic login # browser-based login; stores a token under ~/.finic/
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
See the `LICENSE` file.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @finic-ai/finic — JS wrapper. Resolves the platform binary from
|
|
3
|
+
// the matching @finic-ai/finic-<os>-<cpu> optional dependency.
|
|
4
|
+
const { spawnSync } = require("node:child_process");
|
|
5
|
+
const target = process.platform + "-" + (process.arch === "x64" ? "x64" : "arm64");
|
|
6
|
+
const subpkg = "@finic-ai/finic-" + target;
|
|
7
|
+
let binPath;
|
|
8
|
+
try {
|
|
9
|
+
binPath = require.resolve(subpkg + "/dist/finic");
|
|
10
|
+
} catch (e) {
|
|
11
|
+
console.error("Unable to find the finic binary for " + target + ". Did the install pull in " + subpkg + "?");
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
15
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@finic-ai/finic",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Finic agent — Bun-compiled local runtime. Dispatches to the platform-specific binary at runtime.",
|
|
5
|
+
"bin": { "finic": "./dist/index.js" },
|
|
6
|
+
"files": ["dist/**/*", "README.md"],
|
|
7
|
+
"optionalDependencies": {
|
|
8
|
+
"@finic-ai/finic-darwin-arm64": "0.0.2",
|
|
9
|
+
"@finic-ai/finic-darwin-x64": "0.0.2",
|
|
10
|
+
"@finic-ai/finic-linux-arm64": "0.0.2",
|
|
11
|
+
"@finic-ai/finic-linux-x64": "0.0.2"
|
|
12
|
+
}
|
|
13
|
+
}
|