@ever-works/everworks-playbooks-plugin 1.0.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.
@@ -0,0 +1,37 @@
1
+ import { IPlugin, IPlaybookProviderPlugin, PluginCategory, JsonSchema, PluginContext, PluginSettings, PlaybookCatalogListOptions, PlaybookCatalogListResult } from '@ever-works/plugin';
2
+ import { PlaybookCatalogEntry } from '@ever-works/contracts';
3
+
4
+ /**
5
+ * First-party `playbook-provider` (AW-21).
6
+ *
7
+ * Serves the built-in Playbook catalogue that ships with the build. Every
8
+ * entry is sanitised (HTML stripped, lengths capped) and then validated before
9
+ * it leaves the plugin, and an entry that fails validation is dropped with a
10
+ * warning rather than thrown — a bad entry must never take the catalogue down.
11
+ */
12
+ declare class EverWorksPlaybooksPlugin implements IPlugin, IPlaybookProviderPlugin {
13
+ private readonly source;
14
+ readonly id = "everworks-playbooks";
15
+ readonly name = "Ever Works Playbooks";
16
+ readonly version = "1.0.0";
17
+ readonly category: PluginCategory;
18
+ readonly capabilities: readonly string[];
19
+ readonly providerName = "Ever Works Playbooks";
20
+ readonly settingsSchema: JsonSchema;
21
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
22
+ private context?;
23
+ private catalogue;
24
+ constructor(source?: readonly unknown[]);
25
+ onLoad(context: PluginContext): Promise<void>;
26
+ onUnload(): Promise<void>;
27
+ isAvailable(_settings?: PluginSettings): boolean;
28
+ listPlaybooks(options: PlaybookCatalogListOptions): Promise<PlaybookCatalogListResult>;
29
+ getPlaybook(slug: string, _settings?: PluginSettings): Promise<PlaybookCatalogEntry | null>;
30
+ /** Validated, sanitised, slug-unique entries — computed once and reused. */
31
+ private entries;
32
+ }
33
+
34
+ /** The eight built-in playbooks, deeply frozen so no caller can mutate the shared catalogue. */
35
+ declare const BUILTIN_PLAYBOOKS: readonly PlaybookCatalogEntry[];
36
+
37
+ export { BUILTIN_PLAYBOOKS, EverWorksPlaybooksPlugin, EverWorksPlaybooksPlugin as default };
@@ -0,0 +1,37 @@
1
+ import { IPlugin, IPlaybookProviderPlugin, PluginCategory, JsonSchema, PluginContext, PluginSettings, PlaybookCatalogListOptions, PlaybookCatalogListResult } from '@ever-works/plugin';
2
+ import { PlaybookCatalogEntry } from '@ever-works/contracts';
3
+
4
+ /**
5
+ * First-party `playbook-provider` (AW-21).
6
+ *
7
+ * Serves the built-in Playbook catalogue that ships with the build. Every
8
+ * entry is sanitised (HTML stripped, lengths capped) and then validated before
9
+ * it leaves the plugin, and an entry that fails validation is dropped with a
10
+ * warning rather than thrown — a bad entry must never take the catalogue down.
11
+ */
12
+ declare class EverWorksPlaybooksPlugin implements IPlugin, IPlaybookProviderPlugin {
13
+ private readonly source;
14
+ readonly id = "everworks-playbooks";
15
+ readonly name = "Ever Works Playbooks";
16
+ readonly version = "1.0.0";
17
+ readonly category: PluginCategory;
18
+ readonly capabilities: readonly string[];
19
+ readonly providerName = "Ever Works Playbooks";
20
+ readonly settingsSchema: JsonSchema;
21
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
22
+ private context?;
23
+ private catalogue;
24
+ constructor(source?: readonly unknown[]);
25
+ onLoad(context: PluginContext): Promise<void>;
26
+ onUnload(): Promise<void>;
27
+ isAvailable(_settings?: PluginSettings): boolean;
28
+ listPlaybooks(options: PlaybookCatalogListOptions): Promise<PlaybookCatalogListResult>;
29
+ getPlaybook(slug: string, _settings?: PluginSettings): Promise<PlaybookCatalogEntry | null>;
30
+ /** Validated, sanitised, slug-unique entries — computed once and reused. */
31
+ private entries;
32
+ }
33
+
34
+ /** The eight built-in playbooks, deeply frozen so no caller can mutate the shared catalogue. */
35
+ declare const BUILTIN_PLAYBOOKS: readonly PlaybookCatalogEntry[];
36
+
37
+ export { BUILTIN_PLAYBOOKS, EverWorksPlaybooksPlugin, EverWorksPlaybooksPlugin as default };