@openacp/cli 2026.402.1 → 2026.402.3
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/cli.js +1715 -770
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +26 -22
- package/dist/index.js +737 -144
- package/dist/index.js.map +1 -1
- package/package.json +1 -4
package/dist/index.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ declare const TunnelSchema: z.ZodDefault<z.ZodObject<{
|
|
|
46
46
|
token?: string | undefined;
|
|
47
47
|
}>>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
enabled: boolean;
|
|
50
49
|
options: Record<string, unknown>;
|
|
50
|
+
enabled: boolean;
|
|
51
51
|
port: number;
|
|
52
52
|
provider: "cloudflare" | "ngrok" | "bore" | "tailscale";
|
|
53
53
|
maxUserTunnels: number;
|
|
@@ -57,8 +57,8 @@ declare const TunnelSchema: z.ZodDefault<z.ZodObject<{
|
|
|
57
57
|
token?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
}, {
|
|
60
|
-
enabled?: boolean | undefined;
|
|
61
60
|
options?: Record<string, unknown> | undefined;
|
|
61
|
+
enabled?: boolean | undefined;
|
|
62
62
|
port?: number | undefined;
|
|
63
63
|
provider?: "cloudflare" | "ngrok" | "bore" | "tailscale" | undefined;
|
|
64
64
|
maxUserTunnels?: number | undefined;
|
|
@@ -230,8 +230,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
230
230
|
token?: string | undefined;
|
|
231
231
|
}>>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
enabled: boolean;
|
|
234
233
|
options: Record<string, unknown>;
|
|
234
|
+
enabled: boolean;
|
|
235
235
|
port: number;
|
|
236
236
|
provider: "cloudflare" | "ngrok" | "bore" | "tailscale";
|
|
237
237
|
maxUserTunnels: number;
|
|
@@ -241,8 +241,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
241
241
|
token?: string | undefined;
|
|
242
242
|
};
|
|
243
243
|
}, {
|
|
244
|
-
enabled?: boolean | undefined;
|
|
245
244
|
options?: Record<string, unknown> | undefined;
|
|
245
|
+
enabled?: boolean | undefined;
|
|
246
246
|
port?: number | undefined;
|
|
247
247
|
provider?: "cloudflare" | "ngrok" | "bore" | "tailscale" | undefined;
|
|
248
248
|
maxUserTunnels?: number | undefined;
|
|
@@ -383,8 +383,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
383
383
|
workingDirectory?: string | undefined;
|
|
384
384
|
}>;
|
|
385
385
|
tunnel: {
|
|
386
|
-
enabled: boolean;
|
|
387
386
|
options: Record<string, unknown>;
|
|
387
|
+
enabled: boolean;
|
|
388
388
|
port: number;
|
|
389
389
|
provider: "cloudflare" | "ngrok" | "bore" | "tailscale";
|
|
390
390
|
maxUserTunnels: number;
|
|
@@ -394,13 +394,6 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
394
394
|
token?: string | undefined;
|
|
395
395
|
};
|
|
396
396
|
};
|
|
397
|
-
usage: {
|
|
398
|
-
enabled: boolean;
|
|
399
|
-
warningThreshold: number;
|
|
400
|
-
currency: string;
|
|
401
|
-
retentionDays: number;
|
|
402
|
-
monthlyBudget?: number | undefined;
|
|
403
|
-
};
|
|
404
397
|
channels: {} & {
|
|
405
398
|
[k: string]: z.objectOutputType<{
|
|
406
399
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -430,6 +423,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
430
423
|
sessionStore: {
|
|
431
424
|
ttlDays: number;
|
|
432
425
|
};
|
|
426
|
+
usage: {
|
|
427
|
+
enabled: boolean;
|
|
428
|
+
warningThreshold: number;
|
|
429
|
+
currency: string;
|
|
430
|
+
retentionDays: number;
|
|
431
|
+
monthlyBudget?: number | undefined;
|
|
432
|
+
};
|
|
433
433
|
integrations: Record<string, {
|
|
434
434
|
installed: boolean;
|
|
435
435
|
installedAt?: string | undefined;
|
|
@@ -468,8 +468,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
468
468
|
workingDirectory?: string | undefined;
|
|
469
469
|
}> | undefined;
|
|
470
470
|
tunnel?: {
|
|
471
|
-
enabled?: boolean | undefined;
|
|
472
471
|
options?: Record<string, unknown> | undefined;
|
|
472
|
+
enabled?: boolean | undefined;
|
|
473
473
|
port?: number | undefined;
|
|
474
474
|
provider?: "cloudflare" | "ngrok" | "bore" | "tailscale" | undefined;
|
|
475
475
|
maxUserTunnels?: number | undefined;
|
|
@@ -479,13 +479,6 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
479
479
|
token?: string | undefined;
|
|
480
480
|
} | undefined;
|
|
481
481
|
} | undefined;
|
|
482
|
-
usage?: {
|
|
483
|
-
enabled?: boolean | undefined;
|
|
484
|
-
monthlyBudget?: number | undefined;
|
|
485
|
-
warningThreshold?: number | undefined;
|
|
486
|
-
currency?: string | undefined;
|
|
487
|
-
retentionDays?: number | undefined;
|
|
488
|
-
} | undefined;
|
|
489
482
|
instanceName?: string | undefined;
|
|
490
483
|
channels?: z.objectInputType<{}, z.ZodObject<{
|
|
491
484
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -524,6 +517,13 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
524
517
|
sessionStore?: {
|
|
525
518
|
ttlDays?: number | undefined;
|
|
526
519
|
} | undefined;
|
|
520
|
+
usage?: {
|
|
521
|
+
enabled?: boolean | undefined;
|
|
522
|
+
monthlyBudget?: number | undefined;
|
|
523
|
+
warningThreshold?: number | undefined;
|
|
524
|
+
currency?: string | undefined;
|
|
525
|
+
retentionDays?: number | undefined;
|
|
526
|
+
} | undefined;
|
|
527
527
|
integrations?: Record<string, {
|
|
528
528
|
installed: boolean;
|
|
529
529
|
installedAt?: string | undefined;
|
|
@@ -2113,14 +2113,18 @@ declare class AssistantManager {
|
|
|
2113
2113
|
private core;
|
|
2114
2114
|
private registry;
|
|
2115
2115
|
private sessions;
|
|
2116
|
-
private readyState;
|
|
2117
2116
|
private respawning;
|
|
2117
|
+
private pendingSystemPrompts;
|
|
2118
2118
|
constructor(core: AssistantManagerCore, registry: AssistantRegistry);
|
|
2119
2119
|
spawn(channelId: string, threadId: string): Promise<Session>;
|
|
2120
2120
|
get(channelId: string): Session | null;
|
|
2121
|
+
/**
|
|
2122
|
+
* Consume and return any pending system prompt for a channel.
|
|
2123
|
+
* Should be prepended to the first real user message.
|
|
2124
|
+
*/
|
|
2125
|
+
consumePendingSystemPrompt(channelId: string): string | undefined;
|
|
2121
2126
|
isAssistant(sessionId: string): boolean;
|
|
2122
2127
|
respawn(channelId: string, threadId: string): Promise<Session>;
|
|
2123
|
-
waitReady(channelId: string): Promise<void>;
|
|
2124
2128
|
}
|
|
2125
2129
|
|
|
2126
2130
|
interface InstanceContext {
|