@fluidgrids/cli 0.0.0-stage → 2026.1021.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/LICENSE +9 -0
- package/README.md +119 -2
- package/dist/cli.d.ts +11 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +51 -0
- package/dist/cli.js.map +1 -0
- package/dist/modules.d.ts +11 -0
- package/dist/modules.d.ts.map +1 -0
- package/dist/modules.js +55 -0
- package/dist/modules.js.map +1 -0
- package/dist/product-defaults.d.ts +11 -0
- package/dist/product-defaults.d.ts.map +1 -0
- package/dist/product-defaults.js +25 -0
- package/dist/product-defaults.js.map +1 -0
- package/package.json +98 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright (c) 2025 Algoshred Technologies Private Limited.
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software is proprietary and confidential. Unauthorized copying, modification, distribution, or use of this software, via any medium, is strictly prohibited without the express written permission of the copyright holders.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
8
|
+
|
|
9
|
+
For licensing inquiries, please contact: legal@algoshred.com
|
package/README.md
CHANGED
|
@@ -1,3 +1,120 @@
|
|
|
1
|
-
#
|
|
1
|
+
# fluidgrids-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The FluidGrids command line: manage workflows, trigger and watch runs, and work
|
|
4
|
+
with credentials, webhooks and scheduled jobs from a terminal or a CI job.
|
|
5
|
+
|
|
6
|
+
It is a **thin shell over [`@burdenoff/cli-sdk`](https://www.npmjs.com/package/@burdenoff/cli-sdk)**,
|
|
7
|
+
like the VibeControls CLI. The FluidGrids commands live in the shared
|
|
8
|
+
`fluidgrids` module, and the shell also mounts the shared platform modules
|
|
9
|
+
(workspaces, organizations, tags, files, billing, notifications, support, store,
|
|
10
|
+
integrations, devportal and more).
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
> **Not on npm yet.** `@fluidgrids/cli` is not published, so
|
|
15
|
+
> `npm install -g @fluidgrids/cli` will 404. Build from source until it ships.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://github.com/algoshred/fluidgrids-cli.git
|
|
19
|
+
cd fluidgrids-cli
|
|
20
|
+
bun install
|
|
21
|
+
bun run build
|
|
22
|
+
node dist/cli.js --version
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Sign in
|
|
26
|
+
|
|
27
|
+
The CLI uses the OAuth 2.0 device-code flow with the first-party
|
|
28
|
+
`burdenoff_cli_fluidgrids` client. It never asks for your password.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
fluidgrids auth login # prints a URL and a code; approve it in a browser
|
|
32
|
+
fluidgrids workspace list
|
|
33
|
+
fluidgrids workspace set <id> # issues the workspace token workspace commands need
|
|
34
|
+
fluidgrids auth status
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
For automation, sign in as an app with `fluidgrids auth login --client-credentials`.
|
|
38
|
+
|
|
39
|
+
## Workflows and runs
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
fluidgrids workflows list --status ACTIVE
|
|
43
|
+
fluidgrids workflows get <definitionId>
|
|
44
|
+
fluidgrids workflows get --key <workflowKey> --wf-version <version>
|
|
45
|
+
fluidgrids workflows versions <workflowKey>
|
|
46
|
+
fluidgrids workflows create workflow.json # CreateWorkflowDefinitionInput
|
|
47
|
+
fluidgrids workflows publish|activate|deactivate|archive <definitionId>
|
|
48
|
+
fluidgrids workflows duplicate <workflowKey> <version> --new-key <key>
|
|
49
|
+
fluidgrids workflows import template.json # ImportWorkflowTemplateInput
|
|
50
|
+
fluidgrids workflows delete <workflowKey> [--wf-version <v>] --force
|
|
51
|
+
|
|
52
|
+
fluidgrids workflows trigger <workflowKey> --wf-version <version> --trigger-node <nodeId> \
|
|
53
|
+
--input '{"amount":42}'
|
|
54
|
+
fluidgrids runs list --workflow-key <workflowKey> --status FAILED
|
|
55
|
+
fluidgrids runs list --workflow-id <definitionId> # exact definition, scans all pages
|
|
56
|
+
fluidgrids runs wait <runId> --timeout 600000
|
|
57
|
+
fluidgrids runs logs <runId> --level WARN --page-info
|
|
58
|
+
fluidgrids runs resume <runId> --payload '{"approved":true}'
|
|
59
|
+
fluidgrids runs retry-node <runId> <graphNodeId>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Credentials, webhooks, scheduled jobs
|
|
63
|
+
|
|
64
|
+
A credential is an integration connection. Creating one is a two-step flow:
|
|
65
|
+
create the connection, then attach the secret. Secrets come from a hidden prompt
|
|
66
|
+
or from the *name* of an environment variable, never from a flag value.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
fluidgrids credentials types --search stripe
|
|
70
|
+
fluidgrids credentials create connection.json # CreateConnectionInput (no secrets)
|
|
71
|
+
fluidgrids credentials auth-api-key <connectionId> --api-key-env PROVIDER_KEY
|
|
72
|
+
fluidgrids credentials auth-basic <connectionId> <username> --password-env PROVIDER_PASSWORD
|
|
73
|
+
fluidgrids credentials test <connectionId>
|
|
74
|
+
|
|
75
|
+
fluidgrids webhooks list --workflow-key <workflowKey>
|
|
76
|
+
fluidgrids webhooks activate|deactivate <id>
|
|
77
|
+
fluidgrids scheduled-jobs list --enabled
|
|
78
|
+
fluidgrids scheduled-jobs pause|resume <jobId>
|
|
79
|
+
|
|
80
|
+
fluidgrids dashboard summary
|
|
81
|
+
fluidgrids dashboard usage --start 2026-10-01 --end 2026-10-21
|
|
82
|
+
fluidgrids search query invoice --type workflow
|
|
83
|
+
fluidgrids admin system-info
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Destructive commands ask for confirmation; pass `--force` in scripts.
|
|
87
|
+
Every data command takes `-f, --format json|table|yaml` (JSON when not on a terminal).
|
|
88
|
+
|
|
89
|
+
## Configuration
|
|
90
|
+
|
|
91
|
+
State lives in `~/.config/fluidgrids-cli/` (`auth.json` is written `0600`).
|
|
92
|
+
Defaults point at production. Overrides:
|
|
93
|
+
|
|
94
|
+
| Variable | Purpose |
|
|
95
|
+
|---|---|
|
|
96
|
+
| `FLUIDGRIDS_WORKSPACE_ENDPOINT` | Workspace gateway (default `https://graphqlworkspaces.burdenoff.com/workspaces/graphql`) |
|
|
97
|
+
| `FLUIDGRIDS_GLOBAL_ENDPOINT` | Global gateway (default `https://graphql.burdenoff.com/global/graphql`) |
|
|
98
|
+
| `FLUIDGRIDS_OIDC_ISSUER` | Device-code issuer (set `https://alphagraphql.burdenoff.com/global` for alpha) |
|
|
99
|
+
| `FLUIDGRIDS_CLIENT_ID` | OAuth client (default `burdenoff_cli_fluidgrids`) |
|
|
100
|
+
| `FLUIDGRIDS_ORIGIN` | Product Origin for a custom or local gateway |
|
|
101
|
+
|
|
102
|
+
The workflow service is product-scoped: the gateway works out the product from
|
|
103
|
+
the request `Origin`. The CLI sends `https://app.fluidgrids.ai` to the production
|
|
104
|
+
gateway and `https://alphaapp.fluidgrids.ai` to the alpha gateway automatically.
|
|
105
|
+
|
|
106
|
+
## Development
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
bun install
|
|
110
|
+
bun run dev -- --help
|
|
111
|
+
bun run test
|
|
112
|
+
bun run sanity # format:check + lint + type-check + test + build
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Changes to command behaviour belong in `cli-sdk` (`src/modules/fluidgrids/`);
|
|
116
|
+
this repo only picks modules and product defaults.
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
PROPRIETARY License - Copyright (c) 2023 Algoshred Technologies Private Limited
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* FluidGrids CLI — thin shell over @burdenoff/cli-sdk.
|
|
4
|
+
*
|
|
5
|
+
* All command logic lives in @burdenoff/cli-sdk modules. This file only:
|
|
6
|
+
* 1. Builds a CLIContext with product-specific defaults.
|
|
7
|
+
* 2. Mounts the modules listed in ./modules.ts.
|
|
8
|
+
* 3. Wires the Commander program + central error handler.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG"}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* FluidGrids CLI — thin shell over @burdenoff/cli-sdk.
|
|
4
|
+
*
|
|
5
|
+
* All command logic lives in @burdenoff/cli-sdk modules. This file only:
|
|
6
|
+
* 1. Builds a CLIContext with product-specific defaults.
|
|
7
|
+
* 2. Mounts the modules listed in ./modules.ts.
|
|
8
|
+
* 3. Wires the Commander program + central error handler.
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync } from 'fs';
|
|
11
|
+
import { join, dirname } from 'path';
|
|
12
|
+
import { fileURLToPath } from 'url';
|
|
13
|
+
import { buildContext, createProgram } from '@burdenoff/cli-sdk/core';
|
|
14
|
+
import { modules } from './modules.js';
|
|
15
|
+
import { productDefaults } from './product-defaults.js';
|
|
16
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
+
const __dirname = dirname(__filename);
|
|
18
|
+
let version = '0.0.0-dev';
|
|
19
|
+
try {
|
|
20
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf8'));
|
|
21
|
+
if (packageJson.version)
|
|
22
|
+
version = packageJson.version;
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
// package.json not found in dev mode — use default version
|
|
26
|
+
}
|
|
27
|
+
const ctx = buildContext({
|
|
28
|
+
productName: 'fluidgrids',
|
|
29
|
+
productVersion: version,
|
|
30
|
+
defaults: productDefaults,
|
|
31
|
+
});
|
|
32
|
+
const { run } = createProgram(ctx, modules, {
|
|
33
|
+
name: 'fluidgrids',
|
|
34
|
+
description: 'FluidGrids CLI — workflow automation from the terminal',
|
|
35
|
+
version,
|
|
36
|
+
helpExamples: [
|
|
37
|
+
'$ fluidgrids auth login # OAuth2 Device Code login',
|
|
38
|
+
'$ fluidgrids workspace set <id> # Pick workspace',
|
|
39
|
+
'$ fluidgrids workflows list --status ACTIVE # Workflow definitions',
|
|
40
|
+
'$ fluidgrids workflows trigger <key> --wf-version 1.0.0 --trigger-node start',
|
|
41
|
+
'$ fluidgrids runs wait <runId> # Block until a run finishes',
|
|
42
|
+
'$ fluidgrids runs logs <runId> --level WARN # Run logs',
|
|
43
|
+
'$ fluidgrids credentials list # Connections',
|
|
44
|
+
'$ fluidgrids billing subscriptions list # Billing',
|
|
45
|
+
'',
|
|
46
|
+
'Configuration: ~/.config/fluidgrids-cli/',
|
|
47
|
+
'Documentation: https://docs.fluidgrids.ai/developers/cli-reference',
|
|
48
|
+
],
|
|
49
|
+
});
|
|
50
|
+
void run();
|
|
51
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,E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|
+
/**
|
|
2
|
+
* The cli-sdk modules this shell mounts: the FluidGrids domain module plus the
|
|
3
|
+
* shared platform modules. Kept in one list so the shell and its tests mount
|
|
4
|
+
* exactly the same surface.
|
|
5
|
+
*
|
|
6
|
+
* Not mounted: `vibecontrols` (another product; it also owns a top-level
|
|
7
|
+
* `webhooks` group) and `sandbox` (VibeControls dev environments).
|
|
8
|
+
*/
|
|
9
|
+
import type { CliModule } from '@burdenoff/cli-sdk/core';
|
|
10
|
+
export declare const modules: readonly CliModule[];
|
|
11
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAwBzD,eAAO,MAAM,OAAO,EAAE,SAAS,SAAS,EAuBvC,CAAC"}
|
package/dist/modules.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The cli-sdk modules this shell mounts: the FluidGrids domain module plus the
|
|
3
|
+
* shared platform modules. Kept in one list so the shell and its tests mount
|
|
4
|
+
* exactly the same surface.
|
|
5
|
+
*
|
|
6
|
+
* Not mounted: `vibecontrols` (another product; it also owns a top-level
|
|
7
|
+
* `webhooks` group) and `sandbox` (VibeControls dev environments).
|
|
8
|
+
*/
|
|
9
|
+
import authModule from '@burdenoff/cli-sdk/modules/auth';
|
|
10
|
+
import workspacesModule from '@burdenoff/cli-sdk/modules/workspaces';
|
|
11
|
+
import organizationsModule from '@burdenoff/cli-sdk/modules/organizations';
|
|
12
|
+
import toursModule from '@burdenoff/cli-sdk/modules/tours';
|
|
13
|
+
import rbacModule from '@burdenoff/cli-sdk/modules/rbac';
|
|
14
|
+
import fluidgridsModule from '@burdenoff/cli-sdk/modules/fluidgrids';
|
|
15
|
+
import tagsModule from '@burdenoff/cli-sdk/modules/tags';
|
|
16
|
+
import filesModule from '@burdenoff/cli-sdk/modules/files';
|
|
17
|
+
import groupsModule from '@burdenoff/cli-sdk/modules/groups';
|
|
18
|
+
import conversationsModule from '@burdenoff/cli-sdk/modules/conversations';
|
|
19
|
+
import securityModule from '@burdenoff/cli-sdk/modules/security';
|
|
20
|
+
import integrationsModule from '@burdenoff/cli-sdk/modules/integrations';
|
|
21
|
+
import channelsModule from '@burdenoff/cli-sdk/modules/channels';
|
|
22
|
+
import schedulerModule from '@burdenoff/cli-sdk/modules/scheduler';
|
|
23
|
+
import exportModule from '@burdenoff/cli-sdk/modules/export';
|
|
24
|
+
import notificationsModule from '@burdenoff/cli-sdk/modules/notifications';
|
|
25
|
+
import supportModule from '@burdenoff/cli-sdk/modules/support';
|
|
26
|
+
import productsModule from '@burdenoff/cli-sdk/modules/products';
|
|
27
|
+
import billingModule from '@burdenoff/cli-sdk/modules/billing';
|
|
28
|
+
import storeModule from '@burdenoff/cli-sdk/modules/store';
|
|
29
|
+
import devportalModule from '@burdenoff/cli-sdk/modules/devportal';
|
|
30
|
+
import healthModule from '@burdenoff/cli-sdk/modules/health';
|
|
31
|
+
export const modules = [
|
|
32
|
+
authModule,
|
|
33
|
+
workspacesModule,
|
|
34
|
+
organizationsModule,
|
|
35
|
+
toursModule,
|
|
36
|
+
rbacModule,
|
|
37
|
+
fluidgridsModule,
|
|
38
|
+
tagsModule,
|
|
39
|
+
filesModule,
|
|
40
|
+
groupsModule,
|
|
41
|
+
conversationsModule,
|
|
42
|
+
securityModule,
|
|
43
|
+
integrationsModule,
|
|
44
|
+
channelsModule,
|
|
45
|
+
schedulerModule,
|
|
46
|
+
exportModule,
|
|
47
|
+
notificationsModule,
|
|
48
|
+
supportModule,
|
|
49
|
+
productsModule,
|
|
50
|
+
billingModule,
|
|
51
|
+
storeModule,
|
|
52
|
+
devportalModule,
|
|
53
|
+
healthModule,
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1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ACd,aAAa;IACb,WAAW;IACX,eAAe;IACf,YAAY;CACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product-specific defaults injected into CLIContext via buildContext().
|
|
3
|
+
* Anything specific to "fluidgrids" (vs other product CLIs) lives here.
|
|
4
|
+
*
|
|
5
|
+
* Defaults point at PROD. Dev users override per-config or via env vars:
|
|
6
|
+
* FLUIDGRIDS_WORKSPACE_ENDPOINT, FLUIDGRIDS_GLOBAL_ENDPOINT, FLUIDGRIDS_OIDC_ISSUER,
|
|
7
|
+
* FLUIDGRIDS_ORIGIN.
|
|
8
|
+
*/
|
|
9
|
+
import type { ProductDefaults } from '@burdenoff/cli-sdk/core';
|
|
10
|
+
export declare const productDefaults: ProductDefaults;
|
|
11
|
+
//# sourceMappingURL=product-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-defaults.d.ts","sourceRoot":"","sources":["../src/product-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAO,MAAM,eAAe,EAAE,eAe7B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product-specific defaults injected into CLIContext via buildContext().
|
|
3
|
+
* Anything specific to "fluidgrids" (vs other product CLIs) lives here.
|
|
4
|
+
*
|
|
5
|
+
* Defaults point at PROD. Dev users override per-config or via env vars:
|
|
6
|
+
* FLUIDGRIDS_WORKSPACE_ENDPOINT, FLUIDGRIDS_GLOBAL_ENDPOINT, FLUIDGRIDS_OIDC_ISSUER,
|
|
7
|
+
* FLUIDGRIDS_ORIGIN.
|
|
8
|
+
*/
|
|
9
|
+
export const productDefaults = {
|
|
10
|
+
configDirName: 'fluidgrids-cli',
|
|
11
|
+
// First-party device-code client registered by global-auth-svc system-apps.
|
|
12
|
+
oidcClientId: 'burdenoff_cli_fluidgrids',
|
|
13
|
+
oidcIssuerProd: 'https://graphql.burdenoff.com/global',
|
|
14
|
+
workspaceEndpointDefault: 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql',
|
|
15
|
+
globalEndpointDefault: 'https://graphql.burdenoff.com/global/graphql',
|
|
16
|
+
envPrefix: 'FLUIDGRIDS',
|
|
17
|
+
// wspace-workflow-svc is product-scoped: the gateway derives the product from
|
|
18
|
+
// Origin, which Node does not send. Override with FLUIDGRIDS_ORIGIN for custom
|
|
19
|
+
// or local gateways.
|
|
20
|
+
productOrigins: {
|
|
21
|
+
'graphqlworkspaces.burdenoff.com': 'https://app.fluidgrids.ai',
|
|
22
|
+
'alphagraphqlworkspaces.burdenoff.com': 'https://alphaapp.fluidgrids.ai',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=product-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-defaults.js","sourceRoot":"","sources":["../src/product-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,aAAa,EAAE,gBAAgB;IAC/B,4EAA4E;IAC5E,YAAY,EAAE,0BAA0B;IACxC,cAAc,EAAE,sCAAsC;IACtD,wBAAwB,EAAE,4DAA4D;IACtF,qBAAqB,EAAE,8CAA8C;IACrE,SAAS,EAAE,YAAY;IACvB,8EAA8E;IAC9E,+EAA+E;IAC/E,qBAAqB;IACrB,cAAc,EAAE;QACd,iCAAiC,EAAE,2BAA2B;QAC9D,sCAAsC,EAAE,gCAAgC;KACzE;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidgrids/cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2026.1021.1",
|
|
4
|
+
"description": "CLI tool for FluidGrids — workflow automation management (thin shell over @burdenoff/cli-sdk)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"private": false,
|
|
7
|
+
"bin": {
|
|
8
|
+
"fluidgrids": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc && tsc-alias",
|
|
16
|
+
"build:watch": "tsc -w",
|
|
17
|
+
"dev": "tsx src/cli.ts",
|
|
18
|
+
"test": "bash scripts/build-limits.sh vitest run",
|
|
19
|
+
"test:coverage": "bash scripts/build-limits.sh vitest run --coverage",
|
|
20
|
+
"test:ui": "vitest --ui",
|
|
21
|
+
"lint": "eslint src --fix",
|
|
22
|
+
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
23
|
+
"lint:check": "eslint src",
|
|
24
|
+
"format": "prettier --write \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js,json,md}\"",
|
|
25
|
+
"format:check": "prettier --check \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js,json,md}\"",
|
|
26
|
+
"type-check": "bash scripts/build-limits.sh tsc --noEmit",
|
|
27
|
+
"clean": "rimraf dist",
|
|
28
|
+
"sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run format:check && bun run lint:sanity && bun run type-check && bun run test && bun run build'",
|
|
29
|
+
"prepublishOnly": "bun run clean && bun run build",
|
|
30
|
+
"start": "bun dist/cli.js"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"fluidgrids",
|
|
34
|
+
"cli",
|
|
35
|
+
"graphql",
|
|
36
|
+
"typescript",
|
|
37
|
+
"workflow-automation"
|
|
38
|
+
],
|
|
39
|
+
"author": {
|
|
40
|
+
"name": "Vignesh T.V",
|
|
41
|
+
"url": "https://github.com/tvvignesh"
|
|
42
|
+
},
|
|
43
|
+
"license": "UNLICENSED",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/Algoshred/fluidgrids-cli.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/Algoshred/fluidgrids-cli/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/Algoshred/fluidgrids-cli#readme",
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public",
|
|
54
|
+
"registry": "https://registry.npmjs.org/"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@burdenoff/cli-sdk": "^2026.1021.2",
|
|
58
|
+
"commander": "^14.0.3",
|
|
59
|
+
"graphql": "^16.13.2",
|
|
60
|
+
"graphql-request": "^7.4.0"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@types/node": "^24.12.2",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
65
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
66
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
67
|
+
"@vitest/ui": "^3.2.4",
|
|
68
|
+
"eslint": "^9.39.4",
|
|
69
|
+
"eslint-config-prettier": "^10.1.8",
|
|
70
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
71
|
+
"globals": "^16.5.0",
|
|
72
|
+
"prettier": "^3.8.1",
|
|
73
|
+
"rimraf": "^6.1.3",
|
|
74
|
+
"tsc-alias": "^1.8.16",
|
|
75
|
+
"tsx": "^4.21.0",
|
|
76
|
+
"typescript": "^5.9.3",
|
|
77
|
+
"vitest": "^3.2.4"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=24.11.0",
|
|
81
|
+
"bun": ">=1.3.14"
|
|
82
|
+
},
|
|
83
|
+
"overrides": {
|
|
84
|
+
"lodash": ">=4.17.21",
|
|
85
|
+
"lodash-es": ">=4.17.21",
|
|
86
|
+
"dompurify": ">=3.3.4",
|
|
87
|
+
"fast-xml-parser": ">=4.5.5",
|
|
88
|
+
"@xmldom/xmldom": ">=0.8.12",
|
|
89
|
+
"swiper": ">=12.1.2",
|
|
90
|
+
"brace-expansion": ">=1.1.13",
|
|
91
|
+
"follow-redirects": ">=1.15.12",
|
|
92
|
+
"smol-toml": ">=1.6.1",
|
|
93
|
+
"axios": ">=1.15.0",
|
|
94
|
+
"flatted": ">=3.4.1",
|
|
95
|
+
"yaml": ">=2.8.3",
|
|
96
|
+
"picomatch": ">=2.3.2",
|
|
97
|
+
"immutable": ">=3.8.3",
|
|
98
|
+
"minimatch": ">=3.1.3"
|
|
99
|
+
}
|
|
100
|
+
}
|