-
Notifications
You must be signed in to change notification settings - Fork 650
think: Extract the legacy Shell workspace #2073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2052d57
think: Extract the legacy Shell workspace
0d32eb0
examples/assistant: Select legacy workspace
123788b
examples/agent-skills: Adapt workspace scripts
0e204a8
think-starters: Adapt workspace scripts
fd6c167
think: Add legacy workspace changeset
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@cloudflare/think": minor | ||
| --- | ||
|
|
||
| Extract the existing Shell storage, snapshot Bash, and codemode state behavior into `@cloudflare/think/workspace-shell-legacy`. Think now consumes a narrow filesystem and runtime contract while the legacy workspace remains the default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Newly scaffolded projects fail their own checks because the generated agent file is only half-migrated
The generated starter agent still hands the raw workspace to the skill script runner (
workspaceInstance: this.workspaceatpackages/think/src/cli/init.ts:433) even though the new adapter is imported at the top of the same generated file, so every freshly scaffolded project ships with an unused import and a value the runner's interface does not accept.Impact: Users who scaffold a new project get code that fails the project's own lint/typecheck (
npm run check) out of the box.Incomplete mechanical migration of the skills runner call
The PR migrated every other call site to
createWorkspaceOperations(this.workspace)(examples/agent-skills/src/server.ts:26,think-starters/coding-agent/agents/coder/agent.ts:50,think-starters/customer-support/agents/support/agent.ts:51), but the CLI template atpackages/think/src/cli/init.ts:411only added the import while line 433 still passesthis.workspace.Think.workspaceis now typedThinkWorkspace(packages/think/src/think.ts:2880), which exposes onlyfs/runtimeand does not structurally satisfySkillWorkspace(readFile/writeFile/readDir/glob/stat, seepackages/agents/src/skills/runner.ts:18-24). The generated project'stypecheckscript therefore fails, andoxlintflags the unusedcreateWorkspaceOperationsimport (no-unused-varsis an error per AGENTS.md), so the generatedcheckscript fails.(Refers to line 433)
Was this helpful? React with 👍 or 👎 to provide feedback.