@myagentroam/protocol 0.11.50 → 0.11.52
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.ts +472 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2307,6 +2307,7 @@ export declare const runtimeCredentialResolveResponseSchema: z.ZodUnion<[z.ZodOb
|
|
|
2307
2307
|
}>]>;
|
|
2308
2308
|
export type RuntimeCredentialResolveResponse = z.infer<typeof runtimeCredentialResolveResponseSchema>;
|
|
2309
2309
|
export declare const scheduledRunAuthorizeRequestSchema: z.ZodObject<{
|
|
2310
|
+
executionResources: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2310
2311
|
taskId: z.ZodString;
|
|
2311
2312
|
revision: z.ZodNumber;
|
|
2312
2313
|
occurrenceId: z.ZodString;
|
|
@@ -2324,6 +2325,7 @@ export declare const scheduledRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2324
2325
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2325
2326
|
taskId: string;
|
|
2326
2327
|
occurrenceId: string;
|
|
2328
|
+
executionResources?: 1 | undefined;
|
|
2327
2329
|
}, {
|
|
2328
2330
|
sessionId: string;
|
|
2329
2331
|
workspaceId: string;
|
|
@@ -2333,8 +2335,298 @@ export declare const scheduledRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2333
2335
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2334
2336
|
taskId: string;
|
|
2335
2337
|
occurrenceId: string;
|
|
2338
|
+
executionResources?: 1 | undefined;
|
|
2336
2339
|
}>;
|
|
2337
2340
|
export type ScheduledRunAuthorizeRequest = z.infer<typeof scheduledRunAuthorizeRequestSchema>;
|
|
2341
|
+
export declare const executionPrepareRequestSchema: z.ZodObject<{
|
|
2342
|
+
userId: z.ZodNumber;
|
|
2343
|
+
sessionId: z.ZodString;
|
|
2344
|
+
workspaceId: z.ZodString;
|
|
2345
|
+
runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
|
|
2346
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
2347
|
+
}, "strict", z.ZodTypeAny, {
|
|
2348
|
+
sessionId: string;
|
|
2349
|
+
workspaceId: string;
|
|
2350
|
+
modelId: string | null;
|
|
2351
|
+
userId: number;
|
|
2352
|
+
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2353
|
+
}, {
|
|
2354
|
+
sessionId: string;
|
|
2355
|
+
workspaceId: string;
|
|
2356
|
+
modelId: string | null;
|
|
2357
|
+
userId: number;
|
|
2358
|
+
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2359
|
+
}>;
|
|
2360
|
+
export type ExecutionPrepareRequest = z.infer<typeof executionPrepareRequestSchema>;
|
|
2361
|
+
export declare const executionPrepareResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
2362
|
+
context: z.ZodObject<{
|
|
2363
|
+
usageGrant: z.ZodOptional<z.ZodObject<{
|
|
2364
|
+
scopeId: z.ZodString;
|
|
2365
|
+
token: z.ZodString;
|
|
2366
|
+
}, "strict", z.ZodTypeAny, {
|
|
2367
|
+
scopeId: string;
|
|
2368
|
+
token: string;
|
|
2369
|
+
}, {
|
|
2370
|
+
scopeId: string;
|
|
2371
|
+
token: string;
|
|
2372
|
+
}>>;
|
|
2373
|
+
secretEnvironment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2374
|
+
personalInstructions: z.ZodOptional<z.ZodUnknown>;
|
|
2375
|
+
gitConfiguration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2376
|
+
credentials: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2377
|
+
id: z.ZodString;
|
|
2378
|
+
secret: z.ZodEffects<z.ZodString, string, string>;
|
|
2379
|
+
passphrase: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2380
|
+
name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2381
|
+
protocol: z.ZodEnum<["HTTPS", "SSH"]>;
|
|
2382
|
+
host: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
2383
|
+
port: z.ZodNumber;
|
|
2384
|
+
pathPrefix: z.ZodEffects<z.ZodString, string, string>;
|
|
2385
|
+
username: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2386
|
+
commitName: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2387
|
+
commitEmail: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2388
|
+
}, "strict", z.ZodTypeAny, {
|
|
2389
|
+
name: string;
|
|
2390
|
+
id: string;
|
|
2391
|
+
secret: string;
|
|
2392
|
+
protocol: "HTTPS" | "SSH";
|
|
2393
|
+
host: string;
|
|
2394
|
+
port: number;
|
|
2395
|
+
pathPrefix: string;
|
|
2396
|
+
username: string;
|
|
2397
|
+
commitName: string;
|
|
2398
|
+
commitEmail: string;
|
|
2399
|
+
passphrase?: string | undefined;
|
|
2400
|
+
}, {
|
|
2401
|
+
name: string;
|
|
2402
|
+
id: string;
|
|
2403
|
+
secret: string;
|
|
2404
|
+
protocol: "HTTPS" | "SSH";
|
|
2405
|
+
host: string;
|
|
2406
|
+
port: number;
|
|
2407
|
+
pathPrefix: string;
|
|
2408
|
+
username: string;
|
|
2409
|
+
commitName: string;
|
|
2410
|
+
commitEmail: string;
|
|
2411
|
+
passphrase?: string | undefined;
|
|
2412
|
+
}>, {
|
|
2413
|
+
name: string;
|
|
2414
|
+
id: string;
|
|
2415
|
+
secret: string;
|
|
2416
|
+
protocol: "HTTPS" | "SSH";
|
|
2417
|
+
host: string;
|
|
2418
|
+
port: number;
|
|
2419
|
+
pathPrefix: string;
|
|
2420
|
+
username: string;
|
|
2421
|
+
commitName: string;
|
|
2422
|
+
commitEmail: string;
|
|
2423
|
+
passphrase?: string | undefined;
|
|
2424
|
+
}, {
|
|
2425
|
+
name: string;
|
|
2426
|
+
id: string;
|
|
2427
|
+
secret: string;
|
|
2428
|
+
protocol: "HTTPS" | "SSH";
|
|
2429
|
+
host: string;
|
|
2430
|
+
port: number;
|
|
2431
|
+
pathPrefix: string;
|
|
2432
|
+
username: string;
|
|
2433
|
+
commitName: string;
|
|
2434
|
+
commitEmail: string;
|
|
2435
|
+
passphrase?: string | undefined;
|
|
2436
|
+
}>, "many">;
|
|
2437
|
+
}, "strict", z.ZodTypeAny, {
|
|
2438
|
+
credentials: {
|
|
2439
|
+
name: string;
|
|
2440
|
+
id: string;
|
|
2441
|
+
secret: string;
|
|
2442
|
+
protocol: "HTTPS" | "SSH";
|
|
2443
|
+
host: string;
|
|
2444
|
+
port: number;
|
|
2445
|
+
pathPrefix: string;
|
|
2446
|
+
username: string;
|
|
2447
|
+
commitName: string;
|
|
2448
|
+
commitEmail: string;
|
|
2449
|
+
passphrase?: string | undefined;
|
|
2450
|
+
}[];
|
|
2451
|
+
}, {
|
|
2452
|
+
credentials: {
|
|
2453
|
+
name: string;
|
|
2454
|
+
id: string;
|
|
2455
|
+
secret: string;
|
|
2456
|
+
protocol: "HTTPS" | "SSH";
|
|
2457
|
+
host: string;
|
|
2458
|
+
port: number;
|
|
2459
|
+
pathPrefix: string;
|
|
2460
|
+
username: string;
|
|
2461
|
+
commitName: string;
|
|
2462
|
+
commitEmail: string;
|
|
2463
|
+
passphrase?: string | undefined;
|
|
2464
|
+
}[];
|
|
2465
|
+
}>, {
|
|
2466
|
+
credentials: {
|
|
2467
|
+
name: string;
|
|
2468
|
+
id: string;
|
|
2469
|
+
secret: string;
|
|
2470
|
+
protocol: "HTTPS" | "SSH";
|
|
2471
|
+
host: string;
|
|
2472
|
+
port: number;
|
|
2473
|
+
pathPrefix: string;
|
|
2474
|
+
username: string;
|
|
2475
|
+
commitName: string;
|
|
2476
|
+
commitEmail: string;
|
|
2477
|
+
passphrase?: string | undefined;
|
|
2478
|
+
}[];
|
|
2479
|
+
}, {
|
|
2480
|
+
credentials: {
|
|
2481
|
+
name: string;
|
|
2482
|
+
id: string;
|
|
2483
|
+
secret: string;
|
|
2484
|
+
protocol: "HTTPS" | "SSH";
|
|
2485
|
+
host: string;
|
|
2486
|
+
port: number;
|
|
2487
|
+
pathPrefix: string;
|
|
2488
|
+
username: string;
|
|
2489
|
+
commitName: string;
|
|
2490
|
+
commitEmail: string;
|
|
2491
|
+
passphrase?: string | undefined;
|
|
2492
|
+
}[];
|
|
2493
|
+
}>>;
|
|
2494
|
+
marAgentModel: z.ZodOptional<z.ZodUnknown>;
|
|
2495
|
+
marAgentModels: z.ZodOptional<z.ZodUnknown>;
|
|
2496
|
+
marAgentCompact: z.ZodOptional<z.ZodUnknown>;
|
|
2497
|
+
marAgentRuntimeScopeId: z.ZodOptional<z.ZodUnknown>;
|
|
2498
|
+
}, "strict", z.ZodTypeAny, {
|
|
2499
|
+
secretEnvironment: Record<string, string>;
|
|
2500
|
+
usageGrant?: {
|
|
2501
|
+
scopeId: string;
|
|
2502
|
+
token: string;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
personalInstructions?: unknown;
|
|
2505
|
+
gitConfiguration?: {
|
|
2506
|
+
credentials: {
|
|
2507
|
+
name: string;
|
|
2508
|
+
id: string;
|
|
2509
|
+
secret: string;
|
|
2510
|
+
protocol: "HTTPS" | "SSH";
|
|
2511
|
+
host: string;
|
|
2512
|
+
port: number;
|
|
2513
|
+
pathPrefix: string;
|
|
2514
|
+
username: string;
|
|
2515
|
+
commitName: string;
|
|
2516
|
+
commitEmail: string;
|
|
2517
|
+
passphrase?: string | undefined;
|
|
2518
|
+
}[];
|
|
2519
|
+
} | undefined;
|
|
2520
|
+
marAgentModel?: unknown;
|
|
2521
|
+
marAgentModels?: unknown;
|
|
2522
|
+
marAgentCompact?: unknown;
|
|
2523
|
+
marAgentRuntimeScopeId?: unknown;
|
|
2524
|
+
}, {
|
|
2525
|
+
secretEnvironment: Record<string, string>;
|
|
2526
|
+
usageGrant?: {
|
|
2527
|
+
scopeId: string;
|
|
2528
|
+
token: string;
|
|
2529
|
+
} | undefined;
|
|
2530
|
+
personalInstructions?: unknown;
|
|
2531
|
+
gitConfiguration?: {
|
|
2532
|
+
credentials: {
|
|
2533
|
+
name: string;
|
|
2534
|
+
id: string;
|
|
2535
|
+
secret: string;
|
|
2536
|
+
protocol: "HTTPS" | "SSH";
|
|
2537
|
+
host: string;
|
|
2538
|
+
port: number;
|
|
2539
|
+
pathPrefix: string;
|
|
2540
|
+
username: string;
|
|
2541
|
+
commitName: string;
|
|
2542
|
+
commitEmail: string;
|
|
2543
|
+
passphrase?: string | undefined;
|
|
2544
|
+
}[];
|
|
2545
|
+
} | undefined;
|
|
2546
|
+
marAgentModel?: unknown;
|
|
2547
|
+
marAgentModels?: unknown;
|
|
2548
|
+
marAgentCompact?: unknown;
|
|
2549
|
+
marAgentRuntimeScopeId?: unknown;
|
|
2550
|
+
}>;
|
|
2551
|
+
}, "strict", z.ZodTypeAny, {
|
|
2552
|
+
context: {
|
|
2553
|
+
secretEnvironment: Record<string, string>;
|
|
2554
|
+
usageGrant?: {
|
|
2555
|
+
scopeId: string;
|
|
2556
|
+
token: string;
|
|
2557
|
+
} | undefined;
|
|
2558
|
+
personalInstructions?: unknown;
|
|
2559
|
+
gitConfiguration?: {
|
|
2560
|
+
credentials: {
|
|
2561
|
+
name: string;
|
|
2562
|
+
id: string;
|
|
2563
|
+
secret: string;
|
|
2564
|
+
protocol: "HTTPS" | "SSH";
|
|
2565
|
+
host: string;
|
|
2566
|
+
port: number;
|
|
2567
|
+
pathPrefix: string;
|
|
2568
|
+
username: string;
|
|
2569
|
+
commitName: string;
|
|
2570
|
+
commitEmail: string;
|
|
2571
|
+
passphrase?: string | undefined;
|
|
2572
|
+
}[];
|
|
2573
|
+
} | undefined;
|
|
2574
|
+
marAgentModel?: unknown;
|
|
2575
|
+
marAgentModels?: unknown;
|
|
2576
|
+
marAgentCompact?: unknown;
|
|
2577
|
+
marAgentRuntimeScopeId?: unknown;
|
|
2578
|
+
};
|
|
2579
|
+
}, {
|
|
2580
|
+
context: {
|
|
2581
|
+
secretEnvironment: Record<string, string>;
|
|
2582
|
+
usageGrant?: {
|
|
2583
|
+
scopeId: string;
|
|
2584
|
+
token: string;
|
|
2585
|
+
} | undefined;
|
|
2586
|
+
personalInstructions?: unknown;
|
|
2587
|
+
gitConfiguration?: {
|
|
2588
|
+
credentials: {
|
|
2589
|
+
name: string;
|
|
2590
|
+
id: string;
|
|
2591
|
+
secret: string;
|
|
2592
|
+
protocol: "HTTPS" | "SSH";
|
|
2593
|
+
host: string;
|
|
2594
|
+
port: number;
|
|
2595
|
+
pathPrefix: string;
|
|
2596
|
+
username: string;
|
|
2597
|
+
commitName: string;
|
|
2598
|
+
commitEmail: string;
|
|
2599
|
+
passphrase?: string | undefined;
|
|
2600
|
+
}[];
|
|
2601
|
+
} | undefined;
|
|
2602
|
+
marAgentModel?: unknown;
|
|
2603
|
+
marAgentModels?: unknown;
|
|
2604
|
+
marAgentCompact?: unknown;
|
|
2605
|
+
marAgentRuntimeScopeId?: unknown;
|
|
2606
|
+
};
|
|
2607
|
+
}>, z.ZodObject<{
|
|
2608
|
+
error: z.ZodObject<{
|
|
2609
|
+
code: z.ZodString;
|
|
2610
|
+
message: z.ZodString;
|
|
2611
|
+
}, "strict", z.ZodTypeAny, {
|
|
2612
|
+
code: string;
|
|
2613
|
+
message: string;
|
|
2614
|
+
}, {
|
|
2615
|
+
code: string;
|
|
2616
|
+
message: string;
|
|
2617
|
+
}>;
|
|
2618
|
+
}, "strict", z.ZodTypeAny, {
|
|
2619
|
+
error: {
|
|
2620
|
+
code: string;
|
|
2621
|
+
message: string;
|
|
2622
|
+
};
|
|
2623
|
+
}, {
|
|
2624
|
+
error: {
|
|
2625
|
+
code: string;
|
|
2626
|
+
message: string;
|
|
2627
|
+
};
|
|
2628
|
+
}>]>;
|
|
2629
|
+
export type ExecutionPrepareResponse = z.infer<typeof executionPrepareResponseSchema>;
|
|
2338
2630
|
export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
2339
2631
|
context: z.ZodObject<{
|
|
2340
2632
|
usageGrant: z.ZodOptional<z.ZodObject<{
|
|
@@ -2349,6 +2641,125 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2349
2641
|
}>>;
|
|
2350
2642
|
secretEnvironment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2351
2643
|
personalInstructions: z.ZodOptional<z.ZodUnknown>;
|
|
2644
|
+
gitConfiguration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2645
|
+
credentials: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2646
|
+
id: z.ZodString;
|
|
2647
|
+
secret: z.ZodEffects<z.ZodString, string, string>;
|
|
2648
|
+
passphrase: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2649
|
+
name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2650
|
+
protocol: z.ZodEnum<["HTTPS", "SSH"]>;
|
|
2651
|
+
host: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
2652
|
+
port: z.ZodNumber;
|
|
2653
|
+
pathPrefix: z.ZodEffects<z.ZodString, string, string>;
|
|
2654
|
+
username: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2655
|
+
commitName: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2656
|
+
commitEmail: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2657
|
+
}, "strict", z.ZodTypeAny, {
|
|
2658
|
+
name: string;
|
|
2659
|
+
id: string;
|
|
2660
|
+
secret: string;
|
|
2661
|
+
protocol: "HTTPS" | "SSH";
|
|
2662
|
+
host: string;
|
|
2663
|
+
port: number;
|
|
2664
|
+
pathPrefix: string;
|
|
2665
|
+
username: string;
|
|
2666
|
+
commitName: string;
|
|
2667
|
+
commitEmail: string;
|
|
2668
|
+
passphrase?: string | undefined;
|
|
2669
|
+
}, {
|
|
2670
|
+
name: string;
|
|
2671
|
+
id: string;
|
|
2672
|
+
secret: string;
|
|
2673
|
+
protocol: "HTTPS" | "SSH";
|
|
2674
|
+
host: string;
|
|
2675
|
+
port: number;
|
|
2676
|
+
pathPrefix: string;
|
|
2677
|
+
username: string;
|
|
2678
|
+
commitName: string;
|
|
2679
|
+
commitEmail: string;
|
|
2680
|
+
passphrase?: string | undefined;
|
|
2681
|
+
}>, {
|
|
2682
|
+
name: string;
|
|
2683
|
+
id: string;
|
|
2684
|
+
secret: string;
|
|
2685
|
+
protocol: "HTTPS" | "SSH";
|
|
2686
|
+
host: string;
|
|
2687
|
+
port: number;
|
|
2688
|
+
pathPrefix: string;
|
|
2689
|
+
username: string;
|
|
2690
|
+
commitName: string;
|
|
2691
|
+
commitEmail: string;
|
|
2692
|
+
passphrase?: string | undefined;
|
|
2693
|
+
}, {
|
|
2694
|
+
name: string;
|
|
2695
|
+
id: string;
|
|
2696
|
+
secret: string;
|
|
2697
|
+
protocol: "HTTPS" | "SSH";
|
|
2698
|
+
host: string;
|
|
2699
|
+
port: number;
|
|
2700
|
+
pathPrefix: string;
|
|
2701
|
+
username: string;
|
|
2702
|
+
commitName: string;
|
|
2703
|
+
commitEmail: string;
|
|
2704
|
+
passphrase?: string | undefined;
|
|
2705
|
+
}>, "many">;
|
|
2706
|
+
}, "strict", z.ZodTypeAny, {
|
|
2707
|
+
credentials: {
|
|
2708
|
+
name: string;
|
|
2709
|
+
id: string;
|
|
2710
|
+
secret: string;
|
|
2711
|
+
protocol: "HTTPS" | "SSH";
|
|
2712
|
+
host: string;
|
|
2713
|
+
port: number;
|
|
2714
|
+
pathPrefix: string;
|
|
2715
|
+
username: string;
|
|
2716
|
+
commitName: string;
|
|
2717
|
+
commitEmail: string;
|
|
2718
|
+
passphrase?: string | undefined;
|
|
2719
|
+
}[];
|
|
2720
|
+
}, {
|
|
2721
|
+
credentials: {
|
|
2722
|
+
name: string;
|
|
2723
|
+
id: string;
|
|
2724
|
+
secret: string;
|
|
2725
|
+
protocol: "HTTPS" | "SSH";
|
|
2726
|
+
host: string;
|
|
2727
|
+
port: number;
|
|
2728
|
+
pathPrefix: string;
|
|
2729
|
+
username: string;
|
|
2730
|
+
commitName: string;
|
|
2731
|
+
commitEmail: string;
|
|
2732
|
+
passphrase?: string | undefined;
|
|
2733
|
+
}[];
|
|
2734
|
+
}>, {
|
|
2735
|
+
credentials: {
|
|
2736
|
+
name: string;
|
|
2737
|
+
id: string;
|
|
2738
|
+
secret: string;
|
|
2739
|
+
protocol: "HTTPS" | "SSH";
|
|
2740
|
+
host: string;
|
|
2741
|
+
port: number;
|
|
2742
|
+
pathPrefix: string;
|
|
2743
|
+
username: string;
|
|
2744
|
+
commitName: string;
|
|
2745
|
+
commitEmail: string;
|
|
2746
|
+
passphrase?: string | undefined;
|
|
2747
|
+
}[];
|
|
2748
|
+
}, {
|
|
2749
|
+
credentials: {
|
|
2750
|
+
name: string;
|
|
2751
|
+
id: string;
|
|
2752
|
+
secret: string;
|
|
2753
|
+
protocol: "HTTPS" | "SSH";
|
|
2754
|
+
host: string;
|
|
2755
|
+
port: number;
|
|
2756
|
+
pathPrefix: string;
|
|
2757
|
+
username: string;
|
|
2758
|
+
commitName: string;
|
|
2759
|
+
commitEmail: string;
|
|
2760
|
+
passphrase?: string | undefined;
|
|
2761
|
+
}[];
|
|
2762
|
+
}>>;
|
|
2352
2763
|
marAgentModel: z.ZodOptional<z.ZodUnknown>;
|
|
2353
2764
|
marAgentModels: z.ZodOptional<z.ZodUnknown>;
|
|
2354
2765
|
marAgentCompact: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -2360,6 +2771,21 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2360
2771
|
token: string;
|
|
2361
2772
|
} | undefined;
|
|
2362
2773
|
personalInstructions?: unknown;
|
|
2774
|
+
gitConfiguration?: {
|
|
2775
|
+
credentials: {
|
|
2776
|
+
name: string;
|
|
2777
|
+
id: string;
|
|
2778
|
+
secret: string;
|
|
2779
|
+
protocol: "HTTPS" | "SSH";
|
|
2780
|
+
host: string;
|
|
2781
|
+
port: number;
|
|
2782
|
+
pathPrefix: string;
|
|
2783
|
+
username: string;
|
|
2784
|
+
commitName: string;
|
|
2785
|
+
commitEmail: string;
|
|
2786
|
+
passphrase?: string | undefined;
|
|
2787
|
+
}[];
|
|
2788
|
+
} | undefined;
|
|
2363
2789
|
marAgentModel?: unknown;
|
|
2364
2790
|
marAgentModels?: unknown;
|
|
2365
2791
|
marAgentCompact?: unknown;
|
|
@@ -2371,6 +2797,21 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2371
2797
|
token: string;
|
|
2372
2798
|
} | undefined;
|
|
2373
2799
|
personalInstructions?: unknown;
|
|
2800
|
+
gitConfiguration?: {
|
|
2801
|
+
credentials: {
|
|
2802
|
+
name: string;
|
|
2803
|
+
id: string;
|
|
2804
|
+
secret: string;
|
|
2805
|
+
protocol: "HTTPS" | "SSH";
|
|
2806
|
+
host: string;
|
|
2807
|
+
port: number;
|
|
2808
|
+
pathPrefix: string;
|
|
2809
|
+
username: string;
|
|
2810
|
+
commitName: string;
|
|
2811
|
+
commitEmail: string;
|
|
2812
|
+
passphrase?: string | undefined;
|
|
2813
|
+
}[];
|
|
2814
|
+
} | undefined;
|
|
2374
2815
|
marAgentModel?: unknown;
|
|
2375
2816
|
marAgentModels?: unknown;
|
|
2376
2817
|
marAgentCompact?: unknown;
|
|
@@ -2384,6 +2825,21 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2384
2825
|
token: string;
|
|
2385
2826
|
} | undefined;
|
|
2386
2827
|
personalInstructions?: unknown;
|
|
2828
|
+
gitConfiguration?: {
|
|
2829
|
+
credentials: {
|
|
2830
|
+
name: string;
|
|
2831
|
+
id: string;
|
|
2832
|
+
secret: string;
|
|
2833
|
+
protocol: "HTTPS" | "SSH";
|
|
2834
|
+
host: string;
|
|
2835
|
+
port: number;
|
|
2836
|
+
pathPrefix: string;
|
|
2837
|
+
username: string;
|
|
2838
|
+
commitName: string;
|
|
2839
|
+
commitEmail: string;
|
|
2840
|
+
passphrase?: string | undefined;
|
|
2841
|
+
}[];
|
|
2842
|
+
} | undefined;
|
|
2387
2843
|
marAgentModel?: unknown;
|
|
2388
2844
|
marAgentModels?: unknown;
|
|
2389
2845
|
marAgentCompact?: unknown;
|
|
@@ -2397,6 +2853,21 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2397
2853
|
token: string;
|
|
2398
2854
|
} | undefined;
|
|
2399
2855
|
personalInstructions?: unknown;
|
|
2856
|
+
gitConfiguration?: {
|
|
2857
|
+
credentials: {
|
|
2858
|
+
name: string;
|
|
2859
|
+
id: string;
|
|
2860
|
+
secret: string;
|
|
2861
|
+
protocol: "HTTPS" | "SSH";
|
|
2862
|
+
host: string;
|
|
2863
|
+
port: number;
|
|
2864
|
+
pathPrefix: string;
|
|
2865
|
+
username: string;
|
|
2866
|
+
commitName: string;
|
|
2867
|
+
commitEmail: string;
|
|
2868
|
+
passphrase?: string | undefined;
|
|
2869
|
+
}[];
|
|
2870
|
+
} | undefined;
|
|
2400
2871
|
marAgentModel?: unknown;
|
|
2401
2872
|
marAgentModels?: unknown;
|
|
2402
2873
|
marAgentCompact?: unknown;
|
|
@@ -2424,7 +2895,7 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2424
2895
|
message: string;
|
|
2425
2896
|
};
|
|
2426
2897
|
}>]>;
|
|
2427
|
-
export type ScheduledRunAuthorizeResponse =
|
|
2898
|
+
export type ScheduledRunAuthorizeResponse = ExecutionPrepareResponse;
|
|
2428
2899
|
export declare const marAgentModelCredentialSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2429
2900
|
type: z.ZodLiteral<"INLINE_API_KEY">;
|
|
2430
2901
|
value: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { modelUsageGrantSchema } from './model-usage.js';
|
|
2
|
+
import { personalGitRuntimeSchema } from './git-identity.js';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
import { fileChangeDiffSchema } from './tool-result-resource.js';
|
|
4
5
|
export * from './tool-result-resource.js';
|
|
@@ -610,6 +611,7 @@ export const runtimeCredentialResolveResponseSchema = z.union([
|
|
|
610
611
|
]);
|
|
611
612
|
export const scheduledRunAuthorizeRequestSchema = z
|
|
612
613
|
.object({
|
|
614
|
+
executionResources: z.literal(1).optional(),
|
|
613
615
|
taskId: boundedIdentifierSchema,
|
|
614
616
|
revision: positiveSafeIntegerSchema,
|
|
615
617
|
occurrenceId: z.string().min(1).max(256),
|
|
@@ -620,7 +622,16 @@ export const scheduledRunAuthorizeRequestSchema = z
|
|
|
620
622
|
modelId: z.string().max(256).nullable()
|
|
621
623
|
})
|
|
622
624
|
.strict();
|
|
623
|
-
export const
|
|
625
|
+
export const executionPrepareRequestSchema = z
|
|
626
|
+
.object({
|
|
627
|
+
userId: positiveSafeIntegerSchema,
|
|
628
|
+
sessionId: boundedIdentifierSchema,
|
|
629
|
+
workspaceId: boundedIdentifierSchema,
|
|
630
|
+
runner: runnerNameSchema,
|
|
631
|
+
modelId: z.string().max(256).nullable()
|
|
632
|
+
})
|
|
633
|
+
.strict();
|
|
634
|
+
export const executionPrepareResponseSchema = z.union([
|
|
624
635
|
z
|
|
625
636
|
.object({
|
|
626
637
|
context: z
|
|
@@ -628,6 +639,7 @@ export const scheduledRunAuthorizeResponseSchema = z.union([
|
|
|
628
639
|
usageGrant: modelUsageGrantSchema.optional(),
|
|
629
640
|
secretEnvironment: z.record(z.string().min(1).max(256), z.string().max(65_536)),
|
|
630
641
|
personalInstructions: z.unknown().optional(),
|
|
642
|
+
gitConfiguration: personalGitRuntimeSchema.optional(),
|
|
631
643
|
marAgentModel: z.unknown().optional(),
|
|
632
644
|
marAgentModels: z.unknown().optional(),
|
|
633
645
|
marAgentCompact: z.unknown().optional(),
|
|
@@ -647,6 +659,7 @@ export const scheduledRunAuthorizeResponseSchema = z.union([
|
|
|
647
659
|
})
|
|
648
660
|
.strict()
|
|
649
661
|
]);
|
|
662
|
+
export const scheduledRunAuthorizeResponseSchema = executionPrepareResponseSchema;
|
|
650
663
|
const marAgentInlineApiKeyCredentialSchema = z
|
|
651
664
|
.object({
|
|
652
665
|
type: z.literal('INLINE_API_KEY'),
|