Files
Waleed 6dd989a394 improvement(workflow-code): one primer for coding agents and mothership, pre-installed typescript (#10449)
* improvement(workflow-code): one primer for coding agents and Mothership, pre-installed TypeScript

- source-primer: a cli/chat surface; the chat primer stops the shell loop at apply and tests and
  deploys through sim_cli, with no workspace source or --run; print-source-primers emits chat.workflow
- the CLI serves the chat primer and source help where its host is Mothership: SIM_CLI_HOST=mothership
  in the workbench env (sandbox-session) or host on runEmbeddedCli (sim_cli)
- command inventory: workspaces source check is mothershipUnavailable with the rest of its group
- source check reads the pinned TypeScript from SIM_TYPESCRIPT_DIR before installing it, and a
  failed check ends stderr with its first error

* fix(workflow-code): deploy only the tested draft from chat, resolve SIM_TYPESCRIPT_DIR, drop ./host from the published manifest

* fix(workflow-code): keep the test-resource warning on --allow, concrete table commands in the chat help
2026-11-26 16:46:45 -08:00

90 lines
2.3 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"
},
"./host": {
"types": "./src/host.ts",
"default": "./src/host.ts"
},
"./runtime": {
"types": "./dist/runtime.d.ts",
"default": "./dist/runtime.js"
}
}
}