aiur-cli 0.0.2 → 0.0.4
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 +13 -1
- package/bin/aiur.js +235 -3
- package/libexec/aiur-engine.sh +1476 -73
- package/package.json +6 -6
- package/scripts/postinstall.mjs +5 -4
- package/share/aiur.tmux.conf +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiur-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "AI Unit Runtime for Executors.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/its-everdred/aiur",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
27
|
-
"opencodeVersion": "1.
|
|
27
|
+
"opencodeVersion": "1.17.10",
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"aiur-cli-linux-x64": "0.0.
|
|
30
|
-
"aiur-cli-linux-arm64": "0.0.
|
|
31
|
-
"aiur-cli-darwin-x64": "0.0.
|
|
32
|
-
"aiur-cli-darwin-arm64": "0.0.
|
|
29
|
+
"aiur-cli-linux-x64": "0.0.4",
|
|
30
|
+
"aiur-cli-linux-arm64": "0.0.4",
|
|
31
|
+
"aiur-cli-darwin-x64": "0.0.4",
|
|
32
|
+
"aiur-cli-darwin-arm64": "0.0.4"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -23,14 +23,15 @@ import path from "node:path";
|
|
|
23
23
|
|
|
24
24
|
// Pinned opencode version, read from package.json `opencodeVersion` (single
|
|
25
25
|
// source of truth — keep in sync with mise.toml). aiur's opencode pane
|
|
26
|
-
// integration is validated against this version;
|
|
27
|
-
//
|
|
26
|
+
// integration is validated end-to-end against this exact version; floating to
|
|
27
|
+
// `latest` would adopt an unverified opencode that could regress custom-provider
|
|
28
|
+
// model resolution or the chat panes, so the spec must carry a fixed version.
|
|
28
29
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
29
30
|
export const OPENCODE_PACKAGE = `opencode-ai@${pkg.opencodeVersion}`;
|
|
30
31
|
|
|
31
32
|
// True only when the *pinned* opencode version is on PATH. A wrong (e.g.
|
|
32
|
-
// newer) version must be reinstalled
|
|
33
|
-
//
|
|
33
|
+
// newer, unverified) version must be reinstalled to the pin — so a mere
|
|
34
|
+
// presence check isn't enough.
|
|
34
35
|
export function opencodeMatchesPin() {
|
|
35
36
|
const result = spawnSync("opencode", ["--version"], { encoding: "utf8" });
|
|
36
37
|
return !result.error && result.status === 0 && result.stdout.trim() === pkg.opencodeVersion;
|
package/share/aiur.tmux.conf
CHANGED
|
@@ -20,6 +20,16 @@ set -g mouse on
|
|
|
20
20
|
set -s extended-keys on
|
|
21
21
|
set -as terminal-features "*:extkeys"
|
|
22
22
|
set -g status off
|
|
23
|
+
|
|
24
|
+
# Show each pane's title in a one-line top border. PaneManager sets every
|
|
25
|
+
# chat pane's title to "<issue id> <issue title>" via `select-pane -T`, and
|
|
26
|
+
# the launcher sets the agent-list pane's title to "AIUR Agents". The format
|
|
27
|
+
# truncates the title to the pane's current width with an ellipsis (tmux
|
|
28
|
+
# evaluates the nested `#{pane_width}` before applying the `=/N/…` limit), so
|
|
29
|
+
# a long title never wraps and re-clips automatically on resize.
|
|
30
|
+
set -g pane-border-status top
|
|
31
|
+
set -g pane-border-format "#{=/#{pane_width}/…:#{pane_title}}"
|
|
32
|
+
|
|
23
33
|
set -g history-limit 50000
|
|
24
34
|
set -g default-terminal "tmux-256color"
|
|
25
35
|
set -ga terminal-overrides ",*256col*:Tc"
|