feat(agent-kit): add @tigrisdata/agent-kit composition library#85
feat(agent-kit): add @tigrisdata/agent-kit composition library#85designcode merged 11 commits intomainfrom
Conversation
Greptile SummaryThis PR introduces
Confidence Score: 4/5Do not merge until the three P1 error-handling gaps are fixed — they silently leak resources and return incorrect data to callers. Three P1 findings: TTL failure swallowed, credential failure swallowed (in both workspace and sandbox), and orphaned fork buckets on partial failure. The rest of the package is well-structured. packages/ai/src/workspace.ts and packages/ai/src/sandbox.ts require the most attention; packages/ai/src/checkpoint.ts has one smaller P1 fix needed. Important Files Changed
Reviews (1): Last reviewed commit: "refactor(ai): promote primary args to po..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
There are 3 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit afb645c. Configure here.
Composed workflows for AI agents on Tigris — sandboxes, workspaces, checkpoints, and coordination. Composes @tigrisdata/storage and @tigrisdata/iam into higher-level operations mapped to documented AI use cases. - createSandbox / teardownSandbox — snapshot, fork N times, scoped credentials - createWorkspace / teardownWorkspace — bucket + TTL + credentials - checkpoint / restore / listCheckpoints — snapshot-based state management - setupCoordination / teardownCoordination — bucket notification pipelines Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Workspace: basic, TTL, snapshots, scoped credentials - Checkpoint: create, list, restore with data verification - Sandbox: multi-fork, scoped credentials, isolation, teardown - Coordination: setup and teardown notifications - Fix teardownCoordination to use empty config for clearing - Move tests to test/ directory outside src/ Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- createSandbox(baseBucket, count, options?) - createWorkspace(name, options?) - setupCoordination(bucket, options) - teardownCoordination(bucket, options?) Consistent with underlying SDK conventions where the primary subject is a positional parameter and optional config stays in the options object. Updates tests, README examples, and API reference table. Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Better reflects the package purpose — a toolkit for building with agents, not an AI inference library. Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reframe descriptions to be explicit about storage isolation, copy-on-write forks, and bucket notifications. Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix TTL failure early return skipping credential creation in createWorkspace — continues to Step 3 regardless of TTL outcome - Filter out snapshots with no version in listCheckpoints instead of producing empty snapshotId placeholders - Add test for TTL + credentials combo to cover the early return bug - Clean up stale packages/ai lockfile entry from rename Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous lockfile was missing cross-platform optional deps (esbuild, lightningcss) causing npm ci to fail in Linux CI. Assisted-by: Claude Opus 4.6 via Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
796a526 to
88e6170
Compare
|
🎉 This PR is included in version 0.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 3.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

Summary
@tigrisdata/agent-kit— a composition library that bridges@tigrisdata/storageand@tigrisdata/iaminto higher-level workflows for AI agent use casescreateSandbox(baseBucket, count, options?)/teardownSandbox(sandbox)— snapshot + fork N times + scoped credentials per forkcreateWorkspace(name, options?)/teardownWorkspace(workspace)— bucket + TTL + scoped credentials in one callcheckpoint(bucket)/restore(bucket, snapshotId)/listCheckpoints(bucket)— snapshot-based state managementsetupCoordination(bucket, options)/teardownCoordination(bucket)— event-driven multi-agent pipelines via bucket notificationsTest plan
npm run build— all packages build cleanlynpm run lint— no lint errorsnpm run format:check— all files formattednpm test— 206 tests passing across all packages (114 storage + 10 agent-kit + 38 keyv-tigris + 44 react)🤖 Generated with Claude Code
Note
Low Risk
Low risk: this PR only updates documentation and does not change runtime code or APIs.
Overview
Updates the root
README.mdto include@tigrisdata/agent-kitin the monorepo’s package list, briefly describing it as an AI-agent workflow composition library.Reviewed by Cursor Bugbot for commit 88e6170. Bugbot is set up for automated code reviews on this repo. Configure here.