@constructive-io/cli 8.12.7 → 8.12.9
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/config/config-manager.d.ts +1 -1
- package/config/config-manager.js +1 -1
- package/config/index.d.ts +1 -1
- package/config/index.js +1 -1
- package/esm/commands/auth.js +1 -1
- package/esm/commands/context.js +1 -1
- package/esm/config/config-manager.js +1 -1
- package/esm/config/index.js +1 -1
- package/esm/sdk/executor.js +1 -1
- package/package.json +13 -13
- package/sdk/executor.d.ts +1 -1
- package/sdk/executor.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration manager for the CNC execution engine
|
|
3
3
|
* Uses appstash for directory resolution
|
|
4
4
|
*/
|
|
5
|
-
import type { ContextConfig,
|
|
5
|
+
import type { ContextConfig, ContextCredentials, Credentials, GlobalSettings } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* Get the appstash directories for cnc
|
|
8
8
|
*/
|
package/config/config-manager.js
CHANGED
|
@@ -53,9 +53,9 @@ exports.getContextCredentials = getContextCredentials;
|
|
|
53
53
|
exports.setContextCredentials = setContextCredentials;
|
|
54
54
|
exports.removeContextCredentials = removeContextCredentials;
|
|
55
55
|
exports.hasValidCredentials = hasValidCredentials;
|
|
56
|
+
const appstash_1 = require("appstash");
|
|
56
57
|
const fs = __importStar(require("fs"));
|
|
57
58
|
const path = __importStar(require("path"));
|
|
58
|
-
const appstash_1 = require("appstash");
|
|
59
59
|
const types_1 = require("./types");
|
|
60
60
|
const TOOL_NAME = 'cnc';
|
|
61
61
|
/**
|
package/config/index.d.ts
CHANGED
package/config/index.js
CHANGED
|
@@ -17,5 +17,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
17
17
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
21
20
|
__exportStar(require("./config-manager"), exports);
|
|
21
|
+
__exportStar(require("./types"), exports);
|
package/esm/commands/auth.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { extractFirst } from 'inquirerer';
|
|
5
5
|
import chalk from 'yanse';
|
|
6
|
-
import { getCurrentContext,
|
|
6
|
+
import { getContextCredentials, getCurrentContext, hasValidCredentials, listContexts, loadContext, loadSettings, removeContextCredentials, setContextCredentials, } from '../config';
|
|
7
7
|
const usage = `
|
|
8
8
|
Constructive Authentication:
|
|
9
9
|
|
package/esm/commands/context.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { extractFirst } from 'inquirerer';
|
|
6
6
|
import chalk from 'yanse';
|
|
7
|
-
import { createContext,
|
|
7
|
+
import { createContext, deleteContext, getContextCredentials, getCurrentContext, hasValidCredentials, listContexts, loadContext, loadSettings, saveSettings, setCurrentContext, } from '../config';
|
|
8
8
|
const usage = `
|
|
9
9
|
Constructive Context Management:
|
|
10
10
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Configuration manager for the CNC execution engine
|
|
3
3
|
* Uses appstash for directory resolution
|
|
4
4
|
*/
|
|
5
|
+
import { appstash, resolve } from 'appstash';
|
|
5
6
|
import * as fs from 'fs';
|
|
6
7
|
import * as path from 'path';
|
|
7
|
-
import { appstash, resolve } from 'appstash';
|
|
8
8
|
import { DEFAULT_SETTINGS } from './types';
|
|
9
9
|
const TOOL_NAME = 'cnc';
|
|
10
10
|
/**
|
package/esm/config/index.js
CHANGED
package/esm/sdk/executor.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Simple GraphQL executor for the CNC execution engine
|
|
3
3
|
* Executes raw GraphQL queries against configured endpoints
|
|
4
4
|
*/
|
|
5
|
+
import { getContextCredentials, getCurrentContext, hasValidCredentials, loadContext, } from '../config';
|
|
5
6
|
import { executeGraphQL } from './client';
|
|
6
|
-
import { getCurrentContext, loadContext, getContextCredentials, hasValidCredentials, } from '../config';
|
|
7
7
|
/**
|
|
8
8
|
* Get execution context for the current or specified context
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/cli",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.9",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
"ts-node": "^10.9.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@constructive-io/graphql-codegen": "^5.13.
|
|
49
|
-
"@constructive-io/graphql-env": "^3.28.
|
|
50
|
-
"@constructive-io/graphql-explorer": "^5.10.
|
|
51
|
-
"@constructive-io/graphql-server": "^5.15.
|
|
52
|
-
"@constructive-io/graphql-types": "^3.27.
|
|
48
|
+
"@constructive-io/graphql-codegen": "^5.13.9",
|
|
49
|
+
"@constructive-io/graphql-env": "^3.28.3",
|
|
50
|
+
"@constructive-io/graphql-explorer": "^5.10.9",
|
|
51
|
+
"@constructive-io/graphql-server": "^5.15.2",
|
|
52
|
+
"@constructive-io/graphql-types": "^3.27.3",
|
|
53
53
|
"@inquirerer/utils": "^3.3.9",
|
|
54
|
-
"@pgpmjs/core": "^7.21.
|
|
55
|
-
"@pgpmjs/logger": "^2.23.
|
|
56
|
-
"@pgpmjs/server-utils": "^3.24.
|
|
57
|
-
"@pgpmjs/types": "^2.49.
|
|
54
|
+
"@pgpmjs/core": "^7.21.4",
|
|
55
|
+
"@pgpmjs/logger": "^2.23.3",
|
|
56
|
+
"@pgpmjs/server-utils": "^3.24.3",
|
|
57
|
+
"@pgpmjs/types": "^2.49.3",
|
|
58
58
|
"appstash": "^0.7.0",
|
|
59
59
|
"find-and-require-package-json": "^0.9.1",
|
|
60
60
|
"inquirerer": "^4.9.1",
|
|
61
61
|
"js-yaml": "^4.1.0",
|
|
62
|
-
"pg-cache": "^3.24.
|
|
62
|
+
"pg-cache": "^3.24.3",
|
|
63
63
|
"pg-env": "^1.27.2",
|
|
64
|
-
"pgpm": "^5.
|
|
64
|
+
"pgpm": "^5.21.0",
|
|
65
65
|
"shelljs": "^0.10.0",
|
|
66
66
|
"yanse": "^0.2.1"
|
|
67
67
|
},
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"postgres",
|
|
77
77
|
"graphile"
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "e6a7a57f88c9deb2a4acecaba2451320d1be8203"
|
|
80
80
|
}
|
package/sdk/executor.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Simple GraphQL executor for the CNC execution engine
|
|
3
3
|
* Executes raw GraphQL queries against configured endpoints
|
|
4
4
|
*/
|
|
5
|
-
import { QueryResult } from './client';
|
|
6
5
|
import type { ContextConfig } from '../config';
|
|
6
|
+
import { QueryResult } from './client';
|
|
7
7
|
/**
|
|
8
8
|
* Execution context - bundles context config with credentials
|
|
9
9
|
*/
|
package/sdk/executor.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.getExecutionContext = getExecutionContext;
|
|
8
8
|
exports.execute = execute;
|
|
9
|
-
const client_1 = require("./client");
|
|
10
9
|
const config_1 = require("../config");
|
|
10
|
+
const client_1 = require("./client");
|
|
11
11
|
/**
|
|
12
12
|
* Get execution context for the current or specified context
|
|
13
13
|
*/
|