@flowscripter/example-cli-plugin 2.0.0 → 3.0.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"HelloCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,yCAAyC,CAAC;AAKjD,QAAA,MAAM,YAAY,EAAE,UAqBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"HelloCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,yCAAyC,CAAC;AAKjD,QAAA,MAAM,YAAY,EAAE,UAqBnB,CAAC;eAEa,YAAY"}
@@ -1,4 +1,4 @@
1
- import { ArgumentValueTypeName, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
1
+ import { ValueTypeName, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
2
2
  import { DEMO_SERVICE_ID } from "../service/DemoService.js";
3
3
  const helloCommand = {
4
4
  name: "hello",
@@ -10,7 +10,7 @@ const helloCommand = {
10
10
  {
11
11
  name: "name",
12
12
  description: "Name to greet",
13
- type: ArgumentValueTypeName.STRING,
13
+ type: ValueTypeName.STRING,
14
14
  isVarargOptional: true,
15
15
  },
16
16
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"HelloRustCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloRustCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,yCAAyC,CAAC;AAInG,QAAA,MAAM,gBAAgB,EAAE,UAYvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"HelloRustCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloRustCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,yCAAyC,CAAC;AAInG,QAAA,MAAM,gBAAgB,EAAE,UAYvB,CAAC;eAEa,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DemoCommandFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/DemoCommandFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAI9E,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,cAAc;IAC/D,WAAW;CAGZ"}
1
+ {"version":3,"file":"DemoCommandFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/DemoCommandFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAI9E,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,cAAc;IAC/D,WAAW,mEAEV;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DemoServiceProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/DemoServiceProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,0BAA2B,YAAW,sBAAsB;IAC/E,mBAAmB;CAGpB"}
1
+ {"version":3,"file":"DemoServiceProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/factory/DemoServiceProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,0BAA2B,YAAW,sBAAsB;IAC/E,mBAAmB,0BAElB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";AAIA,wBAGG"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultDemoService.d.ts","sourceRoot":"","sources":["../../../src/service/DefaultDemoService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,WAAW;IAC5D,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAG7B"}
1
+ {"version":3,"file":"DefaultDemoService.d.ts","sourceRoot":"","sources":["../../../src/service/DefaultDemoService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,WAAW;IAC5D,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DemoServiceProvider.d.ts","sourceRoot":"","sources":["../../../src/service/DemoServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,OAAO,EACR,MAAM,yCAAyC,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,mBAAoB,YAAW,eAAe;IACjE,QAAQ,CAAC,SAAS,kBAAmB;IACrC,QAAQ,CAAC,eAAe,MAAM;IAExB,cAAc,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC;IAI3D,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CACpD"}
1
+ {"version":3,"file":"DemoServiceProvider.d.ts","sourceRoot":"","sources":["../../../src/service/DemoServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,OAAO,EACR,MAAM,yCAAyC,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,mBAAoB,YAAW,eAAe;IACjE,QAAQ,CAAC,SAAS,kBAAmB;IACrC,QAAQ,CAAC,eAAe,MAAM;IAExB,cAAc,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAEhE;IAEK,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAG;CACvD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowscripter/example-cli-plugin",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Example CLI plugin for the https://github.com/flowscripter/dynamic-cli-framework",
5
5
  "keywords": [
6
6
  "bun",
@@ -42,19 +42,19 @@
42
42
  "build": "tsc -p tsconfig.build.json"
43
43
  },
44
44
  "dependencies": {
45
- "@flowscripter/template-bun-rust-library": "^1.2.5",
45
+ "@flowscripter/template-bun-rust-library": "^1.2.22",
46
46
  "cowsay": "^1.6.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@flowscripter/dynamic-cli-framework": "^2.0.0",
50
- "@flowscripter/dynamic-cli-framework-api": "^1.0.1",
51
- "@types/bun": "^1.3.14",
52
- "oxfmt": "0.56.0",
53
- "oxlint": "1.71.0"
49
+ "@flowscripter/dynamic-cli-framework": "^5.3.4",
50
+ "@flowscripter/dynamic-cli-framework-api": "^2.3.2",
51
+ "@types/bun": "^1.4.0",
52
+ "oxfmt": "0.65.0",
53
+ "oxlint": "1.80.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@flowscripter/dynamic-cli-framework-api": "*",
57
- "typescript": "^6.0.3"
57
+ "typescript": "^7.0.2"
58
58
  },
59
59
  "dynamic-cli-framework": {
60
60
  "extensionPoints": [
@@ -1,10 +1,10 @@
1
1
  import type {
2
2
  SubCommand,
3
3
  Context,
4
- ArgumentValues,
4
+ Values,
5
5
  PrinterService,
6
6
  } from "@flowscripter/dynamic-cli-framework-api";
7
- import { ArgumentValueTypeName, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
7
+ import { ValueTypeName, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
8
8
  import { DEMO_SERVICE_ID } from "../service/DemoService.ts";
9
9
  import type DemoService from "../service/DemoService.ts";
10
10
 
@@ -18,11 +18,11 @@ const helloCommand: SubCommand = {
18
18
  {
19
19
  name: "name",
20
20
  description: "Name to greet",
21
- type: ArgumentValueTypeName.STRING,
21
+ type: ValueTypeName.STRING,
22
22
  isVarargOptional: true,
23
23
  },
24
24
  ],
25
- execute: async (context: Context, argumentValues: ArgumentValues) => {
25
+ execute: async (context: Context, argumentValues: Values) => {
26
26
  const demoService = context.getServiceById(DEMO_SERVICE_ID) as DemoService;
27
27
  const printerService = context.getServiceById(PRINTER_SERVICE_ID) as PrinterService;
28
28
  const name = (argumentValues["name"] as string | undefined) ?? "World";