Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Codemode is a Bun workspace. It was called runline through 0.45; see [Migrate fr
| [`packages/codemode-powershell`](packages/codemode-powershell) | The `powershell` plugin as a package, published as `@shiftlabs/codemode-powershell` |
| [`packages/codemode-duckdb`](packages/codemode-duckdb) | The `duckdb` plugin as a package, published as `@shiftlabs/codemode-duckdb` |
| [`packages/codemode-node`](packages/codemode-node) | The `node` plugin as a package, published as `@shiftlabs/codemode-node` |
| [`packages/codemode-websearch`](packages/codemode-websearch) | The `websearch` plugin as a package, published as `@shiftlabs/codemode-websearch` |
| [`packages/package-tests`](packages/package-tests) | What the tests of those packages share. Not published |
| [`packages/runline`](packages/runline) | The `runline` package on npm, which forwards to codemode until 0.48.0 |

Expand Down
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
"!packages/codemode-plugins/oura",
"!packages/codemode-plugins/paddle",
"!packages/codemode-plugins/pagerduty",
"!packages/codemode-plugins/parallel",
"!packages/codemode-plugins/paypal",
"!packages/codemode-plugins/peekalink",
"!packages/codemode-plugins/phantombuster",
Expand Down
17 changes: 17 additions & 0 deletions bun.lock

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

3 changes: 1 addition & 2 deletions docs/bundled-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Codemode ships with plugins for SaaS, DevOps, productivity, and image-generation APIs. They are part of the `codemode` package and need no installation.

Host capabilities are separate packages to install: [`codemode-node`](../packages/codemode-node/README.md) for Node.js scripts, [`codemode-bash`](../packages/codemode-bash/README.md) and [`codemode-powershell`](../packages/codemode-powershell/README.md) for commands, and [`codemode-duckdb`](../packages/codemode-duckdb/README.md) for SQL.
Host capabilities are separate packages to install: [`codemode-node`](../packages/codemode-node/README.md) for Node.js scripts, [`codemode-bash`](../packages/codemode-bash/README.md) and [`codemode-powershell`](../packages/codemode-powershell/README.md) for commands, and [`codemode-duckdb`](../packages/codemode-duckdb/README.md) for SQL. Web search across providers is the [`codemode-websearch`](../packages/codemode-websearch/README.md) package.

A bundled plugin becomes available to `codemode exec` once it has a connection. The last column lists each required connection field and, in parentheses, the environment variable that can supply it:

Expand Down Expand Up @@ -159,7 +159,6 @@ A plugin that uses OAuth shows the `codemode auth` command that connects it. See
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/oura.svg" width="16" height="16" style="vertical-align: middle"> **oura** | 4 | profile, summary | `accessToken` (`OURA_ACCESS_TOKEN`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/paddle.svg" width="16" height="16" style="vertical-align: middle"> **paddle** | 9 | coupon, payment, plan, product, user | `vendorId` (`PADDLE_VENDOR_ID`), `vendorAuthCode` (`PADDLE_VENDOR_AUTH_CODE`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/pagerduty.svg" width="16" height="16" style="vertical-align: middle"> **pagerduty** | 9 | incident, incidentNote, logEntry, user | `apiToken` (`PAGERDUTY_API_TOKEN`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/parallel.svg" width="16" height="16" style="vertical-align: middle"> **parallel** | 1 | search | `apiKey` (`PARALLEL_API_KEY`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/paypal.svg" width="16" height="16" style="vertical-align: middle"> **paypal** | 4 | payout, payoutItem | `clientId` (`PAYPAL_CLIENT_ID`), `secret` (`PAYPAL_SECRET`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/peekalink.png" width="16" height="16" style="vertical-align: middle"> **peekalink** | 2 | link | `apiKey` (`PEEKALINK_API_KEY`) |
| <img src="https://raw.githubusercontent.com/shift-labs-ai/codemode/main/packages/codemode-plugins/icons/phantombuster.png" width="16" height="16" style="vertical-align: middle"> **phantombuster** | 5 | agent | `apiKey` (`PHANTOMBUSTER_API_KEY`) |
Expand Down
14 changes: 14 additions & 0 deletions docs/migrating-from-runline.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ codemode install npm:@shiftlabs/codemode-node
- The actions that each wrapped one function, such as `node.fs.readFile`, `node.path.join`, and `node.fetch`, are gone. Run a script that calls the function instead: `node.run({ command: 'console.log(require("node:fs").readFileSync("notes.txt", "utf8"))' })`.
- `node.process.exec` and `node.process.execFile` are gone. Run commands with `bash.run` from [`codemode-bash`](../packages/codemode-bash/README.md) or `powershell.run` from [`codemode-powershell`](../packages/codemode-powershell/README.md).

## Install web search

After 0.46.0 the bundled `parallel` plugin is gone. Web search is a package that searches through Parallel and eleven other providers:

```bash
codemode install npm:@shiftlabs/codemode-websearch
```

- `PARALLEL_API_KEY` keeps working. A `parallel` connection belongs to the removed plugin: add the key again with `codemode connection add websearch --plugin websearch --set parallelApiKey=$PARALLEL_API_KEY`.
- `parallel.search({ objective, search_queries })` becomes `websearch.query({ query })`, which takes one query and answers `{ provider, results }`. Each result has `title`, `url`, and `content`, where `parallel.search` answered `excerpts`.
- `processor` and `max_chars_per_result` have no counterpart. `max_results` is `numResults`.

See [`codemode-websearch`](../packages/codemode-websearch/README.md).

## Understand what did not move

`pi-runline`, the Pi extension, keeps its name and lives at [Michaelliv/pi-runline](https://github.com/Michaelliv/pi-runline). It runs runline 0.45 and reads only `.runline` folders, so keep a project's folder named `.runline` while you use the project from Pi.
1 change: 0 additions & 1 deletion packages/codemode-plugins/icons/parallel.svg

This file was deleted.

20 changes: 0 additions & 20 deletions packages/codemode-plugins/parallel/src/credentials.ts

This file was deleted.

136 changes: 0 additions & 136 deletions packages/codemode-plugins/parallel/src/index.ts

This file was deleted.

Loading