@devkong/cli 0.0.67-alpha.28 → 0.0.67-alpha.29
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/index.js +9814 -48
- package/package.json +3 -2
- package/packages/kong-cli/src/commands/connectCommand.d.ts +6 -0
- package/packages/kong-ts/src/index.d.ts +2 -2
- package/packages/kong-ts/src/lib/url.d.ts +1 -0
- package/packages/kong-ts-contract/src/index.d.ts +1 -1
- package/packages/kong-ts-contract/src/lib/appArtifact.d.ts +2 -1
- package/packages/kong-ts-contract/src/lib/appConnect.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devkong/cli",
|
|
3
|
-
"version": "0.0.67-alpha.
|
|
3
|
+
"version": "0.0.67-alpha.29",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@napi-rs/keyring": "1.1.6",
|
|
12
|
-
"create-nx-workspace": "23.0.1"
|
|
12
|
+
"create-nx-workspace": "23.0.1",
|
|
13
|
+
"jszip": "3.10.1"
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -30,6 +30,12 @@ export declare class ConnectCommand {
|
|
|
30
30
|
* publish saves the snapshot under the real extension.
|
|
31
31
|
*/
|
|
32
32
|
private prepareTemplate;
|
|
33
|
+
/**
|
|
34
|
+
* Downloads the zip bundle from the kong-fs presigned url and unpacks it into
|
|
35
|
+
* the connect file list; the `id` entry (image name for kong-build) is not a
|
|
36
|
+
* source file, so it is dropped here.
|
|
37
|
+
*/
|
|
38
|
+
private downloadBundle;
|
|
33
39
|
/** Runs `kong generate` into a fresh temp workspace and locates its root. */
|
|
34
40
|
private scaffold;
|
|
35
41
|
private cleanupTemplates;
|
|
@@ -13,7 +13,7 @@ export type { Duration8601 } from "./lib/duration";
|
|
|
13
13
|
export type { Entity } from "./lib/entity";
|
|
14
14
|
export { AppError, DataError, errorToPrettyString } from "./lib/error";
|
|
15
15
|
export { ensureIsDuration, ensureIsDurationOrCron, ensureMinLength, nonNegative, nonRecursiveCall, notBlank, notNull, } from "./lib/guard";
|
|
16
|
-
export { generateShortId, guid, stableUUID, uuidc16, uuidc32, uuidStableSequence
|
|
16
|
+
export { generateShortId, guid, stableUUID, uuidc16, uuidc32, uuidStableSequence } from "./lib/id";
|
|
17
17
|
export type { CompactUUID16, CompactUUID32, GUID, ShortUUID } from "./lib/id";
|
|
18
18
|
export { intervalToString, millisToShortString } from "./lib/interval";
|
|
19
19
|
export { applyJqFilterReplacements, applyJqObjectReplacements, applyJqTextReplacements, containsJqExpression, convertToJqFilter, extractJqTextContent, jqFilter, JqObjectSerializer, jqText, sanitizeJqFilter, wrapWithJqTextMarkers, } from "./lib/jq";
|
|
@@ -36,7 +36,7 @@ export { TextReader } from "./lib/textReader";
|
|
|
36
36
|
export { DEFAULT_TIMEZONE, getTimezoneLabel } from "./lib/timezone";
|
|
37
37
|
export type { Timezone } from "./lib/timezone";
|
|
38
38
|
export type { Action, DeepPartial, Distinct, Indexed, Loading, NonFunctionProperties, Optional, Pair, PreventDefault, Primitive, PropertyPath, PropertyPathMap, RequiredProperties, Result, StringKeys, UnArray, ValidateKeys, } from "./lib/types";
|
|
39
|
-
export { joinUrlAndPath, urlText } from "./lib/url";
|
|
39
|
+
export { joinUrlAndFetch, joinUrlAndPath, urlText } from "./lib/url";
|
|
40
40
|
export type { UrlText } from "./lib/url";
|
|
41
41
|
export type { User } from "./lib/user";
|
|
42
42
|
export { dateToUtc, utcNow, utcToZonedDate, utcToZonedText } from "./lib/utc";
|
|
@@ -2,3 +2,4 @@ import { Distinct } from "./types";
|
|
|
2
2
|
export type UrlText = Distinct<string, "UrlText">;
|
|
3
3
|
export declare function urlText(value: string): UrlText;
|
|
4
4
|
export declare function joinUrlAndPath(baseUrl: UrlText, ...pathSegments: Array<string | number>): UrlText;
|
|
5
|
+
export declare function joinUrlAndFetch(baseUrl: UrlText, path: string | number, init?: RequestInit): Promise<Response>;
|
|
@@ -9,7 +9,7 @@ export type { AppBroadcastData } from "./lib/appBroadcastData";
|
|
|
9
9
|
export type { AppCheckpoint } from "./lib/appCheckpoint";
|
|
10
10
|
export type { AppComponentStartRequest } from "./lib/appComponentStartRequest";
|
|
11
11
|
export type { AppArtifact, AppArtifactDetails, AppCodeTemplateData, AppCodeTemplateFile, } from "./lib/appArtifact";
|
|
12
|
-
export {
|
|
12
|
+
export { APP_CONNECT_PORT, CLI_CONNECT_BASE_URL } from "./lib/appConnect";
|
|
13
13
|
export type { AppConnectDeployRequest, AppConnectDeployStart, AppConnectDeployStatus, AppConnectDeployStep, AppConnectFile, AppConnectProfile, AppConnectTestRequest, AppConnectTestResult, } from "./lib/appConnect";
|
|
14
14
|
export type { AppDependency } from "./lib/appDependency";
|
|
15
15
|
export type { AppDocument } from "./lib/appDocument";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JsonObject } from "@kong/ts";
|
|
1
2
|
export interface AppArtifact {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
@@ -6,7 +7,7 @@ export interface AppArtifact {
|
|
|
6
7
|
description: string;
|
|
7
8
|
}
|
|
8
9
|
export interface AppArtifactDetails extends AppArtifact {
|
|
9
|
-
data:
|
|
10
|
+
data: JsonObject;
|
|
10
11
|
}
|
|
11
12
|
export interface AppCodeTemplateFile {
|
|
12
13
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Loading } from "@kong/ts";
|
|
1
|
+
import { Loading, UrlText } from "@kong/ts";
|
|
2
2
|
export declare const APP_CONNECT_PORT = 41321;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const CLI_CONNECT_BASE_URL: UrlText;
|
|
4
4
|
export interface AppConnectProfile {
|
|
5
5
|
profile: string;
|
|
6
6
|
baseUrl: string;
|
|
@@ -16,7 +16,7 @@ export interface AppConnectFile {
|
|
|
16
16
|
export interface AppConnectTestRequest {
|
|
17
17
|
extensionId: string;
|
|
18
18
|
extensionName: string;
|
|
19
|
-
|
|
19
|
+
bundleUrl: string;
|
|
20
20
|
}
|
|
21
21
|
export interface AppConnectTestResult {
|
|
22
22
|
passed: boolean;
|
|
@@ -25,7 +25,7 @@ export interface AppConnectTestResult {
|
|
|
25
25
|
export interface AppConnectDeployRequest {
|
|
26
26
|
extensionId: string;
|
|
27
27
|
extensionName: string;
|
|
28
|
-
|
|
28
|
+
bundleUrl: string;
|
|
29
29
|
notes?: string;
|
|
30
30
|
}
|
|
31
31
|
export interface AppConnectDeployStart {
|