Skip to content

Commit

Permalink
Fix process info type
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Nov 15, 2024
1 parent 8e49b2a commit 3b2a17d
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions packages/js-sdk/src/sandbox/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import {
PromiseClient,
Transport,
} from '@connectrpc/connect'
import { PlainMessage } from '@bufbuild/protobuf'

import { Process as ProcessService } from '../../envd/process/process_connect'
import { Signal, ProcessConfig } from '../../envd/process/process_pb'
import { Signal } from '../../envd/process/process_pb'
import {
ConnectionConfig,
Username,
Expand Down Expand Up @@ -84,7 +83,7 @@ export type CommandConnectOpts = Pick<
/**
* Information about a command, PTY session or start command running in the sandbox as process.
*/
export interface ProcessInfo extends PlainMessage<ProcessConfig> {
export interface ProcessInfo {
/**
* Process ID.
*/
Expand All @@ -93,8 +92,25 @@ export interface ProcessInfo extends PlainMessage<ProcessConfig> {
* Custom tag used for identifying special commands like start command in the custom template.
*/
tag?: string
/**
* Command that was executed.
*/
cmd: string
/**
* Command arguments.
*/
args: string[]
/**
* Environment variables used for the command.
*/
envs: Record<string, string>
/**
* Executed command working directory.
*/
cwd?: string
}


/**
* Module for starting and interacting with commands in the sandbox.
*/
Expand Down

0 comments on commit 3b2a17d

Please sign in to comment.