-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(tegg): [1/3] add agent-runtime package with OSS-backed store #5818
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ba98a44
feat(tegg): add agent-runtime package with OSS-backed store
jerryliang64 5cca3e0
test(tegg): add OSSObjectStorageClient unit tests with mocked SDK
jerryliang64 63a7c88
fix(tegg): address PR #5818 review feedback
jerryliang64 5766c54
fix(tegg): add optional init/destroy declarations to MapStorageClient…
jerryliang64 a7727cc
chore(tegg): add TODO comments for non-atomic read-modify-write in OS…
jerryliang64 697860b
refactor(tegg): use OSS AppendObject for thread messages storage
jerryliang64 1bcba52
fix(tegg): address PR #5818 review feedback
jerryliang64 066c0cf
refactor(tegg): rename utils.ts to AgentStoreUtils.ts for naming cons…
jerryliang64 efc0250
refactor(tegg): inject OSSObject client via constructor instead of co…
jerryliang64 22513fc
refactor(tegg): use export enum instead of as const for type definitions
jerryliang64 5bdd372
fix(tegg): use as const instead of export enum for erasableSyntaxOnly…
jerryliang64 c12c250
fix(tegg): normalize OSSAgentStore prefix to ensure trailing slash
jerryliang64 4521cbe
chore(e2e): update cnpmcore hash to fix oxlint peer dep conflict
jerryliang64 8f0712a
refactor(tegg): migrate agent-runtime types to @eggjs/tegg-types
jerryliang64 7a7cfee
fix(tegg): update tegg-types export snapshot for agent-runtime types
jerryliang64 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,55 @@ | ||
| { | ||
| "name": "@eggjs/agent-runtime", | ||
| "version": "4.0.2-beta.1", | ||
| "description": "Agent runtime with store abstraction for Egg.js tegg", | ||
| "keywords": [ | ||
| "agent", | ||
| "egg", | ||
| "runtime", | ||
| "store", | ||
| "tegg" | ||
| ], | ||
| "homepage": "https://github.com/eggjs/egg/tree/next/tegg/core/agent-runtime", | ||
| "bugs": { | ||
| "url": "https://github.com/eggjs/egg/issues" | ||
| }, | ||
| "license": "MIT", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/eggjs/egg.git", | ||
| "directory": "tegg/core/agent-runtime" | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "type": "module", | ||
| "main": "./dist/index.js", | ||
| "module": "./dist/index.js", | ||
| "types": "./dist/index.d.ts", | ||
| "exports": { | ||
| ".": "./src/index.ts", | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "publishConfig": { | ||
| "access": "public", | ||
| "exports": { | ||
| ".": "./dist/index.js", | ||
| "./package.json": "./package.json" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "typecheck": "tsgo --noEmit", | ||
| "test": "vitest run" | ||
| }, | ||
| "dependencies": { | ||
| "@eggjs/tegg-types": "workspace:*", | ||
| "oss-client": "catalog:" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "catalog:", | ||
| "typescript": "catalog:" | ||
| }, | ||
| "engines": { | ||
| "node": ">=22.18.0" | ||
| } | ||
| } | ||
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,10 @@ | ||
| import crypto from 'node:crypto'; | ||
|
|
||
| export function nowUnix(): number { | ||
| return Math.floor(Date.now() / 1000); | ||
| } | ||
|
|
||
| // TODO(PR2): used by AgentRuntime and MessageConverter — remove this comment after PR2 lands | ||
| export function newMsgId(): string { | ||
| return `msg_${crypto.randomUUID()}`; | ||
| } |
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.