@jetcrab/pi-desk-sdk 1.1.21 → 1.1.22-dev

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.
@@ -28,6 +28,11 @@ export declare const CapabilityDeclarationsSchema: z.ZodRecord<z.ZodString, z.Zo
28
28
  export declare const CapabilityModeKeySchema: z.ZodString;
29
29
  export declare const CapabilityModeSchema: z.ZodObject<{
30
30
  name: z.ZodString;
31
+ promptSource: z.ZodOptional<z.ZodEnum<{
32
+ custom: "custom";
33
+ global: "global";
34
+ none: "none";
35
+ }>>;
31
36
  tools: z.ZodOptional<z.ZodObject<{
32
37
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
38
  deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -43,6 +48,11 @@ export declare const CapabilityModeSchema: z.ZodObject<{
43
48
  }, z.core.$strict>;
44
49
  export declare const CapabilityModesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
45
50
  name: z.ZodString;
51
+ promptSource: z.ZodOptional<z.ZodEnum<{
52
+ custom: "custom";
53
+ global: "global";
54
+ none: "none";
55
+ }>>;
46
56
  tools: z.ZodOptional<z.ZodObject<{
47
57
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
58
  deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -90,6 +100,7 @@ export declare const SessionCapabilityRulesSchema: z.ZodObject<{
90
100
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
91
101
  deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
102
  }, z.core.$strict>>;
103
+ appendSystemPrompt: z.ZodOptional<z.ZodString>;
93
104
  }, z.core.$strict>;
94
105
  export type CapabilityMode = z.infer<typeof CapabilityModeSchema>;
95
106
  export type CapabilityModes = z.infer<typeof CapabilityModesSchema>;
@@ -29,6 +29,7 @@ export const CapabilityModeKeySchema = z.string().min(1).max(64);
29
29
  export const CapabilityModeSchema = z
30
30
  .object({
31
31
  name: z.string().trim().min(1).max(64),
32
+ promptSource: z.enum(['global', 'none', 'custom']).optional(),
32
33
  tools: CapabilityRuleSchema.optional(),
33
34
  skills: CapabilityRuleSchema.optional(),
34
35
  plugins: z
@@ -52,7 +53,8 @@ export const SessionCapabilityRulesSchema = z
52
53
  .object({
53
54
  tools: CapabilityRuleSchema,
54
55
  skills: CapabilityRuleSchema,
55
- capabilities: z.record(CapabilityKeySchema, CapabilityRuleSchema)
56
+ capabilities: z.record(CapabilityKeySchema, CapabilityRuleSchema),
57
+ appendSystemPrompt: z.string().optional()
56
58
  })
57
59
  .strict();
58
60
  function matchesCapability(pattern, value) {