shortcutkit 0.6.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 +7 -3
- package/dist/generated/actions.d.ts +1875 -0
- package/dist/generated/params.d.ts +3751 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1887 -1877
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,9 @@ files you are using.
|
|
|
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
42
|
strings with embedded references, and `picker()` for variable-picker parameters. A bare
|
|
@@ -44,8 +46,10 @@ files you are using.
|
|
|
44
46
|
manage the grouping identifiers for you.
|
|
45
47
|
- **App Intents from installed apps.** Any identifier outside the built-in set is accepted;
|
|
46
48
|
built-in identifiers and their parameter keys are also validated at run time.
|
|
47
|
-
- **Definitions and provenance.** `
|
|
48
|
-
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.
|
|
49
53
|
- **Signing.** `Shortcut.sign()` wraps `shortcuts sign` so the output imports on any device.
|
|
50
54
|
|
|
51
55
|
## How it compares
|