@prismshadow/penguin-server 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/types.d.ts +38 -4
- package/dist/index.js +235 -75
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/web-dist/assets/index-BOvgZOwz.js +173 -0
- package/web-dist/assets/{index-DibOt1-H.js → index-BgHHHLga.js} +1 -1
- package/web-dist/assets/index-DGdg-i_E.css +1 -0
- package/web-dist/index.html +2 -2
- package/web-dist/assets/index-Da8gVBDc.css +0 -1
- package/web-dist/assets/index-nay7sGjx.js +0 -171
package/dist/api/types.d.ts
CHANGED
|
@@ -85,6 +85,12 @@ interface UiPrefs {
|
|
|
85
85
|
lastProjectId?: string;
|
|
86
86
|
/** Whether the "no API key configured" guide has already been shown: once ever (on first visit to the chat page). */
|
|
87
87
|
credentialGuideSeen?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Also list CLI-created Sessions in the sidebar (`cli=1` on the sessions list). Default
|
|
90
|
+
* off: the list then serves web rows straight from the DB, with no Trace-directory
|
|
91
|
+
* scanning (#139).
|
|
92
|
+
*/
|
|
93
|
+
showCliSessions?: boolean;
|
|
88
94
|
[key: string]: unknown;
|
|
89
95
|
}
|
|
90
96
|
interface PrefsResponse {
|
|
@@ -593,16 +599,41 @@ interface TaskCreateResponse {
|
|
|
593
599
|
* task POST).
|
|
594
600
|
*/
|
|
595
601
|
interface SteerRequest {
|
|
596
|
-
/** Message text (trimmed server-side); may be empty when `images` carries the message. */
|
|
602
|
+
/** Message text (trimmed server-side); may be empty when `images` or `files` carries the message. */
|
|
597
603
|
text: string;
|
|
598
604
|
/**
|
|
599
605
|
* Images sent with the steering message (`data:` or http(s) URLs, same rule as
|
|
600
606
|
* `TaskInputPart.image_url`): delivered as user image messages right behind the
|
|
601
607
|
* `[user_steering]` text. A model without vision receives them as scratchpad path lines
|
|
602
|
-
* instead, exactly as it would a Prompt's images. At least one of `text` / `images`
|
|
603
|
-
* be non-empty.
|
|
608
|
+
* instead, exactly as it would a Prompt's images. At least one of `text` / `images` /
|
|
609
|
+
* `files` must be non-empty.
|
|
604
610
|
*/
|
|
605
611
|
images?: string[];
|
|
612
|
+
/**
|
|
613
|
+
* File attachments riding the steering message — the same shape, caps and handling as a
|
|
614
|
+
* task input's `{type:"file"}` parts: written into the Session scratchpad and delivered
|
|
615
|
+
* as `[attached file: <path>]` lines on the `[user_steering]` text, so a file-only draft
|
|
616
|
+
* steers exactly like an image-only one instead of falling back to the follow-up queue.
|
|
617
|
+
*/
|
|
618
|
+
files?: {
|
|
619
|
+
fileName: string;
|
|
620
|
+
dataUrl: string;
|
|
621
|
+
}[];
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* One steering message queued on the server but not yet delivered to the model (delivery
|
|
625
|
+
* happens at the next input assembly between turns). Carried on `task_state` events and the
|
|
626
|
+
* SSE subscribe snapshot so the composer's "steering queued" hint — including what was sent —
|
|
627
|
+
* survives reloads; entries leave the list as their `[user_steering]` message appears on the
|
|
628
|
+
* stream, and the whole list drops when the run exits (core discards undelivered steering).
|
|
629
|
+
*/
|
|
630
|
+
interface PendingSteeringInfo {
|
|
631
|
+
/** The message text as accepted (trimmed); may be empty when images/files carry the message. */
|
|
632
|
+
text: string;
|
|
633
|
+
/** Number of images that rode along. */
|
|
634
|
+
images: number;
|
|
635
|
+
/** Number of file attachments that rode along. */
|
|
636
|
+
files: number;
|
|
606
637
|
}
|
|
607
638
|
interface ApprovalDecisionRequest {
|
|
608
639
|
decision: "allow" | "deny";
|
|
@@ -632,6 +663,8 @@ type ServerEvent =
|
|
|
632
663
|
type: "task_state";
|
|
633
664
|
state: SessionStatus;
|
|
634
665
|
queued?: number;
|
|
666
|
+
/** Steering messages queued but not yet delivered (absent = none): lets the composer's hint and its content survive reloads. */
|
|
667
|
+
pendingSteering?: PendingSteeringInfo[];
|
|
635
668
|
}
|
|
636
669
|
/** The model-generated title after the first turn has been persisted (for in-place list updates). */
|
|
637
670
|
| {
|
|
@@ -1174,6 +1207,7 @@ interface BenchmarkSummary {
|
|
|
1174
1207
|
interface BenchmarksResponse {
|
|
1175
1208
|
benchmarks: BenchmarkSummary[];
|
|
1176
1209
|
}
|
|
1210
|
+
type CaseMaterial = "statement" | "rubric";
|
|
1177
1211
|
/** Public Benchmark Case metadata. Rubric and Gold content are never included. */
|
|
1178
1212
|
interface BenchmarkCaseSummary {
|
|
1179
1213
|
id: string;
|
|
@@ -1265,4 +1299,4 @@ interface UpdateRunResponse {
|
|
|
1265
1299
|
needsRestart: boolean;
|
|
1266
1300
|
}
|
|
1267
1301
|
|
|
1268
|
-
export type { AdminPasswordResetRequest, AdminUserCreateRequest, AdminUserCreateResponse, AdminUsersResponse, AgentCompactionConfigDto, AgentConfigDto, AgentConfigResponse, AgentConfigUpdateRequest, AgentCreateRequest, AgentCreateResponse, AgentImportRequest, AgentImportResponse, AgentModelConfigDto, AgentSkillsResponse, AgentSummary, AgentTraceDateGroup, AgentTraceFileRef, AgentTraceSessionGroup, AgentTracesResponse, AgentsResponse, ApprovalDecisionRequest, ApprovalMode, AuthLoginRequest, AuthResponse, BenchmarkCaseScore, BenchmarkCaseSummary, BenchmarkCasesResponse, BenchmarkEvaluation, BenchmarkRunScore, BenchmarkSummary, BenchmarksResponse, CredentialInfo, DirEntryInfo, DirListResponse, ErrorBody, FilesStatRequest, FilesStatResponse, GoalResponse, GoalServerEvent, GoalStateView, MeResponse, MemberAddRequest, MemberAddResponse, MemberInfo, MembersResponse, MessagesLiveTail, MessagesResponse, ModelInfo, ModelPricingDto, ModelRefDto, ModelTestRequest, ModelTestResponse, ModelUpdateEntry, ModelsResponse, ModelsUpdateRequest, PasswordChangeRequest, PrefsResponse, ProjectCreateRequest, ProjectCreateResponse, ProjectRole, ProjectSummary, ProjectUpdateRequest, ProjectUpdateResponse, ProjectsResponse, RequestSpan, RetryNowResponse, ScheduleItem, ScheduleServerEvent, ScheduleStatus, ScheduleUpsertRequest, SchedulesResponse, ServerEvent, SessionCategory, SessionCategoryCounts, SessionCreateRequest, SessionCreateResponse, SessionInfo, SessionPatchRequest, SessionResponse, SessionSource, SessionStatus, SessionTracesResponse, SessionsResponse, SkillGroupItem, SkillInstallRequest, SkillLibraryResponse, SkillMetadataItem, SteerRequest, TaskCreateRequest, TaskCreateResponse, TaskInputPart, ToolCallSpan, TraceAnalysisResponse, TraceEventsResponse, TraceFileInfo, TraceImportRequest, TraceImportResponse, TraceModelSegment, TraceTaskStats, TraceToolSpan, UiPrefs, UpdateCheckResponse, UpdateRunResponse, UsageAgentCount, UsageBucket, UsageErrorCount, UsageErrorItem, UsageErrors, UsageErrorsPage, UsageGroupBy, UsageGroupRow, UsageResponse, UsageSuccessRate, UsageTrendPoint, UsageTrendPointInTrace, UserInfo, VaultEntryInfo, VaultEntryUpdate, VaultResponse, VaultUpdateRequest, VersionResponse, WorkspaceFileEntry, WorkspaceFilesResponse };
|
|
1302
|
+
export type { AdminPasswordResetRequest, AdminUserCreateRequest, AdminUserCreateResponse, AdminUsersResponse, AgentCompactionConfigDto, AgentConfigDto, AgentConfigResponse, AgentConfigUpdateRequest, AgentCreateRequest, AgentCreateResponse, AgentImportRequest, AgentImportResponse, AgentModelConfigDto, AgentSkillsResponse, AgentSummary, AgentTraceDateGroup, AgentTraceFileRef, AgentTraceSessionGroup, AgentTracesResponse, AgentsResponse, ApprovalDecisionRequest, ApprovalMode, AuthLoginRequest, AuthResponse, BenchmarkCaseScore, BenchmarkCaseSummary, BenchmarkCasesResponse, BenchmarkEvaluation, BenchmarkRunScore, BenchmarkSummary, BenchmarksResponse, CaseMaterial, CredentialInfo, DirEntryInfo, DirListResponse, ErrorBody, FilesStatRequest, FilesStatResponse, GoalResponse, GoalServerEvent, GoalStateView, MeResponse, MemberAddRequest, MemberAddResponse, MemberInfo, MembersResponse, MessagesLiveTail, MessagesResponse, ModelInfo, ModelPricingDto, ModelRefDto, ModelTestRequest, ModelTestResponse, ModelUpdateEntry, ModelsResponse, ModelsUpdateRequest, PasswordChangeRequest, PendingSteeringInfo, PrefsResponse, ProjectCreateRequest, ProjectCreateResponse, ProjectRole, ProjectSummary, ProjectUpdateRequest, ProjectUpdateResponse, ProjectsResponse, RequestSpan, RetryNowResponse, ScheduleItem, ScheduleServerEvent, ScheduleStatus, ScheduleUpsertRequest, SchedulesResponse, ServerEvent, SessionCategory, SessionCategoryCounts, SessionCreateRequest, SessionCreateResponse, SessionInfo, SessionPatchRequest, SessionResponse, SessionSource, SessionStatus, SessionTracesResponse, SessionsResponse, SkillGroupItem, SkillInstallRequest, SkillLibraryResponse, SkillMetadataItem, SteerRequest, TaskCreateRequest, TaskCreateResponse, TaskInputPart, ToolCallSpan, TraceAnalysisResponse, TraceEventsResponse, TraceFileInfo, TraceImportRequest, TraceImportResponse, TraceModelSegment, TraceTaskStats, TraceToolSpan, UiPrefs, UpdateCheckResponse, UpdateRunResponse, UsageAgentCount, UsageBucket, UsageErrorCount, UsageErrorItem, UsageErrors, UsageErrorsPage, UsageGroupBy, UsageGroupRow, UsageResponse, UsageSuccessRate, UsageTrendPoint, UsageTrendPointInTrace, UserInfo, VaultEntryInfo, VaultEntryUpdate, VaultResponse, VaultUpdateRequest, VersionResponse, WorkspaceFileEntry, WorkspaceFilesResponse };
|