stacks 0.58.73 → 0.59.2
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/buddy/build.ts +38 -0
- package/{core/buddy → buddy}/compile.ts +1 -1
- package/buddy/dist/chunk-d2428b387d843985.js +2016 -0
- package/buddy/dist/cli.d.ts +1 -0
- package/{core/buddy → buddy}/dist/cli.js +23 -9
- package/buddy/dist/commands/build.d.ts +2 -0
- package/buddy/dist/commands/changelog.d.ts +2 -0
- package/buddy/dist/commands/clean.d.ts +2 -0
- package/buddy/dist/commands/cloud.d.ts +2 -0
- package/buddy/dist/commands/commit.d.ts +2 -0
- package/buddy/dist/commands/configure.d.ts +2 -0
- package/buddy/dist/commands/create.d.ts +2 -0
- package/buddy/dist/commands/deploy.d.ts +2 -0
- package/buddy/dist/commands/dev.d.ts +3 -0
- package/buddy/dist/commands/dns.d.ts +2 -0
- package/buddy/dist/commands/domains.d.ts +2 -0
- package/buddy/dist/commands/fresh.d.ts +2 -0
- package/buddy/dist/commands/generate.d.ts +2 -0
- package/buddy/dist/commands/http.d.ts +2 -0
- package/buddy/dist/commands/index.d.ts +31 -0
- package/buddy/dist/commands/install.d.ts +2 -0
- package/buddy/dist/commands/key.d.ts +2 -0
- package/buddy/dist/commands/lint.d.ts +2 -0
- package/buddy/dist/commands/list.d.ts +2 -0
- package/buddy/dist/commands/make.d.ts +2 -0
- package/buddy/dist/commands/migrate.d.ts +2 -0
- package/buddy/dist/commands/ports.d.ts +2 -0
- package/buddy/dist/commands/prepublish.d.ts +2 -0
- package/buddy/dist/commands/projects.d.ts +2 -0
- package/buddy/dist/commands/release.d.ts +2 -0
- package/buddy/dist/commands/seed.d.ts +2 -0
- package/buddy/dist/commands/setup.d.ts +4 -0
- package/buddy/dist/commands/test.d.ts +2 -0
- package/buddy/dist/commands/tinker.d.ts +2 -0
- package/buddy/dist/commands/types.d.ts +2 -0
- package/buddy/dist/commands/upgrade.d.ts +2 -0
- package/buddy/dist/commands/version.d.ts +2 -0
- package/buddy/dist/index.d.ts +1 -0
- package/{core/buddy → buddy}/dist/index.js +2 -5
- package/{core/buddy → buddy}/dist/stacks +0 -0
- package/{core/buddy → buddy}/package.json +1 -3
- package/{core/buddy → buddy}/src/cli.ts +18 -13
- package/{core/buddy → buddy}/src/commands/add.ts +1 -1
- package/{core/buddy → buddy}/src/commands/commit.ts +1 -1
- package/{core/buddy → buddy}/src/commands/deploy.ts +1 -1
- package/{core/buddy → buddy}/src/commands/dev.ts +1 -3
- package/{core/buddy → buddy}/src/commands/index.ts +0 -1
- package/{core/buddy → buddy}/src/commands/list.ts +1 -1
- package/{core/buddy → buddy}/src/commands/make.ts +28 -2
- package/buddy/src/commands/ports.ts +180 -0
- package/{core/buddy → buddy}/src/commands/prepublish.ts +1 -1
- package/{core/buddy → buddy}/src/commands/projects.ts +2 -3
- package/{core/buddy → buddy}/src/commands/setup.ts +1 -0
- package/{core/buddy → buddy}/src/commands/types.ts +1 -1
- package/buddy/tsconfig.tsbuildinfo +1 -0
- package/package.json +285 -285
- package/core/.simple-git-hooks.js +0 -3
- package/core/actions/README.md +0 -58
- package/core/actions/build.ts +0 -5
- package/core/actions/dist/src/add.js +0 -29
- package/core/actions/dist/src/build/component-libs.js +0 -6
- package/core/actions/dist/src/build/core.js +0 -21
- package/core/actions/dist/src/build/stacks.js +0 -8
- package/core/actions/dist/src/build.js +0 -219
- package/core/actions/dist/src/bump.js +0 -14
- package/core/actions/dist/src/changelog.js +0 -17
- package/core/actions/dist/src/clean.js +0 -6
- package/core/actions/dist/src/commit.js +0 -17
- package/core/actions/dist/src/copy-types.js +0 -14
- package/core/actions/dist/src/database/seed.js +0 -1
- package/core/actions/dist/src/deploy/index.js +0 -31
- package/core/actions/dist/src/dev/components.js +0 -11
- package/core/actions/dist/src/dev/docs.js +0 -7
- package/core/actions/dist/src/dev/index.js +0 -92
- package/core/actions/dist/src/examples.js +0 -43
- package/core/actions/dist/src/fresh.js +0 -18
- package/core/actions/dist/src/generate/component-meta.js +0 -59
- package/core/actions/dist/src/generate/ide-helpers.js +0 -91
- package/core/actions/dist/src/generate/index.js +0 -154
- package/core/actions/dist/src/generate/lib-entries.js +0 -170
- package/core/actions/dist/src/generate/vscode-custom-data.js +0 -91
- package/core/actions/dist/src/helpers/component-meta.js +0 -50
- package/core/actions/dist/src/helpers/index.js +0 -48
- package/core/actions/dist/src/helpers/lib-entries.js +0 -161
- package/core/actions/dist/src/helpers/package-json.js +0 -136
- package/core/actions/dist/src/helpers/utils.js +0 -48
- package/core/actions/dist/src/helpers/vscode-custom-data.js +0 -83
- package/core/actions/dist/src/index.js +0 -590
- package/core/actions/dist/src/key-generate.js +0 -10
- package/core/actions/dist/src/lint/fix.js +0 -12
- package/core/actions/dist/src/lint/index.js +0 -17
- package/core/actions/dist/src/make.js +0 -291
- package/core/actions/dist/src/prepublish.js +0 -14
- package/core/actions/dist/src/release.js +0 -559
- package/core/actions/dist/src/test/coverage.js +0 -6
- package/core/actions/dist/src/test/feature.js +0 -6
- package/core/actions/dist/src/test/ui.js +0 -6
- package/core/actions/dist/src/test/unit.js +0 -6
- package/core/actions/dist/src/test.js +0 -6
- package/core/actions/dist/src/tinker.js +0 -5
- package/core/actions/dist/src/typecheck.js +0 -6
- package/core/actions/dist/src/types.js +0 -21
- package/core/actions/dist/src/upgrade/dependencies.js +0 -6
- package/core/actions/dist/src/upgrade/framework.js +0 -1
- package/core/actions/dist/src/upgrade/index.js +0 -58
- package/core/actions/dist/src/upgrade.js +0 -47
- package/core/actions/package.json +0 -92
- package/core/actions/src/action.ts +0 -52
- package/core/actions/src/actions.ts +0 -2
- package/core/actions/src/add.ts +0 -27
- package/core/actions/src/ai/request-model-access.ts +0 -74
- package/core/actions/src/build/cli.ts +0 -7
- package/core/actions/src/build/component-libs.ts +0 -5
- package/core/actions/src/build/core.ts +0 -34
- package/core/actions/src/build/desktop.ts +0 -7
- package/core/actions/src/build/docs.ts +0 -7
- package/core/actions/src/build/server.ts +0 -9
- package/core/actions/src/build/stacks.ts +0 -7
- package/core/actions/src/build.ts +0 -89
- package/core/actions/src/bump.ts +0 -18
- package/core/actions/src/cdn/invalidate-cache.ts +0 -27
- package/core/actions/src/changelog.ts +0 -21
- package/core/actions/src/check/ports.ts +0 -24
- package/core/actions/src/clean.ts +0 -6
- package/core/actions/src/commit.ts +0 -14
- package/core/actions/src/copy-types.ts +0 -22
- package/core/actions/src/database/fields.ts +0 -111
- package/core/actions/src/database/migration-mysql.ts +0 -72
- package/core/actions/src/database/migration-sqlite.ts +0 -67
- package/core/actions/src/database/migration.ts +0 -10
- package/core/actions/src/database/seed.ts +0 -4
- package/core/actions/src/database/user-migration.ts +0 -20
- package/core/actions/src/deploy/create-receipt-rule.ts +0 -55
- package/core/actions/src/deploy/index.ts +0 -46
- package/core/actions/src/dev/api.ts +0 -18
- package/core/actions/src/dev/components.ts +0 -14
- package/core/actions/src/dev/dashboard.ts +0 -7
- package/core/actions/src/dev/desktop.ts +0 -7
- package/core/actions/src/dev/docs.ts +0 -7
- package/core/actions/src/dev/index.ts +0 -48
- package/core/actions/src/dev/system-tray.ts +0 -6
- package/core/actions/src/dev/views.ts +0 -7
- package/core/actions/src/domains/add.ts +0 -67
- package/core/actions/src/domains/purchase.ts +0 -76
- package/core/actions/src/domains/remove.ts +0 -38
- package/core/actions/src/examples.ts +0 -46
- package/core/actions/src/find-projects.ts +0 -21
- package/core/actions/src/fresh.ts +0 -20
- package/core/actions/src/generate/action-types.ts +0 -25
- package/core/actions/src/generate/caddyfile.ts +0 -44
- package/core/actions/src/generate/component-meta.ts +0 -19
- package/core/actions/src/generate/custom-cli-file.ts +0 -24
- package/core/actions/src/generate/env-files.ts +0 -89
- package/core/actions/src/generate/ide-helpers.ts +0 -18
- package/core/actions/src/generate/index.ts +0 -140
- package/core/actions/src/generate/lib-entries.ts +0 -18
- package/core/actions/src/generate/model-classes.ts +0 -299
- package/core/actions/src/generate/model-generate.ts +0 -12
- package/core/actions/src/generate/pkgx-file.ts +0 -72
- package/core/actions/src/generate/symlink-core.ts +0 -3
- package/core/actions/src/generate/types.ts +0 -6
- package/core/actions/src/generate/vscode-custom-data.ts +0 -19
- package/core/actions/src/generate/web-types.ts +0 -2
- package/core/actions/src/helpers/component-meta.ts +0 -93
- package/core/actions/src/helpers/index.ts +0 -1
- package/core/actions/src/helpers/lib-entries.ts +0 -139
- package/core/actions/src/helpers/package-json.ts +0 -96
- package/core/actions/src/helpers/utils.ts +0 -70
- package/core/actions/src/helpers/vscode-custom-data.ts +0 -35
- package/core/actions/src/index.ts +0 -29
- package/core/actions/src/key-generate.ts +0 -10
- package/core/actions/src/lint/fix.ts +0 -13
- package/core/actions/src/lint/index.ts +0 -27
- package/core/actions/src/make.ts +0 -322
- package/core/actions/src/migrate/database.ts +0 -1
- package/core/actions/src/migrate/dns.ts +0 -3
- package/core/actions/src/prepublish.ts +0 -17
- package/core/actions/src/release.ts +0 -18
- package/core/actions/src/start-caddy.ts +0 -13
- package/core/actions/src/test/coverage.ts +0 -5
- package/core/actions/src/test/feature.ts +0 -5
- package/core/actions/src/test/ui.ts +0 -5
- package/core/actions/src/test/unit.ts +0 -5
- package/core/actions/src/test.ts +0 -5
- package/core/actions/src/tinker.ts +0 -10
- package/core/actions/src/typecheck.ts +0 -5
- package/core/actions/src/types.ts +0 -20
- package/core/actions/src/upgrade/binary.ts +0 -43
- package/core/actions/src/upgrade/bun.ts +0 -4
- package/core/actions/src/upgrade/dependencies.ts +0 -0
- package/core/actions/src/upgrade/framework.ts +0 -30
- package/core/actions/src/upgrade/index.ts +0 -28
- package/core/actions/src/upgrade/shell.ts +0 -64
- package/core/actions/src/upgrade.ts +0 -68
- package/core/actions/tests/example.test.ts +0 -5
- package/core/ai/README.md +0 -67
- package/core/ai/build.ts +0 -9
- package/core/ai/dist/index.js +0 -10624
- package/core/ai/package.json +0 -60
- package/core/ai/src/chatbots.ts +0 -0
- package/core/ai/src/image-generation.ts +0 -0
- package/core/ai/src/index.ts +0 -8
- package/core/ai/src/personalization.ts +0 -0
- package/core/ai/src/search.ts +0 -0
- package/core/ai/src/text-generation.ts +0 -0
- package/core/ai/src/text-summary.ts +0 -0
- package/core/ai/src/utils/client-bedrock-runtime.ts +0 -38
- package/core/ai/src/utils/client-bedrock.ts +0 -53
- package/core/ai/tests/example.test.ts +0 -5
- package/core/ai/tsconfig.json +0 -3
- package/core/alias/README.md +0 -53
- package/core/alias/build.ts +0 -8
- package/core/alias/dist/index.js +0 -218
- package/core/alias/package.json +0 -52
- package/core/alias/src/index.ts +0 -220
- package/core/alias/tests/example.test.ts +0 -5
- package/core/alias/tsconfig.json +0 -3
- package/core/analytics/README.md +0 -55
- package/core/analytics/build.ts +0 -8
- package/core/analytics/dist/index.js +0 -5
- package/core/analytics/package.json +0 -55
- package/core/analytics/src/drivers/fathom.ts +0 -1
- package/core/analytics/src/drivers/index.ts +0 -1
- package/core/analytics/src/index.ts +0 -1
- package/core/analytics/tests/example.test.ts +0 -5
- package/core/analytics/tsconfig.json +0 -3
- package/core/api/build.ts +0 -7
- package/core/api/dist/index.js +0 -639
- package/core/api/package.json +0 -61
- package/core/api/src/index.ts +0 -115
- package/core/api/tsconfig.json +0 -3
- package/core/arrays/README.md +0 -59
- package/core/arrays/build.ts +0 -8
- package/core/arrays/dist/index.js +0 -469
- package/core/arrays/package.json +0 -60
- package/core/arrays/src/arr.ts +0 -3
- package/core/arrays/src/contains.ts +0 -87
- package/core/arrays/src/helpers.ts +0 -272
- package/core/arrays/src/index.ts +0 -3
- package/core/arrays/src/macro.ts +0 -131
- package/core/arrays/src/math.ts +0 -220
- package/core/arrays/tests/example.test.ts +0 -5
- package/core/arrays/tsconfig.json +0 -3
- package/core/auth/README.md +0 -59
- package/core/auth/build.ts +0 -8
- package/core/auth/dist/index.js +0 -5
- package/core/auth/package.json +0 -51
- package/core/auth/src/index.ts +0 -1
- package/core/auth/tests/example.test.ts +0 -5
- package/core/auth/tsconfig.json +0 -3
- package/core/buddy/build.ts +0 -8
- package/core/buddy/dist/chunk-1a569f35f66ae151.js +0 -10945
- package/core/buddy/dist/chunk-bf054cfbc9cf2201.js +0 -993
- package/core/buddy/src/commands/check.ts +0 -45
- package/core/buddy/src/commands/ports.ts +0 -73
- package/core/buddy/tsconfig.json +0 -3
- package/core/build/README.md +0 -59
- package/core/build/build.ts +0 -8
- package/core/build/dist/index.js +0 -19
- package/core/build/package.json +0 -64
- package/core/build/src/index.ts +0 -11
- package/core/build/tests/example.test.ts +0 -5
- package/core/build/tsconfig.json +0 -3
- package/core/build/web-types.config.cjs +0 -5
- package/core/build/web-types.ts +0 -15
- package/core/bun-create/bud/README.md +0 -45
- package/core/bun-create/bud/package.json +0 -151
- package/core/bun-create/buddy/README.md +0 -45
- package/core/bun-create/buddy/package.json +0 -150
- package/core/bun-create/stack/README.md +0 -45
- package/core/bun-create/stack/package.json +0 -150
- package/core/bun-create/stacks/README.md +0 -45
- package/core/bun-create/stacks/package.json +0 -150
- package/core/bun-create/stx/README.md +0 -45
- package/core/bun-create/stx/package.json +0 -151
- package/core/bun-plugin-yml/README.md +0 -56
- package/core/bun-plugin-yml/TODO.md +0 -1
- package/core/bun-plugin-yml/build.ts +0 -8
- package/core/bun-plugin-yml/dist/index.js +0 -2762
- package/core/bun-plugin-yml/package.json +0 -62
- package/core/bun-plugin-yml/src/index.ts +0 -21
- package/core/bun-plugin-yml/tests/example.test.ts +0 -5
- package/core/bun-plugin-yml/tsconfig.json +0 -3
- package/core/cache/README.md +0 -59
- package/core/cache/build.ts +0 -8
- package/core/cache/dist/index.js +0 -88
- package/core/cache/package.json +0 -66
- package/core/cache/src/drivers/dynamodb.ts +0 -119
- package/core/cache/src/drivers/index.ts +0 -2
- package/core/cache/src/drivers/redis.ts +0 -37
- package/core/cache/src/index.ts +0 -1
- package/core/cache/tests/DynamoDB.test.ts +0 -135
- package/core/cache/tests/Memcached.test.ts +0 -51
- package/core/cache/tests/Redis.test.ts +0 -84
- package/core/cache/tsconfig.json +0 -3
- package/core/chat/README.md +0 -83
- package/core/chat/build.ts +0 -8
- package/core/chat/dist/index.js +0 -42
- package/core/chat/package.json +0 -74
- package/core/chat/src/drivers/discord.ts +0 -15
- package/core/chat/src/drivers/slack.ts +0 -24
- package/core/chat/src/drivers/teams.ts +0 -24
- package/core/chat/src/index.ts +0 -3
- package/core/chat/tests/example.test.ts +0 -5
- package/core/chat/tsconfig.json +0 -3
- package/core/cli/README.md +0 -168
- package/core/cli/build.ts +0 -8
- package/core/cli/dist/index.js +0 -780
- package/core/cli/package.json +0 -92
- package/core/cli/src/actions/index.ts +0 -1
- package/core/cli/src/actions/install.ts +0 -40
- package/core/cli/src/cli.ts +0 -30
- package/core/cli/src/command.ts +0 -47
- package/core/cli/src/console.ts +0 -79
- package/core/cli/src/exec.ts +0 -114
- package/core/cli/src/helpers.ts +0 -80
- package/core/cli/src/index.ts +0 -10
- package/core/cli/src/parse.ts +0 -179
- package/core/cli/src/run.ts +0 -99
- package/core/cli/src/spinner.ts +0 -3
- package/core/cli/src/utils.ts +0 -82
- package/core/cli/tests/example.test.ts +0 -5
- package/core/cli/tsconfig.json +0 -3
- package/core/cloud/README.md +0 -67
- package/core/cloud/build.ts +0 -12
- package/core/cloud/dist/index.js +0 -2013
- package/core/cloud/dist/origin-request.js +0 -27
- package/core/cloud/package.json +0 -113
- package/core/cloud/src/cloud/ai.ts +0 -94
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +0 -386
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +0 -15
- package/core/cloud/src/cloud/cache.ts +0 -0
- package/core/cloud/src/cloud/cdn.ts +0 -427
- package/core/cloud/src/cloud/cli.ts +0 -45
- package/core/cloud/src/cloud/compute.ts +0 -212
- package/core/cloud/src/cloud/dashboard.ts +0 -86
- package/core/cloud/src/cloud/database.ts +0 -0
- package/core/cloud/src/cloud/deployment.ts +0 -41
- package/core/cloud/src/cloud/dns.ts +0 -42
- package/core/cloud/src/cloud/docs.ts +0 -51
- package/core/cloud/src/cloud/email.ts +0 -339
- package/core/cloud/src/cloud/file-system.ts +0 -35
- package/core/cloud/src/cloud/index.ts +0 -135
- package/core/cloud/src/cloud/jump-box.ts +0 -48
- package/core/cloud/src/cloud/lambda/ask/index.js +0 -35
- package/core/cloud/src/cloud/lambda/cli-setup/index.js +0 -67
- package/core/cloud/src/cloud/lambda/summarize/index.js +0 -35
- package/core/cloud/src/cloud/network.ts +0 -32
- package/core/cloud/src/cloud/permissions.ts +0 -33
- package/core/cloud/src/cloud/queue.ts +0 -142
- package/core/cloud/src/cloud/redirects.ts +0 -45
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +0 -15
- package/core/cloud/src/cloud/search-engine.ts +0 -108
- package/core/cloud/src/cloud/security.ts +0 -259
- package/core/cloud/src/cloud/storage.ts +0 -168
- package/core/cloud/src/edge/origin-request.ts +0 -49
- package/core/cloud/src/helpers.ts +0 -609
- package/core/cloud/src/index.ts +0 -2
- package/core/cloud/src/types.ts +0 -28
- package/core/cloud/tests/example.test.ts +0 -5
- package/core/cloud/tsconfig.json +0 -3
- package/core/cloud/zip.ts +0 -17
- package/core/collections/README.md +0 -71
- package/core/collections/build.ts +0 -8
- package/core/collections/dist/index.js +0 -6
- package/core/collections/package.json +0 -58
- package/core/collections/src/index.ts +0 -1
- package/core/collections/tests/example.test.ts +0 -5
- package/core/collections/tsconfig.json +0 -3
- package/core/config/README.md +0 -71
- package/core/config/build.ts +0 -8
- package/core/config/dist/index.js +0 -1823
- package/core/config/package.json +0 -54
- package/core/config/src/config.ts +0 -39
- package/core/config/src/defaults.ts +0 -481
- package/core/config/src/helpers.ts +0 -256
- package/core/config/src/index.ts +0 -2
- package/core/config/src/overrides.ts +0 -51
- package/core/config/tests/example.test.ts +0 -5
- package/core/config/tsconfig.json +0 -3
- package/core/custom-elements.json +0 -4
- package/core/database/README.md +0 -59
- package/core/database/build.ts +0 -8
- package/core/database/dist/index.js +0 -200
- package/core/database/package.json +0 -79
- package/core/database/src/index.ts +0 -63
- package/core/database/src/kysely-bun-worker/driver.ts +0 -144
- package/core/database/src/kysely-bun-worker/index.ts +0 -46
- package/core/database/src/kysely-bun-worker/mitt.ts +0 -24
- package/core/database/src/kysely-bun-worker/type.ts +0 -40
- package/core/database/src/kysely-bun-worker/worker.ts +0 -52
- package/core/database/src/migrations/index.ts +0 -73
- package/core/database/src/seeder/index.ts +0 -79
- package/core/database/tests/example.test.ts +0 -5
- package/core/database/tsconfig.json +0 -3
- package/core/datetime/README.md +0 -66
- package/core/datetime/build.ts +0 -8
- package/core/datetime/dist/index.js +0 -9
- package/core/datetime/package.json +0 -57
- package/core/datetime/src/index.ts +0 -7
- package/core/datetime/tests/example.test.ts +0 -5
- package/core/datetime/tsconfig.json +0 -3
- package/core/desktop/README.md +0 -49
- package/core/desktop/build.ts +0 -8
- package/core/desktop/dist/index.js +0 -3081
- package/core/desktop/package.json +0 -83
- package/core/desktop/src/index.ts +0 -43
- package/core/desktop/src/system-tray.ts +0 -1
- package/core/desktop/tests/example.test.ts +0 -5
- package/core/desktop/tsconfig.json +0 -3
- package/core/development/README.md +0 -27
- package/core/development/build.ts +0 -8
- package/core/development/dist/index.js +0 -6
- package/core/development/package.json +0 -77
- package/core/development/src/index.ts +0 -0
- package/core/development/tests/example.test.ts +0 -5
- package/core/development/tsconfig.json +0 -3
- package/core/dns/README.md +0 -56
- package/core/dns/build.ts +0 -8
- package/core/dns/dist/index.js +0 -166
- package/core/dns/package.json +0 -77
- package/core/dns/src/drivers/aws.ts +0 -224
- package/core/dns/src/index.ts +0 -20
- package/core/dns/tests/example.test.ts +0 -5
- package/core/dns/tsconfig.json +0 -3
- package/core/docs/README.md +0 -59
- package/core/docs/build.ts +0 -8
- package/core/docs/dist/index.js +0 -205
- package/core/docs/package.json +0 -70
- package/core/docs/src/index.ts +0 -67
- package/core/docs/src/meta.ts +0 -32
- package/core/docs/src/plugins.ts +0 -4
- package/core/docs/src/scripts/pwa.ts +0 -116
- package/core/docs/tests/example.test.ts +0 -5
- package/core/docs/tsconfig.json +0 -3
- package/core/email/README.md +0 -155
- package/core/email/build-inbound.ts +0 -8
- package/core/email/build.ts +0 -8
- package/core/email/dist/index.js +0 -306735
- package/core/email/email-forwarder.cjs +0 -407
- package/core/email/email-forwarder.zip +0 -0
- package/core/email/package.json +0 -69
- package/core/email/src/drivers/index.ts +0 -3
- package/core/email/src/drivers/mailgun.ts +0 -21
- package/core/email/src/drivers/nodemailer.ts +0 -23
- package/core/email/src/drivers/ses.ts +0 -22
- package/core/email/src/email.ts +0 -84
- package/core/email/src/index.ts +0 -3
- package/core/email/src/send.ts +0 -37
- package/core/email/src/server/converter.ts +0 -305
- package/core/email/src/server/inbound.ts +0 -406
- package/core/email/src/server/outbound.ts +0 -296
- package/core/email/src/template.ts +0 -18
- package/core/email/src/types.ts +0 -39
- package/core/email/src/utils/config.ts +0 -7
- package/core/email/tests/example.test.ts +0 -5
- package/core/email/tsconfig.json +0 -3
- package/core/enums/README.md +0 -54
- package/core/enums/build.ts +0 -8
- package/core/enums/dist/index.js +0 -105
- package/core/enums/package.json +0 -49
- package/core/enums/src/index.ts +0 -102
- package/core/enums/tests/example.test.ts +0 -5
- package/core/enums/tsconfig.json +0 -3
- package/core/env/README.md +0 -71
- package/core/env/build.ts +0 -8
- package/core/env/dist/index.js +0 -238
- package/core/env/package.json +0 -55
- package/core/env/src/index.ts +0 -76
- package/core/env/src/types.ts +0 -54
- package/core/env/src/utils.ts +0 -1
- package/core/env/tests/example.test.ts +0 -5
- package/core/env/tsconfig.json +0 -3
- package/core/error-handling/README.md +0 -131
- package/core/error-handling/build.ts +0 -8
- package/core/error-handling/dist/index.js +0 -432
- package/core/error-handling/package.json +0 -63
- package/core/error-handling/src/handler.ts +0 -51
- package/core/error-handling/src/index.ts +0 -2
- package/core/error-handling/tests/example.test.ts +0 -5
- package/core/error-handling/tsconfig.json +0 -3
- package/core/eslint-config/.gitattributes +0 -2
- package/core/eslint-config/README.md +0 -587
- package/core/eslint-config/build.ts +0 -8
- package/core/eslint-config/package.json +0 -122
- package/core/eslint-config/src/configs/comments.ts +0 -19
- package/core/eslint-config/src/configs/formatters.ts +0 -187
- package/core/eslint-config/src/configs/ignores.ts +0 -10
- package/core/eslint-config/src/configs/imports.ts +0 -46
- package/core/eslint-config/src/configs/index.ts +0 -21
- package/core/eslint-config/src/configs/javascript.ts +0 -226
- package/core/eslint-config/src/configs/jsdoc.ts +0 -42
- package/core/eslint-config/src/configs/jsonc.ts +0 -86
- package/core/eslint-config/src/configs/markdown.ts +0 -110
- package/core/eslint-config/src/configs/node.ts +0 -23
- package/core/eslint-config/src/configs/perfectionist.ts +0 -18
- package/core/eslint-config/src/configs/react.ts +0 -111
- package/core/eslint-config/src/configs/sort.ts +0 -223
- package/core/eslint-config/src/configs/stylistic.ts +0 -57
- package/core/eslint-config/src/configs/svelte.ts +0 -107
- package/core/eslint-config/src/configs/test.ts +0 -54
- package/core/eslint-config/src/configs/toml.ts +0 -72
- package/core/eslint-config/src/configs/typescript.ts +0 -157
- package/core/eslint-config/src/configs/unicorn.ts +0 -41
- package/core/eslint-config/src/configs/unocss.ts +0 -43
- package/core/eslint-config/src/configs/vue.ts +0 -168
- package/core/eslint-config/src/configs/yaml.ts +0 -72
- package/core/eslint-config/src/factory.ts +0 -255
- package/core/eslint-config/src/globs.ts +0 -91
- package/core/eslint-config/src/index.ts +0 -9
- package/core/eslint-config/src/plugins.ts +0 -10
- package/core/eslint-config/src/stub.d.ts +0 -3
- package/core/eslint-config/src/types.ts +0 -366
- package/core/eslint-config/src/utils.ts +0 -72
- package/core/eslint-config/src/vendor/prettier-types.ts +0 -136
- package/core/eslint-config/test/cli.spec.ts +0 -91
- package/core/eslint-config/test/fixtures.test.ts +0 -125
- package/core/eslint-config/tsconfig.json +0 -17
- package/core/eslint-config/tsup.config.ts +0 -8
- package/core/events/README.md +0 -76
- package/core/events/build.ts +0 -8
- package/core/events/dist/index.js +0 -63
- package/core/events/package.json +0 -53
- package/core/events/src/index.ts +0 -167
- package/core/events/tests/example.test.ts +0 -5
- package/core/events/tsconfig.json +0 -3
- package/core/faker/README.md +0 -53
- package/core/faker/build.ts +0 -8
- package/core/faker/dist/index.js +0 -6
- package/core/faker/package.json +0 -62
- package/core/faker/src/index.ts +0 -1
- package/core/faker/tests/example.test.ts +0 -5
- package/core/faker/tsconfig.json +0 -3
- package/core/git/README.md +0 -65
- package/core/git/build.ts +0 -8
- package/core/git/dist/index.js +0 -46
- package/core/git/package.json +0 -69
- package/core/git/src/index.ts +0 -63
- package/core/git/tests/example.test.ts +0 -5
- package/core/git/tsconfig.json +0 -3
- package/core/health/README.md +0 -56
- package/core/health/build.ts +0 -8
- package/core/health/dist/index.js +0 -9
- package/core/health/package.json +0 -59
- package/core/health/src/drivers/index.ts +0 -1
- package/core/health/src/drivers/ohdear.ts +0 -1
- package/core/health/src/index.ts +0 -2
- package/core/health/src/notifications/index.ts +0 -1
- package/core/health/tests/example.test.ts +0 -5
- package/core/health/tsconfig.json +0 -3
- package/core/http/README.md +0 -59
- package/core/http/build.ts +0 -8
- package/core/http/dist/index.js +0 -65
- package/core/http/package.json +0 -53
- package/core/http/src/index.ts +0 -71
- package/core/http/tsconfig.json +0 -3
- package/core/index.ts +0 -57
- package/core/lint/.eslintrc.json +0 -3
- package/core/lint/README.md +0 -73
- package/core/lint/build.ts +0 -8
- package/core/lint/dist/index.js +0 -6
- package/core/lint/package.json +0 -70
- package/core/lint/src/index.ts +0 -3
- package/core/lint/tests/example.test.ts +0 -5
- package/core/lint/tsconfig.json +0 -3
- package/core/logging/README.md +0 -58
- package/core/logging/build.ts +0 -8
- package/core/logging/dist/index.js +0 -90
- package/core/logging/package.json +0 -62
- package/core/logging/src/index.ts +0 -137
- package/core/logging/tests/example.test.ts +0 -5
- package/core/logging/tsconfig.json +0 -3
- package/core/notifications/README.md +0 -272
- package/core/notifications/build.ts +0 -8
- package/core/notifications/dist/index.js +0 -54
- package/core/notifications/package.json +0 -104
- package/core/notifications/src/drivers/chat.ts +0 -1
- package/core/notifications/src/drivers/email.ts +0 -1
- package/core/notifications/src/drivers/index.ts +0 -4
- package/core/notifications/src/drivers/push.ts +0 -1
- package/core/notifications/src/drivers/sms.ts +0 -1
- package/core/notifications/src/index.ts +0 -51
- package/core/notifications/src/tailwind.config.ts +0 -39
- package/core/notifications/src/utils/config.ts +0 -5
- package/core/notifications/src/utils/template.html +0 -8
- package/core/notifications/tests/chat/Slack.test.ts +0 -34
- package/core/notifications/tests/email/Mailgun.test.ts +0 -40
- package/core/notifications/tests/email/Sendgrid.test.ts +0 -40
- package/core/notifications/tests/sms/Twilio.test.ts +0 -37
- package/core/notifications/tsconfig.json +0 -3
- package/core/objects/README.md +0 -71
- package/core/objects/build.ts +0 -8
- package/core/objects/dist/index.js +0 -64
- package/core/objects/package.json +0 -64
- package/core/objects/src/index.ts +0 -145
- package/core/objects/tests/example.test.ts +0 -5
- package/core/objects/tsconfig.json +0 -3
- package/core/orm/README.md +0 -48
- package/core/orm/build.ts +0 -8
- package/core/orm/dist/index.js +0 -6
- package/core/orm/package.json +0 -60
- package/core/orm/src/index.ts +0 -49
- package/core/orm/tests/example.test.ts +0 -5
- package/core/orm/tsconfig.json +0 -3
- package/core/path/README.md +0 -64
- package/core/path/build.ts +0 -8
- package/core/path/dist/index.js +0 -587
- package/core/path/package.json +0 -55
- package/core/path/src/index.ts +0 -632
- package/core/path/tests/example.test.ts +0 -5
- package/core/path/tsconfig.json +0 -3
- package/core/payments/README.md +0 -64
- package/core/payments/build.ts +0 -8
- package/core/payments/dist/index.js +0 -6297
- package/core/payments/package.json +0 -61
- package/core/payments/src/drivers/stripe.ts +0 -116
- package/core/payments/src/index.ts +0 -1
- package/core/payments/tests/example.test.ts +0 -5
- package/core/payments/tsconfig.json +0 -3
- package/core/playwright.config.ts +0 -109
- package/core/push/README.md +0 -71
- package/core/push/build.ts +0 -9
- package/core/push/dist/index.js +0 -35
- package/core/push/package.json +0 -65
- package/core/push/src/drivers/expo.ts +0 -21
- package/core/push/src/drivers/fcm.ts +0 -21
- package/core/push/src/drivers/index.ts +0 -2
- package/core/push/src/index.ts +0 -1
- package/core/push/tests/example.test.ts +0 -5
- package/core/push/tsconfig.json +0 -3
- package/core/query-builder/README.md +0 -48
- package/core/query-builder/build.ts +0 -8
- package/core/query-builder/dist/index.js +0 -18
- package/core/query-builder/package.json +0 -60
- package/core/query-builder/src/index.ts +0 -1
- package/core/query-builder/src/kysely.ts +0 -38
- package/core/query-builder/tests/example.test.ts +0 -5
- package/core/query-builder/tsconfig.json +0 -3
- package/core/queue/README.md +0 -59
- package/core/queue/build.ts +0 -8
- package/core/queue/dist/index.js +0 -25
- package/core/queue/package.json +0 -56
- package/core/queue/src/index.ts +0 -23
- package/core/queue/tests/example.test.ts +0 -5
- package/core/queue/tsconfig.json +0 -3
- package/core/raycast/package.json +0 -9
- package/core/raycast/src/index.ts +0 -0
- package/core/realtime/README.md +0 -59
- package/core/realtime/build.ts +0 -8
- package/core/realtime/dist/index.js +0 -6
- package/core/realtime/package.json +0 -53
- package/core/realtime/src/drivers/index.ts +0 -1
- package/core/realtime/src/index.ts +0 -1
- package/core/realtime/tests/example.test.ts +0 -5
- package/core/realtime/tsconfig.json +0 -3
- package/core/repl/README.md +0 -53
- package/core/repl/build.ts +0 -8
- package/core/repl/dist/index.js +0 -6
- package/core/repl/package.json +0 -60
- package/core/repl/src/index.ts +0 -1
- package/core/repl/tests/example.test.ts +0 -5
- package/core/repl/tsconfig.json +0 -3
- package/core/router/README.md +0 -59
- package/core/router/build.ts +0 -8
- package/core/router/dist/index.js +0 -1544
- package/core/router/package.json +0 -64
- package/core/router/src/index.ts +0 -4
- package/core/router/src/middleware.ts +0 -34
- package/core/router/src/request.ts +0 -44
- package/core/router/src/router.ts +0 -310
- package/core/router/src/server.ts +0 -173
- package/core/router/tests/example.test.ts +0 -5
- package/core/router/tsconfig.json +0 -3
- package/core/scheduler/README.md +0 -137
- package/core/scheduler/build.ts +0 -8
- package/core/scheduler/dist/index.js +0 -742
- package/core/scheduler/package.json +0 -62
- package/core/scheduler/src/constants.ts +0 -81
- package/core/scheduler/src/errors.ts +0 -7
- package/core/scheduler/src/index.ts +0 -20
- package/core/scheduler/src/job.ts +0 -315
- package/core/scheduler/src/schedule.ts +0 -116
- package/core/scheduler/src/time.ts +0 -823
- package/core/scheduler/src/types/cron.ts +0 -98
- package/core/scheduler/src/types/utils.ts +0 -14
- package/core/scheduler/src/utils.ts +0 -19
- package/core/scheduler/tests/cron.fuzz.ts +0 -120
- package/core/scheduler/tests/cron.test.ts +0 -1243
- package/core/scheduler/tests/crontime.test.ts +0 -780
- package/core/scheduler/tsconfig.json +0 -3
- package/core/search-engine/README.md +0 -66
- package/core/search-engine/build.ts +0 -8
- package/core/search-engine/dist/index.js +0 -87
- package/core/search-engine/package.json +0 -68
- package/core/search-engine/src/drivers/index.ts +0 -1
- package/core/search-engine/src/drivers/meilisearch.ts +0 -124
- package/core/search-engine/src/drivers/opensearch.ts +0 -59
- package/core/search-engine/src/helpers.ts +0 -138
- package/core/search-engine/src/index.ts +0 -69
- package/core/search-engine/tests/example.test.ts +0 -5
- package/core/search-engine/tsconfig.json +0 -3
- package/core/security/README.md +0 -66
- package/core/security/build.ts +0 -8
- package/core/security/dist/index.js +0 -3285
- package/core/security/package.json +0 -66
- package/core/security/src/crypt.ts +0 -23
- package/core/security/src/hash.ts +0 -54
- package/core/security/src/index.ts +0 -3
- package/core/security/src/key.ts +0 -11
- package/core/security/tests/example.test.ts +0 -5
- package/core/security/tsconfig.json +0 -3
- package/core/server/README.md +0 -51
- package/core/server/build.ts +0 -8
- package/core/server/dist/index.js +0 -13591
- package/core/server/package.json +0 -68
- package/core/server/src/config.ts +0 -76
- package/core/server/src/index.ts +0 -1
- package/core/server/tests/example.test.ts +0 -5
- package/core/server/tsconfig.json +0 -3
- package/core/shell/README.md +0 -55
- package/core/shell/build.ts +0 -8
- package/core/shell/dist/index.js +0 -6
- package/core/shell/package.json +0 -39
- package/core/shell/src/buddy.plugin.zsh +0 -120
- package/core/shell/src/index.ts +0 -1
- package/core/signals/README.md +0 -105
- package/core/signals/build.ts +0 -8
- package/core/signals/dist/index.js +0 -9
- package/core/signals/package.json +0 -64
- package/core/signals/src/index.ts +0 -1
- package/core/signals/tests/example.test.ts +0 -5
- package/core/signals/tsconfig.json +0 -3
- package/core/slug/README.md +0 -59
- package/core/slug/build.ts +0 -8
- package/core/slug/dist/index.js +0 -5
- package/core/slug/package.json +0 -66
- package/core/slug/src/index.ts +0 -56
- package/core/slug/tests/example.test.ts +0 -5
- package/core/slug/tsconfig.json +0 -3
- package/core/sms/README.md +0 -137
- package/core/sms/build.ts +0 -9
- package/core/sms/dist/index.js +0 -240
- package/core/sms/package.json +0 -83
- package/core/sms/src/drivers/gupshup.ts +0 -21
- package/core/sms/src/drivers/index.ts +0 -8
- package/core/sms/src/drivers/nexmo.ts +0 -23
- package/core/sms/src/drivers/plivo.ts +0 -23
- package/core/sms/src/drivers/sms77.ts +0 -22
- package/core/sms/src/drivers/sns.ts +0 -22
- package/core/sms/src/drivers/telnyx.ts +0 -23
- package/core/sms/src/drivers/termii.ts +0 -22
- package/core/sms/src/drivers/twilio.ts +0 -23
- package/core/sms/src/index.ts +0 -1
- package/core/sms/tests/example.test.ts +0 -5
- package/core/sms/tsconfig.json +0 -3
- package/core/storage/README.md +0 -74
- package/core/storage/build.ts +0 -8
- package/core/storage/dist/index.js +0 -816
- package/core/storage/package.json +0 -78
- package/core/storage/src/copy.ts +0 -42
- package/core/storage/src/delete.ts +0 -131
- package/core/storage/src/drivers/aws.ts +0 -15
- package/core/storage/src/drivers/index.ts +0 -1
- package/core/storage/src/files.ts +0 -187
- package/core/storage/src/folders.ts +0 -51
- package/core/storage/src/fs.ts +0 -9
- package/core/storage/src/glob.ts +0 -1
- package/core/storage/src/hash.ts +0 -39
- package/core/storage/src/helpers.ts +0 -29
- package/core/storage/src/index.ts +0 -11
- package/core/storage/src/move.ts +0 -84
- package/core/storage/src/storage.ts +0 -10
- package/core/storage/src/visibility.ts +0 -6
- package/core/storage/src/zip.ts +0 -55
- package/core/storage/tests/example.test.ts +0 -5
- package/core/storage/tsconfig.json +0 -3
- package/core/strings/README.md +0 -137
- package/core/strings/build.ts +0 -9
- package/core/strings/dist/index.js +0 -393
- package/core/strings/package.json +0 -82
- package/core/strings/src/case.ts +0 -27
- package/core/strings/src/helpers.ts +0 -3
- package/core/strings/src/index.ts +0 -2
- package/core/strings/src/is.ts +0 -170
- package/core/strings/src/macro.ts +0 -131
- package/core/strings/src/pluralize.ts +0 -26
- package/core/strings/src/string.ts +0 -5
- package/core/strings/src/types.ts +0 -4
- package/core/strings/src/utils.ts +0 -117
- package/core/strings/tests/example.test.ts +0 -5
- package/core/strings/tsconfig.json +0 -3
- package/core/tables/README.md +0 -110
- package/core/tables/examples/vue/App.stx +0 -12
- package/core/tables/examples/vue/favicon.png +0 -0
- package/core/tables/examples/vue/index.html +0 -20
- package/core/tables/examples/web/favicon.png +0 -0
- package/core/tables/examples/web/index.html +0 -13
- package/core/tables/index.html +0 -13
- package/core/tables/package.json +0 -57
- package/core/tables/src/App.stx +0 -23
- package/core/tables/src/commands/index.ts +0 -1
- package/core/tables/src/components/Demo.stx +0 -84
- package/core/tables/src/components/README.md +0 -109
- package/core/tables/src/components/Table.stx +0 -342
- package/core/tables/src/components/TableBody.stx +0 -32
- package/core/tables/src/components/TableCellActionItems.stx +0 -9
- package/core/tables/src/components/TableFilters.stx +0 -704
- package/core/tables/src/components/TableHead.stx +0 -60
- package/core/tables/src/components/TablePagination.stx +0 -131
- package/core/tables/src/components/TableRow.stx +0 -73
- package/core/tables/src/components/TableSearch.stx +0 -39
- package/core/tables/src/components/Tooltip.stx +0 -10
- package/core/tables/src/components.d.ts +0 -24
- package/core/tables/src/config/tables.ts +0 -2
- package/core/tables/src/docs/index.md +0 -0
- package/core/tables/src/functions/README.md +0 -8
- package/core/tables/src/functions/dark.ts +0 -3
- package/core/tables/src/functions/index.ts +0 -2
- package/core/tables/src/functions/table.ts +0 -207
- package/core/tables/src/main.ts +0 -4
- package/core/tables/tests/example.test.ts +0 -5
- package/core/tables/tsconfig.json +0 -3
- package/core/testing/README.md +0 -59
- package/core/testing/build.ts +0 -8
- package/core/testing/dist/index.js +0 -15025
- package/core/testing/package.json +0 -65
- package/core/testing/src/index.ts +0 -13
- package/core/testing/tsconfig.json +0 -3
- package/core/tinker/package.json +0 -47
- package/core/tinker/src/index.ts +0 -1
- package/core/tinker/tsconfig.json +0 -3
- package/core/tmp.json +0 -0
- package/core/tsconfig.json +0 -83
- package/core/tunnel/README.md +0 -53
- package/core/tunnel/build.ts +0 -8
- package/core/tunnel/dist/index.js +0 -10
- package/core/tunnel/package.json +0 -58
- package/core/tunnel/src/index.ts +0 -6
- package/core/tunnel/tests/example.test.ts +0 -5
- package/core/tunnel/tsconfig.json +0 -3
- package/core/types/README.md +0 -59
- package/core/types/build.ts +0 -8
- package/core/types/dist/index.js +0 -2285
- package/core/types/package.json +0 -87
- package/core/types/src/ai.ts +0 -26
- package/core/types/src/analytics.ts +0 -21
- package/core/types/src/api.ts +0 -65
- package/core/types/src/app.ts +0 -151
- package/core/types/src/auto-imports.ts +0 -1
- package/core/types/src/binary.ts +0 -13
- package/core/types/src/build.ts +0 -2
- package/core/types/src/cache.ts +0 -98
- package/core/types/src/cdn.ts +0 -17
- package/core/types/src/chat.ts +0 -5
- package/core/types/src/cli.ts +0 -333
- package/core/types/src/cloud.ts +0 -105
- package/core/types/src/components.ts +0 -64
- package/core/types/src/configure.ts +0 -13
- package/core/types/src/cron-jobs.ts +0 -51
- package/core/types/src/database.ts +0 -45
- package/core/types/src/dependencies.ts +0 -69
- package/core/types/src/deploy.ts +0 -13
- package/core/types/src/dns.ts +0 -186
- package/core/types/src/docs.ts +0 -26
- package/core/types/src/email.ts +0 -19
- package/core/types/src/env.ts +0 -1
- package/core/types/src/errors.ts +0 -11
- package/core/types/src/events.ts +0 -30
- package/core/types/src/exit-code.ts +0 -10
- package/core/types/src/file-systems.ts +0 -70
- package/core/types/src/git.ts +0 -133
- package/core/types/src/hashing.ts +0 -131
- package/core/types/src/helpers.ts +0 -11
- package/core/types/src/i18n.ts +0 -19
- package/core/types/src/index.ts +0 -61
- package/core/types/src/inspect.ts +0 -10
- package/core/types/src/layout.ts +0 -8
- package/core/types/src/library.ts +0 -156
- package/core/types/src/logger.ts +0 -54
- package/core/types/src/manifest.ts +0 -9
- package/core/types/src/model.ts +0 -72
- package/core/types/src/money.ts +0 -3
- package/core/types/src/native.ts +0 -0
- package/core/types/src/notifications.ts +0 -147
- package/core/types/src/pages.ts +0 -10
- package/core/types/src/payments.ts +0 -65
- package/core/types/src/ports.ts +0 -19
- package/core/types/src/promise.ts +0 -1
- package/core/types/src/push.ts +0 -36
- package/core/types/src/pwa.ts +0 -8
- package/core/types/src/queue.ts +0 -38
- package/core/types/src/reactivity.ts +0 -1
- package/core/types/src/request.ts +0 -3
- package/core/types/src/router.ts +0 -73
- package/core/types/src/scheduler.ts +0 -1
- package/core/types/src/search-engine.ts +0 -136
- package/core/types/src/security.ts +0 -23
- package/core/types/src/services.ts +0 -44
- package/core/types/src/sms.ts +0 -5
- package/core/types/src/ssg.ts +0 -3
- package/core/types/src/stacks.ts +0 -246
- package/core/types/src/storage.ts +0 -13
- package/core/types/src/tables.ts +0 -57
- package/core/types/src/team.ts +0 -8
- package/core/types/src/ui.ts +0 -189
- package/core/types/src/utils.ts +0 -47
- package/core/types/tsconfig.json +0 -3
- package/core/ui/README.md +0 -66
- package/core/ui/build.ts +0 -8
- package/core/ui/dist/components.js +0 -68
- package/core/ui/dist/index.js +0 -121
- package/core/ui/package.json +0 -93
- package/core/ui/src/components/autocomplete.ts +0 -0
- package/core/ui/src/components/disclosure.ts +0 -5
- package/core/ui/src/components/menu.ts +0 -1
- package/core/ui/src/components/modal.ts +0 -6
- package/core/ui/src/components/popover.ts +0 -1
- package/core/ui/src/components/radio-group.ts +0 -5
- package/core/ui/src/components/select.ts +0 -6
- package/core/ui/src/components/tabs.ts +0 -1
- package/core/ui/src/components/toggle.ts +0 -1
- package/core/ui/src/components/transition.ts +0 -1
- package/core/ui/src/components.ts +0 -10
- package/core/ui/src/index.ts +0 -15
- package/core/ui/src/uno.config.ts +0 -66
- package/core/ui/tests/example.test.ts +0 -5
- package/core/ui/tsconfig.json +0 -3
- package/core/utils/build.ts +0 -8
- package/core/utils/dist/index.js +0 -3240
- package/core/utils/package.json +0 -111
- package/core/utils/scripts/export-size.ts +0 -94
- package/core/utils/src/base.ts +0 -12
- package/core/utils/src/clean.ts +0 -17
- package/core/utils/src/config.ts +0 -25
- package/core/utils/src/currency.ts +0 -29
- package/core/utils/src/debounce.ts +0 -1
- package/core/utils/src/delete.ts +0 -1
- package/core/utils/src/equal.ts +0 -27
- package/core/utils/src/export-size.ts +0 -1
- package/core/utils/src/find.ts +0 -91
- package/core/utils/src/function.ts +0 -32
- package/core/utils/src/git.ts +0 -11
- package/core/utils/src/glob.ts +0 -1
- package/core/utils/src/guards.ts +0 -39
- package/core/utils/src/hash.ts +0 -26
- package/core/utils/src/helpers.ts +0 -187
- package/core/utils/src/index.ts +0 -24
- package/core/utils/src/macroable.ts +0 -1
- package/core/utils/src/math.ts +0 -30
- package/core/utils/src/p.ts +0 -119
- package/core/utils/src/promise.ts +0 -117
- package/core/utils/src/regex.ts +0 -2
- package/core/utils/src/retry.ts +0 -33
- package/core/utils/src/sleep.ts +0 -60
- package/core/utils/src/throttle.ts +0 -44
- package/core/utils/src/vendors.ts +0 -258
- package/core/utils/src/versions.ts +0 -6
- package/core/utils/tests/example.test.ts +0 -5
- package/core/utils/tsconfig.json +0 -3
- package/core/validation/README.md +0 -53
- package/core/validation/build.ts +0 -5
- package/core/validation/dist/index.js +0 -187
- package/core/validation/package.json +0 -64
- package/core/validation/src/index.ts +0 -4
- package/core/validation/src/is.ts +0 -111
- package/core/validation/src/rules.ts +0 -126
- package/core/validation/src/types/index.ts +0 -7
- package/core/validation/src/types/money.ts +0 -17
- package/core/validation/src/validate.ts +0 -33
- package/core/validation/tests/example.test.ts +0 -5
- package/core/validation/tsconfig.json +0 -3
- package/core/vite/README.md +0 -59
- package/core/vite/build.ts +0 -9
- package/core/vite/dist/index.js +0 -644
- package/core/vite/package.json +0 -122
- package/core/vite/src/api.ts +0 -18
- package/core/vite/src/components.ts +0 -79
- package/core/vite/src/dashboard.ts +0 -100
- package/core/vite/src/desktop.ts +0 -3
- package/core/vite/src/example-vue.ts +0 -20
- package/core/vite/src/example-wc.ts +0 -24
- package/core/vite/src/functions.ts +0 -54
- package/core/vite/src/index.ts +0 -18
- package/core/vite/src/plugin/auto-imports.ts +0 -39
- package/core/vite/src/plugin/components.ts +0 -17
- package/core/vite/src/plugin/css-engine.ts +0 -18
- package/core/vite/src/plugin/devtools.ts +0 -1
- package/core/vite/src/plugin/docs.ts +0 -18
- package/core/vite/src/plugin/fonts.ts +0 -6
- package/core/vite/src/plugin/i18n.ts +0 -13
- package/core/vite/src/plugin/inspect.ts +0 -6
- package/core/vite/src/plugin/layouts.ts +0 -17
- package/core/vite/src/plugin/markdown.ts +0 -26
- package/core/vite/src/plugin/pages.ts +0 -34
- package/core/vite/src/plugin/presets.ts +0 -17
- package/core/vite/src/plugin/pwa.ts +0 -33
- package/core/vite/src/plugin/router.ts +0 -17
- package/core/vite/src/plugin/stacks.ts +0 -150
- package/core/vite/src/plugin/ui-engine.ts +0 -19
- package/core/vite/src/plugins.ts +0 -12
- package/core/vite/src/system-tray.ts +0 -100
- package/core/vite/src/views.ts +0 -97
- package/core/vite/src/web-components.ts +0 -67
- package/core/vite/tests/example.test.ts +0 -5
- package/core/vite/tsconfig.json +0 -3
- package/core/web-types.json +0 -67
- package/core/whois/README.md +0 -55
- package/core/whois/build.ts +0 -8
- package/core/whois/dist/index.js +0 -600
- package/core/whois/package.json +0 -61
- package/core/whois/src/index.ts +0 -499
- package/core/whois/src/parameters.ts +0 -4
- package/core/whois/src/servers.ts +0 -318
- package/core/whois/src/test.ts +0 -5
- package/core/whois/tests/example.test.ts +0 -5
- package/core/whois/tsconfig.json +0 -3
- package/core/x-ray/README.md +0 -55
- package/core/x-ray/index.html +0 -13
- package/core/x-ray/package.json +0 -53
- package/core/x-ray/routes/index.ts +0 -19
- package/core/x-ray/src/client.ts +0 -14
- package/core/x-ray/src/desktop/api/nitro.config.ts +0 -19
- package/core/x-ray/src/desktop/api/routes/api/logs.ts +0 -7
- package/core/x-ray/src/desktop/api/routes/api/store-logs.ts +0 -22
- package/core/x-ray/src/desktop/api/src/types.ts +0 -7
- package/core/x-ray/src/desktop/api/storage/index.ts +0 -7
- package/core/x-ray/src/desktop/app.stx +0 -377
- package/core/x-ray/src/desktop/functions/http.ts +0 -26
- package/core/x-ray/src/desktop/functions/types.ts +0 -7
- package/core/x-ray/src/desktop/main.ts +0 -8
- package/core/x-ray/src/desktop/modules/counter/mod.stx +0 -44
- package/core/x-ray/src/desktop/modules/fetcher/mod.stx +0 -63
- package/core/x-ray/src/desktop/plugins/unified/unified-app.ts +0 -5
- package/core/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
- package/core/x-ray/src/desktop/services/http.ts +0 -45
- package/core/x-ray/src/desktop/styles/app.scss +0 -0
- package/core/x-ray/src/http.ts +0 -26
- package/core/x-ray/src/index.ts +0 -42
- package/core/x-ray/src/ray.config.ts +0 -27
- package/core/x-ray/src/types.ts +0 -8
- package/core/x-ray/tests/example.test.ts +0 -5
- package/core/x-ray/tsconfig.json +0 -3
- package/ide/dictionary.txt +0 -333
- package/ide/jetbrains/.fleet/settings.json +0 -4
- package/ide/jetbrains/.idea/.name +0 -1
- package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/ide/jetbrains/.idea/jsLinters/eslint.xml +0 -7
- package/ide/jetbrains/.idea/modules.xml +0 -8
- package/ide/jetbrains/.idea/stacks.iml +0 -22
- package/ide/jetbrains/.idea/vcs.xml +0 -6
- package/ide/jetbrains/.idea/webResources.xml +0 -14
- package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
- package/ide/jetbrains/installed.txt +0 -4
- package/ide/jetbrains/options/github-copilot.xml +0 -5
- package/ide/jetbrains/options/nodejs.xml +0 -7
- package/ide/jetbrains/options/templates.xml +0 -124
- package/ide/jetbrains/templates/JavaScript.xml +0 -6
- package/ide/jetbrains/templates/Stacks.xml +0 -8
- package/ide/vscode/.vscode/README.md +0 -23
- package/ide/vscode/.vscode/extensions.json +0 -5
- package/ide/vscode/.vscode/settings.json +0 -135
- package/ide/vscode/.vscode/stacks.code-snippets +0 -182
- package/ide/vscode/LICENSE.md +0 -21
- package/ide/vscode/README.md +0 -37
- package/ide/vscode/logo.png +0 -0
- package/ide/vscode/package.json +0 -63
- package/stubs/.gitkeep +0 -0
- package/stubs/TODO.md +0 -18
- package/vcs/github/CODE_OF_CONDUCT.md +0 -83
- package/vcs/github/CONTRIBUTING.md +0 -188
- package/vcs/github/EXPLANATIONS.md +0 -41
- package/vcs/github/FUNDING.yml +0 -1
- package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +0 -49
- package/vcs/github/ISSUE_TEMPLATE/config.yml +0 -10
- package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +0 -44
- package/vcs/github/SECURITY.md +0 -70
- package/vcs/github/renovate.json +0 -5
- package/vcs/github/stale.yml +0 -14
- package/vcs/github/workflows/README.md +0 -16
- package/vcs/github/workflows/ci.yml +0 -174
- package/vcs/github/workflows/export-size.yml +0 -23
- package/vcs/github/workflows/labeler.yml +0 -13
- package/vcs/github/workflows/release.yml +0 -69
- package/{core/README.md → README.md} +0 -0
- package/{core/buddy → buddy}/README.md +0 -0
- package/{core/buddy → buddy}/art/social.jpg +0 -0
- package/{core/buddy → buddy}/bin/cli.ts +0 -0
- package/{core/buddy/dist/chunk-0455e53fab4244b1.js → buddy/dist/chunk-970e033f764e29fc.js} +0 -0
- package/{core/buddy → buddy}/src/commands/build.ts +0 -0
- package/{core/buddy → buddy}/src/commands/changelog.ts +0 -0
- package/{core/buddy → buddy}/src/commands/clean.ts +0 -0
- package/{core/buddy → buddy}/src/commands/cloud.ts +0 -0
- package/{core/buddy → buddy}/src/commands/configure.ts +0 -0
- package/{core/buddy → buddy}/src/commands/create.ts +0 -0
- package/{core/buddy → buddy}/src/commands/dns.ts +0 -0
- package/{core/buddy → buddy}/src/commands/domains.ts +0 -0
- package/{core/buddy → buddy}/src/commands/fresh.ts +0 -0
- package/{core/buddy → buddy}/src/commands/generate.ts +0 -0
- package/{core/buddy → buddy}/src/commands/http.ts +0 -0
- package/{core/buddy → buddy}/src/commands/install.ts +0 -0
- package/{core/buddy → buddy}/src/commands/key.ts +1 -1
- /package/{core/buddy → buddy}/src/commands/lint.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/migrate.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/release.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/seed.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/test.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/tinker.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/upgrade.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/version.ts +0 -0
- /package/{core/buddy → buddy}/src/custom-cli.ts +0 -0
- /package/{core/buddy → buddy}/src/index.ts +0 -0
- /package/{core/actions → buddy}/tsconfig.json +0 -0
package/core/cli/dist/index.js
DELETED
|
@@ -1,780 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// src/actions/install.ts
|
|
3
|
-
import {installPackage as installPkg} from "@antfu/install-pkg";
|
|
4
|
-
async function installPackage(name, options) {
|
|
5
|
-
if (options)
|
|
6
|
-
return await installPkg(name, options);
|
|
7
|
-
return await installPkg(name, { silent: true });
|
|
8
|
-
}
|
|
9
|
-
async function installStack(name, options) {
|
|
10
|
-
if (options)
|
|
11
|
-
return await installPkg(`@stacksjs/${name}`, options);
|
|
12
|
-
return await installPkg(`@stacksjs/${name}`, { silent: true });
|
|
13
|
-
}
|
|
14
|
-
// src/cli.ts
|
|
15
|
-
import {CAC} from "cac";
|
|
16
|
-
function cli(name, options) {
|
|
17
|
-
if (typeof name === "object") {
|
|
18
|
-
options = name;
|
|
19
|
-
name = options.name;
|
|
20
|
-
}
|
|
21
|
-
return new CAC(name || "buddy");
|
|
22
|
-
}
|
|
23
|
-
// src/exec.ts
|
|
24
|
-
import process2 from "process";
|
|
25
|
-
import {err, handleError, ok} from "@stacksjs/error-handling";
|
|
26
|
-
import {ExitCode} from "@stacksjs/types";
|
|
27
|
-
async function exec(command, options) {
|
|
28
|
-
const cmd = Array.isArray(command) ? command : command.match(/(?:[^\s"]+|"[^"]*")+/g);
|
|
29
|
-
if (!cmd)
|
|
30
|
-
return err(handleError(`Failed to parse command: ${cmd}`, options));
|
|
31
|
-
log2.debug("exec:", Array.isArray(command) ? command.join(" ") : command);
|
|
32
|
-
log2.debug("cmd:", cmd);
|
|
33
|
-
log2.debug("exec options:", options);
|
|
34
|
-
const proc = Bun.spawn(cmd, {
|
|
35
|
-
...options,
|
|
36
|
-
stdout: options?.silent || options?.quiet ? "ignore" : options?.stdin ? options.stdin : options?.stdout || "inherit",
|
|
37
|
-
stderr: options?.silent || options?.quiet ? "ignore" : options?.stderr || "inherit",
|
|
38
|
-
detached: options?.background || false,
|
|
39
|
-
cwd: options?.cwd || import.meta.dir,
|
|
40
|
-
onExit(_subprocess, exitCode, _signalCode, _error) {
|
|
41
|
-
if (exitCode && exitCode !== ExitCode.Success)
|
|
42
|
-
process2.exit(exitCode);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
if (options?.stdin === "pipe" && options.input) {
|
|
46
|
-
if (proc.stdin) {
|
|
47
|
-
proc.stdin.write(options.input);
|
|
48
|
-
proc.stdin.end();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const exited = await proc.exited;
|
|
52
|
-
if (exited === ExitCode.Success)
|
|
53
|
-
return ok(proc);
|
|
54
|
-
return err(handleError(`Failed to execute command: ${cmd.join(" ")}`));
|
|
55
|
-
}
|
|
56
|
-
async function execSync(command, options) {
|
|
57
|
-
log2.debug("Running execSync:", command);
|
|
58
|
-
log2.debug("execSync Options:", options);
|
|
59
|
-
const cmd = Array.isArray(command) ? command : command.match(/(?:[^\s"]+|"[^"]*")+/g);
|
|
60
|
-
if (!cmd) {
|
|
61
|
-
log2.error(`Failed to parse command: ${cmd}`, options);
|
|
62
|
-
process2.exit(ExitCode.FatalError);
|
|
63
|
-
}
|
|
64
|
-
const proc = Bun.spawnSync(cmd, {
|
|
65
|
-
...options,
|
|
66
|
-
stdin: options?.stdin ?? "inherit",
|
|
67
|
-
stdout: options?.stdout ?? "pipe",
|
|
68
|
-
stderr: options?.stderr ?? "inherit",
|
|
69
|
-
cwd: options?.cwd ?? import.meta.dir,
|
|
70
|
-
onExit(_subprocess, exitCode, _signalCode, _error) {
|
|
71
|
-
if (exitCode !== ExitCode.Success && exitCode)
|
|
72
|
-
process2.exit(exitCode);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
return proc.stdout.toString();
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// src/utils.ts
|
|
79
|
-
import {collect} from "@stacksjs/collections";
|
|
80
|
-
import * as kolorist from "kolorist";
|
|
81
|
-
|
|
82
|
-
// ../../../../node_modules/consola/dist/utils.mjs
|
|
83
|
-
import * as tty from "tty";
|
|
84
|
-
var replaceClose = function(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
|
|
85
|
-
return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
86
|
-
};
|
|
87
|
-
var clearBleed = function(index, string, open, close, replace) {
|
|
88
|
-
return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
89
|
-
};
|
|
90
|
-
var filterEmpty = function(open, close, replace = open, at = open.length + 1) {
|
|
91
|
-
return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
|
|
92
|
-
};
|
|
93
|
-
var init = function(open, close, replace) {
|
|
94
|
-
return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
|
|
95
|
-
};
|
|
96
|
-
var createColors = function(useColor = isColorSupported) {
|
|
97
|
-
return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
|
|
98
|
-
};
|
|
99
|
-
var getColor = function(color, fallback = "reset") {
|
|
100
|
-
return colors[color] || colors[fallback];
|
|
101
|
-
};
|
|
102
|
-
var colorize = function(color, text) {
|
|
103
|
-
return getColor(color)(text);
|
|
104
|
-
};
|
|
105
|
-
var stripAnsi = function(text) {
|
|
106
|
-
return text.replace(new RegExp(ansiRegex, "g"), "");
|
|
107
|
-
};
|
|
108
|
-
var centerAlign = function(str, len, space = " ") {
|
|
109
|
-
const free = len - str.length;
|
|
110
|
-
if (free <= 0) {
|
|
111
|
-
return str;
|
|
112
|
-
}
|
|
113
|
-
const freeLeft = Math.floor(free / 2);
|
|
114
|
-
let _str = "";
|
|
115
|
-
for (let i = 0;i < len; i++) {
|
|
116
|
-
_str += i < freeLeft || i >= freeLeft + str.length ? space : str[i - freeLeft];
|
|
117
|
-
}
|
|
118
|
-
return _str;
|
|
119
|
-
};
|
|
120
|
-
var rightAlign = function(str, len, space = " ") {
|
|
121
|
-
const free = len - str.length;
|
|
122
|
-
if (free <= 0) {
|
|
123
|
-
return str;
|
|
124
|
-
}
|
|
125
|
-
let _str = "";
|
|
126
|
-
for (let i = 0;i < len; i++) {
|
|
127
|
-
_str += i < free ? space : str[i - free];
|
|
128
|
-
}
|
|
129
|
-
return _str;
|
|
130
|
-
};
|
|
131
|
-
var leftAlign = function(str, len, space = " ") {
|
|
132
|
-
let _str = "";
|
|
133
|
-
for (let i = 0;i < len; i++) {
|
|
134
|
-
_str += i < str.length ? str[i] : space;
|
|
135
|
-
}
|
|
136
|
-
return _str;
|
|
137
|
-
};
|
|
138
|
-
var align = function(alignment, str, len, space = " ") {
|
|
139
|
-
switch (alignment) {
|
|
140
|
-
case "left": {
|
|
141
|
-
return leftAlign(str, len, space);
|
|
142
|
-
}
|
|
143
|
-
case "right": {
|
|
144
|
-
return rightAlign(str, len, space);
|
|
145
|
-
}
|
|
146
|
-
case "center": {
|
|
147
|
-
return centerAlign(str, len, space);
|
|
148
|
-
}
|
|
149
|
-
default: {
|
|
150
|
-
return str;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
var box = function(text, _opts = {}) {
|
|
155
|
-
const opts = {
|
|
156
|
-
..._opts,
|
|
157
|
-
style: {
|
|
158
|
-
...defaultStyle,
|
|
159
|
-
..._opts.style
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
const textLines = text.split("\n");
|
|
163
|
-
const boxLines = [];
|
|
164
|
-
const _color = getColor(opts.style.borderColor);
|
|
165
|
-
const borderStyle = {
|
|
166
|
-
...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
|
|
167
|
-
};
|
|
168
|
-
if (_color) {
|
|
169
|
-
for (const key in borderStyle) {
|
|
170
|
-
borderStyle[key] = _color(borderStyle[key]);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
174
|
-
const height = textLines.length + paddingOffset;
|
|
175
|
-
const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
|
|
176
|
-
const widthOffset = width + paddingOffset;
|
|
177
|
-
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
178
|
-
if (opts.style.marginTop > 0) {
|
|
179
|
-
boxLines.push("".repeat(opts.style.marginTop));
|
|
180
|
-
}
|
|
181
|
-
if (opts.title) {
|
|
182
|
-
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
|
|
183
|
-
const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
|
|
184
|
-
boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
|
|
185
|
-
} else {
|
|
186
|
-
boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
|
|
187
|
-
}
|
|
188
|
-
const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
|
|
189
|
-
for (let i = 0;i < height; i++) {
|
|
190
|
-
if (i < valignOffset || i >= valignOffset + textLines.length) {
|
|
191
|
-
boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
|
|
192
|
-
} else {
|
|
193
|
-
const line = textLines[i - valignOffset];
|
|
194
|
-
const left = " ".repeat(paddingOffset);
|
|
195
|
-
const right = " ".repeat(width - stripAnsi(line).length);
|
|
196
|
-
boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
|
|
200
|
-
if (opts.style.marginBottom > 0) {
|
|
201
|
-
boxLines.push("".repeat(opts.style.marginBottom));
|
|
202
|
-
}
|
|
203
|
-
return boxLines.join("\n");
|
|
204
|
-
};
|
|
205
|
-
var {
|
|
206
|
-
env = {},
|
|
207
|
-
argv = [],
|
|
208
|
-
platform = ""
|
|
209
|
-
} = typeof process === "undefined" ? {} : process;
|
|
210
|
-
var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
211
|
-
var isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
212
|
-
var isWindows = platform === "win32";
|
|
213
|
-
var isDumbTerminal = env.TERM === "dumb";
|
|
214
|
-
var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
|
|
215
|
-
var isCI = "CI" in env && (("GITHUB_ACTIONS" in env) || ("GITLAB_CI" in env) || ("CIRCLECI" in env));
|
|
216
|
-
var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
217
|
-
var colorDefs = {
|
|
218
|
-
reset: init(0, 0),
|
|
219
|
-
bold: init(1, 22, "\x1B[22m\x1B[1m"),
|
|
220
|
-
dim: init(2, 22, "\x1B[22m\x1B[2m"),
|
|
221
|
-
italic: init(3, 23),
|
|
222
|
-
underline: init(4, 24),
|
|
223
|
-
inverse: init(7, 27),
|
|
224
|
-
hidden: init(8, 28),
|
|
225
|
-
strikethrough: init(9, 29),
|
|
226
|
-
black: init(30, 39),
|
|
227
|
-
red: init(31, 39),
|
|
228
|
-
green: init(32, 39),
|
|
229
|
-
yellow: init(33, 39),
|
|
230
|
-
blue: init(34, 39),
|
|
231
|
-
magenta: init(35, 39),
|
|
232
|
-
cyan: init(36, 39),
|
|
233
|
-
white: init(37, 39),
|
|
234
|
-
gray: init(90, 39),
|
|
235
|
-
bgBlack: init(40, 49),
|
|
236
|
-
bgRed: init(41, 49),
|
|
237
|
-
bgGreen: init(42, 49),
|
|
238
|
-
bgYellow: init(43, 49),
|
|
239
|
-
bgBlue: init(44, 49),
|
|
240
|
-
bgMagenta: init(45, 49),
|
|
241
|
-
bgCyan: init(46, 49),
|
|
242
|
-
bgWhite: init(47, 49),
|
|
243
|
-
blackBright: init(90, 39),
|
|
244
|
-
redBright: init(91, 39),
|
|
245
|
-
greenBright: init(92, 39),
|
|
246
|
-
yellowBright: init(93, 39),
|
|
247
|
-
blueBright: init(94, 39),
|
|
248
|
-
magentaBright: init(95, 39),
|
|
249
|
-
cyanBright: init(96, 39),
|
|
250
|
-
whiteBright: init(97, 39),
|
|
251
|
-
bgBlackBright: init(100, 49),
|
|
252
|
-
bgRedBright: init(101, 49),
|
|
253
|
-
bgGreenBright: init(102, 49),
|
|
254
|
-
bgYellowBright: init(103, 49),
|
|
255
|
-
bgBlueBright: init(104, 49),
|
|
256
|
-
bgMagentaBright: init(105, 49),
|
|
257
|
-
bgCyanBright: init(106, 49),
|
|
258
|
-
bgWhiteBright: init(107, 49)
|
|
259
|
-
};
|
|
260
|
-
var colors = createColors();
|
|
261
|
-
var ansiRegex = [
|
|
262
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
263
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
264
|
-
].join("|");
|
|
265
|
-
var boxStylePresets = {
|
|
266
|
-
solid: {
|
|
267
|
-
tl: "\u250C",
|
|
268
|
-
tr: "\u2510",
|
|
269
|
-
bl: "\u2514",
|
|
270
|
-
br: "\u2518",
|
|
271
|
-
h: "\u2500",
|
|
272
|
-
v: "\u2502"
|
|
273
|
-
},
|
|
274
|
-
double: {
|
|
275
|
-
tl: "\u2554",
|
|
276
|
-
tr: "\u2557",
|
|
277
|
-
bl: "\u255A",
|
|
278
|
-
br: "\u255D",
|
|
279
|
-
h: "\u2550",
|
|
280
|
-
v: "\u2551"
|
|
281
|
-
},
|
|
282
|
-
doubleSingle: {
|
|
283
|
-
tl: "\u2553",
|
|
284
|
-
tr: "\u2556",
|
|
285
|
-
bl: "\u2559",
|
|
286
|
-
br: "\u255C",
|
|
287
|
-
h: "\u2500",
|
|
288
|
-
v: "\u2551"
|
|
289
|
-
},
|
|
290
|
-
doubleSingleRounded: {
|
|
291
|
-
tl: "\u256D",
|
|
292
|
-
tr: "\u256E",
|
|
293
|
-
bl: "\u2570",
|
|
294
|
-
br: "\u256F",
|
|
295
|
-
h: "\u2500",
|
|
296
|
-
v: "\u2551"
|
|
297
|
-
},
|
|
298
|
-
singleThick: {
|
|
299
|
-
tl: "\u250F",
|
|
300
|
-
tr: "\u2513",
|
|
301
|
-
bl: "\u2517",
|
|
302
|
-
br: "\u251B",
|
|
303
|
-
h: "\u2501",
|
|
304
|
-
v: "\u2503"
|
|
305
|
-
},
|
|
306
|
-
singleDouble: {
|
|
307
|
-
tl: "\u2552",
|
|
308
|
-
tr: "\u2555",
|
|
309
|
-
bl: "\u2558",
|
|
310
|
-
br: "\u255B",
|
|
311
|
-
h: "\u2550",
|
|
312
|
-
v: "\u2502"
|
|
313
|
-
},
|
|
314
|
-
singleDoubleRounded: {
|
|
315
|
-
tl: "\u256D",
|
|
316
|
-
tr: "\u256E",
|
|
317
|
-
bl: "\u2570",
|
|
318
|
-
br: "\u256F",
|
|
319
|
-
h: "\u2550",
|
|
320
|
-
v: "\u2502"
|
|
321
|
-
},
|
|
322
|
-
rounded: {
|
|
323
|
-
tl: "\u256D",
|
|
324
|
-
tr: "\u256E",
|
|
325
|
-
bl: "\u2570",
|
|
326
|
-
br: "\u256F",
|
|
327
|
-
h: "\u2500",
|
|
328
|
-
v: "\u2502"
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
var defaultStyle = {
|
|
332
|
-
borderColor: "white",
|
|
333
|
-
borderStyle: "rounded",
|
|
334
|
-
valign: "center",
|
|
335
|
-
padding: 2,
|
|
336
|
-
marginLeft: 1,
|
|
337
|
-
marginTop: 1,
|
|
338
|
-
marginBottom: 1
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
// src/utils.ts
|
|
342
|
-
import {
|
|
343
|
-
ansi256Bg,
|
|
344
|
-
bgBlack,
|
|
345
|
-
bgBlue,
|
|
346
|
-
bgCyan,
|
|
347
|
-
bgGray,
|
|
348
|
-
bgGreen,
|
|
349
|
-
bgLightBlue,
|
|
350
|
-
bgLightCyan,
|
|
351
|
-
bgLightGray,
|
|
352
|
-
bgLightGreen,
|
|
353
|
-
bgLightMagenta,
|
|
354
|
-
bgLightRed,
|
|
355
|
-
bgLightYellow,
|
|
356
|
-
bgMagenta,
|
|
357
|
-
bgRed,
|
|
358
|
-
bgWhite,
|
|
359
|
-
bgYellow,
|
|
360
|
-
black,
|
|
361
|
-
blue,
|
|
362
|
-
bold,
|
|
363
|
-
cyan,
|
|
364
|
-
dim,
|
|
365
|
-
gray,
|
|
366
|
-
green,
|
|
367
|
-
hidden,
|
|
368
|
-
inverse,
|
|
369
|
-
italic,
|
|
370
|
-
lightBlue,
|
|
371
|
-
lightCyan,
|
|
372
|
-
lightGray,
|
|
373
|
-
lightGreen,
|
|
374
|
-
lightMagenta,
|
|
375
|
-
lightRed,
|
|
376
|
-
lightYellow,
|
|
377
|
-
link,
|
|
378
|
-
magenta,
|
|
379
|
-
red,
|
|
380
|
-
reset,
|
|
381
|
-
strikethrough,
|
|
382
|
-
underline,
|
|
383
|
-
white,
|
|
384
|
-
yellow,
|
|
385
|
-
ansi256,
|
|
386
|
-
trueColor,
|
|
387
|
-
trueColorBg,
|
|
388
|
-
stripColors
|
|
389
|
-
} from "kolorist";
|
|
390
|
-
var quotes = collect([
|
|
391
|
-
"The best way to get started is to quit talking and begin doing.",
|
|
392
|
-
"The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty.",
|
|
393
|
-
"Don\u2019t let yesterday take up too much of today.",
|
|
394
|
-
"You learn more from failure than from success. Don\u2019t let it stop you. Failure builds character.",
|
|
395
|
-
"It\u2019s not whether you get knocked down, it\u2019s whether you get up.",
|
|
396
|
-
"If you are working on something that you really care about, you don\u2019t have to be pushed. The vision pulls you.",
|
|
397
|
-
"People who are crazy enough to think they can change the world, are the ones who do.",
|
|
398
|
-
"Failure will never overtake me if my determination to succeed is strong enough.",
|
|
399
|
-
"Entrepreneurs are great at dealing with uncertainty and also very good at minimizing risk. That\u2019s the classic entrepreneur.",
|
|
400
|
-
"We may encounter many defeats but we must not be defeated.",
|
|
401
|
-
"Knowing is not enough; we must apply. Wishing is not enough; we must do.",
|
|
402
|
-
"Imagine your life is perfect in every respect; what would it look like?",
|
|
403
|
-
"We generate fears while we sit. We overcome them by action.",
|
|
404
|
-
"Whether you think you can or think you can\u2019t, you\u2019re right.",
|
|
405
|
-
"Security is mostly a superstition. Life is either a daring adventure or nothing."
|
|
406
|
-
]);
|
|
407
|
-
|
|
408
|
-
// src/console.ts
|
|
409
|
-
import {log as log2, logger} from "@stacksjs/logging";
|
|
410
|
-
import prompts from "prompts";
|
|
411
|
-
|
|
412
|
-
class Prompt {
|
|
413
|
-
required;
|
|
414
|
-
constructor() {
|
|
415
|
-
this.required = false;
|
|
416
|
-
}
|
|
417
|
-
require() {
|
|
418
|
-
this.required = true;
|
|
419
|
-
return this;
|
|
420
|
-
}
|
|
421
|
-
isRequired() {
|
|
422
|
-
return this.required;
|
|
423
|
-
}
|
|
424
|
-
async select(message, options) {
|
|
425
|
-
if (this.isRequired())
|
|
426
|
-
return logger.prompt(message, { ...options, type: "select", required: true });
|
|
427
|
-
return logger.prompt(message, { ...options, type: "select" });
|
|
428
|
-
}
|
|
429
|
-
async checkbox(message, options) {
|
|
430
|
-
if (this.isRequired())
|
|
431
|
-
return logger.prompt(message, { ...options, type: "multiselect", required: true });
|
|
432
|
-
return logger.prompt(message, { ...options, type: "multiselect" });
|
|
433
|
-
}
|
|
434
|
-
async confirm(message, options) {
|
|
435
|
-
if (this.isRequired())
|
|
436
|
-
return logger.prompt(message, { ...options, type: "confirm", required: true });
|
|
437
|
-
return logger.prompt(message, { ...options, type: "confirm" });
|
|
438
|
-
}
|
|
439
|
-
async input(message, options) {
|
|
440
|
-
if (this.isRequired())
|
|
441
|
-
return logger.prompt(message, { ...options, type: "text", required: true });
|
|
442
|
-
return logger.prompt(message, { ...options, type: "text" });
|
|
443
|
-
}
|
|
444
|
-
async password(message, options) {
|
|
445
|
-
if (this.isRequired())
|
|
446
|
-
return logger.prompt(message, { ...options, type: "password", required: true });
|
|
447
|
-
return logger.prompt(message, { ...options, type: "password" });
|
|
448
|
-
}
|
|
449
|
-
async number(message, options) {
|
|
450
|
-
if (this.isRequired())
|
|
451
|
-
return logger.prompt(message, { ...options, type: "numeral", required: true });
|
|
452
|
-
return logger.prompt(message, { ...options, type: "numeral" });
|
|
453
|
-
}
|
|
454
|
-
async multiselect(message, options) {
|
|
455
|
-
if (this.isRequired())
|
|
456
|
-
return logger.prompt(message, { ...options, type: "multiselect", required: true });
|
|
457
|
-
return logger.prompt(message, { ...options, type: "multiselect" });
|
|
458
|
-
}
|
|
459
|
-
async autocomplete(message, options) {
|
|
460
|
-
if (this.isRequired())
|
|
461
|
-
return logger.prompt(message, { ...options, type: "autocomplete", required: true });
|
|
462
|
-
return logger.prompt(message, { ...options, type: "autocomplete" });
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
var prompt = () => new Prompt;
|
|
466
|
-
|
|
467
|
-
// src/run.ts
|
|
468
|
-
async function runCommand(command, options) {
|
|
469
|
-
log2.debug("runCommand:", command);
|
|
470
|
-
log2.debug("options:", options);
|
|
471
|
-
return await exec(command, options);
|
|
472
|
-
}
|
|
473
|
-
async function runProcess(command, options) {
|
|
474
|
-
log2.debug("runProcess:", italic(command));
|
|
475
|
-
log2.debug("runProcess Options:", options);
|
|
476
|
-
return await exec(command, options);
|
|
477
|
-
}
|
|
478
|
-
async function runCommandSync(command, options) {
|
|
479
|
-
log2.debug("runCommandSync:", italic(command));
|
|
480
|
-
log2.debug("runCommandSync Options:", options);
|
|
481
|
-
const result = await execSync(command, options);
|
|
482
|
-
return result;
|
|
483
|
-
}
|
|
484
|
-
async function runCommands(commands, options) {
|
|
485
|
-
const results = [];
|
|
486
|
-
for (const command of commands)
|
|
487
|
-
results.push(await runCommand(command, options));
|
|
488
|
-
return results;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// src/command.ts
|
|
492
|
-
class Command {
|
|
493
|
-
name;
|
|
494
|
-
description;
|
|
495
|
-
options;
|
|
496
|
-
run;
|
|
497
|
-
onFail;
|
|
498
|
-
onSuccess;
|
|
499
|
-
constructor({ name, description, options, run: run2, onFail, onSuccess }) {
|
|
500
|
-
this.name = name;
|
|
501
|
-
this.description = description;
|
|
502
|
-
this.options = options;
|
|
503
|
-
this.run = run2;
|
|
504
|
-
this.onFail = onFail;
|
|
505
|
-
this.onSuccess = onSuccess;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
var command = {
|
|
509
|
-
run: async (command2, options) => {
|
|
510
|
-
return await runCommand(command2, options);
|
|
511
|
-
},
|
|
512
|
-
runSync: async (command2, options) => {
|
|
513
|
-
return await runCommand(command2, options);
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
// src/helpers.ts
|
|
517
|
-
import {config as config2} from "@stacksjs/config";
|
|
518
|
-
import {handleError as handleError2} from "@stacksjs/error-handling";
|
|
519
|
-
import {log as log3} from "@stacksjs/logging";
|
|
520
|
-
import {ExitCode as ExitCode2} from "@stacksjs/types";
|
|
521
|
-
import {bgCyan as bgCyan2, bold as bold2, cyan as cyan2, dim as dim2, gray as gray2, green as green2, italic as italic2} from "kolorist";
|
|
522
|
-
// package.json
|
|
523
|
-
var version = "0.58.73";
|
|
524
|
-
|
|
525
|
-
// src/helpers.ts
|
|
526
|
-
async function intro(command2, options) {
|
|
527
|
-
return new Promise((resolve) => {
|
|
528
|
-
if (options?.quiet === false) {
|
|
529
|
-
console.log();
|
|
530
|
-
console.log(cyan2(bold2("Stacks CLI")) + dim2(` v${version}`));
|
|
531
|
-
console.log();
|
|
532
|
-
}
|
|
533
|
-
let msg = `Running ${bgCyan2(italic2(bold2(` ${command2} `)))}`;
|
|
534
|
-
if (command2 === "buddy deploy")
|
|
535
|
-
msg = `Running ${bgCyan2(italic2(bold2(` ${command2} `)))} for ${bold2(`${config2.app.name}`)} ${italic2(`via ${config2.app.url}`)}`;
|
|
536
|
-
log3.info(msg);
|
|
537
|
-
if (options?.showPerformance === false || options?.quiet)
|
|
538
|
-
return resolve(0);
|
|
539
|
-
return resolve(performance.now());
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
function outro(text, options, error) {
|
|
543
|
-
const opts = {
|
|
544
|
-
type: "success",
|
|
545
|
-
useSeconds: true,
|
|
546
|
-
...options
|
|
547
|
-
};
|
|
548
|
-
opts.message = options?.message || text;
|
|
549
|
-
return new Promise((resolve) => {
|
|
550
|
-
if (error)
|
|
551
|
-
return handleError2(error);
|
|
552
|
-
if (opts?.startTime) {
|
|
553
|
-
let time = performance.now() - opts.startTime;
|
|
554
|
-
if (opts.useSeconds) {
|
|
555
|
-
time = time / 1000;
|
|
556
|
-
time = Math.round(time * 100) / 100;
|
|
557
|
-
}
|
|
558
|
-
if (opts.quiet === true)
|
|
559
|
-
return resolve(ExitCode2.Success);
|
|
560
|
-
if (error)
|
|
561
|
-
log3.error(`[${time.toFixed(2)}${opts.useSeconds ? "s" : "ms"}] Failed`);
|
|
562
|
-
else if (opts.type === "info")
|
|
563
|
-
log3.info(`${dim2(gray2(`[${time.toFixed(2)}${opts.useSeconds ? "s" : "ms"}]`))} ${opts.message ?? "Complete"}`);
|
|
564
|
-
else
|
|
565
|
-
log3.success(`${dim2(gray2(bold2(`[${time.toFixed(2)}${opts.useSeconds ? "s" : "ms"}]`)))} ${bold2(green2(opts.message ?? "Complete"))}`);
|
|
566
|
-
} else {
|
|
567
|
-
if (opts?.type === "info")
|
|
568
|
-
log3.info(text);
|
|
569
|
-
else if (opts?.type === "success" && opts?.quiet !== true)
|
|
570
|
-
log3.success(text);
|
|
571
|
-
}
|
|
572
|
-
return resolve(ExitCode2.Success);
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
// src/parse.ts
|
|
576
|
-
import process3 from "process";
|
|
577
|
-
var isLongOption = function(arg) {
|
|
578
|
-
if (!arg)
|
|
579
|
-
return false;
|
|
580
|
-
return arg.startsWith("--");
|
|
581
|
-
};
|
|
582
|
-
var isShortOption = function(arg) {
|
|
583
|
-
return arg.startsWith("-") && !isLongOption(arg);
|
|
584
|
-
};
|
|
585
|
-
var parseValue = function(value) {
|
|
586
|
-
if (value === "true")
|
|
587
|
-
return true;
|
|
588
|
-
if (value === "false")
|
|
589
|
-
return false;
|
|
590
|
-
const numberValue = Number.parseFloat(value);
|
|
591
|
-
if (!Number.isNaN(numberValue))
|
|
592
|
-
return numberValue;
|
|
593
|
-
return value.replace(/"/g, "");
|
|
594
|
-
};
|
|
595
|
-
var parseLongOption = function(arg, argv2, index, options) {
|
|
596
|
-
const [key, value] = arg.slice(2).split("=");
|
|
597
|
-
if (value !== undefined) {
|
|
598
|
-
options[key] = parseValue(value);
|
|
599
|
-
} else if (index + 1 < argv2.length && !argv2[index + 1].startsWith("-")) {
|
|
600
|
-
options[key] = argv2[index + 1];
|
|
601
|
-
index++;
|
|
602
|
-
} else {
|
|
603
|
-
options[key] = true;
|
|
604
|
-
}
|
|
605
|
-
return index;
|
|
606
|
-
};
|
|
607
|
-
var parseShortOption = function(arg, argv2, index, options) {
|
|
608
|
-
const [key, value] = arg.slice(1).split("=");
|
|
609
|
-
if (key === undefined)
|
|
610
|
-
return index;
|
|
611
|
-
if (value !== undefined && key !== undefined) {
|
|
612
|
-
for (let j = 0;j < key.length; j++)
|
|
613
|
-
options[key[j]] = parseValue(value);
|
|
614
|
-
} else {
|
|
615
|
-
for (let j = 0;j < key.length; j++) {
|
|
616
|
-
if (index + 1 < argv2.length && j === key.length - 1 && !argv2[index + 1].startsWith("-")) {
|
|
617
|
-
options[key[j]] = parseValue(argv2[index + 1]);
|
|
618
|
-
index++;
|
|
619
|
-
} else {
|
|
620
|
-
options[key[j]] = true;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
return index;
|
|
625
|
-
};
|
|
626
|
-
function parseArgv(argv2) {
|
|
627
|
-
if (argv2 === undefined)
|
|
628
|
-
argv2 = process3.argv.slice(2);
|
|
629
|
-
const args = [];
|
|
630
|
-
const options = {};
|
|
631
|
-
for (let i = 0;i < argv2.length; i++) {
|
|
632
|
-
const arg = argv2[i];
|
|
633
|
-
if (!arg)
|
|
634
|
-
continue;
|
|
635
|
-
if (isLongOption(arg))
|
|
636
|
-
i = parseLongOption(arg, argv2, i, options);
|
|
637
|
-
else if (isShortOption(arg))
|
|
638
|
-
i = parseShortOption(arg, argv2, i, options);
|
|
639
|
-
else
|
|
640
|
-
args.push(arg);
|
|
641
|
-
}
|
|
642
|
-
return { args, options };
|
|
643
|
-
}
|
|
644
|
-
function parseArgs(argv2) {
|
|
645
|
-
if (argv2 === undefined)
|
|
646
|
-
argv2 = process3.argv.slice(2);
|
|
647
|
-
return parseArgv(argv2).args;
|
|
648
|
-
}
|
|
649
|
-
function parseOptions(options) {
|
|
650
|
-
options = options || {};
|
|
651
|
-
const args = process3.argv.slice(2);
|
|
652
|
-
for (let i = 0;i < args.length; i++) {
|
|
653
|
-
const arg = args[i];
|
|
654
|
-
if (arg?.startsWith("--")) {
|
|
655
|
-
const key = arg.substring(2);
|
|
656
|
-
const camelCaseKey = key.replace(/-([a-z])/gi, (g) => g[1] ? g[1].toUpperCase() : "");
|
|
657
|
-
if (i + 1 < args.length) {
|
|
658
|
-
if (args[i + 1] === "true" || args[i + 1] === "false") {
|
|
659
|
-
options[camelCaseKey] = args[i + 1] === "true";
|
|
660
|
-
i++;
|
|
661
|
-
} else {
|
|
662
|
-
options[camelCaseKey] = args[i + 1];
|
|
663
|
-
i++;
|
|
664
|
-
}
|
|
665
|
-
} else {
|
|
666
|
-
options[camelCaseKey] = true;
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
if (Object.keys(options).length === 0)
|
|
671
|
-
return { dryRun: false, quiet: false, verbose: false };
|
|
672
|
-
Object.keys(options).forEach((key) => {
|
|
673
|
-
if (!options)
|
|
674
|
-
return { dryRun: false, quiet: false, verbose: false };
|
|
675
|
-
const value = options[key];
|
|
676
|
-
if (value === "true" || value === "false")
|
|
677
|
-
options[key] = value === "true";
|
|
678
|
-
});
|
|
679
|
-
return options;
|
|
680
|
-
}
|
|
681
|
-
function buddyOptions(options) {
|
|
682
|
-
if (!options) {
|
|
683
|
-
options = process3.argv.slice(2);
|
|
684
|
-
options = Array.from(new Set(options));
|
|
685
|
-
if (options[0] && !options[0].startsWith("-"))
|
|
686
|
-
options.shift();
|
|
687
|
-
}
|
|
688
|
-
if (options?.verbose) {
|
|
689
|
-
log.debug("process.argv", process3.argv);
|
|
690
|
-
log.debug("process.argv.slice(2)", process3.argv.slice(2));
|
|
691
|
-
log.debug("options inside buddyOptions", options);
|
|
692
|
-
}
|
|
693
|
-
return options.join(" ");
|
|
694
|
-
}
|
|
695
|
-
// src/spinner.ts
|
|
696
|
-
import ora from "ora";
|
|
697
|
-
var spinner = ora;
|
|
698
|
-
export {
|
|
699
|
-
yellow,
|
|
700
|
-
white,
|
|
701
|
-
underline,
|
|
702
|
-
trueColorBg,
|
|
703
|
-
trueColor,
|
|
704
|
-
stripColors,
|
|
705
|
-
stripAnsi,
|
|
706
|
-
strikethrough,
|
|
707
|
-
spinner,
|
|
708
|
-
runProcess,
|
|
709
|
-
runCommands,
|
|
710
|
-
runCommandSync,
|
|
711
|
-
runCommand,
|
|
712
|
-
rightAlign,
|
|
713
|
-
reset,
|
|
714
|
-
red,
|
|
715
|
-
quotes,
|
|
716
|
-
prompts,
|
|
717
|
-
prompt,
|
|
718
|
-
parseOptions,
|
|
719
|
-
parseArgv,
|
|
720
|
-
parseArgs,
|
|
721
|
-
outro,
|
|
722
|
-
magenta,
|
|
723
|
-
logger,
|
|
724
|
-
log2 as log,
|
|
725
|
-
link,
|
|
726
|
-
lightYellow,
|
|
727
|
-
lightRed,
|
|
728
|
-
lightMagenta,
|
|
729
|
-
lightGreen,
|
|
730
|
-
lightGray,
|
|
731
|
-
lightCyan,
|
|
732
|
-
lightBlue,
|
|
733
|
-
leftAlign,
|
|
734
|
-
kolorist,
|
|
735
|
-
italic,
|
|
736
|
-
inverse,
|
|
737
|
-
intro,
|
|
738
|
-
installStack,
|
|
739
|
-
installPackage,
|
|
740
|
-
hidden,
|
|
741
|
-
green,
|
|
742
|
-
gray,
|
|
743
|
-
getColor,
|
|
744
|
-
execSync,
|
|
745
|
-
exec,
|
|
746
|
-
dim,
|
|
747
|
-
cyan,
|
|
748
|
-
command,
|
|
749
|
-
colors,
|
|
750
|
-
colorize,
|
|
751
|
-
cli,
|
|
752
|
-
centerAlign,
|
|
753
|
-
buddyOptions,
|
|
754
|
-
box,
|
|
755
|
-
bold,
|
|
756
|
-
blue,
|
|
757
|
-
black,
|
|
758
|
-
bgYellow,
|
|
759
|
-
bgWhite,
|
|
760
|
-
bgRed,
|
|
761
|
-
bgMagenta,
|
|
762
|
-
bgLightYellow,
|
|
763
|
-
bgLightRed,
|
|
764
|
-
bgLightMagenta,
|
|
765
|
-
bgLightGreen,
|
|
766
|
-
bgLightGray,
|
|
767
|
-
bgLightCyan,
|
|
768
|
-
bgLightBlue,
|
|
769
|
-
bgGreen,
|
|
770
|
-
bgGray,
|
|
771
|
-
bgCyan,
|
|
772
|
-
bgBlue,
|
|
773
|
-
bgBlack,
|
|
774
|
-
ansi256Bg,
|
|
775
|
-
ansi256,
|
|
776
|
-
align,
|
|
777
|
-
Prompt,
|
|
778
|
-
Command,
|
|
779
|
-
CAC
|
|
780
|
-
};
|