@rikafx/cli 0.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 In-Time-Tec
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # Rika
2
+
3
+ Rika is a local coding-agent CLI and terminal application. It uses Baton for the agent loop, Relay for durable execution, Effect SQL for local product state, and OpenTUI for rendering.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ curl -fsSL https://raw.githubusercontent.com/In-Time-Tec/rika/main/install.sh | sh
9
+ ```
10
+
11
+ Or from npm:
12
+
13
+ ```bash
14
+ npm install -g @rikafx/cli
15
+ ```
16
+
17
+ Both install the same binaries and give you a `rika` command. The curl installer puts them under
18
+ `~/.local/share/rika/current` with a link at `~/.local/bin/rika`; set `RIKA_VERSION`,
19
+ `RIKA_INSTALL_ROOT`, or `RIKA_BIN_DIR` to change the version or locations. macOS and Linux on arm64
20
+ and x86_64 are supported.
21
+
22
+ ## Setup
23
+
24
+ Only needed to work on Rika itself.
25
+
26
+ ```bash
27
+ bun install
28
+ bun run check
29
+ bun run dev
30
+ ```
31
+
32
+ The standard repository commands are `build`, `check`, `dev`, `format`, `test`, and `typecheck`.
33
+
34
+ ## Package and install from source
35
+
36
+ Build and install an explicit host target:
37
+
38
+ ```bash
39
+ bun run package -- --target linux-x64
40
+ bun run install-local
41
+ rika --version
42
+ ```
43
+
44
+ `install-local` installs the existing versioned host archive under `~/.local/share/rika/current` with a command at `~/.local/bin/rika`. Set `RIKA_PACKAGE_TARGET`, `RIKA_INSTALL_ROOT`, or `RIKA_BIN_DIR` to override the target or locations. `uninstall-local` removes the installed program but keeps Rika state and configuration.
45
+
46
+ ## Configuration
47
+
48
+ Global settings live at `~/.config/rika/settings.json`. A workspace can override them with `.rika/settings.json`. Credentials stay out of JSON: a provider override names the environment variable that supplies its API key.
49
+
50
+ ```json
51
+ {
52
+ "providers": {
53
+ "openai": {
54
+ "baseUrl": "http://127.0.0.1:9000/v1",
55
+ "apiKeyEnv": "RIKA_MODEL_API_KEY"
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ ```bash
62
+ export RIKA_MODEL_API_KEY="your-provider-key"
63
+ rika config list
64
+ rika doctor
65
+ rika
66
+ ```
67
+
68
+ Read `PRODUCT.md` for product direction and `CONTEXT.md` for the vocabulary and ownership model.
package/bin/rika.js ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ "use strict"
3
+
4
+ const { spawnSync } = require("node:child_process")
5
+
6
+ const target = `${process.platform}-${process.arch}`
7
+ const packageName = "@rikafx/cli-" + target
8
+
9
+ let binary
10
+ try {
11
+ binary = require.resolve(packageName + "/bin/rika")
12
+ } catch {
13
+ console.error(
14
+ "rika: no binary for " +
15
+ target +
16
+ ".\nSupported: darwin-arm64, linux-arm64, linux-x64." +
17
+ "\nIf your platform is supported, reinstall without --no-optional or --ignore-optional.",
18
+ )
19
+ process.exit(1)
20
+ }
21
+
22
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" })
23
+ if (result.error !== undefined) {
24
+ console.error("rika: failed to start " + binary + ": " + result.error.message)
25
+ process.exit(1)
26
+ }
27
+ if (typeof result.signal === "string") process.kill(process.pid, result.signal)
28
+ process.exit(result.status === null ? 1 : result.status)
package/package.json ADDED
@@ -0,0 +1 @@
1
+ {"name":"@rikafx/cli","description":"Rika — a local durable coding agent for your terminal","version":"0.0.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/In-Time-Tec/rika.git"},"homepage":"https://github.com/In-Time-Tec/rika","engines":{"node":">=18"},"bin":{"rika":"bin/rika.js"},"files":["bin/rika.js","README.md"],"optionalDependencies":{"@rikafx/cli-darwin-arm64":"0.0.1","@rikafx/cli-linux-arm64":"0.0.1","@rikafx/cli-linux-x64":"0.0.1"}}