Skip to content

feat(tarko): refine workspace design#1008

Merged
ulivz merged 3 commits intomainfrom
remove-agent-tars-workspace
Aug 4, 2025
Merged

feat(tarko): refine workspace design#1008
ulivz merged 3 commits intomainfrom
remove-agent-tars-workspace

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Aug 4, 2025

Summary

This pull request simplifies the workspace configuration design, removes isolateSessions, and changes the workspace semantics directly to workspace.workingDirectory:

Before

/**
 * Workspace options for Agent, currently only required when you need to create an Agent
 * that involves file reading and writing, including file-system management, commands execution scope.
 */
export interface AgentWorkspaceOptions {
  /**
   * Workspace settings.
   */
  workspace?: {
    /**
     * Directory to use for filesystem operations
     *
     * @defaultValue Defaults to current working directory if not specified
     */
    workingDirectory?: string;

    /**
     * Whether to isolate workspace for each session by creating a subdirectory with session ID
     * When true, creates: workingDirectory/sessionId
     * When false, uses the workingDirectory directly for all sessions
     *
     * @defaultValue false
     */
    isolateSessions?: boolean;
  };
}

After

/**
 * Workspace options for Agent, currently only required when you need to create an Agent
 * that involves file reading and writing, including file-system management, commands execution scope.
 */
export interface AgentWorkspaceOptions {
  /**
   * Directory to use for filesystem operations
   *
   * @defaultValue Defaults to current working directory if not specified
   */
  workspace?: string;
}

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

@netlify
Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 81f029b
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/689074a4dc0bee00081da342
😎 Deploy Preview https://deploy-preview-1008--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ulivz ulivz force-pushed the remove-agent-tars-workspace branch 3 times, most recently from 1a9176a to 7378bb3 Compare August 4, 2025 05:59
@ulivz ulivz changed the title feat(tarko): refine workspace design (#1007) feat(tarko): refine workspace design Aug 4, 2025
@ulivz ulivz force-pushed the remove-agent-tars-workspace branch 4 times, most recently from f7f7745 to c299923 Compare August 4, 2025 06:09
@ulivz ulivz force-pushed the remove-agent-tars-workspace branch from c299923 to de962bd Compare August 4, 2025 06:18
@ulivz ulivz merged commit 674d67a into main Aug 4, 2025
10 checks passed
@ulivz ulivz deleted the remove-agent-tars-workspace branch August 4, 2025 09:01
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.

1 participant

Comments