chore: align server package name for workspaces
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
## Scope
|
||||
- Audited `packages/cli/src/commands/**` for inline type/interface definitions.
|
||||
- Checked `@paseo/server` exports from `packages/server/src/server/exports.ts`.
|
||||
- Checked `@getpaseo/server` exports from `packages/server/src/server/exports.ts`.
|
||||
- Note: `packages/server/src/index.ts` does **not** exist in this repo; the package export entrypoint is `./src/server/exports.ts` per `packages/server/package.json`.
|
||||
|
||||
## Server Exports (current)
|
||||
@@ -22,7 +22,7 @@ Inline types:
|
||||
- `AgentSnapshot` (id/provider/cwd/createdAt/status/title)
|
||||
|
||||
Recommended server type:
|
||||
- `AgentSnapshotPayload` from `packages/server/src/shared/messages.ts` (daemon client returns this shape). **Not exported** from `@paseo/server` today.
|
||||
- `AgentSnapshotPayload` from `packages/server/src/shared/messages.ts` (daemon client returns this shape). **Not exported** from `@getpaseo/server` today.
|
||||
|
||||
Notes:
|
||||
- `AgentRunResult` is CLI output; no server type expected.
|
||||
@@ -136,8 +136,8 @@ Inline types:
|
||||
Server type usage:
|
||||
- CLI-only; no server type expected.
|
||||
|
||||
## Gaps in `@paseo/server` Exports (needed for CLI cleanup)
|
||||
To replace inline types in CLI commands, `@paseo/server` would need to export (directly or re-export):
|
||||
## Gaps in `@getpaseo/server` Exports (needed for CLI cleanup)
|
||||
To replace inline types in CLI commands, `@getpaseo/server` would need to export (directly or re-export):
|
||||
- From `packages/server/src/shared/messages.ts`:
|
||||
- `AgentSnapshotPayload`
|
||||
- `AgentStreamEventPayload`
|
||||
@@ -152,4 +152,4 @@ To replace inline types in CLI commands, `@paseo/server` would need to export (d
|
||||
- `AgentTimelineItem`
|
||||
|
||||
## Summary
|
||||
Primary inline types that should become server imports are the agent snapshot/timeline/message/permission/mode shapes in `agent/*` commands. All are defined in server shared or agent SDK types today but are not exported through `@paseo/server`.
|
||||
Primary inline types that should become server imports are the agent snapshot/timeline/message/permission/mode shapes in `agent/*` commands. All are defined in server shared or agent SDK types today but are not exported through `@getpaseo/server`.
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
AgentStreamSnapshotMessage,
|
||||
AgentStreamEventPayload,
|
||||
AgentTimelineItem,
|
||||
} from '@paseo/server'
|
||||
} from '@getpaseo/server'
|
||||
|
||||
export interface AgentAttachOptions {
|
||||
host?: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentSnapshotPayload } from '@paseo/server'
|
||||
import type { AgentSnapshotPayload } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import type {
|
||||
AgentStreamMessage,
|
||||
AgentStreamSnapshotMessage,
|
||||
AgentTimelineItem,
|
||||
} from '@paseo/server'
|
||||
import { curateAgentActivity } from '@paseo/server'
|
||||
} from '@getpaseo/server'
|
||||
import { curateAgentActivity } from '@getpaseo/server'
|
||||
|
||||
export interface AgentLogsOptions extends CommandOptions {
|
||||
follow?: boolean
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentSnapshotPayload } from '@paseo/server'
|
||||
import type { AgentSnapshotPayload } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
CommandError,
|
||||
AnyCommandResult,
|
||||
} from '../../output/index.js'
|
||||
import type { AgentMode } from '@paseo/server'
|
||||
import type { AgentMode } from '@getpaseo/server'
|
||||
|
||||
/** Result for setting mode */
|
||||
export interface SetModeResult {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentSnapshotPayload } from '@paseo/server'
|
||||
import type { AgentSnapshotPayload } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, SingleResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
import { readFileSync } from 'node:fs'
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
resolvePaseoHome,
|
||||
createRootLogger,
|
||||
loadPersistedConfig,
|
||||
} from '@paseo/server'
|
||||
import type { CliConfigOverrides } from '@paseo/server'
|
||||
} from '@getpaseo/server'
|
||||
import type { CliConfigOverrides } from '@getpaseo/server'
|
||||
|
||||
interface StartOptions {
|
||||
port?: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import { resolvePaseoHome } from '@paseo/server'
|
||||
import { resolvePaseoHome } from '@getpaseo/server'
|
||||
import { tryConnectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentPermissionRequest } from '@paseo/server'
|
||||
import type { AgentPermissionRequest } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentPermissionRequest } from '@paseo/server'
|
||||
import type { AgentPermissionRequest } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, CommandError } from '../../output/index.js'
|
||||
import { permitResponseSchema, type PermissionResponseItem } from './allow.js'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command } from 'commander'
|
||||
import type { AgentPermissionRequest, AgentSnapshotPayload } from '@paseo/server'
|
||||
import type { AgentPermissionRequest, AgentSnapshotPayload } from '@getpaseo/server'
|
||||
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
|
||||
import type { CommandOptions, ListResult, OutputSchema, CommandError } from '../../output/index.js'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DaemonClient } from '@paseo/server'
|
||||
import { DaemonClient } from '@getpaseo/server'
|
||||
import WebSocket from 'ws'
|
||||
|
||||
export interface ConnectOptions {
|
||||
|
||||
Reference in New Issue
Block a user