@monosmith/plugin-sdk 2.0.0-beta.3 → 2.0.0-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monosmith/plugin-sdk",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "The TypeScript SDK for writing smith plugins: the protocol's types, the serve loop, a test host, the conformance checks, templating and key-order-keeping JSON editing. No runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1149,6 +1149,13 @@ export const protocolSchema = {
1149
1149
  "$ref": "#/$defs/DeclaredProject"
1150
1150
  },
1151
1151
  "description": "Declared are the projects smith.toml declares for this plugin's language ([projects.<name>] with a root and a language): folders with no manifest of their own, such as a program that is a package of the Go module above it. The plugin describes each one in its result, or answers with an error saying why it cannot."
1152
+ },
1153
+ "settings": {
1154
+ "type": "object",
1155
+ "additionalProperties": {
1156
+ "type": "object"
1157
+ },
1158
+ "description": "Settings are this plugin's settings for projects, by project name, from smith.toml [projects.<project>.settings.<plugin>]. They reach the plugin here because the tasks it describes may depend on them (the Go plugin's build tags). A project with no settings is absent."
1152
1159
  }
1153
1160
  },
1154
1161
  "required": [
@@ -525,6 +525,13 @@ export interface DiscoverParams {
525
525
  * an error saying why it cannot.
526
526
  */
527
527
  declared?: DeclaredProject[];
528
+ /**
529
+ * Settings are this plugin's settings for projects, by project name, from smith.toml
530
+ * [projects.<project>.settings.<plugin>]. They reach the plugin here because the tasks it
531
+ * describes may depend on them (the Go plugin's build tags). A project with no settings is
532
+ * absent.
533
+ */
534
+ settings?: Record<string, Record<string, unknown>>;
528
535
  }
529
536
  /**
530
537
  * DiscoverResult describes every manifest that is a project of this plugin. A manifest the plugin