Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 38 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: inkbox-ai/inkbox
ref: 8f4b37c56cd153a2acc6cfabe27dbbeb43510f00
path: .ci/inkbox
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: |
npm ci --prefix .ci/inkbox/sdk/typescript
npm run build --prefix .ci/inkbox/sdk/typescript
npm install --no-save --package-lock=false \
./.ci/inkbox/sdk/typescript \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: npm run lint
- run: npm run typecheck
- run: npm test
Expand All @@ -26,23 +36,46 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: inkbox-ai/inkbox
ref: 8f4b37c56cd153a2acc6cfabe27dbbeb43510f00
path: .ci/inkbox
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm install -D @opencode-ai/plugin@latest
- run: |
npm ci --prefix .ci/inkbox/sdk/typescript
npm run build --prefix .ci/inkbox/sdk/typescript
npm install --no-save --package-lock=false \
./.ci/inkbox/sdk/typescript \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: |
npm install --no-save --package-lock=false \
./.ci/inkbox/sdk/typescript \
@opencode-ai/sdk@latest @opencode-ai/plugin@latest
- run: npm run typecheck
- run: npx vitest run tests/contract

loader-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: inkbox-ai/inkbox
ref: 8f4b37c56cd153a2acc6cfabe27dbbeb43510f00
path: .ci/inkbox
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: |
npm ci --prefix .ci/inkbox/sdk/typescript
npm run build --prefix .ci/inkbox/sdk/typescript
npm install --no-save --package-lock=false \
./.ci/inkbox/sdk/typescript \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: npm install -g opencode-ai@latest
- run: bash scripts/smoke-loader.sh
- run: INKBOX_SDK_PATH="$PWD/.ci/inkbox/sdk/typescript" bash scripts/smoke-loader.sh
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Initial release.

- Requires `@inkbox/sdk` 0.5.0 or newer.
- 56 `inkbox_*` tools across email, SMS/MMS, iMessage, calls, contacts, notes,
contact rules, access grants, encrypted vault, and diagnostics. 24 are
enabled by default; the rest are opt-in via the `tools.enable` plugin option
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"opencode": ">=1.15.0 <1.19.0"
},
"dependencies": {
"@inkbox/sdk": ">=0.4.24 <1.0.0",
"@inkbox/sdk": ">=0.5.0 <1.0.0",
"@opencode-ai/sdk": ">=1.17.18 <1.19.0",
"ws": "^8.21.0",
"zod": "4.1.8"
Expand Down
6 changes: 5 additions & 1 deletion scripts/smoke-loader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ echo "==> creating throwaway project in $WORKDIR"
cd "$WORKDIR"
git init -q .
npm init -y >/dev/null
npm install --silent "$TARBALL"
if [ -n "${INKBOX_SDK_PATH:-}" ]; then
npm install --silent "$INKBOX_SDK_PATH" "$TARBALL"
else
npm install --silent "$TARBALL"
fi

mkdir -p .opencode/plugins
# The wrapper loads the packaged plugin exactly as opencode would, then drops
Expand Down
Loading