@alumbwe/anvil 1.0.36 → 1.0.40
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/package.json +1 -1
- package/src/agents/bundled-agents.generated.ts +16 -16
- package/src/components/anvil-landing-screen.tsx +1 -1
- package/src/login/constants.ts +1 -1
- package/src/utils/anvil-session-api.ts +1 -1
- package/src/utils/error-handling.ts +1 -1
- package/vendor/@anvil/common/src/constants/auth.ts +1 -1
- package/vendor/@anvil/sdk/dist/index.cjs +2 -2
- package/vendor/@anvil/sdk/dist/index.cjs.map +3 -3
- package/vendor/@anvil/sdk/dist/index.d.ts +2 -2
- package/vendor/@anvil/sdk/dist/index.mjs +2 -2
- package/vendor/@anvil/sdk/dist/index.mjs.map +3 -3
- package/bin/anvil +0 -41
package/bin/anvil
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// Anvil CLI entry point
|
|
3
|
-
// Module resolution must find vendored @anvil/* packages
|
|
4
|
-
|
|
5
|
-
import { dirname, join } from 'path'
|
|
6
|
-
import { fileURLToPath } from 'url'
|
|
7
|
-
import { chdir, env } from 'process'
|
|
8
|
-
import { existsSync } from 'fs'
|
|
9
|
-
|
|
10
|
-
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
11
|
-
const packageRoot = join(__dirname, '..')
|
|
12
|
-
|
|
13
|
-
// Store the original CWD for the CLI to use as project root
|
|
14
|
-
const originalCwd = process.cwd()
|
|
15
|
-
env.ANVIL_ORIGINAL_CWD = originalCwd
|
|
16
|
-
|
|
17
|
-
// Change to package directory
|
|
18
|
-
chdir(packageRoot)
|
|
19
|
-
|
|
20
|
-
// Verify vendored packages exist
|
|
21
|
-
const vendorRoot = join(packageRoot, 'vendor')
|
|
22
|
-
const commonVendor = join(vendorRoot, '@anvil', 'common')
|
|
23
|
-
const sdkVendor = join(vendorRoot, '@anvil', 'sdk')
|
|
24
|
-
|
|
25
|
-
if (!existsSync(commonVendor) || !existsSync(sdkVendor)) {
|
|
26
|
-
console.error('Error: Vendored dependencies missing. Package may be corrupted.')
|
|
27
|
-
console.error(`Expected: ${commonVendor}`)
|
|
28
|
-
console.error(`Try reinstalling: npm uninstall -g @alumbwe/anvil && npm install -g @alumbwe/anvil`)
|
|
29
|
-
process.exit(1)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Set up Bun's module resolution to find vendored packages
|
|
33
|
-
// This ensures imports like '@anvil/common/*' resolve to vendor/@anvil/common/src/*
|
|
34
|
-
env.BUN_CONFIG_PATHS = JSON.stringify({
|
|
35
|
-
'@anvil/common': [join(commonVendor, 'src', 'index.ts')],
|
|
36
|
-
'@anvil/common/*': [join(commonVendor, 'src', '*')],
|
|
37
|
-
'@anvil/sdk': [join(sdkVendor, 'dist', 'index.mjs')],
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
// Import entry point
|
|
41
|
-
await import('../src/entry.ts')
|