Skip to content
Open
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
54 changes: 6 additions & 48 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,33 @@ on:
branches: [main]
pull_request:

# This workflow intentionally checks out live Interchange until mediated
# credentials ship in a released package; it is integration CI, not release CI.

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: x-tools
- uses: actions/checkout@v4
with:
repository: corbitsdev/interchange
path: interchange
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- name: Install Interchange (for @intx/* links)
working-directory: interchange
run: bun install --frozen-lockfile
- name: Install x-tools
working-directory: x-tools
run: bun install --frozen-lockfile
- name: Link Interchange packages
working-directory: x-tools
run: bun run link:intx
- working-directory: x-tools
run: bun run typecheck
- run: bun install --frozen-lockfile
- run: bun run typecheck

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: x-tools
- uses: actions/checkout@v4
with:
repository: corbitsdev/interchange
path: interchange
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- working-directory: interchange
run: bun install --frozen-lockfile
- working-directory: x-tools
run: bun install --frozen-lockfile
- working-directory: x-tools
run: bun run link:intx
- working-directory: x-tools
run: bun run test
- run: bun install --frozen-lockfile
- run: bun run test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: x-tools
- uses: actions/checkout@v4
with:
repository: corbitsdev/interchange
path: interchange
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- working-directory: interchange
run: bun install --frozen-lockfile
- working-directory: x-tools
run: bun install --frozen-lockfile
- working-directory: x-tools
run: bun run link:intx
- working-directory: x-tools
run: bun run build
- run: bun install --frozen-lockfile
- run: bun run build
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ tools (credential handle `x-api`). See ARCHITECTURE.md.

```bash
bun install
bun run link:intx
bun run typecheck
bun test
bun run build
Expand Down
6 changes: 3 additions & 3 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ src/
index.ts
```

Depends on a sibling `../interchange` checkout. Run `bun run link:intx` to
symlink its packages so we track live `intx-src` — not the stale npm `0.2.2`
cut.
Depends on the published `@intx/agent` and `@intx/types` packages (peer
dependencies, `>=0.4.0`).

## Tool delivery plan (v1)

1. Users → 2. Posts → 3. Search → 4. Bookmarks → 5. Media → 6. News / Trends
Expand Down
8 changes: 1 addition & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@

A small, deliberately boring codebase: strict TypeScript, no magic.

Setup and commands are in the [README](./README.md#working-on-it). `bun run
Setup and commands are in the [README](./README.md#development). `bun run
typecheck` must be clean — it is its own CI step, and `any` is not a way past it.

## Interchange (local)

`bun run link:intx` symlinks `@intx/*` from a sibling `../interchange` checkout
(live `intx-src`, not npm `0.2.2`). Peer dependencies still declare
`@intx/agent` and `@intx/types`.

See [ARCHITECTURE.md](./ARCHITECTURE.md) for the delivery plan and non-goals.

## Tests
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,12 @@ request timeout, cancellation, and `XAPIError` for non-2xx responses. See
git clone https://github.com/corbitsdev/x-tools.git
cd x-tools
bun install
bun run link:intx
bun run typecheck
bun run test
bun run build
```

`bun run link:intx` links a sibling Interchange checkout at `../interchange`;
it's required before `typecheck`, `test`, or `build` since `@intx/agent` and
`@intx/types` aren't published yet. See [CONTRIBUTING.md](./CONTRIBUTING.md)
and [ARCHITECTURE.md](./ARCHITECTURE.md).
See [CONTRIBUTING.md](./CONTRIBUTING.md) and [ARCHITECTURE.md](./ARCHITECTURE.md).

## License

Expand Down
38 changes: 32 additions & 6 deletions bun.lock

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

3 changes: 0 additions & 3 deletions bunfig.toml

This file was deleted.

21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,21 @@
],
"sideEffects": false,
"scripts": {
"link:intx": "bun scripts/link-intx.ts",
"typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
"typecheck": "tsc --noEmit",
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"prepack": "bun run build",
"test": "bun test --conditions intx-src src",
"test:client": "bun test --conditions intx-src src/client",
"test:tools": "bun test --conditions intx-src src/tools",
"test:coverage": "bun test --conditions intx-src --coverage src"
"test": "bun test src",
"test:client": "bun test src/client",
"test:tools": "bun test src/tools",
"test:coverage": "bun test --coverage src"
},
"peerDependencies": {
"@intx/agent": "*",
"@intx/types": "*"
},
"peerDependenciesMeta": {
"@intx/agent": { "optional": true },
"@intx/types": { "optional": true }
"@intx/agent": ">=0.4.0",
"@intx/types": ">=0.4.0"
},
"devDependencies": {
"@intx/agent": "0.4.0",
"@intx/types": "0.4.0",
"@types/bun": "1.3.14",
"@types/node": "22.10.5",
"typescript": "5.9.3"
Expand Down
37 changes: 0 additions & 37 deletions scripts/link-intx.ts

This file was deleted.

44 changes: 0 additions & 44 deletions src/shims/intx-agent.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"],
"paths": {
"@intx/agent": ["./src/shims/intx-agent.d.ts"]
},
"noEmit": false,
"declaration": true,
"declarationMap": true,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"customConditions": ["intx-src"],
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"noEmit": true,
Expand Down
8 changes: 0 additions & 8 deletions tsconfig.typecheck.json

This file was deleted.

Loading