@work-shape/catalyst-cli 0.8.0-rc.14 → 0.8.0-rc.16

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 (3) hide show
  1. package/dist/index.d.ts +313 -5
  2. package/dist/index.js +3215 -2983
  3. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -5280,7 +5280,7 @@ declare const appOperations: {
5280
5280
  readonly id: "apps.get_from_page";
5281
5281
  readonly method: "GET";
5282
5282
  readonly path: "/api/v1/conversations/:conversationId/pages/:pageId/app";
5283
- readonly summary: "Read the App a Page is updated into, where the caller may write it";
5283
+ readonly summary: "Read the preview state of a Page and the App the caller may update";
5284
5284
  readonly tag: "Apps";
5285
5285
  readonly auth: "user";
5286
5286
  readonly scope: "conversation:read";
@@ -5292,6 +5292,14 @@ declare const appOperations: {
5292
5292
  readonly response: {
5293
5293
  readonly kind: "json";
5294
5294
  readonly schema: zod.ZodObject<{
5295
+ preview: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
5296
+ kind: zod.ZodLiteral<"app">;
5297
+ title: zod.ZodString;
5298
+ }, zod_v4_core.$strip>, zod.ZodObject<{
5299
+ kind: zod.ZodLiteral<"unsaved">;
5300
+ }, zod_v4_core.$strip>, zod.ZodObject<{
5301
+ kind: zod.ZodLiteral<"neutral">;
5302
+ }, zod_v4_core.$strip>], "kind">;
5295
5303
  app: zod.ZodNullable<zod.ZodObject<{
5296
5304
  name: zod.ZodString;
5297
5305
  title: zod.ZodString;
@@ -5667,6 +5675,105 @@ declare const appOperations: {
5667
5675
  readonly errors: readonly ["NOT_FOUND"];
5668
5676
  readonly rateClass: "read";
5669
5677
  }>;
5678
+ readonly "apps.sessions.report": Operation<{
5679
+ readonly id: "apps.sessions.report";
5680
+ readonly method: "POST";
5681
+ readonly path: "/api/v1/app-content-sessions/:pageSessionId/report";
5682
+ readonly summary: "Keep what the preview a frame shows reported of itself, scrubbed and bounded, for the conversation's agent";
5683
+ readonly tag: "Apps";
5684
+ readonly auth: "user";
5685
+ readonly scope: "conversation:write";
5686
+ readonly requires: readonly [];
5687
+ readonly effect: "changing";
5688
+ readonly body: zod.ZodObject<{
5689
+ conversationId: zod.ZodOptional<zod.ZodString>;
5690
+ report: zod.ZodObject<{
5691
+ settled: zod.ZodBoolean;
5692
+ loaded: zod.ZodBoolean;
5693
+ bridge: zod.ZodEnum<{
5694
+ connected: "connected";
5695
+ not_connected: "not_connected";
5696
+ waiting: "waiting";
5697
+ not_used: "not_used";
5698
+ }>;
5699
+ empty: zod.ZodOptional<zod.ZodBoolean>;
5700
+ entries: zod.ZodArray<zod.ZodObject<{
5701
+ kind: zod.ZodEnum<{
5702
+ error: "error";
5703
+ rejection: "rejection";
5704
+ console: "console";
5705
+ policy: "policy";
5706
+ call: "call";
5707
+ }>;
5708
+ message: zod.ZodString;
5709
+ code: zod.ZodOptional<zod.ZodString>;
5710
+ file: zod.ZodOptional<zod.ZodString>;
5711
+ line: zod.ZodOptional<zod.ZodNumber>;
5712
+ column: zod.ZodOptional<zod.ZodNumber>;
5713
+ count: zod.ZodNumber;
5714
+ }, zod_v4_core.$strict>>;
5715
+ more: zod.ZodNumber;
5716
+ }, zod_v4_core.$strict>;
5717
+ fileSetId: zod.ZodString;
5718
+ token: zod.ZodString;
5719
+ }, zod_v4_core.$strict>;
5720
+ readonly response: {
5721
+ readonly kind: "json";
5722
+ readonly schema: zod.ZodObject<{
5723
+ stored: zod.ZodBoolean;
5724
+ }, zod_v4_core.$strict>;
5725
+ };
5726
+ readonly errors: readonly ["NOT_FOUND", "VALIDATION_FAILED"];
5727
+ readonly rateClass: "write";
5728
+ }>;
5729
+ readonly "apps.preview_captures.pending": Operation<{
5730
+ readonly id: "apps.preview_captures.pending";
5731
+ readonly method: "GET";
5732
+ readonly path: "/api/v1/conversations/:conversationId/preview-captures";
5733
+ readonly summary: "List the caller's capture requests of a conversation that wait for their browser";
5734
+ readonly tag: "Apps";
5735
+ readonly auth: "user";
5736
+ readonly scope: "conversation:read";
5737
+ readonly requires: readonly [];
5738
+ readonly effect: "reading";
5739
+ readonly response: {
5740
+ readonly kind: "json";
5741
+ readonly schema: zod.ZodObject<{
5742
+ captures: zod.ZodArray<zod.ZodObject<{
5743
+ id: zod.ZodString;
5744
+ fileSetId: zod.ZodString;
5745
+ }, zod_v4_core.$strict>>;
5746
+ }, zod_v4_core.$strict>;
5747
+ };
5748
+ readonly errors: readonly ["NOT_FOUND"];
5749
+ readonly rateClass: "read";
5750
+ }>;
5751
+ readonly "apps.sessions.capture": Operation<{
5752
+ readonly id: "apps.sessions.capture";
5753
+ readonly method: "POST";
5754
+ readonly path: "/api/v1/app-content-sessions/:pageSessionId/captures/:captureId";
5755
+ readonly summary: "Answer a run's capture request with a picture of the preview a frame shows, or that none can be taken";
5756
+ readonly tag: "Apps";
5757
+ readonly auth: "user";
5758
+ readonly scope: "conversation:write";
5759
+ readonly requires: readonly [];
5760
+ readonly effect: "changing";
5761
+ readonly body: zod.ZodObject<{
5762
+ conversationId: zod.ZodOptional<zod.ZodString>;
5763
+ image: zod.ZodOptional<zod.ZodBase64>;
5764
+ unavailable: zod.ZodOptional<zod.ZodLiteral<true>>;
5765
+ fileSetId: zod.ZodString;
5766
+ token: zod.ZodString;
5767
+ }, zod_v4_core.$strict>;
5768
+ readonly response: {
5769
+ readonly kind: "json";
5770
+ readonly schema: zod.ZodObject<{
5771
+ accepted: zod.ZodBoolean;
5772
+ }, zod_v4_core.$strict>;
5773
+ };
5774
+ readonly errors: readonly ["NOT_FOUND", "VALIDATION_FAILED"];
5775
+ readonly rateClass: "write";
5776
+ }>;
5670
5777
  readonly "apps.sessions.write_storage": Operation<{
5671
5778
  readonly id: "apps.sessions.write_storage";
5672
5779
  readonly method: "POST";
@@ -7579,7 +7686,7 @@ declare const assetOperations: {
7579
7686
  publishedRevision: zod.ZodOptional<zod.ZodNumber>;
7580
7687
  liveVersion: zod.ZodOptional<zod.ZodObject<{
7581
7688
  number: zod.ZodNumber;
7582
- publishedAt: zod.ZodISODateTime;
7689
+ publishedAt: zod.ZodOptional<zod.ZodISODateTime>;
7583
7690
  by: zod.ZodOptional<zod.ZodString>;
7584
7691
  }, zod_v4_core.$strip>>;
7585
7692
  draftChangedSinceLive: zod.ZodOptional<zod.ZodBoolean>;
@@ -8758,9 +8865,11 @@ declare const assetOperations: {
8758
8865
  pageId: zod.ZodString;
8759
8866
  fileSetNumber: zod.ZodNumber;
8760
8867
  byAgent: zod.ZodOptional<zod.ZodLiteral<true>>;
8868
+ agentDisplayName: zod.ZodOptional<zod.ZodString>;
8761
8869
  }, zod_v4_core.$strip>, zod.ZodObject<{
8762
8870
  kind: zod.ZodLiteral<"agent_run">;
8763
8871
  conversationId: zod.ZodString;
8872
+ agentDisplayName: zod.ZodOptional<zod.ZodString>;
8764
8873
  }, zod_v4_core.$strip>], "kind">>;
8765
8874
  globalVersion: zod.ZodNumber;
8766
8875
  createdAt: zod.ZodISODateTime;
@@ -8823,7 +8932,7 @@ declare const assetOperations: {
8823
8932
  authSource: zod.ZodString;
8824
8933
  }, zod_v4_core.$strip>]>>;
8825
8934
  }, zod_v4_core.$strip>>;
8826
- publishedAt: zod.ZodISODateTime;
8935
+ publishedAt: zod.ZodOptional<zod.ZodISODateTime>;
8827
8936
  note: zod.ZodOptional<zod.ZodString>;
8828
8937
  }, zod_v4_core.$strip>>;
8829
8938
  nextCursor: zod.ZodOptional<zod.ZodString>;
@@ -20915,6 +21024,9 @@ declare const instanceOperations: {
20915
21024
  feedback: z.ZodOptional<z.ZodObject<{
20916
21025
  exchangeSnapshot: z.ZodBoolean;
20917
21026
  }, z.core.$strip>>;
21027
+ platformReport: z.ZodOptional<z.ZodObject<{
21028
+ available: z.ZodBoolean;
21029
+ }, z.core.$strip>>;
20918
21030
  knowledge: z.ZodOptional<z.ZodObject<{
20919
21031
  semanticSearch: z.ZodBoolean;
20920
21032
  }, z.core.$strip>>;
@@ -24382,6 +24494,31 @@ declare const pageOperations: {
24382
24494
  readonly effect: "reading";
24383
24495
  readonly rateClass: "read";
24384
24496
  }>;
24497
+ readonly "assets.preview": Operation<{
24498
+ readonly tag: "Assets";
24499
+ readonly id: "assets.preview";
24500
+ readonly method: "POST";
24501
+ readonly path: "/api/v1/assets/:kind/:name/preview";
24502
+ readonly summary: "Get the address a frame loads the preview of an asset's draft from";
24503
+ readonly body: zod.ZodObject<{}, zod_v4_core.$strict>;
24504
+ readonly response: {
24505
+ readonly kind: "json";
24506
+ readonly schema: zod.ZodObject<{
24507
+ number: zod.ZodNumber;
24508
+ url: zod.ZodString;
24509
+ pageSessionId: zod.ZodString;
24510
+ expiresAt: zod.ZodISODateTime;
24511
+ fileSetId: zod.ZodString;
24512
+ revision: zod.ZodNumber;
24513
+ }, zod_v4_core.$strip>;
24514
+ };
24515
+ readonly errors: readonly ["NOT_FOUND"];
24516
+ readonly auth: "user";
24517
+ readonly scope: "conversation:read";
24518
+ readonly requires: readonly [];
24519
+ readonly effect: "reading";
24520
+ readonly rateClass: "read";
24521
+ }>;
24385
24522
  };
24386
24523
 
24387
24524
  /**
@@ -25284,6 +25421,175 @@ declare const platformOperations: {
25284
25421
  }>;
25285
25422
  };
25286
25423
 
25424
+ /**
25425
+ * "Problem an Workshape melden" (PLATFORM-REPORT): a person who reads a conversation reports a
25426
+ * run of it that failed for a platform reason to the operator's support address. The mail
25427
+ * carries the run's id, the error code, the instance, the time and the person's note; nothing
25428
+ * of the conversation. One report per run and person, a few per person and hour. Only a
25429
+ * person in the interface sends one; an agent, a key or a Workflow is refused.
25430
+ */
25431
+ declare const platformReportOperations: {
25432
+ "platform_report.send": Operation<{
25433
+ readonly id: "platform_report.send";
25434
+ readonly method: "POST";
25435
+ readonly path: "/api/v1/conversations/:conversationId/runs/:runId/platform-report";
25436
+ readonly summary: "Report a run that failed for a platform reason to the operator's support address";
25437
+ readonly tag: "Conversations";
25438
+ readonly auth: "user";
25439
+ readonly scope: "conversation:read";
25440
+ readonly requires: readonly [];
25441
+ readonly effect: "changing";
25442
+ readonly body: zod.ZodObject<{
25443
+ note: zod.ZodOptional<zod.ZodString>;
25444
+ replyToMe: zod.ZodDefault<zod.ZodBoolean>;
25445
+ }, zod_v4_core.$strict>;
25446
+ readonly response: {
25447
+ readonly kind: "json";
25448
+ readonly schema: zod.ZodObject<{
25449
+ id: zod.ZodString;
25450
+ reportedAt: zod.ZodString;
25451
+ }, zod_v4_core.$strip>;
25452
+ };
25453
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "FORBIDDEN", "VALIDATION_FAILED"];
25454
+ readonly rateClass: "write";
25455
+ } & {
25456
+ readonly accepted: zod.ZodObject<{
25457
+ id: zod.ZodString;
25458
+ operation: zod.ZodString;
25459
+ effect: zod.ZodEnum<{
25460
+ reading: "reading";
25461
+ changing: "changing";
25462
+ }>;
25463
+ status: zod.ZodEnum<{
25464
+ failed: "failed";
25465
+ running: "running";
25466
+ pending_confirmation: "pending_confirmation";
25467
+ pending_approval: "pending_approval";
25468
+ done: "done";
25469
+ denied: "denied";
25470
+ expired: "expired";
25471
+ }>;
25472
+ actor: zod.ZodObject<{
25473
+ kind: zod.ZodEnum<{
25474
+ user: "user";
25475
+ service_principal: "service_principal";
25476
+ }>;
25477
+ id: zod.ZodString;
25478
+ label: zod.ZodString;
25479
+ }, zod_v4_core.$strip>;
25480
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
25481
+ kind: zod.ZodLiteral<"agent">;
25482
+ agentRunId: zod.ZodString;
25483
+ conversationId: zod.ZodString;
25484
+ agentName: zod.ZodString;
25485
+ toolCallId: zod.ZodString;
25486
+ toolName: zod.ZodString;
25487
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
25488
+ boundBy: zod.ZodOptional<zod.ZodObject<{
25489
+ id: zod.ZodString;
25490
+ label: zod.ZodString;
25491
+ }, zod_v4_core.$strip>>;
25492
+ draft: zod.ZodOptional<zod.ZodObject<{
25493
+ kind: zod.ZodLiteral<"agent_preview">;
25494
+ asset: zod.ZodObject<{
25495
+ kind: zod.ZodString;
25496
+ id: zod.ZodString;
25497
+ name: zod.ZodString;
25498
+ }, zod_v4_core.$strip>;
25499
+ revisionId: zod.ZodString;
25500
+ part: zod.ZodString;
25501
+ }, zod_v4_core.$strip>>;
25502
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25503
+ kind: zod.ZodLiteral<"user">;
25504
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25505
+ kind: zod.ZodLiteral<"cli">;
25506
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
25507
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25508
+ kind: zod.ZodLiteral<"mcp">;
25509
+ clientName: zod.ZodOptional<zod.ZodString>;
25510
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25511
+ kind: zod.ZodLiteral<"app">;
25512
+ appName: zod.ZodOptional<zod.ZodString>;
25513
+ appRevisionId: zod.ZodString;
25514
+ actionName: zod.ZodString;
25515
+ pageSessionId: zod.ZodString;
25516
+ conversationId: zod.ZodOptional<zod.ZodString>;
25517
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
25518
+ connection: zod.ZodString;
25519
+ operation: zod.ZodString;
25520
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25521
+ dataStore: zod.ZodString;
25522
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25523
+ workflow: zod.ZodString;
25524
+ }, zod_v4_core.$strip>]>>;
25525
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25526
+ kind: zod.ZodLiteral<"workflow">;
25527
+ workflowRunId: zod.ZodString;
25528
+ stepRunId: zod.ZodString;
25529
+ boundBy: zod.ZodOptional<zod.ZodObject<{
25530
+ id: zod.ZodString;
25531
+ label: zod.ZodString;
25532
+ }, zod_v4_core.$strip>>;
25533
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25534
+ kind: zod.ZodLiteral<"schedule">;
25535
+ scheduleId: zod.ZodString;
25536
+ }, zod_v4_core.$strip>], "kind">;
25537
+ target: zod.ZodEnum<{
25538
+ live: "live";
25539
+ test: "test";
25540
+ dry_run: "dry_run";
25541
+ }>;
25542
+ app: zod.ZodOptional<zod.ZodObject<{
25543
+ title: zod.ZodOptional<zod.ZodString>;
25544
+ revision: zod.ZodOptional<zod.ZodNumber>;
25545
+ deleted: zod.ZodBoolean;
25546
+ }, zod_v4_core.$strip>>;
25547
+ workspaceId: zod.ZodOptional<zod.ZodString>;
25548
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
25549
+ inputHash: zod.ZodString;
25550
+ attempt: zod.ZodNumber;
25551
+ decision: zod.ZodOptional<zod.ZodObject<{
25552
+ mode: zod.ZodEnum<{
25553
+ direct: "direct";
25554
+ confirmed: "confirmed";
25555
+ approved: "approved";
25556
+ declined: "declined";
25557
+ }>;
25558
+ reason: zod.ZodOptional<zod.ZodEnum<{
25559
+ inherited_approval_not_applied: "inherited_approval_not_applied";
25560
+ workflow_publish: "workflow_publish";
25561
+ approved_by_caller: "approved_by_caller";
25562
+ }>>;
25563
+ by: zod.ZodString;
25564
+ byLabel: zod.ZodOptional<zod.ZodString>;
25565
+ at: zod.ZodISODateTime;
25566
+ comment: zod.ZodOptional<zod.ZodString>;
25567
+ }, zod_v4_core.$strip>>;
25568
+ error: zod.ZodOptional<zod.ZodObject<{
25569
+ code: zod.ZodString;
25570
+ message: zod.ZodString;
25571
+ reason: zod.ZodOptional<zod.ZodString>;
25572
+ }, zod_v4_core.$strip>>;
25573
+ usage: zod.ZodOptional<zod.ZodObject<{
25574
+ modelCalls: zod.ZodNumber;
25575
+ inputTokens: zod.ZodNumber;
25576
+ outputTokens: zod.ZodNumber;
25577
+ totalTokens: zod.ZodNumber;
25578
+ }, zod_v4_core.$strip>>;
25579
+ correlationId: zod.ZodString;
25580
+ createdAt: zod.ZodISODateTime;
25581
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
25582
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
25583
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
25584
+ href: zod.ZodString;
25585
+ }, zod_v4_core.$strip>;
25586
+ readonly headers: {
25587
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
25588
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
25589
+ };
25590
+ }>;
25591
+ };
25592
+
25287
25593
  declare const referenceOperations: {
25288
25594
  readonly "openapi.get": Operation<{
25289
25595
  readonly id: "openapi.get";
@@ -29524,7 +29830,7 @@ declare const workflowPrincipalRightsOperations: {
29524
29830
  * The type of {@link apiOperations}, named by area: inferred, the declarations would spell out
29525
29831
  * every operation's type in one node, which is more than the compiler writes out.
29526
29832
  */
29527
- type ApiOperations = typeof scheduledStartOperations & typeof approvalRequestOperations & typeof accountOperations & typeof instanceOperations & typeof roleOperations & typeof collaborationWorkspaceOperations & typeof conversationOperations & typeof conversationFileOperations & typeof governanceOperations & typeof jobOperations & typeof operationRunOperations & typeof pageOperations & typeof appOperations & typeof configAssetOperations & typeof assetOperations & typeof agentOperations & typeof connectionOperations & typeof guardrailOperations & typeof workflowOperations & typeof workflowPrincipalRightsOperations & typeof dataStoreOperations & typeof knowledgeOperations & typeof userOperations & typeof apiAccessOperations & typeof personalApiKeyOperations & typeof feedbackOperations & typeof accessOperations & typeof credentialOperations & typeof platformOperations & typeof referenceOperations & typeof systemOperations;
29833
+ type ApiOperations = typeof scheduledStartOperations & typeof approvalRequestOperations & typeof accountOperations & typeof instanceOperations & typeof roleOperations & typeof collaborationWorkspaceOperations & typeof conversationOperations & typeof conversationFileOperations & typeof governanceOperations & typeof jobOperations & typeof operationRunOperations & typeof pageOperations & typeof appOperations & typeof configAssetOperations & typeof assetOperations & typeof agentOperations & typeof connectionOperations & typeof guardrailOperations & typeof workflowOperations & typeof workflowPrincipalRightsOperations & typeof dataStoreOperations & typeof knowledgeOperations & typeof userOperations & typeof apiAccessOperations & typeof personalApiKeyOperations & typeof feedbackOperations & typeof platformReportOperations & typeof accessOperations & typeof credentialOperations & typeof platformOperations & typeof referenceOperations & typeof systemOperations;
29528
29834
  /** Every product operation of the HTTP API, one file per area. */
29529
29835
  declare const apiOperations: ApiOperations;
29530
29836
 
@@ -29801,7 +30107,7 @@ declare const assetSchema: z.ZodObject<{
29801
30107
  publishedRevision: z.ZodOptional<z.ZodNumber>;
29802
30108
  liveVersion: z.ZodOptional<z.ZodObject<{
29803
30109
  number: z.ZodNumber;
29804
- publishedAt: z.ZodISODateTime;
30110
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
29805
30111
  by: z.ZodOptional<z.ZodString>;
29806
30112
  }, z.core.$strip>>;
29807
30113
  draftChangedSinceLive: z.ZodOptional<z.ZodBoolean>;
@@ -30019,9 +30325,11 @@ declare function createConfigApi(options: ConfigApiOptions): Promise<{
30019
30325
  pageId: string;
30020
30326
  fileSetNumber: number;
30021
30327
  byAgent?: true | undefined;
30328
+ agentDisplayName?: string | undefined;
30022
30329
  } | {
30023
30330
  kind: "agent_run";
30024
30331
  conversationId: string;
30332
+ agentDisplayName?: string | undefined;
30025
30333
  } | undefined;
30026
30334
  } | undefined>;
30027
30335
  /** Asks whether a sync of the batch would be applied. A refusal throws as the sync's. */