asyar-sdk 4.4.0 → 4.5.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/contracts/snippets.d.ts +0 -16
- package/dist/contracts/snippets.d.ts.map +1 -1
- package/dist/services/SnippetsServiceProxy.d.ts +0 -4
- package/dist/services/SnippetsServiceProxy.d.ts.map +1 -1
- package/dist/services/SnippetsServiceProxy.js +0 -20
- package/dist/services/SnippetsServiceProxy.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,21 +25,5 @@ export interface ISnippetsService {
|
|
|
25
25
|
registerShortcodes(map: ShortcodeMap): Promise<void>;
|
|
26
26
|
/** Remove the calling extension's entire contribution. Idempotent. */
|
|
27
27
|
unregisterShortcodes(): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Return all AI-learned shortcode → emoji pairs that are currently cached
|
|
30
|
-
* (i.e. shortcodes the inline emoji fallback resolved at least once).
|
|
31
|
-
* Requires the `snippets:contribute` permission.
|
|
32
|
-
*/
|
|
33
|
-
listLearnedShortcodes(): Promise<Array<[string, string]>>;
|
|
34
|
-
/**
|
|
35
|
-
* Promote an AI-learned shortcode to a permanent user snippet and remove it
|
|
36
|
-
* from the learned cache. The launcher emits `snippet:promote-from-cache` and
|
|
37
|
-
* the main window persists the entry via the existing snippets storage path.
|
|
38
|
-
*/
|
|
39
|
-
promoteLearnedShortcode(shortcode: string): Promise<void>;
|
|
40
|
-
/** Remove a single cached AI-learned shortcode entry. */
|
|
41
|
-
forgetLearnedShortcode(shortcode: string): Promise<void>;
|
|
42
|
-
/** Clear all AI-learned shortcode cache entries. */
|
|
43
|
-
clearLearnedShortcodes(): Promise<void>;
|
|
44
28
|
}
|
|
45
29
|
//# sourceMappingURL=snippets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../src/contracts/snippets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAA0B,CAAC;AAEzD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD,sEAAsE;IACtE,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../src/contracts/snippets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAA0B,CAAC;AAEzD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD,sEAAsE;IACtE,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC"}
|
|
@@ -4,9 +4,5 @@ import { type ISnippetsService, type ShortcodeMap } from '../contracts/snippets'
|
|
|
4
4
|
export declare class SnippetsServiceProxy extends BaseServiceProxy implements ISnippetsService {
|
|
5
5
|
registerShortcodes(map: ShortcodeMap): Promise<void>;
|
|
6
6
|
unregisterShortcodes(): Promise<void>;
|
|
7
|
-
listLearnedShortcodes(): Promise<Array<[string, string]>>;
|
|
8
|
-
promoteLearnedShortcode(shortcode: string): Promise<void>;
|
|
9
|
-
forgetLearnedShortcode(shortcode: string): Promise<void>;
|
|
10
|
-
clearLearnedShortcodes(): Promise<void>;
|
|
11
7
|
}
|
|
12
8
|
//# sourceMappingURL=SnippetsServiceProxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetsServiceProxy.d.ts","sourceRoot":"","sources":["../../src/services/SnippetsServiceProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAoB,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEnG,iEAAiE;AACjE,qBAAa,oBAAqB,SAAQ,gBAAiB,YAAW,gBAAgB;IAC9E,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBpD,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"SnippetsServiceProxy.d.ts","sourceRoot":"","sources":["../../src/services/SnippetsServiceProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAoB,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEnG,iEAAiE;AACjE,qBAAa,oBAAqB,SAAQ,gBAAiB,YAAW,gBAAgB;IAC9E,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBpD,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;CAI5C"}
|
|
@@ -32,25 +32,5 @@ export class SnippetsServiceProxy extends BaseServiceProxy {
|
|
|
32
32
|
yield broker.invoke('snippets:unregisterShortcodes', {});
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
listLearnedShortcodes() {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
return this.broker.invoke('snippets:listLearnedShortcodes', {});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
promoteLearnedShortcode(shortcode) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
yield this.broker.invoke('snippets:promoteLearnedShortcode', { shortcode });
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
forgetLearnedShortcode(shortcode) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
yield this.broker.invoke('snippets:forgetLearnedShortcode', { shortcode });
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
clearLearnedShortcodes() {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
yield this.broker.invoke('snippets:clearLearnedShortcodes', {});
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
35
|
}
|
|
56
36
|
//# sourceMappingURL=SnippetsServiceProxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetsServiceProxy.js","sourceRoot":"","sources":["../../src/services/SnippetsServiceProxy.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAA4C,MAAM,uBAAuB,CAAC;AAEnG,iEAAiE;AACjE,MAAM,OAAO,oBAAqB,SAAQ,gBAAgB;IAClD,kBAAkB,CAAC,GAAiB;;YACxC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/C,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC3B,MAAM,IAAI,KAAK,CACb,wDAAwD,GAAG,MAAM;wBAC/D,oCAAoC,CACvC,CAAC;gBACJ,CAAC;gBACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACpD,MAAM,IAAI,KAAK,CACb,gDAAgD,GAAG,8BAA8B,CAClF,CAAC;gBACJ,CAAC;YACH,CAAC;YACD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