@intentic/extension-manifest 1.363.0 → 1.365.0
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/manifest.d.ts +3 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/points/commands.d.ts +2 -0
- package/dist/points/commands.d.ts.map +1 -1
- package/dist/points/commands.js +6 -0
- package/dist/points/commands.js.map +1 -1
- package/dist/points/index.d.ts +6 -0
- package/dist/points/index.d.ts.map +1 -1
- package/dist/points/settings.d.ts +4 -0
- package/dist/points/settings.d.ts.map +1 -1
- package/dist/points/settings.js +8 -0
- package/dist/points/settings.js.map +1 -1
- package/intentic-extension.schema.json +23 -0
- package/package.json +2 -2
- package/src/points/commands.ts +10 -0
- package/src/points/settings.ts +10 -0
- package/src/powers.test.ts +6 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -357,6 +357,7 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
357
357
|
category: z.ZodOptional<z.ZodString>;
|
|
358
358
|
icon: z.ZodOptional<z.ZodString>;
|
|
359
359
|
keybinding: z.ZodOptional<z.ZodString>;
|
|
360
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
360
361
|
when: z.ZodOptional<z.ZodString>;
|
|
361
362
|
}, z.core.$strip>>>;
|
|
362
363
|
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -422,6 +423,8 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
422
423
|
description: z.ZodOptional<z.ZodString>;
|
|
423
424
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
424
425
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
426
|
+
enumItemLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
427
|
+
enumDescriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
425
428
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
426
429
|
env: z.ZodOptional<z.ZodString>;
|
|
427
430
|
}, z.core.$strip>>>;
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqHxB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqHxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC;AAC9E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,aAAa,aAAc,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,MAAM,CAAC,KAAG,MAAkD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const CommandContributionSchema: z.ZodObject<{
|
|
|
5
5
|
category: z.ZodOptional<z.ZodString>;
|
|
6
6
|
icon: z.ZodOptional<z.ZodString>;
|
|
7
7
|
keybinding: z.ZodOptional<z.ZodString>;
|
|
8
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
8
9
|
when: z.ZodOptional<z.ZodString>;
|
|
9
10
|
}, z.core.$strip>;
|
|
10
11
|
export type CommandContribution = z.infer<typeof CommandContributionSchema>;
|
|
@@ -17,6 +18,7 @@ export declare const commandsPoint: {
|
|
|
17
18
|
category: z.ZodOptional<z.ZodString>;
|
|
18
19
|
icon: z.ZodOptional<z.ZodString>;
|
|
19
20
|
keybinding: z.ZodOptional<z.ZodString>;
|
|
21
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
20
22
|
when: z.ZodOptional<z.ZodString>;
|
|
21
23
|
}, z.core.$strip>>;
|
|
22
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/points/commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/points/commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;;;;;;iBAyCuD,CAAC;AAC9F,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa;mBAChB,UAAU;0BAEZ,6NAA6N;;;;;;;;;;CAE/L,CAAC"}
|
package/dist/points/commands.js
CHANGED
|
@@ -15,6 +15,12 @@ export const CommandContributionSchema = z.object({
|
|
|
15
15
|
.optional()
|
|
16
16
|
.describe('A global keyboard shortcut, e.g. "Mod+Shift+K" — `Mod` is ⌘ on Apple and Ctrl elsewhere. Declared here because a global shortcut is consequential: the owner approves it at install, and the host binds only what was approved.')
|
|
17
17
|
.meta({ power: { key: "keybinding:${command}", sentence: 'the global shortcut ${keybinding} ("${title}")' } }),
|
|
18
|
+
mac: z
|
|
19
|
+
.string()
|
|
20
|
+
.regex(/^\S+$/)
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('The shortcut on a Mac, where it differs from `keybinding`, e.g. "Mod+Alt+K" for a `keybinding` of "Ctrl+Shift+K". Without one, a Mac uses `keybinding` too. A Mac\'s text fields answer ⌃A, ⌃E, ⌃K, ⌥←/→ and ⌘←/→ themselves, so the host never binds those from a field whatever is declared.')
|
|
23
|
+
.meta({ power: { key: "keybinding-mac:${command}", sentence: 'the global shortcut ${mac} on a Mac ("${title}")' } }),
|
|
18
24
|
when: z
|
|
19
25
|
.string()
|
|
20
26
|
.refine(isWhenExpression, { message: "not a valid `when` condition" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/points/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,6CAA6C,CAAC;IACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gGAAgG,CAAC;IACnI,QAAQ,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACL,gOAAgO,CACnO;IACL,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IAGhG,UAAU,EAAE,CAAC;SACR,MAAM,EAAE;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AC,QAAQ,CAAC,0DAA0D,CAAC;IAGhG,UAAU,EAAE,CAAC;SACR,MAAM,EAAE;SACR,KAAK,CAAC,OAAO,CAAC;SACd,QAAQ,EAAE;SACV,QAAQ,CACL,iOAAiO,CACpO;SACA,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,QAAQ,EAAE,gDAAgD,EAAE,EAAE,CAAC;IAGlH,GAAG,EAAE,CAAC;SACD,MAAM,EAAE;SACR,KAAK,CAAC,OAAO,CAAC;SACd,QAAQ,EAAE;SACV,QAAQ,CACL,gSAAgS,CACnS;SACA,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE,QAAQ,EAAE,kDAAkD,EAAE,EAAE,CAAC;IAGxH,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,MAAM,CAAC,gBAAgB,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACrE,QAAQ,EAAE;SACV,QAAQ,CACL,6TAA6T,CAChU;CACR,CAAC;KACG,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,QAAQ,EAAE,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAG9F,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EACP,6NAA6N;IACjO,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;CACR,CAAC"}
|
package/dist/points/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export declare const CONTRIBUTION_POINTS: readonly [{
|
|
|
73
73
|
category: z.ZodOptional<z.ZodString>;
|
|
74
74
|
icon: z.ZodOptional<z.ZodString>;
|
|
75
75
|
keybinding: z.ZodOptional<z.ZodString>;
|
|
76
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
76
77
|
when: z.ZodOptional<z.ZodString>;
|
|
77
78
|
}, z.core.$strip>>;
|
|
78
79
|
}, {
|
|
@@ -90,6 +91,8 @@ export declare const CONTRIBUTION_POINTS: readonly [{
|
|
|
90
91
|
description: z.ZodOptional<z.ZodString>;
|
|
91
92
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
92
93
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
enumItemLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
enumDescriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
96
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
94
97
|
env: z.ZodOptional<z.ZodString>;
|
|
95
98
|
}, z.core.$strip>>;
|
|
@@ -839,6 +842,7 @@ export declare const contributesSchema: z.ZodObject<{
|
|
|
839
842
|
category: z.ZodOptional<z.ZodString>;
|
|
840
843
|
icon: z.ZodOptional<z.ZodString>;
|
|
841
844
|
keybinding: z.ZodOptional<z.ZodString>;
|
|
845
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
842
846
|
when: z.ZodOptional<z.ZodString>;
|
|
843
847
|
}, z.core.$strip>>>;
|
|
844
848
|
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -904,6 +908,8 @@ export declare const contributesSchema: z.ZodObject<{
|
|
|
904
908
|
description: z.ZodOptional<z.ZodString>;
|
|
905
909
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
906
910
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
911
|
+
enumItemLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
912
|
+
enumDescriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
907
913
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
908
914
|
env: z.ZodOptional<z.ZodString>;
|
|
909
915
|
}, z.core.$strip>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/points/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/points/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBiB,CAAC;AAUlD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC"}
|
|
@@ -11,6 +11,8 @@ export declare const SettingContributionSchema: z.ZodObject<{
|
|
|
11
11
|
description: z.ZodOptional<z.ZodString>;
|
|
12
12
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
13
13
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
enumItemLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
enumDescriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
16
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
15
17
|
env: z.ZodOptional<z.ZodString>;
|
|
16
18
|
}, z.core.$strip>;
|
|
@@ -30,6 +32,8 @@ export declare const settingsPoint: {
|
|
|
30
32
|
description: z.ZodOptional<z.ZodString>;
|
|
31
33
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
32
34
|
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
enumItemLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
enumDescriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
37
|
secret: z.ZodOptional<z.ZodBoolean>;
|
|
34
38
|
env: z.ZodOptional<z.ZodString>;
|
|
35
39
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/points/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/points/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;iBA6BpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa;mBAChB,UAAU;0BAEZ,8KAA8K;;;;;;;;;;;;;;;;;;CAEhJ,CAAC"}
|
package/dist/points/settings.js
CHANGED
|
@@ -6,6 +6,14 @@ export const SettingContributionSchema = z.object({
|
|
|
6
6
|
description: z.string().optional().describe("The line under the control."),
|
|
7
7
|
default: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
8
8
|
enum: z.array(z.string()).optional().describe('The choices, for type "enum". Meaningless otherwise.'),
|
|
9
|
+
enumItemLabels: z
|
|
10
|
+
.array(z.string())
|
|
11
|
+
.optional()
|
|
12
|
+
.describe("What each choice in `enum` is called on the Settings page, by position. A choice without one shows its value."),
|
|
13
|
+
enumDescriptions: z
|
|
14
|
+
.array(z.string())
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("One line under each choice in `enum`, by position: what picking it means. With these the Settings page lists the choices with their lines instead of a dropdown, so keep `description` for what holds whichever is picked."),
|
|
9
17
|
secret: z
|
|
10
18
|
.boolean()
|
|
11
19
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/points/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,8EAA8E,CAAC;IAC9I,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC1E,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClE,IAAI,E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AC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;IACrG,cAAc,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,+GAA+G,CAAC;IAC9H,gBAAgB,EAAE,CAAC;SACd,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,4NAA4N,CAC/N;IACL,MAAM,EAAE,CAAC;SACJ,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,gHAAgH,CAAC;IAC/H,GAAG,EAAE,CAAC;SACD,MAAM,EAAE;SACR,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,EAAE;SACV,QAAQ,CACL,2JAA2J,CAC9J;SACA,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,QAAQ,EAAE,mEAAmE,EAAE,EAAE,CAAC;CACrI,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EACP,8KAA8K;IAClL,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;CACR,CAAC"}
|
|
@@ -322,6 +322,15 @@
|
|
|
322
322
|
"type": "string",
|
|
323
323
|
"pattern": "^\\S+$"
|
|
324
324
|
},
|
|
325
|
+
"mac": {
|
|
326
|
+
"description": "The shortcut on a Mac, where it differs from `keybinding`, e.g. \"Mod+Alt+K\" for a `keybinding` of \"Ctrl+Shift+K\". Without one, a Mac uses `keybinding` too. A Mac's text fields answer ⌃A, ⌃E, ⌃K, ⌥←/→ and ⌘←/→ themselves, so the host never binds those from a field whatever is declared.",
|
|
327
|
+
"power": {
|
|
328
|
+
"key": "keybinding-mac:${command}",
|
|
329
|
+
"sentence": "the global shortcut ${mac} on a Mac (\"${title}\")"
|
|
330
|
+
},
|
|
331
|
+
"type": "string",
|
|
332
|
+
"pattern": "^\\S+$"
|
|
333
|
+
},
|
|
325
334
|
"when": {
|
|
326
335
|
"description": "When the shortcut applies, as a condition over the shell's context keys, `tabSurface == 'chat'`, `!editableTarget`. Without one the chord is claimed everywhere, including inside a terminal where a bare key belongs to the program running in it. The command palette ignores this: a command is always runnable by name.",
|
|
327
336
|
"type": "string"
|
|
@@ -380,6 +389,20 @@
|
|
|
380
389
|
"type": "string"
|
|
381
390
|
}
|
|
382
391
|
},
|
|
392
|
+
"enumItemLabels": {
|
|
393
|
+
"description": "What each choice in `enum` is called on the Settings page, by position. A choice without one shows its value.",
|
|
394
|
+
"type": "array",
|
|
395
|
+
"items": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"enumDescriptions": {
|
|
400
|
+
"description": "One line under each choice in `enum`, by position: what picking it means. With these the Settings page lists the choices with their lines instead of a dropdown, so keep `description` for what holds whichever is picked.",
|
|
401
|
+
"type": "array",
|
|
402
|
+
"items": {
|
|
403
|
+
"type": "string"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
383
406
|
"secret": {
|
|
384
407
|
"description": "Mask the value in the UI and strip it from reads: a set secret round-trips as 'still set', never as its value.",
|
|
385
408
|
"type": "boolean"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/extension-manifest",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.365.0",
|
|
4
4
|
"description": "What an intentic extension DECLARES, the intentic-extension.json schema and the sandbox-route allowlist rule",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@intentic/base": "1.
|
|
46
|
+
"@intentic/base": "1.365.0",
|
|
47
47
|
"zod": "4.6.7"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
package/src/points/commands.ts
CHANGED
|
@@ -24,6 +24,16 @@ export const CommandContributionSchema = z.object({
|
|
|
24
24
|
'A global keyboard shortcut, e.g. "Mod+Shift+K" — `Mod` is ⌘ on Apple and Ctrl elsewhere. Declared here because a global shortcut is consequential: the owner approves it at install, and the host binds only what was approved.',
|
|
25
25
|
)
|
|
26
26
|
.meta({ power: { key: "keybinding:${command}", sentence: 'the global shortcut ${keybinding} ("${title}")' } }),
|
|
27
|
+
// The same shortcut as a Mac spells it, where `keybinding` is a Windows idiom there; approved on its own, since it is a
|
|
28
|
+
// second chord the extension claims.
|
|
29
|
+
mac: z
|
|
30
|
+
.string()
|
|
31
|
+
.regex(/^\S+$/)
|
|
32
|
+
.optional()
|
|
33
|
+
.describe(
|
|
34
|
+
'The shortcut on a Mac, where it differs from `keybinding`, e.g. "Mod+Alt+K" for a `keybinding` of "Ctrl+Shift+K". Without one, a Mac uses `keybinding` too. A Mac\'s text fields answer ⌃A, ⌃E, ⌃K, ⌥←/→ and ⌘←/→ themselves, so the host never binds those from a field whatever is declared.',
|
|
35
|
+
)
|
|
36
|
+
.meta({ power: { key: "keybinding-mac:${command}", sentence: 'the global shortcut ${mac} on a Mac ("${title}")' } }),
|
|
27
37
|
// When the keybinding applies, as a condition over the shell's context keys; the palette ignores it since a command
|
|
28
38
|
// is always runnable by name. Without one the chord is claimed everywhere, including inside a terminal.
|
|
29
39
|
when: z
|
package/src/points/settings.ts
CHANGED
|
@@ -9,6 +9,16 @@ export const SettingContributionSchema = z.object({
|
|
|
9
9
|
description: z.string().optional().describe("The line under the control."),
|
|
10
10
|
default: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
11
11
|
enum: z.array(z.string()).optional().describe('The choices, for type "enum". Meaningless otherwise.'),
|
|
12
|
+
enumItemLabels: z
|
|
13
|
+
.array(z.string())
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("What each choice in `enum` is called on the Settings page, by position. A choice without one shows its value."),
|
|
16
|
+
enumDescriptions: z
|
|
17
|
+
.array(z.string())
|
|
18
|
+
.optional()
|
|
19
|
+
.describe(
|
|
20
|
+
"One line under each choice in `enum`, by position: what picking it means. With these the Settings page lists the choices with their lines instead of a dropdown, so keep `description` for what holds whichever is picked.",
|
|
21
|
+
),
|
|
12
22
|
secret: z
|
|
13
23
|
.boolean()
|
|
14
24
|
.optional()
|
package/src/powers.test.ts
CHANGED
|
@@ -116,6 +116,12 @@ const ROWS: readonly Row[] = [
|
|
|
116
116
|
with: contributes({ commands: [{ ...COMMAND, keybinding: "Mod+Shift+K" }] }),
|
|
117
117
|
adds: ["keybinding:acme.run", 'the global shortcut Mod+Shift+K ("Run")'],
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
power: "keybinding-mac:${command}",
|
|
121
|
+
without: contributes({ commands: [{ ...COMMAND, keybinding: "Ctrl+Shift+K" }] }),
|
|
122
|
+
with: contributes({ commands: [{ ...COMMAND, keybinding: "Ctrl+Shift+K", mac: "Mod+Alt+K" }] }),
|
|
123
|
+
adds: ["keybinding-mac:acme.run", 'the global shortcut Mod+Alt+K on a Mac ("Run")'],
|
|
124
|
+
},
|
|
119
125
|
{
|
|
120
126
|
power: "setting-env:${key}",
|
|
121
127
|
without: contributes({ settings: [SETTING] }),
|