-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(cli): Sim CLI with AWS-style profiles and a platform key exchange #6147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
357 commits
Select commit
Hold shift + click to select a range
6e426f8
v0.7.19: newsletter, contact, careers
waleedlatif1 62ef96f
v0.7.20: perf, ui improvements, fable 5, tables row size bump, blogs
waleedlatif1 4fcfe76
v0.7.21: tools audits and extensions, appsheet integration, hitl fix
waleedlatif1 8afc4f1
v0.7.22: competitor pages, seo fixes, billing usage table
waleedlatif1 616a71d
v0.7.23: mobile comparison table, security hardening, subflow & strea…
waleedlatif1 62d3140
v0.7.24: frontend perf improvements, md editor fixes, mailer fix, too…
waleedlatif1 21ee602
v0.7.25: new tools, gmail send fixes, email lifecycle adjustments
waleedlatif1 9d44d42
v0.7.26: API block default headers fix, tables perf and correctness, …
waleedlatif1 067d3b0
v0.7.27: document tags improvements, grok 4.5, forking, custom blocks…
waleedlatif1 e2fecc8
v0.7.28: rich markdown editor improvements, autosave in files, helm i…
waleedlatif1 6c3d11b
v0.7.29: GLM, ui and ux improvements, tables improvements, enterprise…
waleedlatif1 207785c
v0.7.30: md editor improvements, og image updates, spacexai hosted ke…
waleedlatif1 e01bfb1
v0.7.31: sidebar shortcut, env var expansion in lifecycle triggers, a…
waleedlatif1 dc81795
v0.7.32: concurrency control, seo/geo, new lib, buffer & flint integr…
waleedlatif1 377f963
v0.7.33: workflow/custom block fix, community pages improvements, cha…
waleedlatif1 a403d05
v0.7.34: billing page fixes, chat rendering improvements
waleedlatif1 91b29b3
v0.7.35: sidebar styling, custom blocks reserved names fix, client en…
icecrasher321 50364ed
Merge pull request #5677 from simstudioai/staging
TheodoreSpeaks 874c998
v0.7.36: mothership secrets resolution, SEO, service accounts for var…
waleedlatif1 9d23e25
v0.7.37: impersonation fixes, instagram/tiktok, landing improvements,…
icecrasher321 28b56d7
v0.7.38: mothership improvements, clickup, rocketlane integrations, g…
waleedlatif1 4ddad74
v0.7.39: mcp oauth hardening, chat perf improvements
waleedlatif1 3d12a6d
v0.7.40: library, mcp hardening, pi code reviewer, gmail fix
waleedlatif1 3ca1b65
v0.7.41: email fixes, MCP fixes, gemini 3.6 flash, GitHub runners fal…
waleedlatif1 31b81ca
v0.7.42: event-driven discovery for MCP, nuqs adoption for deeplinks,…
waleedlatif1 578d9dd
v0.7.43: ci and connector fixes
waleedlatif1 41bf1c4
v0.7.44: nextjs upgrade, CSV imports to tables fixes, tombstone for K…
waleedlatif1 6f514c1
v0.7.45: access control groups enhancements, sso domain verification,…
waleedlatif1 fe2241e
v0.7.46: settings consolidation, setup wizard, table column types and…
waleedlatif1 5e14639
v0.7.47: seo, import/export api, trigger task sizes
waleedlatif1 c3ed1e9
v0.7.48: perf improvements, confluence and sharepoint fixes, dependen…
waleedlatif1 2a62673
v0.7.49: outlook calendar, logfire tools, shared folders, desktop sec…
waleedlatif1 52fdc4b
improvement(api): pull in the v2 external endpoint surface
TheodoreSpeaks 854f7d3
Merge origin/staging into feat/sim-cli
TheodoreSpeaks 3e8141c
Merge origin/staging: align table v2 surface with the v2 endpoint sta…
TheodoreSpeaks 65dc7e8
feat(usage): accept X-API-Key on usage-logs list + export
TheodoreSpeaks 2676f49
feat(cli): sim CLI with AWS-style profiles and a platform key exchange
TheodoreSpeaks 3a3ceb5
feat(billing): dedicated v2 usage endpoints; keep internal usage rout…
TheodoreSpeaks f5eb20b
Merge improvement/v2-endpoints: reconciled tables v2, usage endpoints
TheodoreSpeaks b29d694
feat(cli): generate the CLI's v2 API from the route contracts, add ta…
TheodoreSpeaks e8534dc
fix(cli): make the generated v2 API a fixed point of the formatter
TheodoreSpeaks 6af4fdb
fix(cli-auth): wait for the workspace list before allowing approval
TheodoreSpeaks 5d3785a
fix(cli-auth): name minted keys by timestamp, not date
TheodoreSpeaks d8021bf
feat(docs): validate OpenAPI specs against the Zod contracts in CI
TheodoreSpeaks 9ee4099
fix(docs): recursive field diff in check:openapi + the deep drift it …
TheodoreSpeaks 19d929b
v0.7.50: custom sandboxes, auto model, tables currency type, perf imp…
waleedlatif1 f6c9cdb
fix(security): close the triggerType rate-limit bypass on workflow ex…
TheodoreSpeaks 51b0cf1
refactor(execution): extract enqueue/status/cancel into shared libs
TheodoreSpeaks 4320fed
feat(execution): callable execution service + structured error classi…
TheodoreSpeaks 9c36400
feat(api): POST /api/v2/workflows/[id]/execute
TheodoreSpeaks 3387ee7
feat(api): v2 executions status + cancel with queued backfill
TheodoreSpeaks c411f6e
feat(execution): workflow tool + MCP bridge run in-process
TheodoreSpeaks 63fcfe2
feat(infra): CORS + CSP coverage for the v2 execute path
TheodoreSpeaks 272de32
feat(ui): deploy modal + copilot advertise the v2 execute surface
TheodoreSpeaks 35d306d
docs(api): document the v2 execution surface
TheodoreSpeaks 53ea6a8
feat(api): gate the whole /api/v2 surface behind one flag; UI stays o…
TheodoreSpeaks e20a3e1
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks 936efcf
feat(cli): CLI contract for the v2 surface, incl. execution
TheodoreSpeaks 528b52d
Merge origin/staging into improvement/v2-endpoints
TheodoreSpeaks fbc7b17
fix(executor): restore child-cost aggregation dropped by the staging …
TheodoreSpeaks 1a3d004
feat(cli): yaml and text output formats
TheodoreSpeaks 5fea5f7
refactor(tables): make lib/table/orchestration the single implementat…
TheodoreSpeaks 7ef8b49
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks e34372b
refactor(cli): output format is a profile setting, not a flag
TheodoreSpeaks 3e423ba
feat(cli): runtime that builds every command from the contract
TheodoreSpeaks 4a6ac48
fix(cli): review round 1 — flag lookup, terminal controls, download s…
TheodoreSpeaks 0ca127c
fix(cli): review round 2 — body-cursor paging, timestamp sanitization
TheodoreSpeaks 9c0317d
fix(cli): review round 3 — poll retry, download flush errors
TheodoreSpeaks 678bdc4
fix(cli): review round 4 — repeated flags encode per field kind
TheodoreSpeaks 681ee38
fix(cli): review round 5 — header sanitization, auth ordering, stale …
TheodoreSpeaks 86486d5
v0.7.51: hybrid search for knowledgebases, ui improvements, db perf i…
waleedlatif1 eddd53a
feat(api): add v2 endpoints for MCP servers, skills, custom tools, fo…
TheodoreSpeaks ab6684f
fix(contracts): anchor the predicate double-cast annotation to the cast
TheodoreSpeaks fb413dd
Merge remote-tracking branch 'origin/v2-api-spec' into feat/sim-cli
TheodoreSpeaks 96c5575
Merge v2-api-spec into improvement/v2-endpoints
TheodoreSpeaks 07620c3
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 29b64c6
fix(skills): point the orchestration error contract at its moved module
TheodoreSpeaks 9a0e1e3
feat(cli): pick up the new v2 domains; discover modules instead of li…
TheodoreSpeaks 45c7d05
Merge remote-tracking branch 'origin/main' into improvement/v2-endpoints
TheodoreSpeaks 344a012
fix(cli): render single-key resource envelopes, and column the new do…
TheodoreSpeaks 0a77c75
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks edd9a06
refactor(knowledge): make lib/knowledge/orchestration the single impl…
TheodoreSpeaks 676bd83
fix(cli): stop dropping nested fields, and emit exports as documents
TheodoreSpeaks 7918784
feat(cli): JSON flags accept @file and @- alongside inline JSON
TheodoreSpeaks 5df4c75
feat(api): expand the public v2 files surface (#6160)
TheodoreSpeaks d1f386b
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks eb9c1bb
feat(cli): wire the expanded v2 files surface
TheodoreSpeaks 5154a92
feat(cli): sim files upload
TheodoreSpeaks b97987e
fix(cli): make tables rows query show the rows
TheodoreSpeaks 89b4d9b
fix(cli): make boolean flags able to say false
TheodoreSpeaks 2d8350e
feat(api): add search, filtering, and sorting to the v2 list endpoint…
TheodoreSpeaks ca1dad8
feat(api): complete the v2 workflows resource with versions and CRUD …
TheodoreSpeaks 5692261
feat(api): expand v2 tables with stateless multipart transfers (#6188)
TheodoreSpeaks 0f31294
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks a0fa865
feat(cli): pick up v2 workflow CRUD, table transfers, and list search
TheodoreSpeaks 39a4a4f
feat(cli): sim tables import
TheodoreSpeaks 4ece5b7
feat(cli): default tables import to a new table named after the file
TheodoreSpeaks e1ec233
feat(v2-tables): paginate the table list
TheodoreSpeaks 832d4ee
Merge remote-tracking branch 'origin/staging' into improvement/v2-end…
TheodoreSpeaks 3be6ed7
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks bb09d3c
Merge branch 'improvement/v2-endpoints' into feat/sim-cli
TheodoreSpeaks 0c7b64a
chore(cli): regenerate for the paginated table list
TheodoreSpeaks e1810a6
fix(cli): make tables rows create and tables columns run usable
TheodoreSpeaks 3de8dc3
feat(api): add multipart knowledge document uploads
TheodoreSpeaks 94eb1dc
fix(api): keep usage admission at knowledge upload session creation
TheodoreSpeaks 05f298a
feat(knowledge): wire knowledge base uploads to multipart sessions
TheodoreSpeaks b528ad0
fix(knowledge): refuse to abort an upload once a document is bound
TheodoreSpeaks 09c27a4
fix(uploads): prevent multipart cleanup races
TheodoreSpeaks 7612e8d
fix(cli): improve command usability and structure
TheodoreSpeaks 48b9b0b
Merge pull request #6244 from simstudioai/feat/v2-knowledge-multipart…
TheodoreSpeaks 12f11ca
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 4e132f0
feat(cli): support knowledge document uploads
TheodoreSpeaks f01c4be
Unify file creation and signed upload sessions (#6264)
TheodoreSpeaks 19708bf
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 383f0f8
fix(cli): support unified upload sessions
TheodoreSpeaks 98aa51f
feat(api): add file metadata endpoint
TheodoreSpeaks 9c3df54
feat(cli): accept simple list inputs
TheodoreSpeaks 2a27f9e
improvement(api): scope folders to resource paths (#6284)
TheodoreSpeaks 3b7684a
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 03187ab
feat(cli): add path-based resource directories
TheodoreSpeaks d233491
feat(cli): add resource mkdir commands
TheodoreSpeaks 936ac60
fix(cli): accept positional folder paths
TheodoreSpeaks ab11711
fix(api): normalize folder paths and unblock resource mutations
TheodoreSpeaks 2dea402
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 3577b08
fix(api): make resource cleanup and metadata consistent
TheodoreSpeaks 6d5179a
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks c0c20bf
improvement(uploads): persist multipart sessions in postgres
TheodoreSpeaks 4b06c45
fix(db): store table row trigger timestamps in UTC
TheodoreSpeaks 11b370d
Merge branch 'improvement/v2-endpoints' of github.com:simstudioai/sim…
TheodoreSpeaks edff347
improvement(api): default folder deletion to non-recursive
TheodoreSpeaks 0b3451f
Merge branch 'improvement/v2-endpoints' of github.com:simstudioai/sim…
TheodoreSpeaks da611cb
feat(cli): streamline common resource workflows
TheodoreSpeaks 28698ee
feat(cli): standardize resource command syntax
TheodoreSpeaks e1a8a24
fix(billing): unify chat usage source
TheodoreSpeaks 255f700
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks a2627cc
improvement(logs): expose trace spans on log detail
TheodoreSpeaks e411509
feat(cli): sync unified chat billing source
TheodoreSpeaks cc75820
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks b0a761a
feat(cli): expose log detail trace spans
TheodoreSpeaks 701400e
fix(logs): parse list trace spans
TheodoreSpeaks 607572a
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks f32dc83
improvement(api): replace workflow jobs with execution resources (#6294)
TheodoreSpeaks 01c3176
improvement(api): unify v2 resource query layers (#6319)
TheodoreSpeaks fdd1fd3
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 6967c60
fix(api): close v2 resume and log gaps
TheodoreSpeaks 477f642
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 4cdbb62
Merge origin/staging into improvement/v2-endpoints
TheodoreSpeaks f67d1b1
Merge latest staging into improvement/v2-endpoints
TheodoreSpeaks 2c0fd4f
Merge branch 'improvement/v2-endpoints' of github.com:simstudioai/sim…
TheodoreSpeaks 21e14c7
feat(cli): improve v2 command workflows
TheodoreSpeaks fd82f81
feat(api): rename v2 executions to runs
TheodoreSpeaks 2696215
Merge branch 'improvement/v2-endpoints' of github.com:simstudioai/sim…
TheodoreSpeaks 786e0a4
feat(api): split credentials and secrets
TheodoreSpeaks a95cd24
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 15efae7
feat(api): add workspace metadata and email attribution
TheodoreSpeaks 804fcc4
improvement(api): consolidate public v2 route handling
TheodoreSpeaks 32f1879
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks dc6f7fb
feat(cli): sync v2 API and personal login defaults
TheodoreSpeaks f4b6547
fix(cli): use profile workspace for workspace get
TheodoreSpeaks d84ac12
fix(cli): use profile workspace for member listing
TheodoreSpeaks b177b3a
improvement(files): centralize operations across APIs and Copilot (#6…
TheodoreSpeaks 416f600
fix(cli): restore nested knowledge document commands
TheodoreSpeaks d4bdb87
feat(cli): add interactive Sim chat
Sg312 abcc42f
Merge remote-tracking branch 'origin/feat/sim-cli' into feat/sim-cli
Sg312 5de6269
improvement(api): centralize remaining v2 resource operations (#6412)
TheodoreSpeaks 464bbf6
improvement(api): migrate policy-sensitive v2 reads (#6410)
TheodoreSpeaks d22e6bd
improvement(workflows): centralize v2 application operations (#6411)
TheodoreSpeaks d7ccbec
refactor(api): migrate v2 knowledge operations (#6413)
TheodoreSpeaks de26320
feat(cli): refine chat and desktop updates
Sg312 2cab7d7
improvement(tables): centralize v2 application operations (#6414)
TheodoreSpeaks e7e432b
style(desktop): refine macOS installer layout
Sg312 8142bf4
fix(api): type timestamp cursor parameters
Sg312 3f0c1fc
feat(cli): add saved chat commands
Sg312 ae6e128
chore(desktop): trigger updated prerelease
Sg312 6129182
feat(cli): publish @simai/cli release channels
TheodoreSpeaks 7e27fa9
Merge remote-tracking branch 'origin/feat/sim-cli' into feat/sim-cli
TheodoreSpeaks 2ec5c31
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks 35a7078
fix(ci): include auth package in app prune
TheodoreSpeaks 9d7264c
feat(cli): separate file descriptions from content
TheodoreSpeaks d4c7464
feat(cli): add resumable async Sim Chat
Sg312 96f123f
Merge remote-tracking branch 'origin/feat/sim-cli' into feat/sim-cli
Sg312 a6aad94
fix(cli): guard file unsharing
Sg312 aae5354
feat(auth): add scoped internal executor delegation (#6459)
TheodoreSpeaks 18c043e
Include share status in file metadata
TheodoreSpeaks 88e7560
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks ce5340c
Merge remote-tracking branch 'origin/feat/sim-cli' into feat/sim-cli
TheodoreSpeaks 97957d1
feat(auth): centralize delegated identity policy (#6462)
TheodoreSpeaks 5e30080
fix(cli): stream file content to stdout by default
TheodoreSpeaks 8dfc6bb
improvement(copilot): consolidate application adapters (#6450)
TheodoreSpeaks d692245
improvement(api): harden application route boundaries (#6451)
TheodoreSpeaks 8c1f927
fix(knowledge): enforce trusted workspace scope (#6452)
TheodoreSpeaks 8b3b41b
refactor: enforce Copilot table application boundary (#6453)
TheodoreSpeaks bc54274
fix(workflows): migrate Copilot application boundary (#6455)
TheodoreSpeaks c0ef569
Merge remote-tracking branch 'origin/improvement/v2-endpoints' into f…
TheodoreSpeaks b25e7ba
fix(copilot): recover tool arguments lost when a call is checkpointed…
Sg312 2af8522
feat(credentials): add v2 OAuth connection APIs
TheodoreSpeaks f0767d3
fix(credentials): preserve active OAuth connection links
TheodoreSpeaks e4b09dc
fix(credentials): bind OAuth links to connection intent
TheodoreSpeaks e149636
feat(credentials): complete v2 credential lifecycle
TheodoreSpeaks 7fcf26f
fix(credentials): make disconnect idempotent
TheodoreSpeaks cf680e6
fix(credentials): stabilize oauth draft retries
TheodoreSpeaks 91ce49f
fix(credentials): require credential admin for deletion
TheodoreSpeaks bfdfa4e
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks b8d4a95
fix(credentials): bind oauth callbacks to drafts
TheodoreSpeaks cbe9b7b
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 75d3327
fix(credentials): fail closed on oauth completion
TheodoreSpeaks 333fdf6
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks c9a51ae
fix(credentials): bind shopify completion to oauth state
TheodoreSpeaks ebfa60f
revert(chat): remove Sim Chat and mothership changes
TheodoreSpeaks 036bfa0
fix(credentials): align custom oauth reconnects
TheodoreSpeaks 22d845a
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 981f757
fix(credentials): centralize application authorization
TheodoreSpeaks d5190c4
Merge origin/staging into feat/sim-cli
TheodoreSpeaks 135d95b
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 96ef2bd
fix(credentials): keep OAuth draft intent immutable
TheodoreSpeaks a3bca71
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 2cb08cd
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks f5b8994
Merge remote-tracking branch 'origin/staging' into feat/sim-cli
TheodoreSpeaks 90fb920
chore(cli): regenerate v2 API for the staging sweep
TheodoreSpeaks b24b6c0
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 147b161
fix(credentials): allow renamed reconnect targets
TheodoreSpeaks 7b74299
fix(credentials): close OAuth draft edge cases
TheodoreSpeaks 52f7d27
fix(ci): green the repo audits after the staging merge
TheodoreSpeaks c2ccac2
fix(cli): read share fields from the v2 share object
TheodoreSpeaks d419ada
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks ae46594
fix(credentials): fail closed without breaking auth
TheodoreSpeaks c4f29c5
Merge origin/staging into feat/sim-cli
TheodoreSpeaks 65b2ce0
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks 7d17fc9
improvement(cli): bundle and publish as @sim/cli
TheodoreSpeaks 4660f65
Merge remote-tracking branch 'origin/staging' into feat/credential-v2…
TheodoreSpeaks b413183
fix(credentials): preserve migrated route behavior
TheodoreSpeaks 991ed05
Merge remote-tracking branch 'origin/feat/credential-v2-api' into fea…
TheodoreSpeaks dd85f55
fix(cli): confirm before overwriting login profile
TheodoreSpeaks 918968e
fix(cli): adapt service-account credential fields
TheodoreSpeaks d7ff17a
feat(cli): prompt for secret values
TheodoreSpeaks 2db10c1
Merge remote-tracking branch 'origin/staging' into feat/sim-cli
TheodoreSpeaks 2dca8ba
fix(cli): harden login and credentialless chat
TheodoreSpeaks 4414c5d
fix(cli): skip existing package releases
TheodoreSpeaks a369eab
fix(cli): avoid exposing API key fragments
TheodoreSpeaks f4e898c
fix(cli): cancel failed download streams
TheodoreSpeaks f00b86f
fix(cli): sanitize authentication metadata
TheodoreSpeaks b3f150c
fix(cli): rename authentication output metadata
TheodoreSpeaks 2b01b00
fix(cli): publish downloads atomically
TheodoreSpeaks 90c21fd
fix(cli): harden download destinations and labels
TheodoreSpeaks ab22e0d
fix(cli): support dangling download symlinks
TheodoreSpeaks 18fc377
fix(cli): keep new downloads atomic
TheodoreSpeaks 8027afc
refactor(cli): remove unrelated Copilot changes
TheodoreSpeaks 582d3dd
fix(cli): publish as sim package
TheodoreSpeaks d252c86
fix(cli): use staging npm tag
TheodoreSpeaks 7b84b02
fix(cli): align vitest lock resolution
TheodoreSpeaks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,149 @@ | ||
| name: Publish Sim API CLI Package | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, staging, dev] | ||
| paths: | ||
| - 'packages/sim-cli/**' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: publish-sim-cli-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| publish-npm: | ||
| runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-latest' }} | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | ||
| with: | ||
| bun-version: 1.3.14 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Cache Bun dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.bun/install/cache | ||
| node_modules | ||
| **/node_modules | ||
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-bun- | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
|
|
||
| - name: Verify npm authentication | ||
| env: | ||
| NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: bun pm whoami | ||
|
|
||
| - name: Run tests | ||
| working-directory: packages/sim-cli | ||
| run: bun run test | ||
|
|
||
| - name: Type-check package | ||
| working-directory: packages/sim-cli | ||
| run: bun run type-check | ||
|
|
||
| - name: Build package | ||
| working-directory: packages/sim-cli | ||
| run: bun run build | ||
|
|
||
| - name: Resolve release channel | ||
| id: release | ||
| working-directory: packages/sim-cli | ||
| env: | ||
| BRANCH: ${{ github.ref_name }} | ||
| run: | | ||
| BASE_VERSION="$(bun -p "require('./package.json').version")" | ||
| if [[ ! "$BASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "Package version must be a stable X.Y.Z base, got '$BASE_VERSION'." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| case "$BRANCH" in | ||
| dev) | ||
| VERSION="${BASE_VERSION}-dev.${GITHUB_RUN_NUMBER}.${GITHUB_RUN_ATTEMPT}" | ||
| TAG="dev" | ||
| ;; | ||
| staging) | ||
| VERSION="${BASE_VERSION}-preview.${GITHUB_RUN_NUMBER}.${GITHUB_RUN_ATTEMPT}" | ||
| TAG="staging" | ||
| ;; | ||
| main) | ||
| VERSION="$BASE_VERSION" | ||
| TAG="latest" | ||
| ;; | ||
| *) | ||
| echo "Unsupported release branch '$BRANCH'." >&2 | ||
| exit 1 | ||
| ;; | ||
| esac | ||
|
|
||
| bun pm pkg set "version=$VERSION" | ||
| RESOLVED_VERSION="$(bun -p "require('./package.json').version")" | ||
| if [ "$RESOLVED_VERSION" != "$VERSION" ]; then | ||
| echo "Version injection mismatch: wanted '$VERSION', got '$RESOLVED_VERSION'." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| { | ||
| echo "version=$VERSION" | ||
| echo "tag=$TAG" | ||
| } >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Smoke-test packed Node bundle | ||
| working-directory: packages/sim-cli | ||
| run: | | ||
| set -euo pipefail | ||
| SMOKE_DIR="$(mktemp -d "$RUNNER_TEMP/sim-cli-smoke.XXXXXX")" | ||
| PACKAGE_PATH="$SMOKE_DIR/sim-cli.tgz" | ||
| bun pm pack --ignore-scripts --filename "$PACKAGE_PATH" --quiet | ||
| tar -xzf "$PACKAGE_PATH" -C "$SMOKE_DIR" | ||
| "$SMOKE_DIR/package/dist/index.js" --version | ||
|
|
||
| - name: Check if version already exists | ||
| id: version_check | ||
| working-directory: packages/sim-cli | ||
| env: | ||
| VERSION: ${{ steps.release.outputs.version }} | ||
| run: | | ||
| if bun pm view "sim@$VERSION" version > /dev/null 2>&1; then | ||
| echo "exists=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "exists=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Publish to npm | ||
| if: steps.version_check.outputs.exists == 'false' | ||
| working-directory: packages/sim-cli | ||
| env: | ||
| NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| NPM_TAG: ${{ steps.release.outputs.tag }} | ||
| run: bun publish --access public --tag "$NPM_TAG" --no-save | ||
|
TheodoreSpeaks marked this conversation as resolved.
|
||
|
|
||
| - name: Summarize release | ||
| if: steps.version_check.outputs.exists == 'false' | ||
| env: | ||
| VERSION: ${{ steps.release.outputs.version }} | ||
| NPM_TAG: ${{ steps.release.outputs.tag }} | ||
| run: echo "Published sim@$VERSION with the '$NPM_TAG' tag." | ||
|
|
||
| - name: Summarize skipped release | ||
| if: steps.version_check.outputs.exists == 'true' | ||
| env: | ||
| VERSION: ${{ steps.release.outputs.version }} | ||
| run: echo "Skipped sim@$VERSION because that version is already published." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
apps/docs/content/docs/en/api-reference/(generated)/execution/meta.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "pages": ["executeWorkflow", "getWorkflowExecution", "cancelExecution", "getJobStatus"] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.