Skip to content

v0.9.64: mcp code mode, hourly activity rollup, search cli sources - #10207

Merged
waleedlatif1 merged 22 commits into
mainfrom
staging
Nov 19, 2026
Merged

waleedlatif1 merged 22 commits into
mainfrom
staging

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

waleedlatif1 and others added 12 commits November 18, 2026 17:00
…#10194)

* improvement(mothership): log each client tool's outcome and wait time

* improvement(mothership): record the wait time on a client tool wait that throws
* improvement(seo): connect buying guides to runnable workflows

* fix(seo): clarify workflow steps and use the HTTP runner
…10197)

* feat(search): manage sources and permission uploads through the CLI

* fix(search): align source operations and complete CLI imports

* fix(cli): preserve upload errors and support early Node 20

* fix(cli): retain structured upload errors and retry guidance
…ing credentials and array inputs (#10198)

* fix(integrations): stop the higgsfield and exa tools crashing on missing credentials and array inputs

* fix(integrations): type-safe higgsfield credential regression test
…10199)

* improvement(search): index permission-import identities by subject

* improvement(search): format migration snapshot
* feat(usage): serve organization activity from an hourly rollup

* fix(usage): type the rollup marking hook, bump the chart version

* fix(usage): address review: replica lag, retention marks, deferred chats, bounded housekeeping

* fix(usage): measure replica lag with the pass's own lease as heartbeat
…0202)

Bump the root security overrides hono 4.13.13 -> 4.13.18 and
@hono/node-server 2.1.5 -> 2.1.7 (both reached via @modelcontextprotocol/sdk),
and refresh the lockfile so posthog-js and @shuding/opentype.js resolve
fflate 0.4.9 and 0.7.5 inside their existing ranges.
* fix(usage): harden activity rollup maintenance

* fix(usage): per-hour heavy-hour backoff and a completed-pass maintenance heartbeat

* fix(usage): keep a heartbeat that expired mid-pass expired; grow heavy-hour retry budgets
* feat(mcp): add code mode to the Sim MCP server

* fix(mcp): stop queued code-mode calls at run end, bound error output, and type union bodies

* fix(mcp): render closed empty objects as Record<string, never>

* fix(mcp): render tuples and open objects in generated contract types
…count dead passes (#10205)

* fix(usage): gate rollup reads on the late-end scan and marked-cell count, count dead passes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(usage): count a failed pass whose lease overran, log the marked-cell fallback at info

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(usage): bound the marked-cell count's scan, release the lease when counting a failed pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 19, 2026 18:20
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 19, 2026 7:56pm UTC

Request Review

@github-actions github-actions Bot added the requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep label Nov 19, 2026
@github-actions

Copy link
Copy Markdown

⚠️ Cross-repo companion check

One or more companion PRs aren't merged into main yet (aggregated across the feature PRs in this release). Merging this without them will leave copilot and sim out of sync — merge them in lockstep.

  • ⚠️ simstudioai/mothership#983 — merged into staging (this PR targets main) — feat(computer-use): offer typed reminder, event and contact app commands to desk

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 135 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/api/mcp/code-mode.ts Resolved
@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR adds new API and desktop pathways alongside a data-backed activity reporting path.

Fix migration retries before merging so an interrupted upgrade does not block deployment.

Findings

  1. P1 Interrupted migrations cannot resume ▶
  2. P2 Typed file-version calls fail ▶
  3. P2 Padded CSV fields are rejected ▶

Summary

Adds MCP programs, hourly activity summaries, CLI-managed Search sources, and confirmed desktop app commands.

  • MCP callers can run code that makes several Sim API calls.
  • Organization activity reports can use maintained hourly workflow totals.
  • Organization admins can manage Search sources and upload GitLab permissions from the CLI.
  • Desktop agents can create and list reminders, events, and contacts.
  • Several integrations and workflow paths now accept more inputs and report outcomes more clearly.
  • Buying guides now connect readers to runnable workflows.

The new rollup migrations need safe retries before merging. Two smaller input mismatches also need attention.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  MCP[MCP client program] --> Sandbox[Isolated code]
  Sandbox --> Gate[Check each operation's access]
  Gate --> API[Existing v2 API routes]
  CLI[CLI source commands] --> API
  API --> Sources[Search source use cases]
  Cron[Scheduled activity pass] --> Rollup[Hourly workflow counts]
  Rollup --> Activity[Organization activity]
  Live[Source queries and live edges] --> Activity
  Desktop[Desktop app command] --> Confirm[App approval and create confirmation]
  Confirm --> Native[EventKit or Contacts]
Loading

Reviews (1) · Last reviewed commit: "fix(usage): gate rollup reads on the lat..." · Reviewed by Greptile

Comment on lines +309 to +315
for (const [slot, schema] of Object.entries(describeInput(name))) {
if (!schema) continue
const generated = jsonSchemaToTypeScript(schema, `${Name}${pascal(slot)}`)
declarations.push(...generated.declarations)
const required = isJsonSchemaRequired(schema)
anyRequired ||= required
fields.push(` ${slot}${required ? '' : '?'}: ${generated.type.replace(/\n/g, '\n ')}`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Typed file-version calls fail. renderSignature publishes numeric path fields from the route contract, but simApiCall only accepts strings in params. For example, getFileVersion advertises version: number; following it with version: 1 returns INVALID_CALL before the route runs. Render path fields as strings, or accept and normalize numbers before checking the call.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid, reproduced on staging: getWorkflowVersion declares version: number, passing 1 returned INVALID_CALL, and '1' reached the route. Path params now accept string or number in operationRequestInput, which code mode and the call tools share. Dispatch converts them to strings once with normalizeStringRecord and uses the result for both the URL and the route. Signatures keep the contract's types (int, positive) rather than switching to strings. Fixed in #10211, with an integration test that sends getFileVersion with version: 1 and gets the route's 404; it fails on the old schema.

…nished runs (#10212)

* fix(usage): mark finished runs whose hour may be computed, make rollup migrations atomic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(usage): mark swept runs too, share the finished-run mark, drop the redundant 0465 BEGIN

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(usage): lock activity rollup marks in key order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…estination in confirmations (#10210)

* fix(computer-use): reject impossible app-command dates and name the destination in confirmations

- The helper's zoned date-time parser rolled Feb 30, Feb 29 in a common year and hour 24 into
  other days and accepted offsets like +25:00; zoned values are now checked part by part, while
  local times keep the strict formatter
- Reminders trim their title and notes with the same helpers events use, so the confirmation
  shows exactly what is saved
- The confirmation names the chosen list, calendar or group, read from the helper when it is
  shown; an id missing from a complete list is refused before the user is asked
- Synced the computer-use contract, which now refuses impossible dates at tool validation

* fix(computer-use): read only ASCII digits and cap zoned offsets at ±14:00; accept minute-precision zoned times
* docs(library): update best-ai-workflow-builders

* Pi Babysit: address PR #10213 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…Teams (#10217)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
* feat(library): AI Agents vs Copilots for Enterprise Teams

* Pi Babysit: address PR #10216 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…Enterprise IT (#10215)

* feat(library): 5 Best Salesforce Agentforce Alternatives in 2026 for Enterprise IT

* Pi Babysit: address PR #10215 feedback

* Pi Babysit: address PR #10215 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
… Agents (#10214)

* feat(library): Best MindStudio Alternatives in 2026 for Governed Team Agents

* Pi Babysit: address PR #10214 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
@waleedlatif1
waleedlatif1 merged commit e28e35b into main Nov 19, 2026
100 of 101 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 4d3fedf0 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants