thaddeus 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun-bundle-plugin.ts +35 -0
- package/package.json +1 -1
package/bun-bundle-plugin.ts
CHANGED
|
@@ -124,5 +124,40 @@ plugin({
|
|
|
124
124
|
loader: 'object',
|
|
125
125
|
};
|
|
126
126
|
});
|
|
127
|
+
|
|
128
|
+
// Stub @anthropic-ai/sandbox-runtime — private Anthropic package not needed for Thaddeus
|
|
129
|
+
build.module('@anthropic-ai/sandbox-runtime', () => {
|
|
130
|
+
const noopManager = {
|
|
131
|
+
initialize: async () => {},
|
|
132
|
+
isSupportedPlatform: () => false,
|
|
133
|
+
checkDependencies: () => ({ errors: [], warnings: [] }),
|
|
134
|
+
wrapWithSandbox: async (cmd: string) => cmd,
|
|
135
|
+
updateConfig: () => {},
|
|
136
|
+
cleanupAfterCommand: () => {},
|
|
137
|
+
reset: async () => {},
|
|
138
|
+
getFsReadConfig: () => ({ allowRead: [], denyRead: [] }),
|
|
139
|
+
getFsWriteConfig: () => ({ allowWrite: ['.'], denyWrite: [] }),
|
|
140
|
+
getNetworkRestrictionConfig: () => ({ allowedDomains: [], deniedDomains: [] }),
|
|
141
|
+
getIgnoreViolations: () => undefined,
|
|
142
|
+
getEnableWeakerNestedSandbox: () => undefined,
|
|
143
|
+
getAllowUnixSockets: () => undefined,
|
|
144
|
+
getAllowLocalBinding: () => undefined,
|
|
145
|
+
getProxyPort: () => undefined,
|
|
146
|
+
getSocksProxyPort: () => undefined,
|
|
147
|
+
getLinuxHttpSocketPath: () => undefined,
|
|
148
|
+
getLinuxSocksSocketPath: () => undefined,
|
|
149
|
+
waitForNetworkInitialization: async () => false,
|
|
150
|
+
getSandboxViolationStore: () => ({ getViolations: () => [], clearViolations: () => {} }),
|
|
151
|
+
annotateStderrWithSandboxFailures: (_cmd: string, stderr: string) => stderr,
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
exports: {
|
|
155
|
+
SandboxManager: noopManager,
|
|
156
|
+
SandboxRuntimeConfigSchema: { parse: (x: any) => x },
|
|
157
|
+
SandboxViolationStore: class { getViolations() { return []; } clearViolations() {} },
|
|
158
|
+
},
|
|
159
|
+
loader: 'object',
|
|
160
|
+
};
|
|
161
|
+
});
|
|
127
162
|
},
|
|
128
163
|
});
|