@raycast/api 1.81.0 → 1.82.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/meta.json +23 -18
- package/package.json +1 -1
- package/types/index.d.ts +37 -9
package/meta.json
CHANGED
|
@@ -2228,7 +2228,7 @@
|
|
|
2228
2228
|
"format": "esm"
|
|
2229
2229
|
},
|
|
2230
2230
|
"src/api/app/ai.ts": {
|
|
2231
|
-
"bytes":
|
|
2231
|
+
"bytes": 8232,
|
|
2232
2232
|
"imports": [
|
|
2233
2233
|
{
|
|
2234
2234
|
"path": "node:events",
|
|
@@ -2631,7 +2631,7 @@
|
|
|
2631
2631
|
"format": "esm"
|
|
2632
2632
|
},
|
|
2633
2633
|
"src/api/ui/icon.ts": {
|
|
2634
|
-
"bytes":
|
|
2634
|
+
"bytes": 15837,
|
|
2635
2635
|
"imports": [],
|
|
2636
2636
|
"format": "esm"
|
|
2637
2637
|
},
|
|
@@ -3351,7 +3351,7 @@
|
|
|
3351
3351
|
"format": "esm"
|
|
3352
3352
|
},
|
|
3353
3353
|
"src/api/environment/environment.ts": {
|
|
3354
|
-
"bytes":
|
|
3354
|
+
"bytes": 4909,
|
|
3355
3355
|
"imports": [
|
|
3356
3356
|
{
|
|
3357
3357
|
"path": "worker_threads",
|
|
@@ -3651,7 +3651,7 @@
|
|
|
3651
3651
|
"format": "esm"
|
|
3652
3652
|
},
|
|
3653
3653
|
"src/api/cache/cache.ts": {
|
|
3654
|
-
"bytes":
|
|
3654
|
+
"bytes": 12243,
|
|
3655
3655
|
"imports": [
|
|
3656
3656
|
{
|
|
3657
3657
|
"path": "fs",
|
|
@@ -3663,6 +3663,11 @@
|
|
|
3663
3663
|
"kind": "import-statement",
|
|
3664
3664
|
"external": true
|
|
3665
3665
|
},
|
|
3666
|
+
{
|
|
3667
|
+
"path": "src/api/environment/index.ts",
|
|
3668
|
+
"kind": "import-statement",
|
|
3669
|
+
"original": "../environment"
|
|
3670
|
+
},
|
|
3666
3671
|
{
|
|
3667
3672
|
"path": "src/core/ids.ts",
|
|
3668
3673
|
"kind": "import-statement",
|
|
@@ -5817,7 +5822,7 @@
|
|
|
5817
5822
|
"format": "esm"
|
|
5818
5823
|
},
|
|
5819
5824
|
"src/api/index.ts": {
|
|
5820
|
-
"bytes":
|
|
5825
|
+
"bytes": 9423,
|
|
5821
5826
|
"imports": [
|
|
5822
5827
|
{
|
|
5823
5828
|
"path": "node_modules/global-agent/dist/index.js",
|
|
@@ -6250,7 +6255,7 @@
|
|
|
6250
6255
|
"format": "cjs"
|
|
6251
6256
|
},
|
|
6252
6257
|
"src/server/worker.ts": {
|
|
6253
|
-
"bytes":
|
|
6258
|
+
"bytes": 10472,
|
|
6254
6259
|
"imports": [
|
|
6255
6260
|
{
|
|
6256
6261
|
"path": "node:perf_hooks",
|
|
@@ -6343,7 +6348,7 @@
|
|
|
6343
6348
|
"format": "esm"
|
|
6344
6349
|
},
|
|
6345
6350
|
"src/server/handlers/load-command.ts": {
|
|
6346
|
-
"bytes":
|
|
6351
|
+
"bytes": 2845,
|
|
6347
6352
|
"imports": [
|
|
6348
6353
|
{
|
|
6349
6354
|
"path": "src/server/extension-handler.ts",
|
|
@@ -6359,7 +6364,7 @@
|
|
|
6359
6364
|
"format": "esm"
|
|
6360
6365
|
},
|
|
6361
6366
|
"src/server/handlers/load-tool.ts": {
|
|
6362
|
-
"bytes":
|
|
6367
|
+
"bytes": 2491,
|
|
6363
6368
|
"imports": [
|
|
6364
6369
|
{
|
|
6365
6370
|
"path": "src/server/extension-handler.ts",
|
|
@@ -7738,7 +7743,7 @@
|
|
|
7738
7743
|
"bytesInOutput": 388
|
|
7739
7744
|
},
|
|
7740
7745
|
"src/api/app/ai.ts": {
|
|
7741
|
-
"bytesInOutput":
|
|
7746
|
+
"bytesInOutput": 2413
|
|
7742
7747
|
},
|
|
7743
7748
|
"src/api/app/app.ts": {
|
|
7744
7749
|
"bytesInOutput": 2525
|
|
@@ -7789,7 +7794,7 @@
|
|
|
7789
7794
|
"bytesInOutput": 357
|
|
7790
7795
|
},
|
|
7791
7796
|
"src/api/ui/icon.ts": {
|
|
7792
|
-
"bytesInOutput":
|
|
7797
|
+
"bytesInOutput": 13171
|
|
7793
7798
|
},
|
|
7794
7799
|
"src/api/ui/image.ts": {
|
|
7795
7800
|
"bytesInOutput": 132
|
|
@@ -7867,7 +7872,7 @@
|
|
|
7867
7872
|
"bytesInOutput": 1523
|
|
7868
7873
|
},
|
|
7869
7874
|
"src/api/environment/environment.ts": {
|
|
7870
|
-
"bytesInOutput":
|
|
7875
|
+
"bytesInOutput": 1269
|
|
7871
7876
|
},
|
|
7872
7877
|
"src/api/environment/preferences.ts": {
|
|
7873
7878
|
"bytesInOutput": 259
|
|
@@ -7897,10 +7902,10 @@
|
|
|
7897
7902
|
"bytesInOutput": 1325
|
|
7898
7903
|
},
|
|
7899
7904
|
"src/api/index.ts": {
|
|
7900
|
-
"bytesInOutput":
|
|
7905
|
+
"bytesInOutput": 5542
|
|
7901
7906
|
},
|
|
7902
7907
|
"src/api/cache/cache.ts": {
|
|
7903
|
-
"bytesInOutput":
|
|
7908
|
+
"bytesInOutput": 4474
|
|
7904
7909
|
},
|
|
7905
7910
|
"src/api/cache/index.ts": {
|
|
7906
7911
|
"bytesInOutput": 0
|
|
@@ -8086,7 +8091,7 @@
|
|
|
8086
8091
|
"bytesInOutput": 816
|
|
8087
8092
|
}
|
|
8088
8093
|
},
|
|
8089
|
-
"bytes":
|
|
8094
|
+
"bytes": 246198
|
|
8090
8095
|
},
|
|
8091
8096
|
"dist/node_modules/@raycast/server/index.js": {
|
|
8092
8097
|
"imports": [
|
|
@@ -8229,7 +8234,7 @@
|
|
|
8229
8234
|
"bytesInOutput": 1240
|
|
8230
8235
|
},
|
|
8231
8236
|
"src/server/worker.ts": {
|
|
8232
|
-
"bytesInOutput":
|
|
8237
|
+
"bytesInOutput": 3551
|
|
8233
8238
|
},
|
|
8234
8239
|
"src/core/breadcrumb.ts": {
|
|
8235
8240
|
"bytesInOutput": 34
|
|
@@ -8244,10 +8249,10 @@
|
|
|
8244
8249
|
"bytesInOutput": 57
|
|
8245
8250
|
},
|
|
8246
8251
|
"src/server/handlers/load-command.ts": {
|
|
8247
|
-
"bytesInOutput":
|
|
8252
|
+
"bytesInOutput": 1105
|
|
8248
8253
|
},
|
|
8249
8254
|
"src/server/handlers/load-tool.ts": {
|
|
8250
|
-
"bytesInOutput":
|
|
8255
|
+
"bytesInOutput": 1043
|
|
8251
8256
|
},
|
|
8252
8257
|
"src/server/handlers/native-callback.ts": {
|
|
8253
8258
|
"bytesInOutput": 259
|
|
@@ -8259,7 +8264,7 @@
|
|
|
8259
8264
|
"bytesInOutput": 300
|
|
8260
8265
|
}
|
|
8261
8266
|
},
|
|
8262
|
-
"bytes":
|
|
8267
|
+
"bytes": 68518
|
|
8263
8268
|
},
|
|
8264
8269
|
"dist/node_modules/@raycast/source-mapper/index.js": {
|
|
8265
8270
|
"imports": [
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -506,8 +506,9 @@ export declare namespace AI {
|
|
|
506
506
|
"Llama3.1_70B" = "llama3.1-70b",
|
|
507
507
|
"Llama3.1_8B" = "llama3.1-8b",
|
|
508
508
|
"Llama3.1_405B" = "llama3.1-405b",
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
"Perplexity_Llama3.1_Sonar_Huge" = "perplexity-llama-3.1-sonar-huge-128k-online",
|
|
510
|
+
"Perplexity_Llama3.1_Sonar_Large" = "perplexity-llama-3.1-sonar-large-128k-online",
|
|
511
|
+
"Perplexity_Llama3.1_Sonar_Small" = "perplexity-llama-3.1-sonar-small-128k-online",
|
|
511
512
|
/** @deprecated Use `AI.Model["OpenAI_GPT3.5-turbo"]` instead */
|
|
512
513
|
"OpenAI_GPT3.5-turbo-instruct" = "openai-gpt-3.5-turbo-instruct",
|
|
513
514
|
/** @deprecated Use `AI.Model.Llama3_70B` instead */
|
|
@@ -517,7 +518,32 @@ export declare namespace AI {
|
|
|
517
518
|
/** @deprecated Use `AI.Model.Perplexity_Llama3_Sonar_Small` instead */
|
|
518
519
|
Perplexity_Sonar_Small_Online = "perplexity-sonar-small-online",
|
|
519
520
|
/** @deprecated Use `AI.Model.Llama3_70B` instead */
|
|
520
|
-
Codellama_70B_instruct = "codellama-70b-instruct"
|
|
521
|
+
Codellama_70B_instruct = "codellama-70b-instruct",
|
|
522
|
+
/** @deprecated Use `AI.Model["Perplexity_Llama3.1_Sonar_Large"]` instead */
|
|
523
|
+
Perplexity_Llama3_Sonar_Large = "perplexity-llama-3-sonar-large-online",
|
|
524
|
+
/** @deprecated Use `AI.Model["Perplexity_Llama3.1_Sonar_Small"]` instead */
|
|
525
|
+
Perplexity_Llama3_Sonar_Small = "perplexity-llama-3-sonar-small-online"
|
|
526
|
+
}
|
|
527
|
+
export namespace AttachmentProvider {
|
|
528
|
+
export type Direct = () => string | Promise<string>;
|
|
529
|
+
export type Submenu = () => {
|
|
530
|
+
id: string;
|
|
531
|
+
title: string;
|
|
532
|
+
content: () => string | Promise<string>;
|
|
533
|
+
}[] | Promise<{
|
|
534
|
+
id: string;
|
|
535
|
+
title: string;
|
|
536
|
+
content: () => string | Promise<string>;
|
|
537
|
+
}[]>;
|
|
538
|
+
export type TypeAheadSubmenu = (query: string) => {
|
|
539
|
+
id: string;
|
|
540
|
+
title: string;
|
|
541
|
+
content: () => string | Promise<string>;
|
|
542
|
+
}[] | Promise<{
|
|
543
|
+
id: string;
|
|
544
|
+
title: string;
|
|
545
|
+
content: () => string | Promise<string>;
|
|
546
|
+
}[]>;
|
|
521
547
|
}
|
|
522
548
|
/** @deprecated Use the `AI.Model` enum instead */
|
|
523
549
|
export type __DeprecatedModelUnion = "openai-gpt-3.5-turbo-instruct" | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet" | "perplexity-sonar-medium-online" | "perplexity-sonar-small-online" | "llama2-70b" | "mixtral-8x7b" | "codellama-70b-instruct"
|
|
@@ -773,7 +799,7 @@ export declare namespace BrowserExtension {
|
|
|
773
799
|
* The data must be a string and it is up to the client to decide which serialization format to use.
|
|
774
800
|
* A typical use case would be to use `JSON.stringify` and `JSON.parse`.
|
|
775
801
|
*
|
|
776
|
-
* @remarks By default, the cache is shared between the
|
|
802
|
+
* @remarks By default, the cache is shared between the entry points of an extension. Use {@link Cache.Options} to configure
|
|
777
803
|
* a `namespace` per command if needed (for example, set it to `environment.commandName`).
|
|
778
804
|
*
|
|
779
805
|
* @example
|
|
@@ -2422,11 +2448,6 @@ export declare interface Environment {
|
|
|
2422
2448
|
* The appearance used by the Raycast application.
|
|
2423
2449
|
*/
|
|
2424
2450
|
appearance: "light" | "dark";
|
|
2425
|
-
/**
|
|
2426
|
-
* The theme used by the Raycast application.
|
|
2427
|
-
* @deprecated Use `appearance` instead
|
|
2428
|
-
*/
|
|
2429
|
-
theme: "light" | "dark";
|
|
2430
2451
|
/**
|
|
2431
2452
|
* The text size used by the Raycast application.
|
|
2432
2453
|
*/
|
|
@@ -2450,6 +2471,10 @@ export declare interface Environment {
|
|
|
2450
2471
|
* ```
|
|
2451
2472
|
*/
|
|
2452
2473
|
canAccess(api: unknown): boolean;
|
|
2474
|
+
/**
|
|
2475
|
+
* @deprecated Use `environment.appearance` instead
|
|
2476
|
+
*/
|
|
2477
|
+
theme: "light" | "dark";
|
|
2453
2478
|
/**
|
|
2454
2479
|
* @deprecated Use the top-level prop `launchContext` instead.
|
|
2455
2480
|
*/
|
|
@@ -4784,6 +4809,7 @@ export declare enum Icon {
|
|
|
4784
4809
|
Center = "center-16",
|
|
4785
4810
|
Check = "check-16",
|
|
4786
4811
|
CheckCircle = "check-circle-16",
|
|
4812
|
+
CheckList = "check-list-16",
|
|
4787
4813
|
CheckRosette = "check-rosette-16",
|
|
4788
4814
|
Checkmark = "checkmark-16",
|
|
4789
4815
|
ChessPiece = "chess-piece-16",
|
|
@@ -4875,6 +4901,7 @@ export declare enum Icon {
|
|
|
4875
4901
|
Hammer = "hammer-16",
|
|
4876
4902
|
HardDrive = "hard-drive-16",
|
|
4877
4903
|
Hashtag = "hashtag-16",
|
|
4904
|
+
Heading = "heading-16",
|
|
4878
4905
|
Headphones = "headphones-16",
|
|
4879
4906
|
Heart = "heart-16",
|
|
4880
4907
|
HeartDisabled = "heart-disabled-16",
|
|
@@ -5038,6 +5065,7 @@ export declare enum Icon {
|
|
|
5038
5065
|
Number97 = "number-97-16",
|
|
5039
5066
|
Number98 = "number-98-16",
|
|
5040
5067
|
Number99 = "number-99-16",
|
|
5068
|
+
NumberList = "number-list-16",
|
|
5041
5069
|
Paperclip = "paperclip-16",
|
|
5042
5070
|
Paragraph = "paragraph-16",
|
|
5043
5071
|
Patch = "patch-16",
|