@flowcore/cli 4.17.1 → 4.18.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.
- package/CHANGELOG.md +19 -0
- package/README.md +22 -20
- package/dist/commands/apply.js +17 -1
- package/dist/commands/delete.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
* added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
|
|
12
12
|
|
|
13
|
+
## [4.18.1](https://github.com/flowcore-io/flowcore-cli/compare/v4.18.0...v4.18.1) (2025-11-28)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **package:** update @flowcore/cli-plugin-data-core to version 3.4.0 and @flowcore/cli-plugin-scenario to version 4.6.1 ([a26bd04](https://github.com/flowcore-io/flowcore-cli/commit/a26bd04a9f3cd610e2398501d34b09befaa7c9e6))
|
|
19
|
+
|
|
20
|
+
## [4.18.0](https://github.com/flowcore-io/flowcore-cli/compare/v4.17.1...v4.18.0) (2025-11-03)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add Usable MCP system prompt documentation and enhance document handling in apply and delete commands ([dcbcad2](https://github.com/flowcore-io/flowcore-cli/commit/dcbcad2fb02158babfb89bab6a6d0a6d96bd1aa6))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **apply:** streamline document merging logic for improved clarity and performance ([64a7ffc](https://github.com/flowcore-io/flowcore-cli/commit/64a7ffc6b9808a0a46d546df8405e2cc5ebfe11d))
|
|
31
|
+
|
|
13
32
|
## [4.17.1](https://github.com/flowcore-io/flowcore-cli/compare/v4.17.0...v4.17.1) (2025-08-19)
|
|
14
33
|
|
|
15
34
|
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ $ npm install -g @flowcore/cli
|
|
|
23
23
|
$ flowcore COMMAND
|
|
24
24
|
running command...
|
|
25
25
|
$ flowcore (--version)
|
|
26
|
-
@flowcore/cli/4.
|
|
26
|
+
@flowcore/cli/4.18.1 linux-x64 node-v22.19.0
|
|
27
27
|
$ flowcore --help [COMMAND]
|
|
28
28
|
USAGE
|
|
29
29
|
$ flowcore COMMAND
|
|
@@ -114,7 +114,7 @@ EXAMPLES
|
|
|
114
114
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
117
|
+
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.18.1/src/commands/apply.ts)_
|
|
118
118
|
|
|
119
119
|
## `flowcore auth delete key API_KEY_NAME`
|
|
120
120
|
|
|
@@ -458,7 +458,7 @@ EXAMPLES
|
|
|
458
458
|
$ cat <<EOF | flowcore data-core apply -f -
|
|
459
459
|
```
|
|
460
460
|
|
|
461
|
-
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.
|
|
461
|
+
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.4.0/src/commands/data-core/apply.ts)_
|
|
462
462
|
|
|
463
463
|
## `flowcore data-core generate event-type FLOWTYPE`
|
|
464
464
|
|
|
@@ -485,7 +485,7 @@ EXAMPLES
|
|
|
485
485
|
$ flowcore data-core generate event-type flow-type-name -n event-type-name -d "description of the event type" -f example.yaml
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
-
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.
|
|
488
|
+
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.4.0/src/commands/data-core/generate/event-type.ts)_
|
|
489
489
|
|
|
490
490
|
## `flowcore data-core generate flow-type`
|
|
491
491
|
|
|
@@ -512,7 +512,7 @@ EXAMPLES
|
|
|
512
512
|
$ flowcore data-core generate flow-type -n flow-type-name -d "description of the flow type" -f example.yaml
|
|
513
513
|
```
|
|
514
514
|
|
|
515
|
-
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.
|
|
515
|
+
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.4.0/src/commands/data-core/generate/flow-type.ts)_
|
|
516
516
|
|
|
517
517
|
## `flowcore data-core init`
|
|
518
518
|
|
|
@@ -543,7 +543,7 @@ EXAMPLES
|
|
|
543
543
|
$ flowcore data-core init -t flowcore -n data-core-name -f example.yaml
|
|
544
544
|
```
|
|
545
545
|
|
|
546
|
-
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.
|
|
546
|
+
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v3.4.0/src/commands/data-core/init.ts)_
|
|
547
547
|
|
|
548
548
|
## `flowcore delete`
|
|
549
549
|
|
|
@@ -567,7 +567,7 @@ EXAMPLES
|
|
|
567
567
|
cat ./path/to/manifest.yml | flowcore delete -f -
|
|
568
568
|
```
|
|
569
569
|
|
|
570
|
-
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
570
|
+
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.18.1/src/commands/delete.ts)_
|
|
571
571
|
|
|
572
572
|
## `flowcore delete policy NAME`
|
|
573
573
|
|
|
@@ -634,7 +634,7 @@ EXAMPLES
|
|
|
634
634
|
$ flowcore diff -f ./path/to/manifest.yml
|
|
635
635
|
```
|
|
636
636
|
|
|
637
|
-
_See code: [src/commands/diff.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
637
|
+
_See code: [src/commands/diff.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.18.1/src/commands/diff.ts)_
|
|
638
638
|
|
|
639
639
|
## `flowcore edit policy NAME`
|
|
640
640
|
|
|
@@ -736,7 +736,7 @@ EXAMPLES
|
|
|
736
736
|
$ flowcore get adapter adapter-name -t tenant-name -s scenario-name
|
|
737
737
|
```
|
|
738
738
|
|
|
739
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
739
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/get/adapter.ts)_
|
|
740
740
|
|
|
741
741
|
## `flowcore get policy [NAME]`
|
|
742
742
|
|
|
@@ -809,7 +809,7 @@ EXAMPLES
|
|
|
809
809
|
$ flowcore get scenario scenario-name -t tenant-name
|
|
810
810
|
```
|
|
811
811
|
|
|
812
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
812
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/get/scenario.ts)_
|
|
813
813
|
|
|
814
814
|
## `flowcore get tenant [NAME]`
|
|
815
815
|
|
|
@@ -878,7 +878,7 @@ EXAMPLES
|
|
|
878
878
|
$ flowcore info
|
|
879
879
|
```
|
|
880
880
|
|
|
881
|
-
_See code: [src/commands/info.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
881
|
+
_See code: [src/commands/info.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.18.1/src/commands/info.ts)_
|
|
882
882
|
|
|
883
883
|
## `flowcore login`
|
|
884
884
|
|
|
@@ -935,7 +935,7 @@ EXAMPLES
|
|
|
935
935
|
$ flowcore logs adapter adapter-name -t tenant-name -s scenario-name --json
|
|
936
936
|
```
|
|
937
937
|
|
|
938
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
938
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/logs/adapter.ts)_
|
|
939
939
|
|
|
940
940
|
## `flowcore new bun-service NAME`
|
|
941
941
|
|
|
@@ -1373,7 +1373,7 @@ ARGUMENTS
|
|
|
1373
1373
|
ADAPTER adapter name or id
|
|
1374
1374
|
|
|
1375
1375
|
FLAGS
|
|
1376
|
-
-b, --bucket=<value> time bucket (YYYYMMDDHHmmss or
|
|
1376
|
+
-b, --bucket=<value> time bucket (YYYYMMDDHHmmss, first, or last)
|
|
1377
1377
|
-e, --eventId=<value> time uuid
|
|
1378
1378
|
-s, --scenario=<value> (required) scenario
|
|
1379
1379
|
-t, --tenant=<value> (required) tenant
|
|
@@ -1387,10 +1387,12 @@ EXAMPLES
|
|
|
1387
1387
|
|
|
1388
1388
|
$ flowcore reset adapter adapter-name -t tenant-name -s scenario-name -b first
|
|
1389
1389
|
|
|
1390
|
+
$ flowcore reset adapter adapter-name -t tenant-name -s scenario-name -b last
|
|
1391
|
+
|
|
1390
1392
|
$ flowcore reset adapter adapter-name -t tenant-name -s scenario-name -e 9cb35da2-ba64-4bb5-86d6-ef20ebc62ab7
|
|
1391
1393
|
```
|
|
1392
1394
|
|
|
1393
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1395
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/reset/adapter.ts)_
|
|
1394
1396
|
|
|
1395
1397
|
## `flowcore scenario apply`
|
|
1396
1398
|
|
|
@@ -1420,7 +1422,7 @@ EXAMPLES
|
|
|
1420
1422
|
$ cat <<EOF | flowcore scenario apply -f -
|
|
1421
1423
|
```
|
|
1422
1424
|
|
|
1423
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1425
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/scenario/apply.ts)_
|
|
1424
1426
|
|
|
1425
1427
|
## `flowcore scenario generate transformer`
|
|
1426
1428
|
|
|
@@ -1447,7 +1449,7 @@ EXAMPLES
|
|
|
1447
1449
|
$ flowcore scenario generate transformer -n flow-type-name -d "description of the transformer" -f example.yaml
|
|
1448
1450
|
```
|
|
1449
1451
|
|
|
1450
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1452
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/scenario/generate/transformer.ts)_
|
|
1451
1453
|
|
|
1452
1454
|
## `flowcore scenario init`
|
|
1453
1455
|
|
|
@@ -1479,7 +1481,7 @@ EXAMPLES
|
|
|
1479
1481
|
$ flowcore scenario init -t flowcore -n scenario-name -f example.yaml
|
|
1480
1482
|
```
|
|
1481
1483
|
|
|
1482
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1484
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/scenario/init.ts)_
|
|
1483
1485
|
|
|
1484
1486
|
## `flowcore scenario local`
|
|
1485
1487
|
|
|
@@ -1497,7 +1499,7 @@ FLAGS
|
|
|
1497
1499
|
-f, --file=<value>... (required) file to apply
|
|
1498
1500
|
-m, --mode=<option> [default: http] stream mode
|
|
1499
1501
|
<options: http>
|
|
1500
|
-
-s, --start=<value> Start time bucket to stream from, example: (1y, 1m, 1w, 1d, 1h, now)
|
|
1502
|
+
-s, --start=<value> Start time bucket to stream from, example: (1y, 1m, 1w, 1d, 1h, now, latest)
|
|
1501
1503
|
-t, --timeout=<value> [default: 5000] Timeout in milliseconds to wait for a response from the destination
|
|
1502
1504
|
-y, --yes skip confirmation
|
|
1503
1505
|
-z, --pageSize=<value> [default: 10000] Page size for the stream
|
|
@@ -1512,7 +1514,7 @@ EXAMPLES
|
|
|
1512
1514
|
$ cat <<EOF | flowcore scenario local -f -
|
|
1513
1515
|
```
|
|
1514
1516
|
|
|
1515
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1517
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.6.1/src/commands/scenario/local.ts)_
|
|
1516
1518
|
|
|
1517
1519
|
## `flowcore stream STREAM`
|
|
1518
1520
|
|
|
@@ -1626,7 +1628,7 @@ EXAMPLES
|
|
|
1626
1628
|
$ flowcore update
|
|
1627
1629
|
```
|
|
1628
1630
|
|
|
1629
|
-
_See code: [src/commands/update.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
1631
|
+
_See code: [src/commands/update.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.18.1/src/commands/update.ts)_
|
|
1630
1632
|
|
|
1631
1633
|
## `flowcore version`
|
|
1632
1634
|
|
package/dist/commands/apply.js
CHANGED
|
@@ -44,10 +44,26 @@ export default class Apply extends BaseCommand {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
documents
|
|
47
|
+
// Load all documents from each file
|
|
48
|
+
const allDocuments = flags.file.flatMap((file) => {
|
|
48
49
|
const content = fs.readFileSync(file, "utf8");
|
|
49
50
|
return yaml.loadAll(content);
|
|
50
51
|
});
|
|
52
|
+
// Group documents by kind + name, then merge documents with same identifier
|
|
53
|
+
const documentMap = new Map();
|
|
54
|
+
for (const doc of allDocuments) {
|
|
55
|
+
const key = `${doc.kind}:${doc.metadata?.name || ''}`;
|
|
56
|
+
if (documentMap.has(key)) {
|
|
57
|
+
// Merge with existing document
|
|
58
|
+
const existing = documentMap.get(key);
|
|
59
|
+
documentMap.set(key, { ...existing, ...doc });
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
// First occurrence of this kind + name
|
|
63
|
+
documentMap.set(key, doc);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
documents = [...documentMap.values()];
|
|
51
67
|
}
|
|
52
68
|
documents.map((doc) => baseResourceDto.parse(doc));
|
|
53
69
|
const orderedDocuments = await apiRegistry.applyOrder(documents);
|
package/dist/commands/delete.js
CHANGED
|
@@ -59,7 +59,10 @@ export default class Delete extends BaseCommand {
|
|
|
59
59
|
throw promptError;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
// Order documents in reverse of apply order for proper deletion (delete dependents first)
|
|
63
|
+
const orderedDocuments = await apiRegistry.applyOrder(documents);
|
|
64
|
+
const reverseOrderedDocuments = orderedDocuments.reverse();
|
|
65
|
+
await apiRegistry.delete(reverseOrderedDocuments, flags.yes);
|
|
63
66
|
this.logger.info('Resources deleted successfully');
|
|
64
67
|
}
|
|
65
68
|
catch (error) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"@flowcore/cli-plugin-auth-management": "^1.7.0",
|
|
11
11
|
"@flowcore/cli-plugin-config": "^2.5.0",
|
|
12
12
|
"@flowcore/cli-plugin-core": "^5.7.0",
|
|
13
|
-
"@flowcore/cli-plugin-data-core": "^3.
|
|
13
|
+
"@flowcore/cli-plugin-data-core": "^3.4.0",
|
|
14
14
|
"@flowcore/cli-plugin-generator": "^1.6.0",
|
|
15
15
|
"@flowcore/cli-plugin-iam": "^1.7.0",
|
|
16
|
-
"@flowcore/cli-plugin-scenario": "^4.
|
|
16
|
+
"@flowcore/cli-plugin-scenario": "^4.6.1",
|
|
17
17
|
"@flowcore/cli-plugin-tenant-management": "^1.1.1",
|
|
18
18
|
"@flowcore/sdk": "^1.50.0",
|
|
19
19
|
"@flowcore/time-bucket": "^1.1.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"prestart": "npm run build",
|
|
120
120
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
121
121
|
},
|
|
122
|
-
"version": "4.
|
|
122
|
+
"version": "4.18.1",
|
|
123
123
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
124
124
|
"keywords": [
|
|
125
125
|
"flowcore",
|