nvent 1.0.0-alpha.5 → 1.0.0-alpha.7

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/dist/module.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as nuxt_schema from 'nuxt/schema';
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
2
 
3
3
  /**
4
4
  * nvent module options
@@ -338,6 +338,6 @@ interface NventIiiOptions {
338
338
  };
339
339
  }
340
340
 
341
- declare const _default: nuxt_schema.NuxtModule<NventIiiOptions, NventIiiOptions, false>;
341
+ declare const _default: _nuxt_schema.NuxtModule<NventIiiOptions, NventIiiOptions, false>;
342
342
 
343
343
  export { _default as default };
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nvent",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.7",
4
4
  "configKey": "nvent",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -2,6 +2,7 @@ import { join, dirname, basename, relative, parse } from 'node:path';
2
2
  import { defineNuxtModule, createResolver, extendViteConfig, hasNuxtModule, addTemplate, addServerPlugin, addServerHandler, addServerImports, addImports, addPlugin, updateTemplates } from '@nuxt/kit';
3
3
  import { existsSync, mkdirSync, chmodSync, createWriteStream, unlinkSync, writeFileSync, readFileSync, copyFileSync } from 'node:fs';
4
4
  import { randomUUID } from 'node:crypto';
5
+ import { addCustomTab } from '@nuxt/devtools-kit';
5
6
  import { exec, execFileSync, spawn } from 'node:child_process';
6
7
  import { promisify } from 'node:util';
7
8
  import { pipeline } from 'node:stream/promises';
@@ -846,20 +847,26 @@ function defaultIiiEngineConfig() {
846
847
  function defaultStateAdapter(stateDir) {
847
848
  return {
848
849
  name: "kv",
849
- config: { store_method: "file_based", file_path: "./data/state_store" }
850
+ config: { store_method: "file_based", file_path: "./.data/state_store" }
850
851
  };
851
852
  }
852
853
  function defaultQueueAdapter(queueDir) {
853
854
  return {
854
855
  name: "builtin",
855
- config: { store_method: "file_based", file_path: "./data/queue_store" }
856
+ config: { store_method: "file_based", file_path: "./.data/queue_store" }
856
857
  };
857
858
  }
858
859
  function defaultCronAdapter() {
859
- return { name: "kv" };
860
+ return {
861
+ name: "kv",
862
+ config: { store_method: "file_based", file_path: "./.data/cron_store" }
863
+ };
860
864
  }
861
865
  function defaultStreamAdapter() {
862
- return { name: "kv" };
866
+ return {
867
+ name: "kv",
868
+ config: { store_method: "file_based", file_path: "./.data/stream_store" }
869
+ };
863
870
  }
864
871
  function generateIiiConfigYaml(cfg) {
865
872
  const workers = [];
@@ -1432,9 +1439,10 @@ const module$1 = defineNuxtModule({
1432
1439
  await engine.stop();
1433
1440
  });
1434
1441
  if (consoleBinaryPath) {
1442
+ const consolePort = consoleCfg.port ?? 3113;
1435
1443
  const consoleManager = new ConsoleManager({
1436
1444
  binaryPath: consoleBinaryPath,
1437
- port: consoleCfg.port ?? 3113,
1445
+ port: consolePort,
1438
1446
  enginePort: engineCfg.httpPort,
1439
1447
  bridgePort: engineCfg.wsPort,
1440
1448
  flow: consoleCfg.flow ?? true,
@@ -1444,6 +1452,15 @@ const module$1 = defineNuxtModule({
1444
1452
  nuxt.hook("close", async () => {
1445
1453
  await consoleManager.stop();
1446
1454
  });
1455
+ addCustomTab({
1456
+ name: "nvent-console",
1457
+ title: "nvent",
1458
+ icon: "carbon:flow",
1459
+ view: {
1460
+ type: "iframe",
1461
+ src: `http://localhost:${consolePort}`
1462
+ }
1463
+ });
1447
1464
  }
1448
1465
  }
1449
1466
  if (!skipPython) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "nvent",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.7",
4
4
  "description": "Event-driven workflows for Nuxt",
5
- "repository": "DevJoghurt/nvent",
5
+ "repository": "nhealthorg/nvent",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "exports": {
@@ -22,12 +22,13 @@
22
22
  "prepack": "pnpm build"
23
23
  },
24
24
  "dependencies": {
25
+ "@nuxt/devtools-kit": "^3.2.4",
25
26
  "@nuxt/kit": "4.4.4",
26
27
  "chokidar": "^5.0.0",
27
28
  "confbox": "^0.2.4",
28
29
  "globby": "16.2.0",
29
- "iii-browser-sdk": "^0.11.5",
30
- "iii-sdk": "^0.11.5",
30
+ "iii-browser-sdk": "^0.11.6",
31
+ "iii-sdk": "^0.11.6",
31
32
  "knitwork": "^1.3.0",
32
33
  "nuxt": "4.4.4",
33
34
  "pathe": "^2.0.3",