@quartal/hub-plugin 0.2.0 → 0.3.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 CHANGED
@@ -9,10 +9,11 @@ Hub plugin.
9
9
  (`@quartal/hub-plugin/channel-1.0.schema.json`, regenerate with `pnpm schema`) and the checks
10
10
  (`parseChannelDefinition`).
11
11
  - **The Hub settings of a plugin** — `hubPluginSettings('hub' | 'app', …)`: sign-in with Quartal
12
- Hub, and what the plugin's web site serves (`site` in `qrtl.config.json`). A `hub` plugin's start
13
- page is `HUB_PLUGIN_PAGE`, `{hub}/app/plugins/hosted/{name}`: the plugin host fills in its Hub.
12
+ Hub, and what the plugin's web site serves (`site` in `qrtl.config.json`).
14
13
  - **A new channel plugin** — `channelPluginFiles(…)`: the definition, the default agent, the Hub
15
- settings and a README, written over a plugin project.
14
+ settings, the channel's own page (`templates/channel-page/`, written into
15
+ `src/channelPageTemplate.generated.ts` by `pnpm template`) and a README, written over a plugin
16
+ project. The page: [docs/channel-pages.md](../../docs/channel-pages.md).
16
17
 
17
18
  How channels use it: [docs/channel-definitions.md](../../docs/channel-definitions.md). The package
18
19
  is private to this workspace for now and exports its TypeScript source.
package/dist/mod.d.ts CHANGED
@@ -537,6 +537,10 @@ declare const channelDefinitionSchema: {
537
537
  readonly additionalProperties: false;
538
538
  };
539
539
  //#endregion
540
+ //#region src/channelPageTemplate.generated.d.ts
541
+ /** The files of a channel's own page, by path in the plugin (`templates/channel-page/`). */
542
+ declare const CHANNEL_PAGE_FILES: Readonly<Record<string, string>>;
543
+ //#endregion
540
544
  //#region src/channelPluginFiles.d.ts
541
545
  /** What a new channel plugin starts with. */
542
546
  interface ChannelPluginOptions {
@@ -562,10 +566,20 @@ interface ChannelPluginOptions {
562
566
  plugins?: ChannelAgentPlugin[];
563
567
  /** The plugin's `qrtl.config.json` as the scaffold wrote it; title and description are kept from the options. */
564
568
  baseConfig?: Record<string, unknown>;
569
+ /** The plugin's `package.json` as the scaffold wrote it; the page's dependencies are added. */
570
+ basePackage?: Record<string, unknown>;
565
571
  }
572
+ /**
573
+ * What the channel's own page needs (`templates/channel-page/`): an Astro site with Vue, the chat
574
+ * of `@quartal/ui-messages` and the components of `@quartal/ui-core`. Raise the `@quartal/*` ranges
575
+ * when a release of those packages is what the template needs.
576
+ */
577
+ declare const CHANNEL_PAGE_DEPENDENCIES: Readonly<Record<string, string>>;
566
578
  /**
567
579
  * The files of a new channel plugin, by path: `com.quartal.hub/channel.json`, `agents/default.md`,
568
- * `qrtl.config.json` (Hub sign-in, the start page in the Hub) and `README.md`.
580
+ * `qrtl.config.json` (Hub sign-in, the channel's page as the start page), `package.json` (the page's
581
+ * dependencies), the page ({@link CHANNEL_PAGE_FILES}: the chat with the channel's agents) and
582
+ * `README.md`.
569
583
  * @param options What the channel starts with.
570
584
  */
571
585
  declare function channelPluginFiles(options: ChannelPluginOptions): Record<string, string>;
@@ -622,36 +636,24 @@ declare function isTimeZone(timeZone: string): boolean;
622
636
  /**
623
637
  * What a Hub plugin's web site is.
624
638
  *
625
- * - `hub` — no pages of its own: `/` sends the browser to the plugin's page in the Hub
626
- * ({@link HUB_PLUGIN_PAGE}).
627
- * - `app` — end-user pages (`src/pages/**`, container pages for widgets); every page needs a sign-in
639
+ * - `channel` — a channel's own page (`src/pages/`), as its customers see it. Anyone may open it:
640
+ * the page signs in through the Hub, which hands over the session (`connectHubSession` of
641
+ * `@quartal/ui-messages`), and reads and writes through the Messages API as that person.
642
+ * - `app` — end-user pages (`src/pages/**`, container pages for widgets); every page needs a sign-in
628
643
  * with a Hub account, except the `publicPages`.
629
644
  */
630
- type HubSiteKind = 'hub' | 'app';
645
+ type HubSiteKind = 'channel' | 'app';
631
646
  /** The `auth` and `site` settings of a Hub plugin (the subset of `qrtl.config` they set). */
632
647
  interface HubPluginSettings {
633
648
  /** Sign-in is always Quartal Hub. */
634
649
  auth: 'quartal-hub';
635
650
  /** The web site (`qrtl.config` `site`). */
636
651
  site: {
637
- /** What `/` serves. */root: 'pages' | {
638
- redirect: string;
639
- }; /** Who may open the pages. */
652
+ /** What `/` serves: the plugin's own pages. */root: 'pages'; /** Who may open the pages. */
640
653
  access?: 'user'; /** Pages anyone may open (path globs). */
641
654
  public?: string[];
642
655
  };
643
656
  }
644
- /**
645
- * The placeholder of the Hub's address in a plugin's settings. The plugin host replaces it with the
646
- * address of the Hub it serves (`HOST_HUB_URL`), so the same plugin works from any Hub and moves
647
- * between repositories as it is.
648
- */
649
- declare const HUB_URL_PLACEHOLDER = "{hub}";
650
- /**
651
- * A plugin's page in the Hub, as the start page of a `hub` plugin: `{hub}` is the Hub's address
652
- * (filled by the plugin host), `{name}` the plugin's id (filled by the plugin runtime).
653
- */
654
- declare const HUB_PLUGIN_PAGE = "{hub}/app/plugins/hosted/{name}";
655
657
  /** Options of {@link hubPluginSettings}. */
656
658
  interface HubPluginSettingsOptions {
657
659
  /** For `app`: the pages anyone may open, as path globs (`/register/**`), e.g. a registration form. */
@@ -680,4 +682,4 @@ type ChannelDefinitionResult = {
680
682
  */
681
683
  declare function parseChannelDefinition(input: string | unknown, ownPluginId: string): ChannelDefinitionResult;
682
684
  //#endregion
683
- export { CHANNEL_AGENT_TRIGGERS, CHANNEL_BASE_STATUSES, CHANNEL_DEFINITION_FILE, CHANNEL_DEFINITION_SCHEMA_URL, CHANNEL_KINDS, CHANNEL_SCHEDULE_TARGETS, ChannelAgentDefinition, ChannelAgentPlugin, ChannelAgentSchedule, ChannelAgentTrigger, ChannelBaseStatus, ChannelDefinition, ChannelDefinitionResult, ChannelKind, ChannelPluginAuth, ChannelPluginOptions, ChannelScheduleTarget, ChannelStatusDefinition, CronSchedule, DEFAULT_CHANNEL_AGENT, DEFAULT_SCHEDULE_TIME_ZONE, HUB_EXTENSION_NAMESPACE, HUB_LANGUAGES, HUB_PLUGIN_PAGE, HUB_TOOLS, HUB_TOOL_GROUPS, HUB_TOOL_SETTINGS, HUB_URL_PLACEHOLDER, HubLanguage, HubPluginSettings, HubPluginSettingsOptions, HubSiteKind, HubToolGroup, HubToolInfo, HubToolLevel, HubToolSetting, LocalizedText, ResolvedAgentRef, channelDefinitionSchema, channelPluginFiles, cronError, hubPluginSettings, hubTool, isHubToolKey, isLocalizedText, isTimeZone, localize, parseChannelDefinition, parseCron, resolveAgentRef, resolveHubTools };
685
+ export { CHANNEL_AGENT_TRIGGERS, CHANNEL_BASE_STATUSES, CHANNEL_DEFINITION_FILE, CHANNEL_DEFINITION_SCHEMA_URL, CHANNEL_KINDS, CHANNEL_PAGE_DEPENDENCIES, CHANNEL_PAGE_FILES, CHANNEL_SCHEDULE_TARGETS, ChannelAgentDefinition, ChannelAgentPlugin, ChannelAgentSchedule, ChannelAgentTrigger, ChannelBaseStatus, ChannelDefinition, ChannelDefinitionResult, ChannelKind, ChannelPluginAuth, ChannelPluginOptions, ChannelScheduleTarget, ChannelStatusDefinition, CronSchedule, DEFAULT_CHANNEL_AGENT, DEFAULT_SCHEDULE_TIME_ZONE, HUB_EXTENSION_NAMESPACE, HUB_LANGUAGES, HUB_TOOLS, HUB_TOOL_GROUPS, HUB_TOOL_SETTINGS, HubLanguage, HubPluginSettings, HubPluginSettingsOptions, HubSiteKind, HubToolGroup, HubToolInfo, HubToolLevel, HubToolSetting, LocalizedText, ResolvedAgentRef, channelDefinitionSchema, channelPluginFiles, cronError, hubPluginSettings, hubTool, isHubToolKey, isLocalizedText, isTimeZone, localize, parseChannelDefinition, parseCron, resolveAgentRef, resolveHubTools };
package/dist/mod.js CHANGED
@@ -321,19 +321,19 @@ const channelDefinitionSchema = {
321
321
  additionalProperties: false
322
322
  };
323
323
  //#endregion
324
+ //#region src/channelPageTemplate.generated.ts
325
+ /** The files of a channel's own page, by path in the plugin (`templates/channel-page/`). */
326
+ const CHANNEL_PAGE_FILES = {
327
+ "astro.config.mjs": "import { defineConfig } from \"astro/config\";\nimport node from \"@astrojs/node\";\nimport vue from \"@astrojs/vue\";\nimport qrtlPlugin from \"@quartal/plugin/astro\";\n\nexport default defineConfig({\n output: \"server\",\n adapter: node({ mode: \"standalone\" }),\n // The channel's page is a Vue app (src/app/): vueApp.ts sets it up for every island.\n integrations: [vue({ appEntrypoint: \"/src/app/vueApp.ts\" }), qrtlPlugin()],\n});\n",
328
+ "src/app/channel-page.css": "/*\n * The channel page's own styles (dev-time staging: move them to a skin when they settle).\n * Every rule nests under the page's root class.\n */\n.channel-page {\n display: flex;\n flex-direction: column;\n height: 100vh;\n background: var(--bs-body-bg);\n\n /* Signed in at the page's own address: the guard holds the header and the body. */\n .channel-page-guard {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n }\n\n .channel-page-header {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n border-bottom: 1px solid var(--bs-border-color);\n }\n\n .channel-page-loading {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n }\n\n .channel-page-body {\n display: flex;\n flex: 1;\n min-height: 0;\n }\n\n .channel-page-threads {\n width: 280px;\n flex-shrink: 0;\n overflow-y: auto;\n border-right: 1px solid var(--bs-border-color);\n }\n\n .channel-page-chat {\n flex: 1;\n min-width: 0;\n }\n\n @media (max-width: 767.98px) {\n .channel-page-threads {\n display: none;\n }\n }\n}\n",
329
+ "src/app/ChannelPage.vue": "<script setup lang=\"ts\">\nimport { onMounted, ref, watch } from \"vue\";\nimport {\n completeSignin,\n configureClient,\n configureSignin,\n connectHubSession,\n isSigninCallback,\n loadTexts,\n QActAsCompany,\n QAuthGuard,\n QChannelChat,\n QChannelThreadList,\n} from \"@quartal/ui-messages\";\n\n/**\n * The channel's page: the company's conversations on the left and the chat on the right.\n *\n * Opened at its own address, the page signs the person in with Quartal IAM (`QAuthGuard`) and they\n * pick the customer company they act as (`QActAsCompany`): a customer's user their own company, an\n * advisor any customer of their teams, to see the page as that customer would. `?company=<id>`\n * picks the company. In the Hub's customer's view the page is in a frame and takes the Hub's\n * session instead (`connectHubSession`).\n */\nconst props = defineProps<{\n /** The channel. */\n channelId: string;\n /** The channel's name. */\n title: string;\n /** The Hub's address: a frame takes its session only from it. */\n hubUrl: string;\n /** The Messages API's address. */\n apiUrl: string;\n /** Quartal IAM's realm (issuer). */\n oidcAuthority: string;\n /** The OIDC client of the browser apps. */\n oidcClientId: string;\n}>();\n\n/** `hub`: in the Hub's frame, the company comes with the session; `own`: signed in here. */\nconst mode = ref<\"connecting\" | \"hub\" | \"own\">(\"connecting\");\nconst companyId = ref<string | null>(new URLSearchParams(location.search).get(\"company\"));\n/** The open conversation; null starts a new one. */\nconst threadId = ref<string | null>(null);\nconst threadList = ref<InstanceType<typeof QChannelThreadList> | null>(null);\n\nconfigureClient({ messagesApiUrl: props.apiUrl, oidcAuthority: props.oidcAuthority, oidcClientId: props.oidcClientId });\nconfigureSignin(`${location.origin}/`);\n\n// The chosen company is in the address, so a reload keeps it.\nwatch(companyId, (id) => {\n const url = new URL(location.href);\n if (id) url.searchParams.set(\"company\", id);\n else url.searchParams.delete(\"company\");\n history.replaceState(history.state, \"\", url);\n threadId.value = null;\n});\n\nonMounted(async () => {\n if (window.parent !== window) {\n const session = await connectHubSession({ hubUrl: props.hubUrl });\n if (session) {\n companyId.value = session.companyId;\n mode.value = \"hub\";\n return;\n }\n }\n if (isSigninCallback()) await completeSignin();\n await loadTexts();\n mode.value = \"own\";\n});\n<\/script>\n\n<template>\n <div class=\"channel-page\">\n <div v-if=\"mode === 'connecting'\" class=\"channel-page-loading\">\n <div class=\"spinner-border text-body-secondary\" role=\"status\"></div>\n </div>\n <template v-else-if=\"mode === 'hub'\">\n <header class=\"channel-page-header\">\n <h1 class=\"h5 mb-0\">{{ title }}</h1>\n </header>\n <div v-if=\"companyId\" class=\"channel-page-body\">\n <aside class=\"channel-page-threads\">\n <QChannelThreadList ref=\"threadList\" v-model:thread-id=\"threadId\" :channel-id=\"channelId\" :company-id=\"companyId\" />\n </aside>\n <main class=\"channel-page-chat\">\n <QChannelChat v-model:thread-id=\"threadId\" :channel-id=\"channelId\" :company-id=\"companyId\" @created=\"threadList?.reload()\" />\n </main>\n </div>\n </template>\n <QAuthGuard v-else class=\"channel-page-guard\">\n <header class=\"channel-page-header\">\n <h1 class=\"h5 mb-0 me-auto\">{{ title }}</h1>\n <QActAsCompany v-model=\"companyId\" :channel-id=\"channelId\" />\n </header>\n <div v-if=\"companyId\" :key=\"companyId\" class=\"channel-page-body\">\n <aside class=\"channel-page-threads\">\n <QChannelThreadList ref=\"threadList\" v-model:thread-id=\"threadId\" :channel-id=\"channelId\" :company-id=\"companyId\" />\n </aside>\n <main class=\"channel-page-chat\">\n <QChannelChat v-model:thread-id=\"threadId\" :channel-id=\"channelId\" :company-id=\"companyId\" @created=\"threadList?.reload()\" />\n </main>\n </div>\n </QAuthGuard>\n </div>\n</template>\n",
330
+ "src/app/vueApp.ts": "import type { App } from \"vue\";\nimport { FakeSessionProvider, QUiCore, setSessionProvider, UiHelpers } from \"@quartal/ui-core\";\n\n// Styles: the Quartal skin (below), the chat's staging styles and this page's own.\nimport \"@quartal/ui-messages/dev-time-styles.css\";\nimport \"./channel-page.css\";\n\n/** Sets up the Vue app of every island on the page (`appEntrypoint` in astro.config.mjs). */\nexport default (app: App): void => {\n // The skin: Bootstrap and the Quartal look. Another skin of https://cdn.quartal.com/skins/ by name.\n UiHelpers.setCssLink(\"quartalSkin\", \"default\");\n // @quartal/ui-core's components read a session; the person's own comes from the Hub.\n const session = new FakeSessionProvider();\n setSessionProvider(session);\n session.login();\n app.use(QUiCore as never, { addBootstrapScripts: true, addMaterialSymbols: true });\n};\n",
331
+ "src/pages/index.astro": "---\n/**\n * The channel's own page, as its customers see it: by default the chat with the channel's agents.\n * The person signs in here, or the Hub's customer's view frames it with its session\n * (src/app/ChannelPage.vue).\n * The plugin host tells where the Hub and the Messages API are (HUB_URL, MESSAGES_API_URL).\n */\nimport ChannelPage from \"../app/ChannelPage.vue\";\nimport pkg from \"../../package.json\";\nimport config from \"../../qrtl.config.json\";\n\n// The plugin is the channel's own: `ch-<id>` is the plugin of the channel `<id>`.\nconst channelId = pkg.name.startsWith(\"ch-\") ? pkg.name.slice(3) : pkg.name;\nconst hubUrl = process.env.HUB_URL ?? \"https://hub.test.qrtl.com\";\nconst apiUrl = process.env.MESSAGES_API_URL ?? \"https://hub-api.test.qrtl.com\";\n// Quartal IAM: the page signs the person in itself when opened at its own address.\nconst oidcAuthority = process.env.HUB_OIDC_AUTHORITY ?? \"https://iam2026.test.qrtl.com/auth/realms/quartal\";\nconst oidcClientId = process.env.HUB_OIDC_CLIENT_ID ?? \"quartal-messages-web\";\n---\n<!doctype html>\n<html lang=\"fi\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>{config.title}</title>\n </head>\n <body>\n <ChannelPage\n client:only=\"vue\"\n channelId={channelId}\n title={config.title}\n hubUrl={hubUrl}\n apiUrl={apiUrl}\n oidcAuthority={oidcAuthority}\n oidcClientId={oidcClientId}\n />\n </body>\n</html>\n",
332
+ "src/tools/mod.ts": "// The channel's own tools: every class exported here is analyzed by @quartal/plugin, and each\n// public method becomes an MCP tool and a REST action that the channel's agents and pages can call.\n// Add your tool files and export them here, e.g.:\n// export * from \"./Orders.ts\";\nexport {};\n"
333
+ };
334
+ //#endregion
324
335
  //#region src/hubSite.ts
325
336
  /**
326
- * The placeholder of the Hub's address in a plugin's settings. The plugin host replaces it with the
327
- * address of the Hub it serves (`HOST_HUB_URL`), so the same plugin works from any Hub and moves
328
- * between repositories as it is.
329
- */
330
- const HUB_URL_PLACEHOLDER = "{hub}";
331
- /**
332
- * A plugin's page in the Hub, as the start page of a `hub` plugin: `{hub}` is the Hub's address
333
- * (filled by the plugin host), `{name}` the plugin's id (filled by the plugin runtime).
334
- */
335
- const HUB_PLUGIN_PAGE = `${HUB_URL_PLACEHOLDER}/app/plugins/hosted/{name}`;
336
- /**
337
337
  * The `auth` and `site` settings for a Hub plugin's `qrtl.config.json`.
338
338
  * @param kind What the web site is.
339
339
  * @param options The public pages.
@@ -349,7 +349,7 @@ function hubPluginSettings(kind, options = {}) {
349
349
  };
350
350
  return {
351
351
  auth: "quartal-hub",
352
- site: { root: { redirect: HUB_PLUGIN_PAGE } }
352
+ site: { root: "pages" }
353
353
  };
354
354
  }
355
355
  //#endregion
@@ -383,12 +383,29 @@ function isLocalizedText(value) {
383
383
  }
384
384
  //#endregion
385
385
  //#region src/channelPluginFiles.ts
386
+ /**
387
+ * What the channel's own page needs (`templates/channel-page/`): an Astro site with Vue, the chat
388
+ * of `@quartal/ui-messages` and the components of `@quartal/ui-core`. Raise the `@quartal/*` ranges
389
+ * when a release of those packages is what the template needs.
390
+ */
391
+ const CHANNEL_PAGE_DEPENDENCIES = {
392
+ "@astrojs/node": "^11.1.14",
393
+ "@astrojs/vue": "^7.1.6",
394
+ "@quartal/plugin": "2.0.0-beta.0",
395
+ "@quartal/ui-core": "^1.6.0",
396
+ "@quartal/ui-messages": "^0.3.0",
397
+ astro: "^7.4.13",
398
+ vue: "^3.5.32",
399
+ "vue-router": "^5.0.4"
400
+ };
386
401
  function yamlString(value) {
387
402
  return JSON.stringify(value);
388
403
  }
389
404
  /**
390
405
  * The files of a new channel plugin, by path: `com.quartal.hub/channel.json`, `agents/default.md`,
391
- * `qrtl.config.json` (Hub sign-in, the start page in the Hub) and `README.md`.
406
+ * `qrtl.config.json` (Hub sign-in, the channel's page as the start page), `package.json` (the page's
407
+ * dependencies), the page ({@link CHANNEL_PAGE_FILES}: the chat with the channel's agents) and
408
+ * `README.md`.
392
409
  * @param options What the channel starts with.
393
410
  */
394
411
  function channelPluginFiles(options) {
@@ -423,13 +440,23 @@ function channelPluginFiles(options) {
423
440
  ...options.baseConfig ?? {},
424
441
  title,
425
442
  description: description || `The channel ${title}.`,
426
- ...hubPluginSettings("hub")
443
+ ...hubPluginSettings("channel")
444
+ };
445
+ const basePackage = options.basePackage ?? {};
446
+ const pkg = {
447
+ ...basePackage,
448
+ dependencies: {
449
+ ...basePackage.dependencies,
450
+ ...CHANNEL_PAGE_DEPENDENCIES
451
+ }
427
452
  };
428
453
  return {
429
454
  [CHANNEL_DEFINITION_FILE]: `${JSON.stringify(definition, null, 2)}\n`,
430
455
  [`agents/${DEFAULT_CHANNEL_AGENT}.md`]: agent,
431
456
  "qrtl.config.json": `${JSON.stringify(config, null, 2)}\n`,
432
- "README.md": `# ${title}\n\n${description || `The channel ${title}.`}\n\nA Quartal Hub channel: its definition is \`${CHANNEL_DEFINITION_FILE}\`, its agent \`agents/${DEFAULT_CHANNEL_AGENT}.md\`.\n`
457
+ "package.json": `${JSON.stringify(pkg, null, 2)}\n`,
458
+ ...CHANNEL_PAGE_FILES,
459
+ "README.md": `# ${title}\n\n${description || `The channel ${title}.`}\n\nA Quartal Hub channel: its definition is \`${CHANNEL_DEFINITION_FILE}\`, its agent \`agents/${DEFAULT_CHANNEL_AGENT}.md\`, its page \`src/pages/index.astro\` (the chat, in \`src/app/\`).\n`
433
460
  };
434
461
  }
435
462
  //#endregion
@@ -739,4 +766,4 @@ function parseChannelDefinition(input, ownPluginId) {
739
766
  };
740
767
  }
741
768
  //#endregion
742
- export { CHANNEL_AGENT_TRIGGERS, CHANNEL_BASE_STATUSES, CHANNEL_DEFINITION_FILE, CHANNEL_DEFINITION_SCHEMA_URL, CHANNEL_KINDS, CHANNEL_SCHEDULE_TARGETS, DEFAULT_CHANNEL_AGENT, DEFAULT_SCHEDULE_TIME_ZONE, HUB_EXTENSION_NAMESPACE, HUB_LANGUAGES, HUB_PLUGIN_PAGE, HUB_TOOLS, HUB_TOOL_GROUPS, HUB_TOOL_SETTINGS, HUB_URL_PLACEHOLDER, channelDefinitionSchema, channelPluginFiles, cronError, hubPluginSettings, hubTool, isHubToolKey, isLocalizedText, isTimeZone, localize, parseChannelDefinition, parseCron, resolveAgentRef, resolveHubTools };
769
+ export { CHANNEL_AGENT_TRIGGERS, CHANNEL_BASE_STATUSES, CHANNEL_DEFINITION_FILE, CHANNEL_DEFINITION_SCHEMA_URL, CHANNEL_KINDS, CHANNEL_PAGE_DEPENDENCIES, CHANNEL_PAGE_FILES, CHANNEL_SCHEDULE_TARGETS, DEFAULT_CHANNEL_AGENT, DEFAULT_SCHEDULE_TIME_ZONE, HUB_EXTENSION_NAMESPACE, HUB_LANGUAGES, HUB_TOOLS, HUB_TOOL_GROUPS, HUB_TOOL_SETTINGS, channelDefinitionSchema, channelPluginFiles, cronError, hubPluginSettings, hubTool, isHubToolKey, isLocalizedText, isTimeZone, localize, parseChannelDefinition, parseCron, resolveAgentRef, resolveHubTools };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quartal/hub-plugin",
3
3
  "description": "Quartal Hub's extension of Quartal Plugin: channel definitions, Hub sign-in and pages",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "license": "MIT",
6
6
  "author": "Quartal Accounting Software Oy",
7
7
  "repository": {
@@ -36,6 +36,7 @@
36
36
  "typecheck": "tsc --noEmit -p tsconfig.json",
37
37
  "test": "tsx --test \"src/**/*.test.ts\"",
38
38
  "schema": "tsx scripts/writeSchema.ts",
39
- "build": "tsdown"
39
+ "build": "tsdown",
40
+ "template": "tsx scripts/writeTemplate.ts"
40
41
  }
41
42
  }