@enfocussw/switch-scripting-context 25.11.0-beta.17 → 25.11.0-beta.18
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/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/docs/switch-project/script-declaration.md +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this package are documented here. Format follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [25.11.0-beta.18] - 2026-09-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- The script declaration doc no longer tells agents to bump `Version` on every declaration change.
|
|
13
|
+
It now says to bump once per release and keep an unreleased number while editing, matching the
|
|
14
|
+
Appstore guidelines. It also notes that SwitchScripter only accepts minor versions for apps.
|
|
15
|
+
|
|
8
16
|
## [25.11.0-beta.17] - 2026-09-11
|
|
9
17
|
|
|
10
18
|
### Changed
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ AI coding assistant context for [Enfocus Switch](https://www.enfocus.com/en/swit
|
|
|
4
4
|
|
|
5
5
|
Installs curated API reference docs and generates config files for 8 AI coding agents (Claude Code, GitHub Copilot, Cursor, Codex CLI/OpenCode, Gemini CLI, Windsurf, Zed, and Cline) so AI assistants understand the Switch scripting API out of the box.
|
|
6
6
|
|
|
7
|
-
See [CHANGELOG.md](https://cdn.jsdelivr.net/npm/@enfocussw/switch-scripting-context@25.11.0-beta.
|
|
7
|
+
See [CHANGELOG.md](https://cdn.jsdelivr.net/npm/@enfocussw/switch-scripting-context@25.11.0-beta.18/CHANGELOG.md) (also included in this package) for what's changed between versions.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -84,7 +84,7 @@ A few things this gets you without asking for them by name:
|
|
|
84
84
|
properties (app path/licence) are off-limits and left to SwitchScripter's GUI instead.
|
|
85
85
|
|
|
86
86
|
Re-run `init` after upgrading this package so the copied docs and generated config files catch up.
|
|
87
|
-
See [CHANGELOG.md](https://cdn.jsdelivr.net/npm/@enfocussw/switch-scripting-context@25.11.0-beta.
|
|
87
|
+
See [CHANGELOG.md](https://cdn.jsdelivr.net/npm/@enfocussw/switch-scripting-context@25.11.0-beta.18/CHANGELOG.md) for what changed.
|
|
88
88
|
|
|
89
89
|
## Options
|
|
90
90
|
|
|
@@ -22,8 +22,10 @@ documented below — you can edit it directly.
|
|
|
22
22
|
- `Name` is the script's stable ID — never change it on an existing script (it's used as the flow
|
|
23
23
|
element type and referenced by installed flows). `DisplayName`, tooltips, defaults, adding/removing
|
|
24
24
|
custom properties, and connection topology are all safe to change directly.
|
|
25
|
-
-
|
|
26
|
-
Switch
|
|
25
|
+
- `Version` identifies a released build, not an edit. Bump it only when the current value has
|
|
26
|
+
already been released (installed on a customer's or production Switch, or published on the
|
|
27
|
+
Appstore). If the current value was never released, keep editing under it; don't bump per
|
|
28
|
+
change. See the `Version` row below for format and what Switch does with it.
|
|
27
29
|
- Custom property tag names must match `^[A-Za-z][A-Za-z0-9]*$`, must not start with `xml`
|
|
28
30
|
(case-insensitive), and must not collide with a [reserved tag](#reserved-tag-names) below. Switch
|
|
29
31
|
does **not** sanitize or rewrite bad tag names on load — it just fails to work correctly.
|
|
@@ -63,7 +65,7 @@ value is non-string (see the table); an empty string field can omit `Type`.
|
|
|
63
65
|
|---|---|---|
|
|
64
66
|
| `Name` | string | Stable script ID — **never change on an existing script**. Becomes the flow element `Type`. |
|
|
65
67
|
| `DisplayName` | string | Shown in Switch. Empty falls back to `Name`. A `~` splits "Vendor~Element" — Switch shows the part after `~` as the short name and the whole string (space-joined) as the full name. |
|
|
66
|
-
| `Version` | number | Format `[1-9][0-9]*(\.(0\|[1-9][0-9]*))*`, e.g. `1`, `2.1`. Bump
|
|
68
|
+
| `Version` | number | Format `[1-9][0-9]*(\.(0\|[1-9][0-9]*))*`, e.g. `1`, `2.1`. SwitchScripter accepts a whole number only for a script and at most one minor level for an app (`2.1`); it resets anything else. Bump once per release, not per edit (see [Agent editing policy](#agent-editing-policy)). Each flow records the version of the element it uses; Switch compares that recorded value with `UpgradeMaximumVersion` to decide whether to show `FlowUpgradeWarning`. |
|
|
67
69
|
| `Keywords` | string | Space/comma/semicolon-separated. Elements pane search. |
|
|
68
70
|
| `Tooltip` | string | Elements pane tooltip. |
|
|
69
71
|
| `IncomingConnections` | `Yes` \| `No` | Add `RequireAtLeastOne="Yes"` when `Yes`. When `Yes`, the script must implement `jobArrived` (optionally `timerFired` too); when `No`, it must implement `timerFired` instead — see [entry-points.md](../switch-api/entry-points.md#job-processing). |
|
package/package.json
CHANGED