@bluelovers/opencode-arise 0.1.12 → 0.1.13
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 +15 -3
- package/dist/cli/index.js +29 -2
- package/dist/index.js +4 -1
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -18,14 +18,26 @@ A lightweight, token-efficient orchestrator layer that extends [OpenCode](https:
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
bunx opencode-arise install
|
|
21
|
+
bunx @bluelovers/opencode-arise install
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
This registers the plugin with OpenCode and creates a default config.
|
|
25
25
|
|
|
26
|
+
or
|
|
27
|
+
|
|
28
|
+
`~/.config/opencode/opencode.jsonc`
|
|
29
|
+
|
|
30
|
+
```jsonc
|
|
31
|
+
{
|
|
32
|
+
"plugins": [
|
|
33
|
+
"@bluelovers/opencode-arise@latest"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
26
38
|
**Verify installation:**
|
|
27
39
|
```bash
|
|
28
|
-
bunx opencode-arise doctor
|
|
40
|
+
bunx @bluelovers/opencode-arise doctor
|
|
29
41
|
```
|
|
30
42
|
|
|
31
43
|
## Quick Start
|
|
@@ -262,7 +274,7 @@ Contributions are welcome! Please read the contributing guidelines first.
|
|
|
262
274
|
|
|
263
275
|
```bash
|
|
264
276
|
# Clone the repo
|
|
265
|
-
git clone https://github.com/
|
|
277
|
+
git clone https://github.com/bluelovers/opencode-arise.git
|
|
266
278
|
cd opencode-arise
|
|
267
279
|
|
|
268
280
|
# Install dependencies
|
package/dist/cli/index.js
CHANGED
|
@@ -6966,8 +6966,31 @@ var require_npa_to_deps = __commonJS((exports) => {
|
|
|
6966
6966
|
// src/cli/index.ts
|
|
6967
6967
|
var import_fs_extra4 = __toESM(require_lib(), 1);
|
|
6968
6968
|
|
|
6969
|
+
// src/types/version.ts
|
|
6970
|
+
var PLUGIN_VERSION = "0.1.13";
|
|
6971
|
+
var PLUGIN_VERSION_HOMEPAGE = "https://github.com/bluelovers/opencode-arise#readme";
|
|
6972
|
+
|
|
6969
6973
|
// src/hooks/arise-banner.ts
|
|
6970
|
-
|
|
6974
|
+
function centerPad(text, totalWidth) {
|
|
6975
|
+
const textLength = text.length;
|
|
6976
|
+
const padding = totalWidth - textLength;
|
|
6977
|
+
if (padding <= 0) {
|
|
6978
|
+
return text;
|
|
6979
|
+
}
|
|
6980
|
+
const leftPadding = Math.floor(padding / 2);
|
|
6981
|
+
const rightPadding = padding - leftPadding;
|
|
6982
|
+
return " ".repeat(leftPadding) + text + " ".repeat(rightPadding);
|
|
6983
|
+
}
|
|
6984
|
+
var BANNER_CONTENT_WIDTH = 58;
|
|
6985
|
+
function generateVersionLine(version) {
|
|
6986
|
+
const versionText = `v${version}`;
|
|
6987
|
+
const padded = centerPad(versionText, BANNER_CONTENT_WIDTH);
|
|
6988
|
+
return `\u2551${padded}\u2551`;
|
|
6989
|
+
}
|
|
6990
|
+
function generateBannerASCII(version) {
|
|
6991
|
+
const ver = version ?? PLUGIN_VERSION;
|
|
6992
|
+
const versionLine = generateVersionLine(ver);
|
|
6993
|
+
return `
|
|
6971
6994
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
6972
6995
|
\u2551 \u2551
|
|
6973
6996
|
\u2551 \u2694\uFE0F A R I S E ! \u2694\uFE0F \u2551
|
|
@@ -6978,10 +7001,14 @@ var BANNER_ASCII = `
|
|
|
6978
7001
|
\u2551 \u2551
|
|
6979
7002
|
\u2551 Monarch ready. Shadows await your command. \u2551
|
|
6980
7003
|
\u2551 \u2551
|
|
7004
|
+
${versionLine}
|
|
6981
7005
|
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
7006
|
+
${PLUGIN_VERSION_HOMEPAGE}
|
|
6982
7007
|
`;
|
|
7008
|
+
}
|
|
7009
|
+
var TOAST_MESSAGE = `\u2694\uFE0F ARISE! Shadow Army Assembled. Monarch ready. v${PLUGIN_VERSION}`;
|
|
6983
7010
|
function getBanner() {
|
|
6984
|
-
return
|
|
7011
|
+
return generateBannerASCII(PLUGIN_VERSION);
|
|
6985
7012
|
}
|
|
6986
7013
|
|
|
6987
7014
|
// src/config/paths.ts
|
package/dist/index.js
CHANGED
|
@@ -23079,8 +23079,11 @@ function extractTextFromMessageParts(parts) {
|
|
|
23079
23079
|
}).join("");
|
|
23080
23080
|
}
|
|
23081
23081
|
|
|
23082
|
+
// src/types/version.ts
|
|
23083
|
+
var PLUGIN_VERSION = "0.1.13";
|
|
23084
|
+
|
|
23082
23085
|
// src/hooks/arise-banner.ts
|
|
23083
|
-
var TOAST_MESSAGE =
|
|
23086
|
+
var TOAST_MESSAGE = `\u2694\uFE0F ARISE! Shadow Army Assembled. Monarch ready. v${PLUGIN_VERSION}`;
|
|
23084
23087
|
var bannerShownThisProcess = false;
|
|
23085
23088
|
function createAriseBannerHook(ctx) {
|
|
23086
23089
|
const showToast = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluelovers/opencode-arise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Solo Leveling themed orchestrator harness for OpenCode - Arise, Shadow Army!",
|
|
6
6
|
"keywords": [
|
|
@@ -12,16 +12,19 @@
|
|
|
12
12
|
"solo-leveling",
|
|
13
13
|
"arise"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.com/
|
|
15
|
+
"homepage": "https://github.com/bluelovers/opencode-arise#readme",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/bluelovers/opencode-arise/issues"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/bluelovers/opencode-arise.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"author": "moinulmoin",
|
|
25
|
+
"contributors": [
|
|
26
|
+
"bluelovers"
|
|
27
|
+
],
|
|
25
28
|
"type": "module",
|
|
26
29
|
"exports": {
|
|
27
30
|
".": {
|
|
@@ -43,8 +46,9 @@
|
|
|
43
46
|
"test": "cross-env NO_COLOR=1 FORCE_COLOR=0 bun --env-file=.env.test test --update-snapshots",
|
|
44
47
|
"test:color": "bun test --update-snapshots",
|
|
45
48
|
"posttest": "echo posttest",
|
|
46
|
-
"prebuild": "node --run clean",
|
|
49
|
+
"prebuild": "node --run build:version && node --run clean",
|
|
47
50
|
"build": "node --run build:bun",
|
|
51
|
+
"build:version": "bun test/scripts/generate-version.ts",
|
|
48
52
|
"build:bun": "bun build src/index.ts --outdir dist --target bun && bun build src/cli/index.ts --outdir dist/cli --target bun && tsc --emitDeclarationOnly",
|
|
49
53
|
"build:tsc": "tsc",
|
|
50
54
|
"npm:publish:bump": "node --run version:bump && npm publish",
|