mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(sandbox): route all assistant capabilities through the ocm tool
Add an allow-listed request action to the generated ocm plugin so agents reach settings, assistant reload, repos, git-info, workspaces, and schedules through the tool instead of curling the internal API with a bearer token, which is impossible under sandboxing. Rewrite the curl-based skills to use the ocm request action and drop the apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file and the sandbox tmpfs mask that hid it; attestation now rejects any tmpfs other than the runtime /tmp mount.
This commit is contained in:
1 parent
f6c368265f
commit
62cf04bbc9
16 files changed
+639
-460
No files matched your search
@@ -81,10 +81,7 @@ export const AssistantModeStatusSchema = z.object({
|
||||
agentsMd: AssistantModeFileSchema,
|
||||
opencodeJson: AssistantModeFileSchema,
|
||||
}),
|
||||
internalToken: z.object({
|
||||
path: z.string(),
|
||||
created: z.boolean(),
|
||||
}).optional(),
|
||||
|
||||
schedulesSkill: z.object({
|
||||
path: z.string(),
|
||||
created: z.boolean(),
|
||||
|
||||
Reference in new issue
Block a user