Files
sim/packages/sim-cli/package.json
Waleed 01188e2ca6 improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8 (#10350)
* improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8

- commander ^11.1.0 -> ^15.1.0 (sim-cli and the root docs generator that walks its command tree)
- chalk 5.6.2 -> 6.0.1 (sim-cli)
- @babel/parser and @babel/types 7.29.x -> 8.1.2 in workflow-code and workspace-code, and the root
  parser the audit scripts use, so the CLI bundle carries one parser copy; apps/sim keeps 7 for the
  executor's own parse of user function code
- workflow-code: Babel 8 types a member's object as Expression | Super; add an isMemberAccess guard
  and type chain roots as MemberExpression['object']; drop the 'Import' callee hint case Babel 8 no
  longer produces
- audits: read TSImportType.source (Babel 8 rename) and drop the Babel 7 Import-callee shapes

* improvement(sim-cli): require node ^22.18.0 || >=24.11.0 to match bundled babel 8 and commander 15

- engines.node in sim-cli, workflow-code, workflow-sdk and workspace-code
- README and CLI install docs state the new floor
- the publish workflow smoke-tests the packed bundle on node 22.18.0, the floor
2026-11-23 12:34:12 -08:00

86 lines
2.2 KiB
JSON

{
"name": "sim",
"version": "2.3.0",
"description": "Sim CLI - talk to the Sim API from your terminal",
"type": "module",
"imports": {
"#sim-cli/*": "./src/*.ts"
},
"bin": {
"sim": "dist/index.js"
},
"scripts": {
"prebuild": "bun run clean",
"build": "bun build src/index.ts src/runtime.ts --target=node --format=esm --packages=bundle --reject-unresolved --env='SIM_CLI_TELEMETRY_*' --outdir=dist && tsc -p tsconfig.types.json",
"clean": "bun -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
"type-check": "tsc --noEmit",
"lint": "biome check --write --unsafe .",
"lint:check": "biome check .",
"format": "biome format --write .",
"format:check": "biome format .",
"test": "vitest run",
"prepublishOnly": "bun run build"
},
"files": [
"dist",
"THIRD_PARTY_LICENSES"
],
"keywords": [
"sim",
"ai",
"agents",
"cli",
"workflow"
],
"author": "Sim",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/simstudioai/sim.git",
"directory": "packages/sim-cli"
},
"homepage": "https://github.com/simstudioai/sim/tree/main/packages/sim-cli#readme",
"bugs": {
"url": "https://github.com/simstudioai/sim/issues"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": "^22.18.0 || >=24.11.0"
},
"dependencies": {
"chalk": "6.0.1",
"commander": "^15.1.0",
"csv-parse": "7.0.3",
"diff": "9.0.0",
"js-yaml": "4.3.2",
"minisearch": "7.2.0",
"proper-lockfile": "4.1.2"
},
"devDependencies": {
"@sim/testing": "workspace:*",
"@sim/tsconfig": "workspace:*",
"@sim/utils": "workspace:*",
"@sim/workflow-code": "workspace:*",
"@sim/workflow-sdk": "workspace:*",
"@sim/workflow-types": "workspace:*",
"@sim/workspace-code": "workspace:*",
"@types/js-yaml": "4.0.9",
"@types/node": "24.19.2",
"@types/proper-lockfile": "4.1.4",
"typescript": "^7.0.2",
"vitest": "^5.1.0"
},
"exports": {
"./embed": {
"types": "./src/embed.ts",
"default": "./src/embed.ts"
},
"./runtime": {
"types": "./dist/runtime.d.ts",
"default": "./dist/runtime.js"
}
}
}