Skip to content

feat(ts-sdk): add sandbox logs support with Kmon host IP resolution#711

Open
berstpander wants to merge 1 commit intoalibaba:masterfrom
Timandes:feature/ts-sdk-logs
Open

feat(ts-sdk): add sandbox logs support with Kmon host IP resolution#711
berstpander wants to merge 1 commit intoalibaba:masterfrom
Timandes:feature/ts-sdk-logs

Conversation

@berstpander
Copy link
Copy Markdown
Contributor

Add comprehensive sandbox logs functionality that works for both alive and destroyed sandboxes:

New Methods:

  • listLogs(options?): List log files in /data/logs/ directory
    • Supports recursive listing and glob pattern filtering
    • Returns LogFileInfo with name, path, size, modifiedTime
  • downloadLog(logPath, localPath, options?): Download log file via OSS
    • Path security: rejects absolute paths and directory traversal
    • Supports timeout and onProgress callback

Add comprehensive sandbox logs functionality that works for both alive
and destroyed sandboxes:

New Methods:
- listLogs(options?): List log files in /data/logs/ directory
  - Supports recursive listing and glob pattern filtering
  - Returns LogFileInfo with name, path, size, modifiedTime
- downloadLog(logPath, localPath, options?): Download log file via OSS
  - Path security: rejects absolute paths and directory traversal
  - Supports timeout and onProgress callback
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 31, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants