@mycadet/plugin-api 0.13.0-dev.202610312329.a740c1c → 0.13.0-dev.202611022129.ce2988d
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/index.d.ts +28 -16
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1772,8 +1772,8 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1772
1772
|
low: "low";
|
|
1773
1773
|
medium: "medium";
|
|
1774
1774
|
high: "high";
|
|
1775
|
-
safe: "safe";
|
|
1776
1775
|
critical: "critical";
|
|
1776
|
+
safe: "safe";
|
|
1777
1777
|
}>>;
|
|
1778
1778
|
}, z.core.$strip>>;
|
|
1779
1779
|
}, z.core.$strip>>;
|
|
@@ -1999,9 +1999,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1999
1999
|
auto: "auto";
|
|
2000
2000
|
}>>;
|
|
2001
2001
|
strategy: z.ZodDefault<z.ZodEnum<{
|
|
2002
|
+
overwrite: "overwrite";
|
|
2002
2003
|
theirs: "theirs";
|
|
2003
2004
|
ours: "ours";
|
|
2004
|
-
overwrite: "overwrite";
|
|
2005
2005
|
}>>;
|
|
2006
2006
|
checkIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
2007
2007
|
}, z.core.$strip>>;
|
|
@@ -2342,9 +2342,9 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2342
2342
|
source: z.ZodEnum<{
|
|
2343
2343
|
timeout: "timeout";
|
|
2344
2344
|
button: "button";
|
|
2345
|
-
system: "system";
|
|
2346
2345
|
inline_nl: "inline_nl";
|
|
2347
2346
|
auto_deny: "auto_deny";
|
|
2347
|
+
system: "system";
|
|
2348
2348
|
}>;
|
|
2349
2349
|
causedByRequestId: z.ZodOptional<z.ZodString>;
|
|
2350
2350
|
decisionText: z.ZodOptional<z.ZodString>;
|
|
@@ -2499,8 +2499,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2499
2499
|
unknown: "unknown";
|
|
2500
2500
|
ok: "ok";
|
|
2501
2501
|
disabled: "disabled";
|
|
2502
|
-
critical: "critical";
|
|
2503
2502
|
warning: "warning";
|
|
2503
|
+
critical: "critical";
|
|
2504
2504
|
}>;
|
|
2505
2505
|
locked: z.ZodBoolean;
|
|
2506
2506
|
acknowledged: z.ZodBoolean;
|
|
@@ -2598,8 +2598,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2598
2598
|
mimeType: z.ZodString;
|
|
2599
2599
|
data: z.ZodString;
|
|
2600
2600
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
2601
|
-
host_file: "host_file";
|
|
2602
2601
|
sandbox_file: "sandbox_file";
|
|
2602
|
+
host_file: "host_file";
|
|
2603
2603
|
tool_block: "tool_block";
|
|
2604
2604
|
}>>;
|
|
2605
2605
|
computerUseScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2750,9 +2750,9 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2750
2750
|
state: z.ZodEnum<{
|
|
2751
2751
|
approved: "approved";
|
|
2752
2752
|
cancelled: "cancelled";
|
|
2753
|
-
superseded: "superseded";
|
|
2754
2753
|
answered: "answered";
|
|
2755
2754
|
rejected: "rejected";
|
|
2755
|
+
superseded: "superseded";
|
|
2756
2756
|
}>;
|
|
2757
2757
|
kind: z.ZodString;
|
|
2758
2758
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2816,8 +2816,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2816
2816
|
mimeType: z.ZodString;
|
|
2817
2817
|
data: z.ZodString;
|
|
2818
2818
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
2819
|
-
host_file: "host_file";
|
|
2820
2819
|
sandbox_file: "sandbox_file";
|
|
2820
|
+
host_file: "host_file";
|
|
2821
2821
|
tool_block: "tool_block";
|
|
2822
2822
|
}>>;
|
|
2823
2823
|
computerUseScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3249,8 +3249,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
3249
3249
|
conversations: "conversations";
|
|
3250
3250
|
}>;
|
|
3251
3251
|
status: z.ZodEnum<{
|
|
3252
|
-
searched: "searched";
|
|
3253
3252
|
degraded: "degraded";
|
|
3253
|
+
searched: "searched";
|
|
3254
3254
|
}>;
|
|
3255
3255
|
evidenceCount: z.ZodNumber;
|
|
3256
3256
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -3626,8 +3626,8 @@ export declare type AssistantEventPublishOptions = z.infer<typeof AssistantEvent
|
|
|
3626
3626
|
|
|
3627
3627
|
declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
|
|
3628
3628
|
targetCapability: z.ZodOptional<z.ZodEnum<{
|
|
3629
|
-
host_bash: "host_bash";
|
|
3630
3629
|
host_file: "host_file";
|
|
3630
|
+
host_bash: "host_bash";
|
|
3631
3631
|
host_cu: "host_cu";
|
|
3632
3632
|
host_cu_window_capture: "host_cu_window_capture";
|
|
3633
3633
|
host_cu_sequence: "host_cu_sequence";
|
|
@@ -3915,9 +3915,9 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3915
3915
|
source: z.ZodEnum<{
|
|
3916
3916
|
timeout: "timeout";
|
|
3917
3917
|
button: "button";
|
|
3918
|
-
system: "system";
|
|
3919
3918
|
inline_nl: "inline_nl";
|
|
3920
3919
|
auto_deny: "auto_deny";
|
|
3920
|
+
system: "system";
|
|
3921
3921
|
}>;
|
|
3922
3922
|
causedByRequestId: z.ZodOptional<z.ZodString>;
|
|
3923
3923
|
decisionText: z.ZodOptional<z.ZodString>;
|
|
@@ -4072,8 +4072,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4072
4072
|
unknown: "unknown";
|
|
4073
4073
|
ok: "ok";
|
|
4074
4074
|
disabled: "disabled";
|
|
4075
|
-
critical: "critical";
|
|
4076
4075
|
warning: "warning";
|
|
4076
|
+
critical: "critical";
|
|
4077
4077
|
}>;
|
|
4078
4078
|
locked: z.ZodBoolean;
|
|
4079
4079
|
acknowledged: z.ZodBoolean;
|
|
@@ -4171,8 +4171,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4171
4171
|
mimeType: z.ZodString;
|
|
4172
4172
|
data: z.ZodString;
|
|
4173
4173
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
4174
|
-
host_file: "host_file";
|
|
4175
4174
|
sandbox_file: "sandbox_file";
|
|
4175
|
+
host_file: "host_file";
|
|
4176
4176
|
tool_block: "tool_block";
|
|
4177
4177
|
}>>;
|
|
4178
4178
|
computerUseScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4323,9 +4323,9 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4323
4323
|
state: z.ZodEnum<{
|
|
4324
4324
|
approved: "approved";
|
|
4325
4325
|
cancelled: "cancelled";
|
|
4326
|
-
superseded: "superseded";
|
|
4327
4326
|
answered: "answered";
|
|
4328
4327
|
rejected: "rejected";
|
|
4328
|
+
superseded: "superseded";
|
|
4329
4329
|
}>;
|
|
4330
4330
|
kind: z.ZodString;
|
|
4331
4331
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4389,8 +4389,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4389
4389
|
mimeType: z.ZodString;
|
|
4390
4390
|
data: z.ZodString;
|
|
4391
4391
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
4392
|
-
host_file: "host_file";
|
|
4393
4392
|
sandbox_file: "sandbox_file";
|
|
4393
|
+
host_file: "host_file";
|
|
4394
4394
|
tool_block: "tool_block";
|
|
4395
4395
|
}>>;
|
|
4396
4396
|
computerUseScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4822,8 +4822,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4822
4822
|
conversations: "conversations";
|
|
4823
4823
|
}>;
|
|
4824
4824
|
status: z.ZodEnum<{
|
|
4825
|
-
searched: "searched";
|
|
4826
4825
|
degraded: "degraded";
|
|
4826
|
+
searched: "searched";
|
|
4827
4827
|
}>;
|
|
4828
4828
|
evidenceCount: z.ZodNumber;
|
|
4829
4829
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -11022,6 +11022,18 @@ declare function embedAndUpsert_2(config: AssistantConfig, targetType: "segment"
|
|
|
11022
11022
|
/** Accepts raw strings as shorthand for text inputs. */
|
|
11023
11023
|
export declare type EmbeddingInput = string | MultimodalEmbeddingInput;
|
|
11024
11024
|
|
|
11025
|
+
/**
|
|
11026
|
+
* Plugin-facing facade over the embeddings subsystem: self-contained
|
|
11027
|
+
* operations that resolve the live workspace config internally, so callers
|
|
11028
|
+
* (plugins importing via `@mycadet/plugin-api`) hold no host config.
|
|
11029
|
+
*
|
|
11030
|
+
* The operations are loaded via dynamic `import()` inside each wrapper so
|
|
11031
|
+
* that importing this module, which every `@mycadet/plugin-api` consumer
|
|
11032
|
+
* does transitively, does not eagerly pull the embed/vector import graph
|
|
11033
|
+
* (`job-utils`, `embedding-backend`). An eager pull would force those
|
|
11034
|
+
* modules' named exports to resolve at instantiation, which breaks the
|
|
11035
|
+
* intentional partial module mocks in tests.
|
|
11036
|
+
*/
|
|
11025
11037
|
declare type EmbeddingTargetType = Parameters<embedAndUpsert_2>[1];
|
|
11026
11038
|
|
|
11027
11039
|
/** A computed embedding with the provider/model that produced it. */
|
|
@@ -23317,8 +23329,8 @@ declare const ToolActivityMetadataSchema: z.ZodObject<{
|
|
|
23317
23329
|
conversations: "conversations";
|
|
23318
23330
|
}>;
|
|
23319
23331
|
status: z.ZodEnum<{
|
|
23320
|
-
searched: "searched";
|
|
23321
23332
|
degraded: "degraded";
|
|
23333
|
+
searched: "searched";
|
|
23322
23334
|
}>;
|
|
23323
23335
|
evidenceCount: z.ZodNumber;
|
|
23324
23336
|
error: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED