@raycast/api 1.93.2 → 1.94.1
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/api/evals.js +2 -2
- package/dist/api/github.js +8 -8
- package/dist/api/raycast.js +1 -1
- package/dist/commands/build/index.js +3 -3
- package/dist/commands/develop/index.js +131 -131
- package/dist/commands/evals/index.js +11 -11
- package/dist/commands/lint/index.js +43 -43
- package/dist/commands/login/index.js +3 -3
- package/dist/commands/logout/index.js +1 -1
- package/dist/commands/migrate/index.js +1 -1
- package/dist/commands/profile/index.js +4 -4
- package/dist/commands/publish/index.js +178 -180
- package/dist/commands/pull-contributions/index.js +9 -9
- package/dist/commands/token/index.js +1 -1
- package/dist/commands/validate/index.js +11 -11
- package/dist/commands/version/index.js +1 -1
- package/dist/config.js +1 -1
- package/dist/types/manifest-schema.d.js +1 -1
- package/dist/utils/BaseCommand.js +1 -1
- package/dist/utils/esbuild-plugins/swift-files.js +1 -1
- package/dist/utils/evals/get-package-json.js +1 -1
- package/dist/utils/evals/render-results.js +2 -2
- package/dist/utils/output.js +1 -1
- package/dist/utils/publish/publish-to-public-repo.js +14 -16
- package/dist/utils/publish/publish-to-store.js +3 -3
- package/dist/utils/publish/pull-contributions.js +2 -2
- package/dist/utils/publish/setup-github-fork.js +2 -2
- package/dist/utils/raycast-app-communication.js +2 -2
- package/oclif.manifest.json +146 -107
- package/package.json +9 -9
- package/types/index.d.ts +30 -45
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
1
|
import { ForwardRefExoticComponent } from 'react';
|
|
4
2
|
import { FunctionComponent } from 'react';
|
|
5
|
-
import { JSX
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
4
|
import { PathLike } from 'fs';
|
|
7
5
|
import { ReactElement } from 'react';
|
|
8
6
|
import { ReactNode } from 'react';
|
|
@@ -502,7 +500,7 @@ export declare namespace AI {
|
|
|
502
500
|
Anthropic_Claude_Haiku = "anthropic-claude-haiku",
|
|
503
501
|
Anthropic_Claude_Opus = "anthropic-claude-opus",
|
|
504
502
|
Anthropic_Claude_Sonnet = "anthropic-claude-sonnet",
|
|
505
|
-
|
|
503
|
+
"Anthropic_Claude_Sonnet_3.7" = "anthropic-claude-3-7-sonnet-latest",
|
|
506
504
|
Mistral_Nemo = "mistral-nemo",
|
|
507
505
|
Mistral_Large = "mistral-large",
|
|
508
506
|
Mistral_Small = "mistral-small",
|
|
@@ -517,8 +515,6 @@ export declare namespace AI {
|
|
|
517
515
|
Perplexity_Sonar_Reasoning_Pro = "perplexity-sonar-reasoning-pro",
|
|
518
516
|
DeepSeek_R1 = "together-deepseek-ai/DeepSeek-R1",
|
|
519
517
|
"DeepSeek_R1_Distill_Llama_3.3_70B" = "groq-deepseek-r1-distill-llama-70b",
|
|
520
|
-
"Google_Gemini_1.5_Flash" = "google-gemini-1.5-flash",
|
|
521
|
-
"Google_Gemini_1.5_Pro" = "google-gemini-1.5-pro",
|
|
522
518
|
"Google_Gemini_2.0_Flash" = "google-gemini-2.0-flash",
|
|
523
519
|
"Google_Gemini_2.0_Flash_Thinking" = "google-gemini-2.0-flash-thinking",
|
|
524
520
|
xAI_Grok_2 = "xai-grok-2-latest",
|
|
@@ -552,31 +548,18 @@ export declare namespace AI {
|
|
|
552
548
|
"Groq_DeepSeek_R1_Distill_Llama_3.3_70B" = "groq-deepseek-r1-distill-llama-70b",
|
|
553
549
|
/** @deprecated Use `AI.Model.Together_DeepSeek_R1` instead */
|
|
554
550
|
"Together_DeepSeek_R1" = "together-deepseek-ai/DeepSeek-R1",
|
|
555
|
-
/** @deprecated Use `AI.Model
|
|
556
|
-
"MixtraL_8x7B" = "
|
|
551
|
+
/** @deprecated Use `AI.Model.Mistral_Nemo` instead */
|
|
552
|
+
"MixtraL_8x7B" = "mistral-nemo",
|
|
553
|
+
/** @deprecated Use `AI.Model["Google_Gemini_2.0_Flash"]` instead */
|
|
554
|
+
"Google_Gemini_1.5_Flash" = "google-gemini-1.5-flash",
|
|
555
|
+
/** @deprecated Use `AI.Model["Google_Gemini_2.0_Flash"]` instead */
|
|
556
|
+
"Google_Gemini_1.5_Pro" = "google-gemini-1.5-pro",
|
|
557
|
+
/** @deprecated Use `AI.Model.Mistral_Nemo` instead */
|
|
558
|
+
Mixtral_8x7B = "mistral-nemo"
|
|
557
559
|
}
|
|
560
|
+
|
|
558
561
|
/** @deprecated Use the `AI.Model` enum instead */
|
|
559
|
-
export type __DeprecatedModelUnion =
|
|
560
|
-
/** @deprecated */
|
|
561
|
-
"openai-gpt-3.5-turbo-instruct"
|
|
562
|
-
/** @deprecated */
|
|
563
|
-
| "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet"
|
|
564
|
-
/** @deprecated */
|
|
565
|
-
| "perplexity-sonar-medium-online"
|
|
566
|
-
/** @deprecated */
|
|
567
|
-
| "perplexity-sonar-small-online"
|
|
568
|
-
/** @deprecated */
|
|
569
|
-
| "llama2-70b" | "mixtral-8x7b"
|
|
570
|
-
/** @deprecated */
|
|
571
|
-
| "codellama-70b-instruct"
|
|
572
|
-
/** @deprecated */
|
|
573
|
-
| "gpt-3.5-turbo"
|
|
574
|
-
/** @deprecated */
|
|
575
|
-
| "gpt-3.5-turbo-instruct"
|
|
576
|
-
/** @deprecated */
|
|
577
|
-
| "gpt-4"
|
|
578
|
-
/** @deprecated */
|
|
579
|
-
| "text-davinci-003";
|
|
562
|
+
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" | "gpt-3.5-turbo" | "gpt-3.5-turbo-instruct" | "gpt-4" | "text-davinci-003";
|
|
580
563
|
}
|
|
581
564
|
|
|
582
565
|
export declare namespace Alert {
|
|
@@ -1766,7 +1749,7 @@ declare interface CreateSnippetProps {
|
|
|
1766
1749
|
/**
|
|
1767
1750
|
* See {@link Form.DatePicker}
|
|
1768
1751
|
*/
|
|
1769
|
-
declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<
|
|
1752
|
+
declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<DatePickerRef>> & DatePickerMembers;
|
|
1770
1753
|
|
|
1771
1754
|
declare interface DatePickerMembers {
|
|
1772
1755
|
/**
|
|
@@ -2119,7 +2102,7 @@ declare interface DetailProps_3 {
|
|
|
2119
2102
|
/**
|
|
2120
2103
|
* See {@link Form.Dropdown}
|
|
2121
2104
|
*/
|
|
2122
|
-
declare const Dropdown: ForwardRefExoticComponent<DropdownProps & RefAttributes<
|
|
2105
|
+
declare const Dropdown: ForwardRefExoticComponent<DropdownProps & RefAttributes<DropdownRef>> & DropdownMembers;
|
|
2123
2106
|
|
|
2124
2107
|
/**
|
|
2125
2108
|
* See {@link Grid.Dropdown}
|
|
@@ -5641,7 +5624,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
5641
5624
|
*/
|
|
5642
5625
|
quickLook?: {
|
|
5643
5626
|
name?: string | null;
|
|
5644
|
-
path:
|
|
5627
|
+
path: PathLike;
|
|
5645
5628
|
};
|
|
5646
5629
|
}
|
|
5647
5630
|
|
|
@@ -5687,7 +5670,7 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
5687
5670
|
*/
|
|
5688
5671
|
quickLook?: {
|
|
5689
5672
|
name?: string | null;
|
|
5690
|
-
path:
|
|
5673
|
+
path: PathLike;
|
|
5691
5674
|
};
|
|
5692
5675
|
/**
|
|
5693
5676
|
* An {@link ActionPanel} that will be updated for the selected grid item.
|
|
@@ -5726,7 +5709,6 @@ declare interface ItemProps_3 {
|
|
|
5726
5709
|
* @remarks
|
|
5727
5710
|
* Only available in maCOS Sonoma and later.
|
|
5728
5711
|
*
|
|
5729
|
-
* @remarks
|
|
5730
5712
|
* When used as an `alternate`, a {@link MenuBarExtra.Item} cannot specify its own shortcut shortcut. Instead, its
|
|
5731
5713
|
* shortcut will automatically be set to whatever its parent's shortcut is, plus the ⌥ (opt) modifier.
|
|
5732
5714
|
* Conversely, a {@link MenuBarExtra.Item} that provides an alternate cannot use ⌥ (opt) as a modifier. If it does,
|
|
@@ -5901,7 +5883,7 @@ declare interface LabelProps {
|
|
|
5901
5883
|
icon?: Image.ImageLike | undefined | null;
|
|
5902
5884
|
/**
|
|
5903
5885
|
* The text value of the item.
|
|
5904
|
-
* Specifying `color` will display the text in the provided color. Defaults to {@link Color.
|
|
5886
|
+
* Specifying `color` will display the text in the provided color. Defaults to {@link Color.PrimaryText}.
|
|
5905
5887
|
*/
|
|
5906
5888
|
text?: string | {
|
|
5907
5889
|
value: string;
|
|
@@ -6609,7 +6591,6 @@ declare interface LabelProps {
|
|
|
6609
6591
|
* @remarks
|
|
6610
6592
|
* An item that only provides only a `title` (and optionally `icon`) prop will be rendered as disabled. Use this to create section titles.
|
|
6611
6593
|
*
|
|
6612
|
-
* @remarks
|
|
6613
6594
|
* An item that provides an `onAction` prop alongside `title` (and optionally `icon`) will _not_ be rendered as
|
|
6614
6595
|
* disabled. When users click this item in the menu bar, the action handler will be executed.
|
|
6615
6596
|
*
|
|
@@ -6834,7 +6815,7 @@ declare interface LabelProps {
|
|
|
6834
6815
|
redirectMethod: RedirectMethod;
|
|
6835
6816
|
providerName: string;
|
|
6836
6817
|
providerIcon?: Image.ImageLike;
|
|
6837
|
-
providerId
|
|
6818
|
+
providerId: string;
|
|
6838
6819
|
description?: string;
|
|
6839
6820
|
private resolvesOnRedirect?;
|
|
6840
6821
|
private isAuthorizing;
|
|
@@ -6936,7 +6917,9 @@ declare interface LabelProps {
|
|
|
6936
6917
|
* Optional additional parameters for the authorization request.
|
|
6937
6918
|
* Note that some providers require additional parameters, for example to obtain long-lived refresh tokens.
|
|
6938
6919
|
*/
|
|
6939
|
-
extraParameters?:
|
|
6920
|
+
extraParameters?: {
|
|
6921
|
+
[key: string]: string;
|
|
6922
|
+
};
|
|
6940
6923
|
}
|
|
6941
6924
|
/**
|
|
6942
6925
|
* Values of {@link OAuth.AuthorizationRequest}.
|
|
@@ -7535,12 +7518,14 @@ declare interface LabelProps {
|
|
|
7535
7518
|
/**
|
|
7536
7519
|
* @deprecated Use {@link getPreferenceValues} instead.
|
|
7537
7520
|
*/
|
|
7538
|
-
export declare const preferences:
|
|
7521
|
+
export declare const preferences: Preferences;
|
|
7539
7522
|
|
|
7540
7523
|
/**
|
|
7541
7524
|
* A record type holding the preferences (entered in Raycast Preferences) that have been passed to the command.
|
|
7542
7525
|
*/
|
|
7543
|
-
declare type Preferences_2 =
|
|
7526
|
+
declare type Preferences_2 = {
|
|
7527
|
+
[name: string]: Preference_2;
|
|
7528
|
+
};
|
|
7544
7529
|
|
|
7545
7530
|
/**
|
|
7546
7531
|
* Values of preference items.
|
|
@@ -8055,7 +8040,7 @@ declare interface LabelProps {
|
|
|
8055
8040
|
* See {@link Action.SubmitForm.Props}
|
|
8056
8041
|
*/
|
|
8057
8042
|
declare const SubmitForm: {
|
|
8058
|
-
<T extends
|
|
8043
|
+
<T extends Form.Values>(props: SubmitFormProps<T>): JSX.Element;
|
|
8059
8044
|
displayName: string;
|
|
8060
8045
|
};
|
|
8061
8046
|
|
|
@@ -8063,7 +8048,7 @@ declare interface LabelProps {
|
|
|
8063
8048
|
* @deprecated Use {@link Action.SubmitForm} instead.
|
|
8064
8049
|
*/
|
|
8065
8050
|
export declare const SubmitFormAction: {
|
|
8066
|
-
<T extends
|
|
8051
|
+
<T extends Form.Values>(props: SubmitFormProps<T>): JSX.Element;
|
|
8067
8052
|
displayName: string;
|
|
8068
8053
|
};
|
|
8069
8054
|
|
|
@@ -8161,7 +8146,7 @@ declare interface LabelProps {
|
|
|
8161
8146
|
/**
|
|
8162
8147
|
* See {@link Form.TagPicker}
|
|
8163
8148
|
*/
|
|
8164
|
-
declare const TagPicker: ForwardRefExoticComponent<TagPickerProps & RefAttributes<
|
|
8149
|
+
declare const TagPicker: ForwardRefExoticComponent<TagPickerProps & RefAttributes<TagPickerRef>> & TagPickerMembers;
|
|
8165
8150
|
|
|
8166
8151
|
/**
|
|
8167
8152
|
* See {@link Form.TagPicker.Item}
|
|
@@ -8541,7 +8526,7 @@ declare interface LabelProps {
|
|
|
8541
8526
|
/**
|
|
8542
8527
|
* Moves a file or directory to the Trash.
|
|
8543
8528
|
*
|
|
8544
|
-
* @param
|
|
8529
|
+
* @param path - The item or items to move to the trash.
|
|
8545
8530
|
* @returns A Promise that resolves when all files are moved to the trash.
|
|
8546
8531
|
*
|
|
8547
8532
|
* @example
|
|
@@ -8689,7 +8674,7 @@ declare interface LabelProps {
|
|
|
8689
8674
|
export declare function useNavigation(): Navigation;
|
|
8690
8675
|
|
|
8691
8676
|
/** @deprecated Use `useAI` from `@raycast/utils` */
|
|
8692
|
-
export declare const useUnstableAI: () =>
|
|
8677
|
+
export declare const useUnstableAI: () => undefined;
|
|
8693
8678
|
|
|
8694
8679
|
export declare namespace WindowManagement {
|
|
8695
8680
|
/**
|