@tesselate-digital/notion-agent-hive 0.0.1 → 0.0.3
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 +3 -5
- package/dist/cli/index.js +6 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ A task can also be moved to **Needs Human Input** at any point when a decision r
|
|
|
66
66
|
### Quick Start
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
bunx @tesselate-digital/notion-agent-hive
|
|
69
|
+
bunx @tesselate-digital/notion-agent-hive install
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
This command:
|
|
@@ -138,16 +138,14 @@ When you change plugin source, rebuild `dist/index.js` so OpenCode picks up the
|
|
|
138
138
|
|
|
139
139
|
### Published Package
|
|
140
140
|
|
|
141
|
-
Once the package is published, the intended install command is:
|
|
142
|
-
|
|
143
141
|
```bash
|
|
144
|
-
bunx @tesselate-digital/notion-agent-hive
|
|
142
|
+
bunx @tesselate-digital/notion-agent-hive install
|
|
145
143
|
```
|
|
146
144
|
|
|
147
145
|
This command:
|
|
148
146
|
|
|
149
147
|
1. Adds `@tesselate-digital/notion-agent-hive` to the `plugin` array in `~/.config/opencode/opencode.json` (or `$OPENCODE_CONFIG_DIR/opencode.json` / `$XDG_CONFIG_HOME/opencode/opencode.json`)
|
|
150
|
-
2. Creates a `~/.config/opencode/notion-agent-hive.json` starter config (or the matching `$OPENCODE_CONFIG_DIR` / `$
|
|
148
|
+
2. Creates a `~/.config/opencode/notion-agent-hive.json` starter config (or the matching `$OPENCODE_CONFIG_DIR` / `$XGD_CONFIG_HOME` location)
|
|
151
149
|
|
|
152
150
|
If you want per-project overrides, create `notion-agent-hive.json` in the project root manually.
|
|
153
151
|
|
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
#!/usr/bin/env bun
|
|
2
3
|
// @bun
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __export = (target, all) => {
|
|
@@ -13,7 +14,8 @@ var __export = (target, all) => {
|
|
|
13
14
|
|
|
14
15
|
// src/cli/install.ts
|
|
15
16
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
16
|
-
import { join as join2 } from "path";
|
|
17
|
+
import { dirname, join as join2 } from "path";
|
|
18
|
+
import { fileURLToPath } from "url";
|
|
17
19
|
|
|
18
20
|
// src/config.ts
|
|
19
21
|
import { homedir } from "os";
|
|
@@ -4035,8 +4037,10 @@ function getGlobalConfigDir() {
|
|
|
4035
4037
|
}
|
|
4036
4038
|
|
|
4037
4039
|
// src/cli/install.ts
|
|
4040
|
+
var __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
4041
|
+
var pkg = JSON.parse(readFileSync(join2(__dirname2, "../../package.json"), "utf-8"));
|
|
4038
4042
|
var PLUGIN_ID = "notion-agent-hive";
|
|
4039
|
-
var PACKAGE_NAME =
|
|
4043
|
+
var PACKAGE_NAME = pkg.name;
|
|
4040
4044
|
function normalizePluginList(value) {
|
|
4041
4045
|
if (!Array.isArray(value))
|
|
4042
4046
|
return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesselate-digital/notion-agent-hive",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"LICENSE"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && tsc --emitDeclarationOnly",
|
|
17
|
+
"build": "bun build src/index.ts --outdir dist --target bun --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && { printf '#!/usr/bin/env bun\\n'; cat dist/cli/index.js; } > dist/cli/tmp.js && mv dist/cli/tmp.js dist/cli/index.js && tsc --emitDeclarationOnly",
|
|
18
18
|
"test": "bun test",
|
|
19
19
|
"lint": "biome lint .",
|
|
20
20
|
"check": "biome check --write ."
|