@openspecui/core 3.2.2 → 3.3.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/index.d.mts +142 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2441,7 +2441,10 @@ interface ExportSnapshot {
|
|
|
2441
2441
|
specs: Array<{
|
|
2442
2442
|
id: string;
|
|
2443
2443
|
name: string;
|
|
2444
|
+
/** Processed markdown shown by default in static OpenSpecUI. */
|
|
2444
2445
|
content: string;
|
|
2446
|
+
/** Original source markdown, preserved for raw/source views. */
|
|
2447
|
+
sourceContent?: string;
|
|
2445
2448
|
overview: string;
|
|
2446
2449
|
requirements: Array<{
|
|
2447
2450
|
id: string;
|
|
@@ -2457,9 +2460,14 @@ interface ExportSnapshot {
|
|
|
2457
2460
|
changes: Array<{
|
|
2458
2461
|
id: string;
|
|
2459
2462
|
name: string;
|
|
2463
|
+
/** Processed proposal markdown shown by default in static OpenSpecUI. */
|
|
2460
2464
|
proposal: string;
|
|
2465
|
+
/** Original source proposal markdown. */
|
|
2466
|
+
sourceProposal?: string;
|
|
2461
2467
|
tasks?: string;
|
|
2468
|
+
sourceTasks?: string;
|
|
2462
2469
|
design?: string;
|
|
2470
|
+
sourceDesign?: string;
|
|
2463
2471
|
why: string;
|
|
2464
2472
|
whatChanges: string;
|
|
2465
2473
|
parsedTasks: Array<{
|
|
@@ -2470,7 +2478,10 @@ interface ExportSnapshot {
|
|
|
2470
2478
|
}>;
|
|
2471
2479
|
deltas: Array<{
|
|
2472
2480
|
capability: string;
|
|
2481
|
+
/** Processed delta spec markdown. */
|
|
2473
2482
|
content: string;
|
|
2483
|
+
/** Original source delta spec markdown. */
|
|
2484
|
+
sourceContent?: string;
|
|
2474
2485
|
}>;
|
|
2475
2486
|
progress: {
|
|
2476
2487
|
total: number;
|
|
@@ -2483,9 +2494,14 @@ interface ExportSnapshot {
|
|
|
2483
2494
|
archives: Array<{
|
|
2484
2495
|
id: string;
|
|
2485
2496
|
name: string;
|
|
2497
|
+
/** Processed proposal markdown shown by default in static OpenSpecUI. */
|
|
2486
2498
|
proposal: string;
|
|
2499
|
+
/** Original source proposal markdown. */
|
|
2500
|
+
sourceProposal?: string;
|
|
2487
2501
|
tasks?: string;
|
|
2502
|
+
sourceTasks?: string;
|
|
2488
2503
|
design?: string;
|
|
2504
|
+
sourceDesign?: string;
|
|
2489
2505
|
why: string;
|
|
2490
2506
|
whatChanges: string;
|
|
2491
2507
|
parsedTasks: Array<{
|
|
@@ -2580,6 +2596,131 @@ interface GitWorktreeHandoff {
|
|
|
2580
2596
|
serverUrl: string;
|
|
2581
2597
|
}
|
|
2582
2598
|
//#endregion
|
|
2599
|
+
//#region src/hooks.d.ts
|
|
2600
|
+
declare const OPENSPECUI_HOOKS_VERSION = 1;
|
|
2601
|
+
/** Severity level for diagnostics returned by project hooks. */
|
|
2602
|
+
type HookDiagnosticLevel = 'info' | 'warning' | 'error';
|
|
2603
|
+
/** Non-fatal hook diagnostic surfaced with the processed result. */
|
|
2604
|
+
interface HookDiagnosticV1 {
|
|
2605
|
+
level: HookDiagnosticLevel;
|
|
2606
|
+
message: string;
|
|
2607
|
+
}
|
|
2608
|
+
/** Project-scoped lifecycle helpers available to hooks. */
|
|
2609
|
+
interface HookLifecycleV1 {
|
|
2610
|
+
/**
|
|
2611
|
+
* Register cleanup work for the project hook runtime.
|
|
2612
|
+
*
|
|
2613
|
+
* This lifecycle is project-scoped, not call-scoped, so daemon-style hooks can
|
|
2614
|
+
* keep one process alive for the OpenSpecUI session.
|
|
2615
|
+
*/
|
|
2616
|
+
onDispose(cleanup: () => void | Promise<void>): void;
|
|
2617
|
+
}
|
|
2618
|
+
/** OpenSpecUI consumer requesting a processed document projection. */
|
|
2619
|
+
type DocumentConsumerV1 = 'view' | 'search' | 'export';
|
|
2620
|
+
/** Document read mode; source reads bypass hooks and stay audit-safe. */
|
|
2621
|
+
type DocumentReadModeV1 = 'source' | 'processed';
|
|
2622
|
+
/** Stable identity for the OpenSpec document currently being read. */
|
|
2623
|
+
interface DocumentRefV1 {
|
|
2624
|
+
stage: 'project' | 'main' | 'change' | 'archive';
|
|
2625
|
+
kind: 'project' | 'spec' | 'proposal' | 'design' | 'tasks' | 'delta-spec';
|
|
2626
|
+
relativePath: string;
|
|
2627
|
+
absolutePath: string;
|
|
2628
|
+
specId?: string;
|
|
2629
|
+
changeId?: string;
|
|
2630
|
+
}
|
|
2631
|
+
/** Context passed to `onReadDocument`. */
|
|
2632
|
+
interface ReadDocumentContextV1 {
|
|
2633
|
+
version: typeof OPENSPECUI_HOOKS_VERSION;
|
|
2634
|
+
projectDir: string;
|
|
2635
|
+
consumer: DocumentConsumerV1;
|
|
2636
|
+
document: DocumentRefV1;
|
|
2637
|
+
signal: AbortSignal;
|
|
2638
|
+
lifecycle: HookLifecycleV1;
|
|
2639
|
+
}
|
|
2640
|
+
/** Markdown projection returned by document reads and `onReadDocument`. */
|
|
2641
|
+
interface ReadDocumentResultV1 {
|
|
2642
|
+
markdown: string;
|
|
2643
|
+
sourceLabel?: string;
|
|
2644
|
+
title?: string;
|
|
2645
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2646
|
+
watchFiles?: string[];
|
|
2647
|
+
}
|
|
2648
|
+
/** Intercepts processed OpenSpec markdown reads for view, search, and export. */
|
|
2649
|
+
type OnReadDocumentHookV1 = (ctx: ReadDocumentContextV1, read: () => Promise<ReadDocumentResultV1>) => Promise<ReadDocumentResultV1>;
|
|
2650
|
+
/** OPSX workflow action names that can be customized by `onRunWorkflow`. */
|
|
2651
|
+
type WorkflowActionV1 = 'explore' | 'propose' | 'new' | 'continue' | 'ff' | 'apply' | 'verify' | 'sync' | 'archive' | 'bulk-archive' | 'onboard';
|
|
2652
|
+
/** Invocation mode requested by the UI before action-specific fallback resolution. */
|
|
2653
|
+
type WorkflowRequestedModeV1 = 'compose' | 'command' | 'direct';
|
|
2654
|
+
/** Normalized OPSX workflow input passed to `onRunWorkflow`. */
|
|
2655
|
+
type RunWorkflowInputV1 = {
|
|
2656
|
+
action: 'explore' | 'propose';
|
|
2657
|
+
text: string;
|
|
2658
|
+
} | {
|
|
2659
|
+
action: 'new';
|
|
2660
|
+
changeId: string;
|
|
2661
|
+
schema?: string;
|
|
2662
|
+
description?: string;
|
|
2663
|
+
extraArgs: string[];
|
|
2664
|
+
} | {
|
|
2665
|
+
action: 'continue' | 'ff';
|
|
2666
|
+
changeId: string;
|
|
2667
|
+
artifactId: string;
|
|
2668
|
+
schema?: string;
|
|
2669
|
+
} | {
|
|
2670
|
+
action: 'apply' | 'archive' | 'verify' | 'sync';
|
|
2671
|
+
changeId: string;
|
|
2672
|
+
schema?: string;
|
|
2673
|
+
strict?: boolean;
|
|
2674
|
+
} | {
|
|
2675
|
+
action: 'bulk-archive';
|
|
2676
|
+
changeIds?: string[];
|
|
2677
|
+
schema?: string;
|
|
2678
|
+
} | {
|
|
2679
|
+
action: 'onboard';
|
|
2680
|
+
};
|
|
2681
|
+
/** Actual invocation mode after OpenSpecUI applies action capability rules. */
|
|
2682
|
+
interface WorkflowInvocationModeResolutionV1 {
|
|
2683
|
+
requestedMode: WorkflowRequestedModeV1;
|
|
2684
|
+
actualMode: WorkflowRequestedModeV1;
|
|
2685
|
+
fallbackReason: string | null;
|
|
2686
|
+
}
|
|
2687
|
+
/** Context passed to `onRunWorkflow`. */
|
|
2688
|
+
interface RunWorkflowContextV1 {
|
|
2689
|
+
version: typeof OPENSPECUI_HOOKS_VERSION;
|
|
2690
|
+
projectDir: string;
|
|
2691
|
+
action: WorkflowActionV1;
|
|
2692
|
+
requestedMode: WorkflowRequestedModeV1;
|
|
2693
|
+
input: RunWorkflowInputV1;
|
|
2694
|
+
signal: AbortSignal;
|
|
2695
|
+
lifecycle: HookLifecycleV1;
|
|
2696
|
+
}
|
|
2697
|
+
/** Final OPSX invocation payload produced by OpenSpecUI or `onRunWorkflow`. */
|
|
2698
|
+
type RunWorkflowResultV1 = {
|
|
2699
|
+
kind: 'agent-prompt';
|
|
2700
|
+
text: string;
|
|
2701
|
+
format: 'markdown';
|
|
2702
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2703
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2704
|
+
} | {
|
|
2705
|
+
kind: 'agent-command';
|
|
2706
|
+
text: string;
|
|
2707
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2708
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2709
|
+
} | {
|
|
2710
|
+
kind: 'cli-command';
|
|
2711
|
+
command: string;
|
|
2712
|
+
args: string[];
|
|
2713
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2714
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2715
|
+
};
|
|
2716
|
+
/** Intercepts the final OPSX invocation payload before the UI runs it. */
|
|
2717
|
+
type OnRunWorkflowHookV1 = (ctx: RunWorkflowContextV1, run: () => Promise<RunWorkflowResultV1>) => Promise<RunWorkflowResultV1>;
|
|
2718
|
+
/** Project hook module shape exported from `openspec/openspecui.hooks.ts`. */
|
|
2719
|
+
interface OpenSpecUIHooksV1 {
|
|
2720
|
+
onReadDocument?: OnReadDocumentHookV1;
|
|
2721
|
+
onRunWorkflow?: OnRunWorkflowHookV1;
|
|
2722
|
+
}
|
|
2723
|
+
//#endregion
|
|
2583
2724
|
//#region src/runtime-types.d.ts
|
|
2584
2725
|
type ProjectRecoveryStatus = {
|
|
2585
2726
|
state: 'idle';
|
|
@@ -3204,4 +3345,4 @@ type PtyServerMessage = z.infer<typeof PtyServerMessageSchema>;
|
|
|
3204
3345
|
type PtySessionInfo = z.infer<typeof PtySessionInfoSchema>;
|
|
3205
3346
|
type PtyPlatform = z.infer<typeof PtyPlatformSchema>;
|
|
3206
3347
|
//#endregion
|
|
3207
|
-
export { type AIToolOption, AI_TOOLS, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, CODE_EDITOR_THEME_VALUES, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, type DashboardCardAvailability, type DashboardConfig, DashboardConfigSchema, type DashboardGitCommitEntry, type DashboardGitDiffStats, type DashboardGitEntry, type DashboardGitSnapshot, type DashboardGitUncommittedEntry, type DashboardGitWorktree, type DashboardMetricKey, type DashboardOverview, type DashboardSummary, type DashboardTrendKind, type DashboardTrendMeta, type DashboardTrendPoint, type DashboardTriColorTrendPoint, type Delta, type DeltaOperation, DeltaOperationType, DeltaSchema, type DeltaSpec, DeltaSpecSchema, type DependencyInfo, DependencyInfoSchema, type ExportSnapshot, type FileChangeEvent, type FileChangeType, type GitConfig, GitConfigSchema, type GitEntriesPage, type GitEntryCursor, type GitEntryDetail, type GitEntryFileDiff, type GitEntryFilePatch, type GitEntryFileSource, type GitEntryFileSummary, type GitEntryFiles, type GitEntryPatch, type GitEntrySelector, type GitEntryShell, type GitFileChangeType, type GitPatchFile, type GitPatchState, type GitWorktreeHandoff, type GitWorktreeOverview, type GitWorktreeSummary, HOSTED_SHELL_PROTOCOL_VERSION, type HostedBackendHealthResponse, MarkdownParser, OFFICIAL_APP_BASE_URL, OPSX_AGENT_INVOCATION_MODE_VALUES, OpenSpecAdapter, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, OpsxKernel, type PathCallback, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, PtyAttachMessageSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyResizeMessageSchema, type PtyServerMessage, PtyServerMessageSchema, type PtySessionInfo, PtyTitleResponseSchema, ReactiveContext, ReactiveState, type ReactiveStateOptions, type Requirement, RequirementSchema, type ResolvedCliRunner, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, type Task, TaskSchema, type TemplateContentMap, type TemplatesMap, TemplatesSchema, type TerminalConfig, TerminalConfigSchema, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type ToolConfig, type ToolInitDelivery, type ToolInitState, type ToolInitStatus, type ToolWorkflowId, VIRTUAL_PROJECT_DIRNAME, type ValidationIssue, type ValidationResult, Validator, type WatchEvent, type WatchEventType, type WatcherRuntimeStatus, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, resolveHostedAppBaseUrl, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|
|
3348
|
+
export { type AIToolOption, AI_TOOLS, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, CODE_EDITOR_THEME_VALUES, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, type DashboardCardAvailability, type DashboardConfig, DashboardConfigSchema, type DashboardGitCommitEntry, type DashboardGitDiffStats, type DashboardGitEntry, type DashboardGitSnapshot, type DashboardGitUncommittedEntry, type DashboardGitWorktree, type DashboardMetricKey, type DashboardOverview, type DashboardSummary, type DashboardTrendKind, type DashboardTrendMeta, type DashboardTrendPoint, type DashboardTriColorTrendPoint, type Delta, type DeltaOperation, DeltaOperationType, DeltaSchema, type DeltaSpec, DeltaSpecSchema, type DependencyInfo, DependencyInfoSchema, type DocumentConsumerV1, type DocumentReadModeV1, type DocumentRefV1, type ExportSnapshot, type FileChangeEvent, type FileChangeType, type GitConfig, GitConfigSchema, type GitEntriesPage, type GitEntryCursor, type GitEntryDetail, type GitEntryFileDiff, type GitEntryFilePatch, type GitEntryFileSource, type GitEntryFileSummary, type GitEntryFiles, type GitEntryPatch, type GitEntrySelector, type GitEntryShell, type GitFileChangeType, type GitPatchFile, type GitPatchState, type GitWorktreeHandoff, type GitWorktreeOverview, type GitWorktreeSummary, HOSTED_SHELL_PROTOCOL_VERSION, type HookDiagnosticLevel, type HookDiagnosticV1, type HookLifecycleV1, type HostedBackendHealthResponse, MarkdownParser, OFFICIAL_APP_BASE_URL, OPENSPECUI_HOOKS_VERSION, OPSX_AGENT_INVOCATION_MODE_VALUES, type OnReadDocumentHookV1, type OnRunWorkflowHookV1, OpenSpecAdapter, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, type OpenSpecUIHooksV1, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, OpsxKernel, type PathCallback, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, PtyAttachMessageSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyResizeMessageSchema, type PtyServerMessage, PtyServerMessageSchema, type PtySessionInfo, PtyTitleResponseSchema, ReactiveContext, ReactiveState, type ReactiveStateOptions, type ReadDocumentContextV1, type ReadDocumentResultV1, type Requirement, RequirementSchema, type ResolvedCliRunner, type RunWorkflowContextV1, type RunWorkflowInputV1, type RunWorkflowResultV1, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, type Task, TaskSchema, type TemplateContentMap, type TemplatesMap, TemplatesSchema, type TerminalConfig, TerminalConfigSchema, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type ToolConfig, type ToolInitDelivery, type ToolInitState, type ToolInitStatus, type ToolWorkflowId, VIRTUAL_PROJECT_DIRNAME, type ValidationIssue, type ValidationResult, Validator, type WatchEvent, type WatchEventType, type WatcherRuntimeStatus, type WorkflowActionV1, type WorkflowInvocationModeResolutionV1, type WorkflowRequestedModeV1, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, resolveHostedAppBaseUrl, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|
package/dist/index.mjs
CHANGED
|
@@ -3699,6 +3699,10 @@ const DASHBOARD_METRIC_KEYS = [
|
|
|
3699
3699
|
"taskCompletionPercent"
|
|
3700
3700
|
];
|
|
3701
3701
|
|
|
3702
|
+
//#endregion
|
|
3703
|
+
//#region src/hooks.ts
|
|
3704
|
+
const OPENSPECUI_HOOKS_VERSION = 1;
|
|
3705
|
+
|
|
3702
3706
|
//#endregion
|
|
3703
3707
|
//#region src/opsx-types.ts
|
|
3704
3708
|
/** Check if an outputPath contains glob pattern characters */
|
|
@@ -4638,4 +4642,4 @@ const PtyServerMessageSchema = z.discriminatedUnion("type", [
|
|
|
4638
4642
|
]);
|
|
4639
4643
|
|
|
4640
4644
|
//#endregion
|
|
4641
|
-
export { AI_TOOLS, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, ApplyTaskSchema, ArtifactInstructionsSchema, ArtifactStatusSchema, CODE_EDITOR_THEME_VALUES, ChangeFileSchema, ChangeSchema, ChangeStatusSchema, CliExecutor, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, DashboardConfigSchema, DeltaOperationType, DeltaSchema, DeltaSpecSchema, DependencyInfoSchema, GitConfigSchema, HOSTED_SHELL_PROTOCOL_VERSION, MarkdownParser, OFFICIAL_APP_BASE_URL, OPSX_AGENT_INVOCATION_MODE_VALUES, OpenSpecAdapter, OpenSpecUIConfigSchema, OpenSpecWatcher, OpsxAgentInvocationModeSchema, OpsxConfigSchema, OpsxKernel, ProjectWatcher, PtyAttachMessageSchema, PtyBufferResponseSchema, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, PtyPlatformSchema, PtyResizeMessageSchema, PtyServerMessageSchema, PtyTitleResponseSchema, ReactiveContext, ReactiveState, RequirementSchema, SchemaArtifactSchema, SchemaDetailSchema, SchemaInfoSchema, SchemaResolutionSchema, SpecSchema, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, TaskSchema, TemplatesSchema, TerminalConfigSchema, TerminalRendererEngineSchema, TerminalThemeModeSchema, TerminalThemeSchema, VIRTUAL_PROJECT_DIRNAME, Validator, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, resolveHostedAppBaseUrl, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|
|
4645
|
+
export { AI_TOOLS, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, ApplyTaskSchema, ArtifactInstructionsSchema, ArtifactStatusSchema, CODE_EDITOR_THEME_VALUES, ChangeFileSchema, ChangeSchema, ChangeStatusSchema, CliExecutor, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, DashboardConfigSchema, DeltaOperationType, DeltaSchema, DeltaSpecSchema, DependencyInfoSchema, GitConfigSchema, HOSTED_SHELL_PROTOCOL_VERSION, MarkdownParser, OFFICIAL_APP_BASE_URL, OPENSPECUI_HOOKS_VERSION, OPSX_AGENT_INVOCATION_MODE_VALUES, OpenSpecAdapter, OpenSpecUIConfigSchema, OpenSpecWatcher, OpsxAgentInvocationModeSchema, OpsxConfigSchema, OpsxKernel, ProjectWatcher, PtyAttachMessageSchema, PtyBufferResponseSchema, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, PtyPlatformSchema, PtyResizeMessageSchema, PtyServerMessageSchema, PtyTitleResponseSchema, ReactiveContext, ReactiveState, RequirementSchema, SchemaArtifactSchema, SchemaDetailSchema, SchemaInfoSchema, SchemaResolutionSchema, SpecSchema, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, TaskSchema, TemplatesSchema, TerminalConfigSchema, TerminalRendererEngineSchema, TerminalThemeModeSchema, TerminalThemeSchema, VIRTUAL_PROJECT_DIRNAME, Validator, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, resolveHostedAppBaseUrl, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|