Repository navigation
Conversation
Daily drift-sdk.yml reads apper and keeps one PR per check: the InvokeLLM model union and Options line, the agent tool call status union (both only ever gain values), and the Available connectors JSDoc table. When one of those PRs merges, publish-sdk-change-to-docs.yml opens a scoped mintlify-docs PR that waits for the SDK release. Reuses the open-or-update-pr action and scoped docs patch from #284, moved to the monorepo layout.
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.58-beta.0-pr.365.02597b4Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.58-beta.0-pr.365.02597b4"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.58-beta.0-pr.365.02597b4"
}
}
Preview published to npm registry — try new features instantly! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of the docs drift automation: keeps the SDK's copies of apper values in step with apper, and publishes each change to the docs once it's released. Replaces #284, whose code this reuses on the monorepo layout.
What's in it
drift-sdk.yml. Daily, one job per check, each with one rolling PR onbot/drift/<check>:InvokeLLMParams.modelunion gains any model apper offers (theRuntimeModelenum minus_LEGACY_RUNTIME_MODELSandautomatic), and theOptions:line lists exactly the offered models. Values are never removed from the union, because that breaks TypeScript users; dropped ones are listed in the PR for a person to decide.AgentMessageToolCall.statusunion gains new values from apper'sToolCall.status, the same way.extract_apper.pyreads the apper files with Python'sastmodule;sync-sdk.mjswrites the TypeScript.publish-sdk-change-to-docs.yml. When a merged drift PR lands on main, it regenerates the reference before and after the change and applies only that diff to mintlify-docs (English and locale copies), usingscoped-docs-patch.mjsfrom #284. The docs PR carries<!-- waits-for-sdk-commit: SHA -->, so mintlify-docs' release gate holds it until the release that includes the commit is on npm'slatesttag. It refuses to open the PR unless mintlify-docs main requires theSDK releasedcheck.open-or-update-praction (from #284). Now holds off, and says so once, when someone other than the bot has pushed to the branch; uses--force-with-lease; ignores fork PRs with the same branch name; and adds labels.Safety (this repo is public)
driftenvironment, which only main can use. Workflows run only code already on main next to it.Before merging
Merge once these exist, or the daily run fails and opens an issue:
driftenvironment in this repo, limited to main, withDOCS_BOT_APP_ID(variable) andDOCS_BOT_PRIVATE_KEY(secret)The first models change will publish only after the next full regeneration of the SDK reference: the published
integrations.mdxis several versions behind, so the scoped patch refuses to apply until then.Testing
npm run test:unit -w @base44/sdk: 432 tests pass, 15 of them new intests/unit/drift/check_wix_proxy_steps.pypasses for all 13 jobs;actionlintand ESLint are cleanOptions:line to the 8 offered models and keeps the 10 retired ones in the union; tool status and connectors are in sync