shortcutkit 0.5.1 → 0.7.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/README.md +12 -7
- package/dist/generated/actions.d.ts +11713 -3484
- package/dist/generated/params.d.ts +3751 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.js +3646 -2163
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,23 +28,28 @@ files you are using.
|
|
|
28
28
|
|
|
29
29
|
- **Every built-in action, typed.** `actions.*` lists all 434 identifiers, with each action's
|
|
30
30
|
name, description, summary, output and parameter keys as hover documentation.
|
|
31
|
-
- **Apple's apps too.** 1,
|
|
31
|
+
- **Apple's apps too.** 1,441 App Intents actions from 77 Apple apps and system components,
|
|
32
32
|
Create Reminder, Create Note, Send Message, the System Settings toggles, under the keys the
|
|
33
33
|
Shortcuts app itself assigns them: `actions.reminders_create_reminder`. Enumeration cases are
|
|
34
34
|
typed, and the `AppIntentDescriptor` the file needs is added for you.
|
|
35
35
|
- **Parameters checked before you run anything.** `{ WFStoredContentGlobalValue: "yes" }` is a
|
|
36
36
|
compile error; a switch takes a boolean or a reference. Enumeration choices are suggested.
|
|
37
|
-
Any plain value slot also accepts an attachment, because that is how Shortcuts works.
|
|
37
|
+
Any plain value slot also accepts an attachment, because that is how Shortcuts works. Every
|
|
38
|
+
action has a named parameter type (`ShowresultParams`, `RemindersCreateReminderParams`), and
|
|
39
|
+
its output content types are on `ACTIONS[id].outputTypes` and on the returned `Action`.
|
|
38
40
|
- **Value helpers that match the engine's serialization.** `ref()` to another action's output,
|
|
39
41
|
`variable()`, `shortcutInput()`, `clipboard()`, `currentDate()`, `ask()`, `text()` for
|
|
40
|
-
strings with embedded references, and `picker()` for variable-picker parameters.
|
|
42
|
+
strings with embedded references, and `picker()` for variable-picker parameters. A bare
|
|
43
|
+
`ref()` given to a text parameter is wrapped into the token string the engine writes.
|
|
41
44
|
- **Control flow.** `if()` / `otherwise()` / `endIf()`, `repeatEach()` / `endRepeatEach()`,
|
|
42
45
|
`repeatCount()` / `endRepeatCount()` and `chooseFromMenu()` / `menuItem()` / `endMenu()`
|
|
43
46
|
manage the grouping identifiers for you.
|
|
44
47
|
- **App Intents from installed apps.** Any identifier outside the built-in set is accepted;
|
|
45
48
|
built-in identifiers and their parameter keys are also validated at run time.
|
|
46
|
-
- **Definitions and provenance.** `
|
|
47
|
-
parameter
|
|
49
|
+
- **Definitions and provenance.** `getAction(id)` describes any identifier, built-in or App
|
|
50
|
+
Intent: name, parameter keys and kinds, output, descriptor. `getDefinition(id)` returns the
|
|
51
|
+
engine's full record for a built-in (icon, keywords, parameter classes, required resources);
|
|
52
|
+
`provenance` says which build produced the data.
|
|
48
53
|
- **Signing.** `Shortcut.sign()` wraps `shortcuts sign` so the output imports on any device.
|
|
49
54
|
|
|
50
55
|
## How it compares
|
|
@@ -60,7 +65,7 @@ manager, whose actions are defined in that language.
|
|
|
60
65
|
|
|
61
66
|
shortcutkit is a library, not a language. You write TypeScript or Python you already know, and
|
|
62
67
|
the action catalogue comes from the Shortcuts engine rather than from a maintainer. All 434
|
|
63
|
-
built-in actions and 1,
|
|
68
|
+
built-in actions and 1,441 Apple App Intents are covered today, and the next macOS update is
|
|
64
69
|
one `bun run extract` away.
|
|
65
70
|
|
|
66
71
|
## Installation
|
|
@@ -165,7 +170,7 @@ python -m shortcutkit demo out.shortcut
|
|
|
165
170
|
to end, every field.
|
|
166
171
|
- [`docs/builtin-actions-reference.md`](docs/builtin-actions-reference.md): all 434 built-in
|
|
167
172
|
actions with their parameters.
|
|
168
|
-
- [`docs/apple-app-intents-reference.md`](docs/apple-app-intents-reference.md): the 1,
|
|
173
|
+
- [`docs/apple-app-intents-reference.md`](docs/apple-app-intents-reference.md): the 1,441 App
|
|
169
174
|
Intents actions of Apple's apps, by app, with parameter kinds and enumeration cases.
|
|
170
175
|
- [`docs/parameter-encodings.md`](docs/parameter-encodings.md): how each parameter class is
|
|
171
176
|
serialized.
|