@ultrst-armada/kloks 1.23.0 → 1.24.1

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.
Files changed (26) hide show
  1. package/.krusbl-release-attestation.json +3 -3
  2. package/package.json +6 -1
  3. package/packages/backend/dist/auth/index.d.ts +2 -0
  4. package/packages/backend/dist/auth/index.js +2 -2
  5. package/packages/backend/dist/{chunk-WTBAG4AV.js → chunk-2HCQ2SIR.js} +9 -3
  6. package/packages/backend/dist/{chunk-IJ5QNZCY.js → chunk-6TRVGWXP.js} +282 -47
  7. package/packages/backend/dist/{chunk-W6JNJD3Q.js → chunk-A3BE6ROS.js} +1 -1
  8. package/packages/backend/dist/{chunk-3IUA66RS.js → chunk-HF5SGQ5V.js} +1 -1
  9. package/packages/backend/dist/{chunk-47IVAXPJ.js → chunk-IGZB4RYT.js} +1 -1
  10. package/packages/backend/dist/{chunk-VAFCR2MS.js → chunk-JCMB7BIM.js} +11 -3
  11. package/packages/backend/dist/{chunk-VN2YMZJO.js → chunk-JGUWYVOL.js} +1 -1
  12. package/packages/backend/dist/{chunk-NB2X3HEX.js → chunk-VTU6CNZD.js} +4 -4
  13. package/packages/backend/dist/{chunk-6DNGLKAV.js → chunk-WQ4XZY4L.js} +5 -5
  14. package/packages/backend/dist/development/index.d.ts +108 -6
  15. package/packages/backend/dist/development/index.js +15 -3
  16. package/packages/backend/dist/index.d.ts +1 -1
  17. package/packages/backend/dist/index.js +32 -20
  18. package/packages/backend/dist/krnl-services.js +5 -5
  19. package/packages/backend/dist/services/index.js +3 -3
  20. package/packages/backend/dist/srkl/index.js +2 -2
  21. package/packages/backend/dist/workspace/index.js +3 -3
  22. package/packages/backend/package.json +1 -1
  23. package/packages/semantic-runtime/dist/index.d.ts +132 -2
  24. package/packages/semantic-runtime/dist/index.js +300 -8
  25. package/packages/services/dist/index.d.ts +71 -1
  26. package/packages/services/dist/index.js +125 -0
@@ -4,16 +4,16 @@ import {
4
4
  findUserWorkspace,
5
5
  getWorkspaces,
6
6
  updateWorkspace
7
- } from "./chunk-VN2YMZJO.js";
7
+ } from "./chunk-JGUWYVOL.js";
8
+ import {
9
+ GoogleDriveAdapter
10
+ } from "./chunk-KKRWZDMN.js";
8
11
  import {
9
12
  b2DownloadFile,
10
13
  b2ListFileNames,
11
14
  b2UploadFile,
12
15
  queryUnifiedDb
13
- } from "./chunk-VAFCR2MS.js";
14
- import {
15
- GoogleDriveAdapter
16
- } from "./chunk-KKRWZDMN.js";
16
+ } from "./chunk-JCMB7BIM.js";
17
17
 
18
18
  // src/workspace/WorkspaceFS.ts
19
19
  import { SkipoBase } from "@ultrst-armada/kloks/functions";
@@ -13,12 +13,24 @@ interface DevelopmentRequest {
13
13
  cwd?: string;
14
14
  env?: Record<string, string>;
15
15
  }
16
+ interface DevelopmentDiagnostic {
17
+ severity: 'error' | 'warning' | 'info';
18
+ source: 'typescript' | 'eslint' | 'bundler' | 'package-manager' | 'runtime' | 'unknown';
19
+ code?: string;
20
+ file?: string;
21
+ line?: number;
22
+ column?: number;
23
+ message: string;
24
+ }
16
25
  interface DevelopmentResult {
17
26
  provider: DevelopmentProvider;
18
27
  task: DevelopmentTask;
19
28
  ok: boolean;
20
29
  exitCode?: number;
21
30
  output?: string;
31
+ command?: string;
32
+ durationMs?: number;
33
+ diagnostics?: DevelopmentDiagnostic[];
22
34
  runId?: number;
23
35
  url?: string;
24
36
  }
@@ -85,7 +97,19 @@ declare const GitHubActionsServiceFacade: {
85
97
  execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
86
98
  };
87
99
 
88
- declare const COMMANDS: Record<string, WebContainerCommand>;
100
+ declare function parseDevelopmentDiagnostics(output: string, exitCode?: number): DevelopmentDiagnostic[];
101
+ declare function captureDevelopmentProcess<T extends {
102
+ output: ReadableStream<string>;
103
+ exit: Promise<number>;
104
+ }>(process: T): T & {
105
+ output: ReadableStream<string>;
106
+ logs: Promise<{
107
+ output: string;
108
+ exitCode: number;
109
+ diagnostics: DevelopmentDiagnostic[];
110
+ }>;
111
+ };
112
+ declare function resolveWebContainerCommand(task: DevelopmentTask): WebContainerCommand;
89
113
  interface WebContainerRunCommandInput {
90
114
  command: string;
91
115
  args?: string[];
@@ -93,20 +117,25 @@ interface WebContainerRunCommandInput {
93
117
  env?: Record<string, string | number | boolean>;
94
118
  }
95
119
  declare class WebContainerRuntime {
96
- private container;
97
- private instancePromise;
98
120
  boot(): Promise<any>;
99
- mount(files: Record<string, unknown>): Promise<{
121
+ mount(files: Record<string, unknown>, mountPoint?: string): Promise<{
100
122
  mounted: boolean;
123
+ mountPoint: string;
101
124
  }>;
102
125
  private runProcess;
103
- run(task: keyof typeof COMMANDS, cwd?: string, env?: Record<string, string>): Promise<{
126
+ run(task: DevelopmentTask, cwd?: string, env?: Record<string, string>): Promise<{
104
127
  exitCode: any;
105
128
  output: string;
129
+ command: string;
130
+ durationMs: number;
131
+ diagnostics: DevelopmentDiagnostic[];
106
132
  }>;
107
133
  runCommand(command: string, args?: string[], cwd?: string, env?: Record<string, string | number | boolean>): Promise<{
108
134
  exitCode: any;
109
135
  output: string;
136
+ command: string;
137
+ durationMs: number;
138
+ diagnostics: DevelopmentDiagnostic[];
110
139
  }>;
111
140
  spawnCommand(command: string, args?: string[], cwd?: string, env?: Record<string, string | number | boolean>): Promise<any>;
112
141
  teardown(): Promise<{
@@ -298,4 +327,77 @@ declare const AgentHarnessServiceFacade: {
298
327
  execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
299
328
  };
300
329
 
301
- export { type AgentHarnessProvider, type AgentHarnessProviderInfo, type AgentHarnessResult, type AgentHarnessRunInput, AgentHarnessRuntime, type AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, type CodeDiagnosticsInput, type CodeDiagnosticsResult, CodeDiagnosticsService, type CodeValidationInput, type CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, type DevelopmentProvider, type DevelopmentRequest, type DevelopmentResult, DevelopmentRuntime, type DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, type DevelopmentTask, GitHubActionsClient, type GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, type TypeScriptLanguageServerNotificationInput, type TypeScriptLanguageServerRequestInput, type TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, type TypeScriptLanguageServerStartInput, type TypeScriptLanguageServerStatus, type ValidationDiagnostic, type ValidationLayer, type WebContainerCommand, type WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, type WorkflowRun, codeDiagnosticsService, resolveDevelopmentCommand };
330
+ type InspectionErrorKind = 'console' | 'pageerror' | 'requestfailed' | 'http' | 'navigation' | 'assertion' | 'crash' | 'dialog' | 'browser' | 'screenshot' | 'dom' | 'layout' | 'asset';
331
+ interface InspectionError {
332
+ kind: InspectionErrorKind;
333
+ message: string;
334
+ url?: string;
335
+ status?: number;
336
+ method?: string;
337
+ }
338
+ interface InspectionLog {
339
+ type: 'error' | 'warning' | 'log' | 'info' | 'debug' | 'dir' | 'trace' | 'assert' | 'other';
340
+ message: string;
341
+ url?: string;
342
+ line?: number;
343
+ column?: number;
344
+ }
345
+ interface InspectionCheck {
346
+ selector: string;
347
+ visible?: boolean;
348
+ text?: string;
349
+ action?: {
350
+ type: 'click' | 'fill';
351
+ value?: string;
352
+ };
353
+ }
354
+ interface InspectionViewport {
355
+ width: number;
356
+ height: number;
357
+ }
358
+ interface PlaywrightInspectionRequest {
359
+ url: string;
360
+ timeoutMs?: number;
361
+ waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
362
+ viewports?: InspectionViewport[];
363
+ checks?: InspectionCheck[];
364
+ screenshotDirectory?: string;
365
+ reportPath?: string;
366
+ captureDom?: boolean;
367
+ maxDomCharacters?: number;
368
+ }
369
+ interface InspectionCheckResult {
370
+ selector: string;
371
+ passed: boolean;
372
+ details?: string;
373
+ }
374
+ interface PlaywrightInspectionResult {
375
+ ok: boolean;
376
+ url: string;
377
+ title?: string;
378
+ status?: number;
379
+ durationMs: number;
380
+ errors: InspectionError[];
381
+ logs: InspectionLog[];
382
+ checks: InspectionCheckResult[];
383
+ screenshots: string[];
384
+ reportPath?: string;
385
+ domSnapshot?: string;
386
+ }
387
+
388
+ declare class PlaywrightInspectionRuntime {
389
+ inspect(request: PlaywrightInspectionRequest): Promise<PlaywrightInspectionResult>;
390
+ }
391
+ declare const PlaywrightInspectionServiceDefinition: ServiceDefinition;
392
+ declare const PlaywrightInspectionServiceFacade: {
393
+ id: string;
394
+ name: string;
395
+ version: string;
396
+ runtime: "server";
397
+ deployment: "local";
398
+ definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
399
+ createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
400
+ execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
401
+ };
402
+
403
+ export { type AgentHarnessProvider, type AgentHarnessProviderInfo, type AgentHarnessResult, type AgentHarnessRunInput, AgentHarnessRuntime, type AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, type CodeDiagnosticsInput, type CodeDiagnosticsResult, CodeDiagnosticsService, type CodeValidationInput, type CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, type DevelopmentDiagnostic, type DevelopmentProvider, type DevelopmentRequest, type DevelopmentResult, DevelopmentRuntime, type DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, type DevelopmentTask, GitHubActionsClient, type GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, type InspectionCheck, type InspectionCheckResult, type InspectionError, type InspectionErrorKind, type InspectionLog, type InspectionViewport, type PlaywrightInspectionRequest, type PlaywrightInspectionResult, PlaywrightInspectionRuntime, PlaywrightInspectionServiceDefinition, PlaywrightInspectionServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, type TypeScriptLanguageServerNotificationInput, type TypeScriptLanguageServerRequestInput, type TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, type TypeScriptLanguageServerStartInput, type TypeScriptLanguageServerStatus, type ValidationDiagnostic, type ValidationLayer, type WebContainerCommand, type WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, type WorkflowRun, captureDevelopmentProcess, codeDiagnosticsService, parseDevelopmentDiagnostics, resolveDevelopmentCommand, resolveWebContainerCommand };
@@ -12,6 +12,9 @@ import {
12
12
  GitHubActionsClient,
13
13
  GitHubActionsServiceDefinition,
14
14
  GitHubActionsServiceFacade,
15
+ PlaywrightInspectionRuntime,
16
+ PlaywrightInspectionServiceDefinition,
17
+ PlaywrightInspectionServiceFacade,
15
18
  TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
16
19
  TYPESCRIPT_LANGUAGE_SERVER_VERSION,
17
20
  TypeScriptLanguageServerServiceDefinition,
@@ -19,9 +22,12 @@ import {
19
22
  WebContainerRuntime,
20
23
  WebContainerServiceDefinition,
21
24
  WebContainerServiceFacade,
25
+ captureDevelopmentProcess,
22
26
  codeDiagnosticsService,
23
- resolveDevelopmentCommand
24
- } from "../chunk-IJ5QNZCY.js";
27
+ parseDevelopmentDiagnostics,
28
+ resolveDevelopmentCommand,
29
+ resolveWebContainerCommand
30
+ } from "../chunk-6TRVGWXP.js";
25
31
  import "../chunk-MWSYNRNZ.js";
26
32
  import "../chunk-QGM4M3NI.js";
27
33
  export {
@@ -38,6 +44,9 @@ export {
38
44
  GitHubActionsClient,
39
45
  GitHubActionsServiceDefinition,
40
46
  GitHubActionsServiceFacade,
47
+ PlaywrightInspectionRuntime,
48
+ PlaywrightInspectionServiceDefinition,
49
+ PlaywrightInspectionServiceFacade,
41
50
  TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
42
51
  TYPESCRIPT_LANGUAGE_SERVER_VERSION,
43
52
  TypeScriptLanguageServerServiceDefinition,
@@ -45,6 +54,9 @@ export {
45
54
  WebContainerRuntime,
46
55
  WebContainerServiceDefinition,
47
56
  WebContainerServiceFacade,
57
+ captureDevelopmentProcess,
48
58
  codeDiagnosticsService,
49
- resolveDevelopmentCommand
59
+ parseDevelopmentDiagnostics,
60
+ resolveDevelopmentCommand,
61
+ resolveWebContainerCommand
50
62
  };
@@ -13,7 +13,7 @@ export { AdaptedStorageConnection, AppAccountManifest, AppServiceDeclaration, CA
13
13
  export { CompositeBackend, EndpointGenerator, GeneratedEndpointSummary, LOCAL_STORAGE_GRAPHS_PREFIX, LocalService, NodeGraphPersistenceService, NodeGraphValidationResult, RemoteServiceProxy, SaveGraphOptions, UniversalAppEntity, UniversalGraphEdge, UniversalGraphNode, UniversalNodeGraphDocument, UniversalStorageConnection, WorkspaceGraphDocument, WorkspaceGraphSummary, createBackend, createCompositeService, createLocalService, createRemoteService, exportGraphAsJsonFile, nodeGraphPersistence, parseGraphJsonFile, validateGraphDocument, workspaceGraphService } from './services/index.js';
14
14
  import { AssetDataType as AssetDataType$1, AssetChannelType as AssetChannelType$1, GraphFolderInfo as GraphFolderInfo$1, GraphAssetItem as GraphAssetItem$1, SpaceNode, NodeConnection, DawProject } from '@ultrst-armada/kloks/state-graph';
15
15
  export { AuthServiceDefinition, AuthServiceFacade, ControlPlaneServiceDefinition, ControlPlaneServiceFacade, DatabaseServiceDefinition, DatabaseServiceFacade, GeminiServiceDefinition, GeminiServiceFacade, SrklServiceDefinition, SrklServiceFacade, StorageServiceDefinition, StorageServiceFacade, WorkspaceGraphServiceDefinition, WorkspaceGraphServiceFacade, WorkspaceServiceDefinition, WorkspaceServiceFacade, krnlAuthServiceDefinition, krnlAuthServiceFacade, krnlControlPlaneServiceDefinition, krnlControlPlaneServiceFacade, krnlDatabaseServiceDefinition, krnlDatabaseServiceFacade, krnlGeminiServiceDefinition, krnlGeminiServiceFacade, krnlSrklServiceDefinition, krnlSrklServiceFacade, krnlStorageServiceDefinition, krnlStorageServiceFacade, krnlWorkspaceGraphServiceDefinition, krnlWorkspaceGraphServiceFacade, krnlWorkspaceServiceDefinition, krnlWorkspaceServiceFacade } from './krnl-services.js';
16
- export { AgentHarnessProvider, AgentHarnessProviderInfo, AgentHarnessResult, AgentHarnessRunInput, AgentHarnessRuntime, AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, CodeDiagnosticsInput, CodeDiagnosticsResult, CodeDiagnosticsService, CodeValidationInput, CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, DevelopmentProvider, DevelopmentRequest, DevelopmentResult, DevelopmentRuntime, DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, DevelopmentTask, GitHubActionsClient, GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, TypeScriptLanguageServerNotificationInput, TypeScriptLanguageServerRequestInput, TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, TypeScriptLanguageServerStartInput, TypeScriptLanguageServerStatus, ValidationDiagnostic, ValidationLayer, WebContainerCommand, WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, WorkflowRun, codeDiagnosticsService, resolveDevelopmentCommand } from './development/index.js';
16
+ export { AgentHarnessProvider, AgentHarnessProviderInfo, AgentHarnessResult, AgentHarnessRunInput, AgentHarnessRuntime, AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, CodeDiagnosticsInput, CodeDiagnosticsResult, CodeDiagnosticsService, CodeValidationInput, CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, DevelopmentDiagnostic, DevelopmentProvider, DevelopmentRequest, DevelopmentResult, DevelopmentRuntime, DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, DevelopmentTask, GitHubActionsClient, GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, InspectionCheck, InspectionCheckResult, InspectionError, InspectionErrorKind, InspectionLog, InspectionViewport, PlaywrightInspectionRequest, PlaywrightInspectionResult, PlaywrightInspectionRuntime, PlaywrightInspectionServiceDefinition, PlaywrightInspectionServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, TypeScriptLanguageServerNotificationInput, TypeScriptLanguageServerRequestInput, TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, TypeScriptLanguageServerStartInput, TypeScriptLanguageServerStatus, ValidationDiagnostic, ValidationLayer, WebContainerCommand, WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, WorkflowRun, captureDevelopmentProcess, codeDiagnosticsService, parseDevelopmentDiagnostics, resolveDevelopmentCommand, resolveWebContainerCommand } from './development/index.js';
17
17
  export { A as AIProviderStatus, a as ProviderCapabilities, P as ProviderId, b as ProviderMeta } from './types-Di4ZAQYA.js';
18
18
  export { AIProviderService, PROVIDERS_META, PROVIDER_COLORS, aiProviderService, getProviderMeta, listProviders } from './ai-provider/index.js';
19
19
  export { A as AIHttpRequest, a as AIHttpResponse, b as AITransportClient } from './AITransportClient-dToGr8nj.js';
@@ -1,3 +1,6 @@
1
+ import {
2
+ S3Adapter
3
+ } from "./chunk-RBQ4CW3T.js";
1
4
  import {
2
5
  CANONICAL_SRKL_URL,
3
6
  SrklClient,
@@ -15,10 +18,7 @@ import {
15
18
  srklService,
16
19
  syncSrklAccounts,
17
20
  useSrklServices
18
- } from "./chunk-3IUA66RS.js";
19
- import {
20
- S3Adapter
21
- } from "./chunk-RBQ4CW3T.js";
21
+ } from "./chunk-HF5SGQ5V.js";
22
22
  import {
23
23
  RemoteWorkspaceService,
24
24
  SyncEngine,
@@ -34,7 +34,7 @@ import {
34
34
  setWorkingWorkspaceConfig,
35
35
  syncWorkspace,
36
36
  workingWorkspaceService
37
- } from "./chunk-6DNGLKAV.js";
37
+ } from "./chunk-WQ4XZY4L.js";
38
38
  import {
39
39
  validateToolInput
40
40
  } from "./chunk-6GQNYRD6.js";
@@ -49,7 +49,7 @@ import {
49
49
  BaseAccountProvider,
50
50
  LocalAccountProvider,
51
51
  PasswordHasher
52
- } from "./chunk-W6JNJD3Q.js";
52
+ } from "./chunk-A3BE6ROS.js";
53
53
  import {
54
54
  BackendProvider,
55
55
  useBackend,
@@ -101,6 +101,9 @@ import {
101
101
  GitHubActionsClient,
102
102
  GitHubActionsServiceDefinition,
103
103
  GitHubActionsServiceFacade,
104
+ PlaywrightInspectionRuntime,
105
+ PlaywrightInspectionServiceDefinition,
106
+ PlaywrightInspectionServiceFacade,
104
107
  TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
105
108
  TYPESCRIPT_LANGUAGE_SERVER_VERSION,
106
109
  TypeScriptLanguageServerServiceDefinition,
@@ -108,9 +111,12 @@ import {
108
111
  WebContainerRuntime,
109
112
  WebContainerServiceDefinition,
110
113
  WebContainerServiceFacade,
114
+ captureDevelopmentProcess,
111
115
  codeDiagnosticsService,
112
- resolveDevelopmentCommand
113
- } from "./chunk-IJ5QNZCY.js";
116
+ parseDevelopmentDiagnostics,
117
+ resolveDevelopmentCommand,
118
+ resolveWebContainerCommand
119
+ } from "./chunk-6TRVGWXP.js";
114
120
  import {
115
121
  CompositeBackend,
116
122
  EndpointGenerator,
@@ -178,7 +184,7 @@ import {
178
184
  krnlWorkspaceGraphServiceFacade,
179
185
  krnlWorkspaceServiceDefinition,
180
186
  krnlWorkspaceServiceFacade
181
- } from "./chunk-NB2X3HEX.js";
187
+ } from "./chunk-VTU6CNZD.js";
182
188
  import {
183
189
  getPrimarySrklDeploymentUrl,
184
190
  getSrklAccounts,
@@ -202,10 +208,10 @@ import {
202
208
  createCanonicalAuthClient,
203
209
  loginSystemUser,
204
210
  resolveUserFromToken
205
- } from "./chunk-WTBAG4AV.js";
211
+ } from "./chunk-2HCQ2SIR.js";
206
212
  import {
207
213
  workspaceGraphService
208
- } from "./chunk-47IVAXPJ.js";
214
+ } from "./chunk-IGZB4RYT.js";
209
215
  import {
210
216
  BackblazeB2Adapter,
211
217
  LocalFSAdapter,
@@ -240,15 +246,7 @@ import {
240
246
  syncWorkspaceDeleteToBucket,
241
247
  updateWorkspace,
242
248
  writeWorkspaceFile
243
- } from "./chunk-VN2YMZJO.js";
244
- import {
245
- b2DeleteFileVersion,
246
- b2DeleteFolder,
247
- cleanDbUrl,
248
- getB2BucketId,
249
- getUnifiedDbUrl,
250
- queryUnifiedDb
251
- } from "./chunk-VAFCR2MS.js";
249
+ } from "./chunk-JGUWYVOL.js";
252
250
  import {
253
251
  BaseStorageAdapter,
254
252
  GoogleDriveAdapter,
@@ -256,6 +254,14 @@ import {
256
254
  exchangeGoogleDriveCode,
257
255
  refreshGoogleDriveAccessToken
258
256
  } from "./chunk-KKRWZDMN.js";
257
+ import {
258
+ b2DeleteFileVersion,
259
+ b2DeleteFolder,
260
+ cleanDbUrl,
261
+ getB2BucketId,
262
+ getUnifiedDbUrl,
263
+ queryUnifiedDb
264
+ } from "./chunk-JCMB7BIM.js";
259
265
  import "./chunk-MWSYNRNZ.js";
260
266
  import {
261
267
  DeterministicEndpointExecutor,
@@ -4500,6 +4506,9 @@ export {
4500
4506
  PROVIDERS_META,
4501
4507
  PROVIDER_COLORS,
4502
4508
  PasswordHasher,
4509
+ PlaywrightInspectionRuntime,
4510
+ PlaywrightInspectionServiceDefinition,
4511
+ PlaywrightInspectionServiceFacade,
4503
4512
  RateLimiter,
4504
4513
  RemoteExecutor,
4505
4514
  RemoteWorkspaceService,
@@ -4551,6 +4560,7 @@ export {
4551
4560
  b2UploadFile,
4552
4561
  buildProjectObservability,
4553
4562
  buildProjectsList,
4563
+ captureDevelopmentProcess,
4554
4564
  classifyAndFormatError,
4555
4565
  cleanDbUrl,
4556
4566
  codeDiagnosticsService,
@@ -4689,6 +4699,7 @@ export {
4689
4699
  modelHealthService,
4690
4700
  nodeGraphPersistence,
4691
4701
  normalizeBackblazeCredentials,
4702
+ parseDevelopmentDiagnostics,
4692
4703
  parseErrorJson,
4693
4704
  parseGraphJsonFile,
4694
4705
  pauseCloudflarePagesProject,
@@ -4710,6 +4721,7 @@ export {
4710
4721
  resolveSystemDatabaseClusterNodes,
4711
4722
  resolveSystemDatabaseUrl,
4712
4723
  resolveUserFromToken,
4724
+ resolveWebContainerCommand,
4713
4725
  resolveWorkspaceConnection,
4714
4726
  resolveWorkspaceDir,
4715
4727
  resumeCloudflarePagesProject,
@@ -31,16 +31,16 @@ import {
31
31
  krnlWorkspaceGraphServiceFacade,
32
32
  krnlWorkspaceServiceDefinition,
33
33
  krnlWorkspaceServiceFacade
34
- } from "./chunk-NB2X3HEX.js";
34
+ } from "./chunk-VTU6CNZD.js";
35
35
  import "./chunk-XHADDA75.js";
36
36
  import "./chunk-4QEMALXF.js";
37
37
  import "./chunk-FZKBTF34.js";
38
- import "./chunk-WTBAG4AV.js";
39
- import "./chunk-47IVAXPJ.js";
38
+ import "./chunk-2HCQ2SIR.js";
39
+ import "./chunk-IGZB4RYT.js";
40
40
  import "./chunk-SHZAQTIT.js";
41
- import "./chunk-VN2YMZJO.js";
42
- import "./chunk-VAFCR2MS.js";
41
+ import "./chunk-JGUWYVOL.js";
43
42
  import "./chunk-KKRWZDMN.js";
43
+ import "./chunk-JCMB7BIM.js";
44
44
  import "./chunk-MWSYNRNZ.js";
45
45
  import "./chunk-QGM4M3NI.js";
46
46
  export {
@@ -14,11 +14,11 @@ import {
14
14
  } from "../chunk-B3VJ4HDV.js";
15
15
  import {
16
16
  workspaceGraphService
17
- } from "../chunk-47IVAXPJ.js";
17
+ } from "../chunk-IGZB4RYT.js";
18
18
  import "../chunk-SHZAQTIT.js";
19
- import "../chunk-VN2YMZJO.js";
20
- import "../chunk-VAFCR2MS.js";
19
+ import "../chunk-JGUWYVOL.js";
21
20
  import "../chunk-KKRWZDMN.js";
21
+ import "../chunk-JCMB7BIM.js";
22
22
  import "../chunk-MWSYNRNZ.js";
23
23
  import "../chunk-QGM4M3NI.js";
24
24
  export {
@@ -10,14 +10,14 @@ import {
10
10
  srklService,
11
11
  syncSrklAccounts,
12
12
  useSrklServices
13
- } from "../chunk-3IUA66RS.js";
13
+ } from "../chunk-HF5SGQ5V.js";
14
14
  import {
15
15
  getPrimarySrklDeploymentUrl,
16
16
  getSrklAccounts,
17
17
  srklListBackblazeBuckets
18
18
  } from "../chunk-XHADDA75.js";
19
19
  import "../chunk-4QEMALXF.js";
20
- import "../chunk-VAFCR2MS.js";
20
+ import "../chunk-JCMB7BIM.js";
21
21
  import "../chunk-QGM4M3NI.js";
22
22
  export {
23
23
  CANONICAL_SRKL_URL,
@@ -6,14 +6,14 @@ import {
6
6
  WorkspaceFS,
7
7
  remoteWorkspaceService,
8
8
  workingWorkspaceService
9
- } from "../chunk-6DNGLKAV.js";
9
+ } from "../chunk-WQ4XZY4L.js";
10
10
  import {
11
11
  formatCanonicalWorkspaceFolderName,
12
12
  sanitizeWorkspaceName
13
13
  } from "../chunk-FZKBTF34.js";
14
- import "../chunk-VN2YMZJO.js";
15
- import "../chunk-VAFCR2MS.js";
14
+ import "../chunk-JGUWYVOL.js";
16
15
  import "../chunk-KKRWZDMN.js";
16
+ import "../chunk-JCMB7BIM.js";
17
17
  import "../chunk-QGM4M3NI.js";
18
18
  export {
19
19
  RemoteWorkspaceService,
@@ -110,7 +110,7 @@
110
110
  }
111
111
  },
112
112
  "scripts": {
113
- "build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external bcryptjs --external better-sqlite3 --external zod --external ws --external @webcontainer/api",
113
+ "build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external bcryptjs --external better-sqlite3 --external zod --external ws --external @webcontainer/api --external playwright",
114
114
  "typecheck": "tsc --noEmit",
115
115
  "clean": "rm -rf dist"
116
116
  },
@@ -6,6 +6,11 @@ interface JsonSchema {
6
6
  required?: string[];
7
7
  [key: string]: unknown;
8
8
  }
9
+ interface SemanticValueDescriptor {
10
+ semanticType: string;
11
+ description?: string;
12
+ constraints?: Record<string, unknown>;
13
+ }
9
14
  interface CapabilityDescriptor {
10
15
  id: string;
11
16
  name: string;
@@ -14,6 +19,7 @@ interface CapabilityDescriptor {
14
19
  inputSchema?: JsonSchema;
15
20
  outputSchema?: JsonSchema;
16
21
  requirements?: RequirementTemplate[];
22
+ provides?: SemanticValueDescriptor[];
17
23
  examples?: unknown[];
18
24
  sideEffects?: 'read' | 'compute' | 'write' | 'external' | 'irreversible';
19
25
  metadata?: Record<string, unknown>;
@@ -34,6 +40,7 @@ interface Requirement {
34
40
  sourceCapability: string;
35
41
  sourceField?: string;
36
42
  constraints?: Record<string, unknown>;
43
+ value?: unknown;
37
44
  }
38
45
  interface RuntimeContext {
39
46
  applicationId: string;
@@ -98,6 +105,11 @@ interface Task {
98
105
  result?: unknown;
99
106
  error?: string;
100
107
  }
108
+ interface SemanticPlan {
109
+ intent?: string;
110
+ nodes: Omit<TaskNode, 'status'>[];
111
+ requirements?: Requirement[];
112
+ }
101
113
 
102
114
  declare class CapabilityRegistry {
103
115
  private readonly items;
@@ -106,6 +118,7 @@ declare class CapabilityRegistry {
106
118
  get(id: string): CapabilityDescriptor | undefined;
107
119
  list(): CapabilityDescriptor[];
108
120
  findBySemanticType(semanticType: string): CapabilityDescriptor[];
121
+ findProviders(semanticType: string): CapabilityDescriptor[];
109
122
  }
110
123
 
111
124
  interface KnowledgeResolver {
@@ -123,12 +136,25 @@ interface ResolutionResult {
123
136
  value?: unknown;
124
137
  source?: string;
125
138
  reason?: string;
139
+ capabilityId?: string;
126
140
  }
127
141
  interface RequirementSource {
128
142
  canResolve(requirement: Requirement, context: AgentContext): Promise<boolean>;
129
143
  resolve(requirement: Requirement, context: AgentContext): Promise<unknown>;
130
144
  name: string;
131
145
  }
146
+ interface RequirementCapabilityExecutor {
147
+ execute(capability: CapabilityDescriptor, input: unknown, context: AgentContext): Promise<unknown>;
148
+ }
149
+ declare class CapabilityRequirementSource implements RequirementSource {
150
+ private readonly registry;
151
+ private readonly executor;
152
+ readonly name = "capability-execution";
153
+ constructor(registry: CapabilityRegistry, executor: RequirementCapabilityExecutor);
154
+ canResolve(requirement: Requirement): Promise<boolean>;
155
+ resolve(requirement: Requirement, context: AgentContext): Promise<unknown>;
156
+ private executeProvider;
157
+ }
132
158
  declare class RequirementResolver {
133
159
  private readonly registry;
134
160
  private readonly sources;
@@ -151,8 +177,9 @@ declare class TaskRuntime {
151
177
  private readonly events?;
152
178
  private readonly store;
153
179
  constructor(store?: TaskStore, events?: TaskEventSink | undefined);
154
- create(request: string, parentTaskId?: string, contextId?: `${string}-${string}-${string}-${string}-${string}`): Task;
180
+ create(request: string, parentTaskId?: string, contextId?: string): Task;
155
181
  get(id: string): Task | undefined;
182
+ list(): Task[];
156
183
  transition(id: string, status: TaskStatus): Task;
157
184
  addRequirement(id: string, requirement: TaskContext['requirements'][number]): Task;
158
185
  addArtifact(id: string, artifact: Artifact): Task;
@@ -209,4 +236,107 @@ declare class CapabilityExecutionRuntime {
209
236
  execute(capability: CapabilityDescriptor, input: unknown, context: AgentContext, executor: CapabilityExecutor): Promise<ExecutionResult>;
210
237
  }
211
238
 
212
- export { type AgentCard, type AgentContext, AgentRegistry, type Artifact, type AuthorizationDecision, type AuthorizationPolicy, type CapabilityDescriptor, CapabilityExecutionRuntime, type CapabilityExecutor, type CapabilityKind, CapabilityRegistry, ContextResolver, type ExecutionResult, type JsonSchema, type KnowledgeContext, type KnowledgeResolver, type Requirement, RequirementResolver, type RequirementSource, type RequirementTemplate, type ResolutionResult, type RuntimeContext, type SemanticRequest, type Task, type TaskContext, type TaskEventSink, type TaskGraph, TaskGraphRuntime, type TaskNode, TaskRuntime, type TaskStatus, type TaskStore, createSemanticRequest };
239
+ interface SemanticPlanner {
240
+ plan(request: string, context: AgentContext): Promise<SemanticPlan>;
241
+ }
242
+ interface SemanticExecutionAdapter {
243
+ execute(capability: CapabilityDescriptor, input: unknown, context: AgentContext): Promise<unknown>;
244
+ }
245
+ type OrchestrationResult = {
246
+ status: 'completed';
247
+ task: Task;
248
+ output: unknown[];
249
+ } | {
250
+ status: 'input-required';
251
+ task: Task;
252
+ requirements: Requirement[];
253
+ } | {
254
+ status: 'failed';
255
+ task: Task;
256
+ error: string;
257
+ };
258
+ declare class SemanticOrchestrator {
259
+ private readonly capabilities;
260
+ private readonly tasks;
261
+ private readonly requirements;
262
+ private readonly planner;
263
+ private readonly executor;
264
+ private readonly authorization?;
265
+ readonly graphs: TaskGraphRuntime;
266
+ constructor(capabilities: CapabilityRegistry, tasks: TaskRuntime, requirements: RequirementResolver, planner: SemanticPlanner, executor: SemanticExecutionAdapter, authorization?: AuthorizationPolicy | undefined);
267
+ run(task: Task, context: AgentContext): Promise<OrchestrationResult>;
268
+ private resolveInput;
269
+ }
270
+
271
+ interface ConversationMessage {
272
+ id: string;
273
+ role: 'user' | 'agent' | 'system';
274
+ content: string;
275
+ taskId?: string;
276
+ createdAt: string;
277
+ }
278
+ interface Conversation {
279
+ id: string;
280
+ messages: ConversationMessage[];
281
+ taskIds: string[];
282
+ }
283
+ interface ConversationStore {
284
+ get(id: string): Conversation | undefined;
285
+ set(conversation: Conversation): void;
286
+ }
287
+ interface ConversationInputResolver {
288
+ resolve(input: string, requirement: Requirement, context: AgentContext): Promise<unknown>;
289
+ }
290
+ interface ConversationRuntimeOptions {
291
+ tasks: TaskRuntime;
292
+ orchestrator: SemanticOrchestrator;
293
+ buildContext: (taskId: string, conversationId: string) => Promise<AgentContext>;
294
+ inputResolver: ConversationInputResolver;
295
+ store?: ConversationStore;
296
+ }
297
+ declare class ConversationRuntime {
298
+ private readonly options;
299
+ private readonly store;
300
+ constructor(options: ConversationRuntimeOptions);
301
+ send(input: string, conversationId?: string, taskId?: string): Promise<OrchestrationResult>;
302
+ get(id: string): Conversation | undefined;
303
+ private getOrCreate;
304
+ private describe;
305
+ }
306
+
307
+ interface WorkspaceFileAdapter {
308
+ readFile(workspaceId: string, path: string): Promise<string | Uint8Array>;
309
+ writeFile(workspaceId: string, path: string, content: string): Promise<unknown>;
310
+ deleteFile(workspaceId: string, path: string): Promise<unknown>;
311
+ listFiles(workspaceId: string, path: string): Promise<readonly {
312
+ name: string;
313
+ path: string;
314
+ isFolder?: boolean;
315
+ }[]>;
316
+ }
317
+ declare class WorkspaceTaskStore implements TaskStore {
318
+ private readonly workspace;
319
+ private readonly workspaceId;
320
+ private readonly root;
321
+ private readonly items;
322
+ constructor(workspace: WorkspaceFileAdapter, workspaceId: string, root?: string);
323
+ hydrate(): Promise<Task[]>;
324
+ get(id: string): Task | undefined;
325
+ set(task: Task): void;
326
+ list(): Task[];
327
+ delete(id: string): Promise<void>;
328
+ }
329
+ declare class WorkspaceConversationStore implements ConversationStore {
330
+ private readonly workspace;
331
+ private readonly workspaceId;
332
+ private readonly root;
333
+ private readonly items;
334
+ constructor(workspace: WorkspaceFileAdapter, workspaceId: string, root?: string);
335
+ hydrate(): Promise<Conversation[]>;
336
+ get(id: string): Conversation | undefined;
337
+ set(conversation: Conversation): void;
338
+ list(): Conversation[];
339
+ delete(id: string): Promise<void>;
340
+ }
341
+
342
+ export { type AgentCard, type AgentContext, AgentRegistry, type Artifact, type AuthorizationDecision, type AuthorizationPolicy, type CapabilityDescriptor, CapabilityExecutionRuntime, type CapabilityExecutor, type CapabilityKind, CapabilityRegistry, CapabilityRequirementSource, ContextResolver, type Conversation, type ConversationInputResolver, type ConversationMessage, ConversationRuntime, type ConversationRuntimeOptions, type ConversationStore, type ExecutionResult, type JsonSchema, type KnowledgeContext, type KnowledgeResolver, type OrchestrationResult, type Requirement, type RequirementCapabilityExecutor, RequirementResolver, type RequirementSource, type RequirementTemplate, type ResolutionResult, type RuntimeContext, type SemanticExecutionAdapter, SemanticOrchestrator, type SemanticPlan, type SemanticPlanner, type SemanticRequest, type SemanticValueDescriptor, type Task, type TaskContext, type TaskEventSink, type TaskGraph, TaskGraphRuntime, type TaskNode, TaskRuntime, type TaskStatus, type TaskStore, WorkspaceConversationStore, type WorkspaceFileAdapter, WorkspaceTaskStore, createSemanticRequest };