mirror of
https://github.com/simstudioai/sim.git
synced 2026-11-30 10:58:09 +08:00
main
18
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
50e7f5336a |
feat(tailscale): expand and validate API operations (#9385)
* feat(tailscale): expand and validate API operations * fix(tailscale): normalize controls and output schemas * fix(tailscale): preserve operation switch defaults |
||
|
|
cc6e91fbec |
feat(greenhouse): add versioned Harvest v3 integration (#9206)
Add 50 Harvest v3 operations with partner OAuth, preserve legacy workflows, and align integration schemas, pagination, and generated documentation. |
||
|
|
f525ff2feb |
feat(mothership): add super-user Plan and knowledge graph settings with benchmark tooling (#8637)
* feat(mothership): authorize private cross-workspace memory scopes * feat(desktop): add gated macOS computer use * fix(desktop): preserve generated computer-use contracts * fix(desktop): cancel computer use when its renderer exits * fix(desktop): complete native computer tool lifecycle * fix(desktop): support rich editors and verified Mac input batches * fix: preserve desktop observations through recovery and report app focus * Gate Search Assistant integration lookups with AppConfig (#8301) * Enable read-only integration lookups for Search Assistant * Preserve inherited tool versions in generated integration docs * Align provider tests with Search read-only operations * Gate Search integration tools with AppConfig * Preserve dev test runner isolation during promotion * Default Plan chats to independently saved Opus 5.5 Medium preferences * Remove default Mship execution cutoff and expose Slack agent prerequisites * fix(catalog): preserve credential gates for automation discovery * Add workspace specification benchmarks with isolated Plan evaluation * Add private knowledge graph selection in settings * Retain benchmark run history with comparisons and human review * chore: redeploy Sim after benchmark configuration update * Add superuser benchmark console with selected-user execution * Inspect benchmark workspaces incrementally and search generated specs * Remove benchmark cutoffs and renew active stage leases * Generate benchmark redactions from exact passages * Create owned conversations for every benchmark execution * Preserve partial benchmark answers for human review * Grade benchmark mechanics with verified reference resolution * Reconcile Plan feature with staging contracts and validation gates * Expose the Graphiti rollout gate through authorized memory scope * Share benchmark super-user eligibility with Plan and knowledge graphs * fix(plan): address eligibility, benchmark state and desktop review findings * feat: compare benchmark planner models with saved scores * test: align Plan composer and desktop fixtures with staging * fix(desktop): keep disabled computer use dormant * fix(plan): enforce benchmark and native action admission * fix(plan): preserve secret metadata during benchmark reads * fix(plan): isolate embedded CLI and checkpoint benchmark stages * fix(desktop): bound native requests and completion images * fix(plan): revalidate access and retain benchmark state * fix(plan): qualify persisted effort integration fixtures * fix(db): reconcile benchmark migrations with staging retirement * fix(db): preserve table change log in benchmark migration chain * fix(benchmarks): delete artifacts with their execution target * fix(mothership): isolate benchmark state and preserve tool completions * fix(desktop): preserve action evidence in unload completions * fix(desktop): keep projected parent references valid * fix(computer): preserve uncertainty and label permission controls * test(mothership): await actual tool cancellation completion * fix(plan): resolve review findings and trigger initialization * docs(triggers): point Linq guidance at the builder module * fix(plan): preserve fork scope and benchmark redaction boundaries * fix(plan): retry retained completions and guard benchmark drafts * fix(computer): stop completion delivery at identity reset --------- Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai> |
||
|
|
37f5cdf310 |
feat(integrations): add Ramp and Microsoft Intune (#8780)
* feat(integrations): add Ramp and Microsoft Intune * fix(integrations): preserve agent filters and output contracts |
||
|
|
52878d12a2 |
fix(docs): document You.com tools and expand shared output spreads (#8592)
* fix(youcom): use literal operation ids so docs and catalog pick up tools * fix(docs): expand shared output spreads in generated tool docs |
||
|
|
e3211dd382 |
chore(lint): delete unused variables and parameters; enforce both rules repo-wide (#8554)
* chore(lint): remove unused catch bindings, dead private types, and unused loggers
* chore(lint): delete unused variables and parameters across apps
Remove dead locals, constants, helpers, test mock aliases, and unused
function parameters (updating callers), drop the unused BlockConfig type
parameter and the response types that only fed it.
* improvement(lint): enforce noUnusedVariables and noUnusedFunctionParameters repo-wide
Enable both rules as errors at the root with no autofix, so bun run lint
never mass-renames bindings to _x, and ignoreRestSiblings so the
{ a, ...rest } omit idiom stays legal. The packages/** override is now
redundant and removed. Document the rule in CLAUDE.md.
* docs: drop BlockConfig type argument from contributing example; fix stale run-options note
* fix(resume): update the per-context form cache outside the state updater
|
||
|
|
9050e69caa |
chore(tests): remove low-signal tests and consolidate the testing setup (#8295)
* chore(tests): remove low-signal tests and consolidate the testing setup * fix(tests): address review — shared disposable-DB guard, optional Redis suite, restored client-info wire contract |
||
|
|
0ede40b42e |
feat(slack): expand workflow APIs and fix custom-app manifests (#8261)
* feat(slack): add List sharing operation * fix(slack): omit legacy assistant events from Agent View manifests * feat(slack): expand normal workflow API coverage * fix(slack): restrict list ownership to user recipients * fix(slack): address workflow API review findings * fix(slack): preserve native event choices and post search results * fix(slack): reject unsupported custom bot events on deploy * fix(slack): remove user-token-only workflow actions * test(slack): use supported operation in docs regression |
||
|
|
2217f716f1 |
fix(tools): persist large file outputs before response limits (#7781)
* fix(tools): persist large file outputs before response limits * fix(tools): cover late attachments and simplify file outputs |
||
|
|
7e9dd2af8c |
improvement(docs): simplify navigation and share editor previews (#7606)
* improvement(docs): simplify navigation and share editor previews * fix(docs): preserve focus in workflow illustrations |
||
|
|
b4bc9b98ec |
fix(sailpoint): complete integration validation (#7345)
* fix(sailpoint): complete integration validation * fix(sailpoint): align account contract fixtures * fix(sailpoint): update integration icon |
||
|
|
dcaaf8e355 |
feat(sailpoint): add SailPoint (IGA) integration (#6092)
* feat(sailpoint): add SailPoint (IGA) integration Add a SailPoint Identity Security Cloud integration with 27 tools spanning identity-governance reads (search + count + aggregate, identities, accounts, entitlements, roles, access profiles, sources, account activities, campaigns, certifications, and entitlement expansion), the access-request write path (request, cancel, status), and CSV account/entitlement aggregation. Auth uses a service-identity Personal Access Token via the OAuth2 client-credentials grant against the per-tenant host (https://{tenant}.api.identitynow.com), resolved server-side in two internal routes (/api/tools/sailpoint/query and /load) with in-process token caching and Retry-After 429 backoff. The block enumerates the exact PAT scopes and the service-identity caveat. Access-request constraints (revoke one identity + one item, grant 25-entitlement / 10-identity caps, comment-on-revoke) are enforced pre-submission, and empty userAuth reads surface a permission-gap diagnostic. * fix(sailpoint): address review - SSRF host allowlist, working aggregate, retry/count fixes - Restrict tenant host resolution to *.api.identitynow.com / *.api.identitynowgov.com (or a bare tenant subdomain) so the client-credentials request can never post the PAT secret to an attacker-controlled or internal host. Throws on any other host. - Make search_aggregate functional: add an aggregationsDsl input (tool/contract/route/block) and preserve the AggregationResult object instead of dropping it through the list handler. - Retry the token exchange on 429 with Retry-After backoff, matching sailpointFetch. - Rebuild the multipart FormData per attempt so 401/429 retries never reuse a consumed body. - Expose an "Include Total Count" toggle so totalCount is reachable from the block UI. - Regenerate docs. Add route tests for the SSRF guard and aggregate object preservation. * fix(sailpoint): require aggregations for aggregate, expose searchAfter, fix review-item filters - Require aggregationsDsl on search_aggregate (contract + tool) and send aggregationType: DSL so /search/aggregate always receives a valid aggregations definition. - Coerce searchAfter cursor elements to strings instead of dropping non-string values, and expose a searchAfter input on the block so deep pagination past 10k is reachable from the UI. - Correct the certification review-item filter fields (entitlements / access profiles / roles) to comma-separated ID filters instead of true/false placeholders. * fix(sailpoint): bind the token cache to the client secret Include a hash of client_secret in the token cache key so a caller with a matching tenant/clientId but the wrong secret cannot reuse another principal's cached bearer token - a mismatched secret now misses the cache and fails the token exchange. Regression test added. * fix(sailpoint): adaptive token TTL buffer and honest search-count on missing header - Cap the token cache expiry buffer at the smaller of 60s and 10% of the lifetime so a short-lived token still caches instead of expiring immediately. - Return an error for search_count when SailPoint provides no X-Total-Count (and no numeric body) instead of reporting a misleading total of 0. Tests added for both count paths. * fix(sailpoint): align integration with current api * chore(docs): refresh generated manifest * fix(sailpoint): reject empty aggregation definitions * fix(docs): render SailPoint tenant placeholder * fix(docs): source safe SailPoint tenant URL --------- Co-authored-by: Waleed Latif <walif6@gmail.com> |
||
|
|
e5e67b3f06 |
feat(circleback): add API tools, expanded block, and knowledge base connector (#7331)
* feat(circleback): add API tools, expanded block, and knowledge base connector * improvement(circleback): resolve relative pagination links against the API base * fix(docs-generator): drop circleback from the spread-only subBlocks fixture * improvement(circleback): address review findings on output schemas, assignee validation, and connector indexing * fix(circleback): reject unlimited-coercing sync caps and correct the block id output type * fix(circleback): scope dual-purpose action-item and search inputs per operation * fix(circleback): reject a zero sync cap that would coerce to unlimited |
||
|
|
9f594c9116 |
improvement(tools): retire direct execution (#7207)
* improvement(tools): retire direct execution * fix(tools): update operation model input test * fix(browser-use): validate operation payloads * fix(tools): address provider operation review * fix(tools): harden provider operation contracts * fix(tools): close operation lifecycle gaps * fix(tools): update supabase buckets atomically |
||
|
|
46703e395f |
fix: six pre-existing integration defects surfaced by the docs audit (#7195)
* fix(docs): pin the generator's sort locale to en-US
localeCompare with no locale argument uses the runtime default, which
varies with LANG and the ICU build. Against the real 254 catalog names,
tr-TR reorders 141 positions, et-EE 45, cs-CZ 2 and lt-LT diverges at
index 40 — so a contributor on any of those regenerates a different
integrations.json and fails CI with no obvious cause.
Pins en-US at all four sort sites. The committed artifacts are unchanged:
regenerating before and after leaves the tree byte-identical.
Adds a guard test asserting the committed catalog matches an explicit
en-US ordering, plus one that fails if an unpinned localeCompare returns.
* fix(vanta): remove the MIME Type field whose value was always discarded
The block rendered an advanced MIME Type input and forwarded it as the
tool's mimeType, but the upload path never reads it: file-input.ts sets
`resolved.contentType || userFile.type || input.mimeType || …`, and every
return path of downloadServableFileFromStorage yields a non-empty content
type — a literal, getMimeTypeFromExtension's GENERIC_MIME_TYPE fallback,
or resolveServableDocBytes' constants and getContentType fallback. The
placeholder claimed it was 'used when the file has no type of its own',
which never happens.
Removes the subBlock, its mapper write and its inputs entry, and marks the
tool param hidden so it is no longer advertised to the model on a path
where it cannot take effect. The param itself stays, because the base64
branch still reads it.
Letting a typed value win instead was rejected: for a compiled artifact
the storage-resolved type is the only one matching the bytes actually
sent, so an override would break the case the resolver exists to fix.
* fix(github): resolve the PR head SHA for file comments
github_comment sent commit_id as undefined for every file comment: the
param was hidden with no subBlock and no mapper write, so GitHub — which
marks commit_id required on POST /pulls/{n}/comments — answered 422 on a
path the commentType dropdown exposes.
When commitId is absent the tool now fetches the pull request first and
uses head.sha, mirroring how Jira resolves cloudId from domain.
Also removes the position param, which GitHub marks deprecated ("Use
line instead"); line is already a real subBlock.
* fix(google-drive): expose the page token so pagination is reachable
list, search, list_comments, list_permissions and list_revisions each
declared a hidden pageToken and forwarded it to Google, but the block had
no subBlock of that name and never has — so every list was capped at one
page and the nextPageToken output had nowhere to go.
Adds a per-operation Page Token field mirroring the block's existing
per-operation pageSize fields, collapses them onto the canonical
pageToken in the params mapper, and flips the tool param to user-only so
it is documented and settable.
* fix(confluence): stop documenting a cloudId users cannot supply
All 46 Confluence tools marked cloudId 'user-only', publishing it on 46
doc rows, but the block has no cloudId subBlock so no user could ever
fill it. createConfluenceClient already resolves the cloud id from the
domain through the shared Atlassian resolver, exactly as Jira does, and
Jira marks the same param hidden.
Marks cloudId hidden to match. domain stays user-only and settable — it
is now the only user-provided param on every Confluence tool.
* fix(docs): teach the source scanner about regex literals
blankStringsAndComments was a single regex with no concept of a regex
literal, so two shapes silently truncated a block's subBlock list:
/don't/ the apostrophe opened a phantom string that swallowed the
following entries
/[}]/ the brace in the character class closed the enclosing object
Both returned a short list with no warning — a confident wrong answer,
which for the hidden-param filter means silently deleting a user-settable
row. No block file uses a regex literal today, so this was latent.
Replaces the regex with a linear scanner that distinguishes a regex
literal from a division by the previous significant character, blanks
regex bodies whole (their last character is arbitrary source, same reason
comments are blanked whole), and tracks ${} nesting so a backtick inside
a template expression cannot end the template early.
The scanner now returns null when it ends inside an unterminated
construct. All three call sites treat that as UNKNOWN rather than
guessing, so the filter switches off instead of stripping.
Generated artifacts are byte-identical and the warning count is unchanged.
* fix(github): gate the commit lookup on path, coerce line, name the failing field
Three corrections to the file-comment fix, from a validation sweep.
needsCommitLookup did not check `path`, and ran before the `path` branch in
request.url. A file comment with an empty File Path — reachable, since path
is not required on the block — went GET /pulls/{n} then POST /comments with
path undefined, a 422. On staging it posted to /pulls/{n}/reviews, which
GitHub documents as creating a pending review and where commit_id is
optional. The lookup is now gated on path, so only a request headed for
/comments triggers it.
The block has no tools.config.params, so `line` reached the tool as the
string the short-input produced while GitHub types it as an integer — file
comments would still have 422'd, one API call later. Coerced in
request.body, which runs at execution; anything non-finite is omitted
rather than sent as NaN.
readGitHubErrorMessage returned only the top-level message, so a 422 read
"Validation Failed" with no indication of which field was rejected. The
errors[] detail is now appended. Responses without errors[] are unchanged.
* test(github): cover the comment routing cases the gate changed
Adds the file_comment-without-a-path case (which the commit lookup now skips),
the untouched-block default where commentType is unset, a pr_comment carrying a
path, and the line coercion on both the direct and resolved-commit paths.
* fix(google-drive): let an agent feed the page token back in
A page token is an opaque continuation value produced by a previous tool
response, not an account-specific id the user has to supply, so 'user-only'
hid it from agent blocks: they saw nextPageToken in the result and could not
send it back, silently reporting page one as the whole answer. Every other
pagination token in the tool set is 'user-or-llm'.
Also covers the case the mapper guard actually defends — a per-operation page
token surviving an operation switch, which reaches inputs because
shouldSerializeSubBlock skips condition evaluation for advanced fields.
* docs(generator): name the load-bearing newline rule and report an unscannable source
- Record why '\\n' is in REGEX_ALLOWED_AFTER: formatters emit a binary '/' at
end-of-line, so every line-leading '/' in blocks/*.ts is a real regex, including
the ones in table.ts and table_v2.ts. Removing it silently mis-scans those two.
- Split a scanner failure out of the spread-only 'ids: null' case. Both scans come
back empty for the same reason when blankStringsAndComments bails, so the mapper's
renames were dropped with no warning; it now reports a parseError and warns. The
spread case is unchanged, and its TSDoc no longer claims a cause that was false.
- Route every catalog sort through an exported compareCatalogNames so the ordering
test exercises the generator's comparator instead of re-deriving it, and match
localeCompare arguments whole so localeCompare() and a variable locale are caught.
- Note that downloadServableFileFromStorage guarantees a non-empty content type, so
the Vanta mimeType fallback chain reads as deliberately defensive.
Artifacts regenerate byte-identically and the generator warning set is unchanged.
* fix(vanta): declare the removed uploadMimeType subblock as dropped
check-block-registry fails a PR that deletes a subblock id without a
migration entry, because a deployed workflow can still hold a value under
that id. The serializer already discards an orphan silently, but the repo's
contract is that the removal is declared rather than inferred.
Uses the _removed_ form, scoped to upload_document_file: the value has no
replacement field to move to.
* fix(github): run the two-phase PR comment on the secure transport
The file-comment flow posted its comment from `transformResponse` with a bare
global `fetch`, so that request carried no abort signal, no response ceiling and
no DNS/SSRF validation — cancelling a workflow still left the comment posted.
`transformResponse` cannot receive the signal; `directExecution` can. Both tools
now run the lookup and the POST through a new `secureGitHubRequest`, mirroring
`secureBitbucketRead`, with the signal forwarded to each. Routing, line coercion
and the `errors[]` detail are unchanged, and a failed response still throws an
error carrying `status`/`statusText`/`data` as the transport does.
Request bodies and the comment payload are explicitly typed instead of
`Record<string, any>`.
* fix(vanta): keep mimeType an ordinary upload parameter
`mimeType` was marked hidden, but `visibility: 'hidden'` is reserved for
system-injected params such as OAuth tokens. It also left the base64 upload path
with no way to set a content type, since `fileContent` is hidden too.
* fix(generator): lex regex-in-keyword-position and template interpolation
The scanner chose regex-vs-division from the previous significant character, so
a regex in operand position (`return /x/`, `typeof /x/`, `case /x/`, ...) lexed
as a division off the keyword's last letter and its body stayed in the
structural view; `azure_devops.ts` is inert today only because the braces in its
`return /^\d{4}-\d{2}-\d{2}$/` happen to balance.
The `${}` depth counter was also not string-aware, so a brace inside a quoted
expression miscounted, the closing backtick was lost and the block was reported
unreadable — which silently stops filtering resolver-derived hidden params.
Both scans now run on one set of lexer primitives: `${}` expressions are lexed
with the same string, comment, regex and template handling as top-level code.
Regenerated docs, tool metadata and the integration catalog are byte-identical
and the generator's warning count is unchanged.
* fix(github): stop forwarding the GitHub token across a redirect origin
secureGitHubRequest passed no redirectPolicy, and the transport only strips
credential headers when one is present, so an api.github.com redirect to another
origin carried the workspace's Authorization: Bearer header to the new host.
Adopts the standard policy already used by the internal Google Drive client.
stripAuthOnRedirect stays off: GitHub redirects same-origin for legitimate
reasons (a renamed repository answers 301), and dropping auth there would turn
a working call into a 401.
* fix(github): reject a fractional comment line instead of truncating it
toLineNumber ran Math.trunc, so line 3.9 posted the review comment on line 3 —
a silent change to what the caller asked for, on a field where landing on the
wrong line of the diff is invisible until someone reads the comment. A
non-integer now fails with a message naming the field, matching how a missing
head commit SHA fails on this path. Blank and unparseable input is still
omitted: line is optional and nothing usable was supplied.
* fix(github): select the comment endpoint by comment type, not by path
The endpoint was chosen by the presence of path, while the body was chosen by
commentType, so a pr_comment naming a file posted a review body to
POST /pulls/{n}/comments. GitHub documents body, commit_id and path as required
there, so that request can only ever 422 — it has been broken since before this
PR. The endpoint now follows the comment type: only a file comment carrying a
path uses /comments, everything else stays on /reviews. The test that codified
the broken routing is corrected, and the full type/path matrix is pinned.
* test(confluence): drop the cloudId visibility invariant test
Removed at request. The visibility change itself is unaffected; it loses
only the guard that would have caught a future edit reverting one of the
46 files.
* fix(github): send an explicit User-Agent and stop downgrading a redirected comment POST
`secureGitHubRequest` powers the GitHub comment tool's `directExecution`
path, which bypasses the declarative transport. Two behaviors the transport
provided did not survive the move.
User-Agent: the transport sets `User-Agent: Sim` on every request it formats
(`request-transport.ts`), and `secureFetchWithPinnedIP` adds none of its own —
it builds the request with raw `node:https` and passes headers through
verbatim. Production runs on Bun, whose `node:http` shim injects
`user-agent: Bun/x.y.z`, so GitHub does not reject these calls today; the
defect is that Sim's deliberate attribution is silently replaced by a runtime
version string, and that the tool depends on an undocumented runtime behavior
that does not hold under Node, where GitHub answers 403 "Request forbidden by
administrative rules". Set in the helper rather than in the tool's header map
so every future caller inherits it; a caller-supplied value still wins.
Redirect method: the policy was `mode: 'standard'`, under which
`resolveRedirectHop` rewrites a 301/302'd POST to a bodyless GET regardless of
origin. GitHub answers 301 within api.github.com for a renamed repository, so
commenting on a PR there would GET `/pulls/{n}/comments`, receive a JSON array,
fail the payload shape check, and report success with no comment created.
`legacy` keeps the method and body across that hop. Cross-origin credential
stripping is unaffected — the guarded follower strips Authorization,
Proxy-Authorization and Cookie whenever `sendCredentialsOnCrossOriginRedirect`
is false, in either mode.
* fix(vanta): drop the dead whenOperation from the removed-subblock entry
migrateBlockSubblockIds handles a _removed_ target before it consults
whenOperation, so the scope was never applied. Mine was the only _removed_
entry in the file carrying one.
Unconditional deletion is also what this case wants. Subblock values are
keyed by id and are not cleared when the operation changes, so a user who
filled the MIME field and then switched the block to another operation has
the value stored under that operation; a scoped delete would strand it
permanently. The field no longer exists for any operation, so it should go
regardless of the stored operation.
* fix(docs-gen): close a regex-vs-division gap and make three guards testable
`REGEX_ALLOWED_AFTER` was missing `'/'`, so a regex directly after a division
operator lexed as a second division: in `x / y / /[}]/` the character class was
left in the structural view and its `}` closed the enclosing object early,
truncating the block's subBlock ids with no warning. Add `'/'`, and guard the
`'+'`/`'-'` entries with a `++`/`--` lookbehind so a postfix update still reads
as a value and `i++ / 2` stays a division rather than a phantom regex that runs
to end-of-input and reports the block unreadable.
The `.`/`#` property guard and the `'\n'` entry both survived their mutants.
`counts.in / 2, m: preturn / 2` is self-cancelling — the mis-lexed regex closes
on the second slash and blanks nothing structural — so the fixtures now leave an
odd number of slashes on the line. The `'\n'` entry had no coverage at all: its
fixture is now the wrapped `.match(` newline `/re/` shape that `blocks/table.ts`
and `blocks/table_v2.ts` produce, which is what that entry (not the preceding
`(`, which the newline overwrites) actually decides. Its comment claimed a count
of line-leading regexes that drifts with the sources; restate it without one.
Drop the two locale tests that could not fail. CI runs under an `en-US` default,
where an unpinned `localeCompare` returns exactly what the pinned one does, so no
behavioural comparison discriminates; and asserting the committed
`integrations.json` against the comparator that produced it agrees by
construction. The source grep for a literal locale argument is the real guard.
Generated output is byte-identical and the extraction differential over
`apps/sim/blocks/blocks/` is empty.
|
||
|
|
292e59f693 |
fix(docs): stop publishing unsettable params, fix comment blanking (#7169)
* fix(docs): stop publishing unsettable params, fix comment blanking
generate-docs never read visibility, so every tool param appeared in the
public Input table -- including params marked visibility:'hidden', which are
shown to neither the user nor the LLM. Several are credential-shaped
(idToken, instanceUrl, apiToken, cloudId), so the docs told integrators they
could set values they cannot reach.
A hidden param is now dropped only when the block declares no subBlock for
it, matched on id or canonicalParamId -- a param can be hidden on the tool
because the block injects it while the block still renders it as a required
field the user types.
blankStringsAndComments kept the first and last character of every match.
That is right for a quoted string, where both are delimiters, but for a '//'
comment the last character is arbitrary source text, so a commented-out
'// options: [' left an unbalanced bracket that derailed the subBlock
scan. Parsing now throws rather than silently reporting that a block
exposes nothing, since that fallback was the destructive one.
Also corrects the LinkedIn w_member_social consent-screen description, which
read 'Access LinkedIn profile' for a scope that posts on the user's behalf.
* fix(docs): keep hidden params the block mapper supplies
The carve-out only recognized an identity match between a subBlock id and a
tool param, so a block that renames or assembles the value in
tools.config.params was invisible to it -- and the row was dropped even
though the user types it.
Cal.com's attendee (required) is assembled from attendeeName/attendeeEmail/
attendeeTimeZone; JSM's workspaceId comes from assetWorkspaceId; Textract
writes parameters.file from a field whose canonicalParamId is 'document',
which left the Mistral PDF Parser documenting zero inputs.
Collects params written by any accumulator identifier, not just 'result',
since the two real mappers use different names. Object keys are collected
without proving they are top-level, so a nested key can produce a false
keep -- one hard-to-set row is better than hiding a required input.
* fix(tools): reject values that cannot be a path segment
toGuardedString coerced with String(value), so an object reached the wire as
%5Bobject%20Object%5D and a boolean as 'true' -- a doomed request instead of
a clean error, on 44 live call sites. Accepts string, bigint, and finite
non-exponential numbers; everything else throws a named error.
Rejects a number whose decimal text is a rewrite rather than the caller's
value: 1e21 stringifies to '1e+21', and an integer past 2^53 has already
lost digits. A snowflake cannot be repaired here at all -- JSON.parse
destroys it before this runs -- so the doc now says it must arrive as a
string, and cites Box folderId (root = 0) instead.
Corrects the claim that the parser removes only an exact '.' or '..'; the
spec defines 11 removable spellings. The guards are sufficient because
encodeURIComponent escapes '%', not because the others cannot occur.
* test(oauth): pin the LinkedIn write-scope description
Nothing guarded the consent-screen text: utils.test.ts covered only the
Bitbucket and Reddit overrides, and the modal test stubs
getScopeDescription to identity, so a regression to a read-only label for a
posting scope would pass silently.
* fix(docs): stop a comment hijacking the id scan, unhang a Firecrawl reference
The depth-1 walk copied from the raw source at indices where the blanked
copy was at depth 1, so 'id:' inside a string value or a comment landed in
the scanned text and won the first match. With the keep-bias that now means
a phantom id can retain a param the block never exposes. Matching runs on
the blanked text and reads the literal back through a source-index map. No
block in the repo trips this today -- verified across all 305 -- so this is
a latent fix.
Removing the unsettable scrapeOptions row left five Firecrawl Search output
descriptions referencing a name that no longer appears on the page. They
now describe the response condition instead. Pointing them at 'formats' was
not an option: that subBlock is conditioned on scrape/parse/batch_scrape and
the search tool declares no such param, so it would have swapped one
dangling reference for another.
* refactor(tools): drop the unused guard API from this PR
safeUrlPath, safeOpaqueUrlSegment and SafeUrlPathOptions had zero call
sites -- 469 lines of unused API in a docs-generator change, including an
allowEmptySegments flag whose own TSDoc documents a host-takeover footgun
('//evil.com' under new URL(relative, base)). They belong with the ~693
traversal call sites that use them, where they can be reviewed against real
usage.
What stays is the part with 44 live consumers: safeUrlPathSegment now
accepts number and bigint. Staging already rejected every non-string, so
this only widens acceptance -- a differential over 87 real call-site values
shows 87 identical, 0 differing.
Also: encodeURIComponent throws an unnamed URIError on a lone surrogate,
which JSON.parse accepts, so a truncated emoji lost the param name the file
claims as its invariant. And the exponential rejection told tiny values like
1e-7 they were 'too large' when they round-trip exactly; the rejection is
right -- a path segment should not rewrite 0.0000001 into other text -- but
the stated ground was not.
* fix(docs): abort before writing on a parse failure, unhang three descriptions
The guard's own TSDoc said to fail rather than guess, because the fallback
strips every hidden param from a page. The caller did the opposite: it
caught, recorded, and continued with an empty id set, and the non-zero exit
came after every page was already written. A developer who reran, saw red,
and missed the scrollback could commit a stripped page. Parse failures are
now detected in a dry pass before anything is emitted.
The zero-id guard also only fired when the array held a literal '{', so a
subBlocks built by a helper call was silently empty, while a subBlocks whose
literals only spread ({ ...sb, required: true }) hard-failed the build. It
now fires on the destructive case alone -- reporting an unreadable array
while leaving legitimate opaque spreads, which 23 blocks rely on, untouched.
Three descriptions referenced things the reader can no longer see: Dataverse
mandated base64 after its base64 row was removed, Vanta's mimeType described
itself as useful only on that removed path, and five Drive actions told the
reader to fetch a next page with no input left to accept the token.
* chore(tinyfish): use a white block background
Matches the dominant convention (97 blocks use #FFFFFF). Regenerates the
docs page, the tool metadata, and the deployment catalog, which each carried
the previous value.
* fix(docs): correct Drive/Firecrawl/Vanta output and param descriptions
Google Drive nextPageToken: the discovery doc says the field is *absent*
at the end of the list, not empty. Say absent, and name the resource
(files/comments/permissions/revisions) per tool.
Firecrawl search outputs: restore the per-format gate the v2 OpenAPI
states ("HTML content if requested in formats"), and add that Search
exposes no input for those formats.
Vanta mimeType: the route resolves a content type from storage on every
path, so the param is never read. Say so instead of describing it as a
fallback.
Dataverse: describe the request as sending the bytes as the raw body.
* fix(docs): correct the Vanta mimeType and Firecrawl reachability wording
Vanta: the base64 branch (route.ts:100) reads params.mimeType as its only
content-type source, so "not currently applied" was wrong. Say it applies
there and is a fallback on the File branch.
Firecrawl: scrapeOptions is declared in the block's inputs map with no
subBlock, so it is reachable by a direct tool call. "Exposes no visible
input" rather than "exposes no input".
* fix(docs): never abort the generator on an unreadable subBlocks array
An unreadable `subBlocks` value used to throw, and with no spread base to
fall back on the failure was fatal: the pre-scan recorded it and
`generateAllBlockDocs` returned false, so `main` exited 1 and nothing was
written at all. Nine shipped blocks already use the non-literal form and
are saved only because they happen to spread a base — the first block
authored as `subBlocks: myFields` without one would brick `generate-docs`
and `docs:check` for the whole repository.
The author's reason for aborting was sound: an empty `userSettableParamIds`
is indistinguishable from "nothing is settable", which strips every hidden
param and publishes a wrong page. So the fix is not to treat the failure as
empty — it is to represent UNKNOWN distinctly. `extractBlockSuppliedParamIds`
now returns `{ ids, mapperIds, parseError }` with `ids: null` for UNKNOWN,
that `null` flows through `BlockConfig.userSettableParamIds`, `getToolInfo`
and `extractToolInfo`, and the filter site skips filtering entirely when it
sees it — restoring the pre-filter behaviour for that one block instead of
killing the run. `getToolInfo`'s default is `null` for the same reason: `[]`
as a default silently meant "strip everything".
The mapper scan now runs before the subBlocks scan, so a spread-inheriting
block keeps its mapper's renames when only the subBlocks scan fails. With
nothing left that can record a fatal, the dry pre-scan and its reporting
are removed.
Also fixes a silent blind spot in the mapper scan: both key regexes require
a literal `:`, so a mapper returning a shorthand property (`{ file }`) or
writing a computed key (`result['file'] = …`) dropped a real user input from
the docs with no warning. Shorthand names are read from the depth-1 comma
segments of brace-matched regions, which keeps call argument lists from
contributing names.
Verified byte-identical output: `scripts/generate-docs.ts` and
`tool-metadata:generate` reproduce all 302 generated files unchanged, the
credential-shaped hidden params stay stripped, and `check:audits` passes.
* fix(docs): name the input that gates Firecrawl search scrape output
The previous wording ended each description with "for which the Search
operation exposes no visible input", a relative clause that attaches
ambiguously and never tells the reader what controls the field. Name
scrapeOptions and note that it is hidden.
* fix(docs): say the Vanta mimeType is ignored for File-input uploads
Every return path of downloadServableFileFromStorage yields a non-empty
contentType (a literal, getMimeTypeFromExtension's GENERIC_MIME_TYPE
fallback, or resolveServableDocBytes' constants/getContentType), so
resolved.contentType always wins at route.ts:79-81 and params.mimeType is
unreachable on that branch. It is not a fallback; it is ignored.
* fix(docs): note the hidden inputs that gate Pulse html and figures output
extractFigure and returnHtml are visibility: 'hidden' with no subBlock, and
parser.ts:135-144 only forwards them when defined, so neither output can be
produced today. Say so on the output rows rather than deleting them, since
removing an output field would break saved block references.
chunks is left alone: chunking/chunkSize are user-only with real subBlocks.
* fix(docs): report a spread-only subBlocks array as unknown, not empty
extractUserSettableParamIds answered [] for a subBlocks array whose every
element spreads a fields array it cannot follow (NotionV2Block's
`[...NotionBlock.subBlocks, ...getTrigger(x).subBlocks]`). [] asserts the
block supplies nothing, so the hidden-param filter stripped every hidden
param from every tool the block owns - silently, with no parseError and so
no warning. That is the exact false-drop the null UNKNOWN state exists to
prevent.
Return null in that case and propagate it: extractBlockSuppliedParamIds no
longer folds it into [], and the block pass no longer collapses it with
`supplied.ids ?? []`. A config-level spread base still narrows the filter to
its readable fields plus the mapper's renames; with no base the filter is
switched off. An array with at least one inline id, a genuinely empty array,
and the existing throw/warn paths are unchanged - all 8 warned blocks warn
identically and every generated page is byte-identical.
Also pin the hidden-param filter on extractToolInfo's source-parsing path,
which had no coverage at all: deleting it outright left the suite green.
* fix(daytona): stop the lifecycle tools crashing on a non-string sandboxId
start/stop/delete echo sandboxId back as the output id when the API returns
no body, via params.sandboxId.trim() inside transformResponse - after the
request has already gone out. sandboxId is declared type: 'string' but
arrives unvalidated, and now that safeUrlPathSegment accepts a numeric id a
number builds a URL, sends the DELETE/START/STOP, and only then throws an
unnamed TypeError. Both the old and new behaviour fail, so this is not a
regression of a working workflow, but for delete_sandbox the side effect is
irreversible and the caller cannot tell what happened.
Fixed with a shared resolveSandboxId in utils.ts rather than a coercion at
each of the three sites: utils.ts already owns every sandbox-id helper, the
three tools already import from it, and the reasoning belongs in one place.
The encoded value cannot be reused - it is percent-encoded and would be
wrong as an output id. Behaviour for a string is unchanged.
* docs(url-path): drop the false claim that widening restores prior behaviour
The module TSDoc said the number/bigint widening fixed 'a regression for the
call sites whose pre-guard form was a bare ${params.id} template that
stringified a number fine'. It did not. Every pre-guard form in
|
||
|
|
d28e8d7daa | refactor(tools): execute internal operations in process (#7179) | ||
|
|
a72457b9f5 | fix(docs): preserve items response fields (#6587) |