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
12 changes: 0 additions & 12 deletions bun.lock

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

1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"@opencode-ai/ai": "workspace:*",
"@opencode-ai/schema": "workspace:*",
"@opencode-ai/plugin": "workspace:*",
"@opencode-ai/shell-scan": "workspace:*",
"@opencode-ai/util": "workspace:*",
"@standard-schema/spec": "catalog:",
"@parcel/watcher": "2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/shell/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const scanLegacy = Effect.fnUntraced(function* (command: string, shell: string,
})

async function scanPortable(command: string, shell: string, cwd: string) {
const { ShellScan } = await import("@opencode-ai/shell-scan")
const { ShellScan } = await import("./scan.js")
const powershell = ShellSelect.ps(shell)
const result = powershell ? ShellScan.scanPowerShell(command) : ShellScan.scan(command)
if (result.kind === "opaque") return { commands: [{ resource: command, save: command }], directories: [] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * as ShellScan from "./index.js"
export * as ShellScan from "./scan.js"

export type OpaqueReason =
| "command-substitution"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/shell-parse-parity.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "@opencode-ai/shell-scan"
import { Effect } from "effect"
import { ShellParse } from "../src/shell/parse.js"
import { ShellScan } from "../src/shell/scan.js"

describe("ShellParse portable parity", () => {
test("matches tree-sitter for generated supported syntax", async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "../src/index.js"
import { ShellScan } from "../../src/shell/scan.js"

describe("ShellScan adversarial corpus", () => {
test.each([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "../src/index.js"
import { ShellScan } from "../../src/shell/scan.js"

const opaque = ["$COMMAND hidden", "$(printf command) hidden", 'printf "unterminated'] as const
const contexts = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "../src/index.js"
import { ShellScan } from "../../src/shell/scan.js"

const staticCommands = [
["git status", ["git", "status"]],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "../src/index.js"
import { ShellScan } from "../../src/shell/scan.js"

describe("ShellScan structural mutation closure", () => {
test.each([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ShellScan } from "../src/index.js"
import { ShellScan } from "../../src/shell/scan.js"

describe("ShellScan", () => {
test("scans a static command", () => {
Expand Down
31 changes: 0 additions & 31 deletions packages/shell-scan/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/shell-scan/script/build.ts

This file was deleted.

46 changes: 0 additions & 46 deletions packages/shell-scan/script/publish.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/shell-scan/tsconfig.build.json

This file was deleted.

12 changes: 0 additions & 12 deletions packages/shell-scan/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions script/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ await $`bun ./packages/ai/script/publish.ts`
console.log("\n=== util ===\n")
await $`bun ./packages/util/script/publish.ts`

console.log("\n=== shell scan ===\n")
await $`bun ./packages/shell-scan/script/publish.ts`

console.log("\n=== protocol ===\n")
await $`bun ./packages/protocol/script/publish.ts`

Expand Down
Loading