@intuned/runtime-dev 1.3.21-fix.0 → 1.3.22-dev.0
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 +1 -0
- package/bin/intuned +20 -2
- package/dist/commands/api/run.js +1 -1
- package/dist/commands/auth-sessions/load.js +4 -1
- package/dist/commands/auth-sessions/run-check.js +26 -17
- package/dist/commands/auth-sessions/run-create.js +10 -3
- package/dist/commands/common/browserUtils.js +10 -1
- package/dist/common/env.d.ts +6 -0
- package/dist/common/env.js +17 -0
- package/dist/common/intunedJson.d.ts +5 -0
- package/dist/common/intunedJson.js +1 -0
- package/dist/common/launchBrowser.d.ts +7 -0
- package/dist/common/launchBrowser.js +34 -2
- package/dist/common/playwrightContext.d.ts +2 -0
- package/dist/common/playwrightContext.js +10 -4
- package/dist/common/runApi/index.js +2 -0
- package/dist/common/settingsSchema.d.ts +3 -0
- package/dist/common/settingsSchema.js +2 -1
- package/dist/vendor/runtime-interface.js +4 -2
- package/package.json +3 -3
- package/.claude/settings.local.json +0 -7
- package/dist/commands/intuned-cli/commands/attempt.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/attempt.command.js +0 -8
- package/dist/commands/intuned-cli/commands/attempt_api.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/attempt_api.command.js +0 -30
- package/dist/commands/intuned-cli/commands/attempt_authsession.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/attempt_authsession.command.js +0 -8
- package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.js +0 -19
- package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +0 -24
- package/dist/commands/intuned-cli/commands/authsession.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/authsession.command.js +0 -8
- package/dist/commands/intuned-cli/commands/authsession_record.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/authsession_record.command.js +0 -32
- package/dist/commands/intuned-cli/commands/authsession_scaffold.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/authsession_scaffold.command.js +0 -16
- package/dist/commands/intuned-cli/commands/build.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/build.command.js +0 -12
- package/dist/commands/intuned-cli/commands/command.d.ts +0 -2
- package/dist/commands/intuned-cli/commands/command.js +0 -9
- package/dist/commands/intuned-cli/commands/deploy.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/deploy.command.js +0 -42
- package/dist/commands/intuned-cli/commands/index.d.ts +0 -18
- package/dist/commands/intuned-cli/commands/index.js +0 -203
- package/dist/commands/intuned-cli/commands/provision.command.d.ts +0 -13
- package/dist/commands/intuned-cli/commands/provision.command.js +0 -50
- package/dist/commands/intuned-cli/commands/run.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/run.command.js +0 -8
- package/dist/commands/intuned-cli/commands/run_api.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/run_api.command.js +0 -46
- package/dist/commands/intuned-cli/commands/run_authsession.command.d.ts +0 -35
- package/dist/commands/intuned-cli/commands/run_authsession.command.js +0 -17
- package/dist/commands/intuned-cli/commands/run_authsession_create.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/run_authsession_create.command.js +0 -35
- package/dist/commands/intuned-cli/commands/run_authsession_update.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/run_authsession_update.command.js +0 -35
- package/dist/commands/intuned-cli/commands/run_authsession_validate.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/run_authsession_validate.command.js +0 -33
- package/dist/commands/intuned-cli/commands/types.d.ts +0 -39
- package/dist/commands/intuned-cli/commands/types.js +0 -33
- package/dist/commands/intuned-cli/constants/index.d.ts +0 -17
- package/dist/commands/intuned-cli/constants/index.js +0 -25
- package/dist/commands/intuned-cli/controller/__test__/api.test.js +0 -399
- package/dist/commands/intuned-cli/controller/__test__/authSession.test.js +0 -1061
- package/dist/commands/intuned-cli/controller/api.d.ts +0 -42
- package/dist/commands/intuned-cli/controller/api.js +0 -194
- package/dist/commands/intuned-cli/controller/authSession.d.ts +0 -209
- package/dist/commands/intuned-cli/controller/authSession.js +0 -425
- package/dist/commands/intuned-cli/controller/build.d.ts +0 -1
- package/dist/commands/intuned-cli/controller/build.js +0 -35
- package/dist/commands/intuned-cli/controller/deploy.d.ts +0 -5
- package/dist/commands/intuned-cli/controller/deploy.js +0 -317
- package/dist/commands/intuned-cli/controller/index.d.ts +0 -1
- package/dist/commands/intuned-cli/controller/index.js +0 -45
- package/dist/commands/intuned-cli/controller/provision.d.ts +0 -21
- package/dist/commands/intuned-cli/controller/provision.js +0 -299
- package/dist/commands/intuned-cli/controller/scaffold.d.ts +0 -1
- package/dist/commands/intuned-cli/controller/scaffold.js +0 -77
- package/dist/commands/intuned-cli/helpers/__test__/browser.test.js +0 -152
- package/dist/commands/intuned-cli/helpers/__test__/tracing.test.js +0 -41
- package/dist/commands/intuned-cli/helpers/api.d.ts +0 -3
- package/dist/commands/intuned-cli/helpers/api.js +0 -16
- package/dist/commands/intuned-cli/helpers/auth.d.ts +0 -46
- package/dist/commands/intuned-cli/helpers/auth.js +0 -147
- package/dist/commands/intuned-cli/helpers/backend.d.ts +0 -8
- package/dist/commands/intuned-cli/helpers/backend.js +0 -35
- package/dist/commands/intuned-cli/helpers/browser.d.ts +0 -14
- package/dist/commands/intuned-cli/helpers/browser.js +0 -93
- package/dist/commands/intuned-cli/helpers/context.d.ts +0 -3
- package/dist/commands/intuned-cli/helpers/context.js +0 -33
- package/dist/commands/intuned-cli/helpers/errors.d.ts +0 -16
- package/dist/commands/intuned-cli/helpers/errors.js +0 -44
- package/dist/commands/intuned-cli/helpers/index.d.ts +0 -12
- package/dist/commands/intuned-cli/helpers/index.js +0 -137
- package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +0 -40
- package/dist/commands/intuned-cli/helpers/intunedJson.js +0 -20
- package/dist/commands/intuned-cli/helpers/prompts.d.ts +0 -3
- package/dist/commands/intuned-cli/helpers/prompts.js +0 -71
- package/dist/commands/intuned-cli/helpers/proxy.d.ts +0 -5
- package/dist/commands/intuned-cli/helpers/proxy.js +0 -23
- package/dist/commands/intuned-cli/helpers/terminal.d.ts +0 -5
- package/dist/commands/intuned-cli/helpers/terminal.js +0 -13
- package/dist/commands/intuned-cli/helpers/timeout.d.ts +0 -1
- package/dist/commands/intuned-cli/helpers/timeout.js +0 -23
- package/dist/commands/intuned-cli/helpers/traces.d.ts +0 -2
- package/dist/commands/intuned-cli/helpers/traces.js +0 -32
- package/dist/commands/intuned-cli/helpers/validation.d.ts +0 -2
- package/dist/commands/intuned-cli/helpers/validation.js +0 -14
- package/dist/commands/intuned-cli/helpers/wrapper.d.ts +0 -2
- package/dist/commands/intuned-cli/helpers/wrapper.js +0 -76
- package/dist/commands/intuned-cli/index.d.ts +0 -1
- package/dist/commands/intuned-cli/index.js +0 -16
- package/dist/commands/intuned-cli/main.d.ts +0 -1
- package/dist/commands/intuned-cli/main.js +0 -35
- package/dist/commands/intuned-cli/types.d.ts +0 -70
- package/dist/commands/intuned-cli/types.js +0 -22
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const fileNodeSchema: z.ZodObject<{
|
|
3
|
-
file: z.ZodObject<{
|
|
4
|
-
contents: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
contents: string | Uint8Array;
|
|
7
|
-
}, {
|
|
8
|
-
contents: string | Uint8Array;
|
|
9
|
-
}>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
file: {
|
|
12
|
-
contents: string | Uint8Array;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
file: {
|
|
16
|
-
contents: string | Uint8Array;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
19
|
-
export type FileNode = z.infer<typeof fileNodeSchema>;
|
|
20
|
-
export type DirectoryNode = {
|
|
21
|
-
directory: {
|
|
22
|
-
[key: string]: FileNode | DirectoryNode;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const fileSystemTreeSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<DirectoryNode, z.ZodTypeDef, DirectoryNode>, z.ZodObject<{
|
|
26
|
-
file: z.ZodObject<{
|
|
27
|
-
contents: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
contents: string | Uint8Array;
|
|
30
|
-
}, {
|
|
31
|
-
contents: string | Uint8Array;
|
|
32
|
-
}>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
file: {
|
|
35
|
-
contents: string | Uint8Array;
|
|
36
|
-
};
|
|
37
|
-
}, {
|
|
38
|
-
file: {
|
|
39
|
-
contents: string | Uint8Array;
|
|
40
|
-
};
|
|
41
|
-
}>]>>;
|
|
42
|
-
export type FileSystemTree = z.infer<typeof fileSystemTreeSchema>;
|
|
43
|
-
export interface AuthCredentials {
|
|
44
|
-
workspaceId: string;
|
|
45
|
-
apiKey: string;
|
|
46
|
-
}
|
|
47
|
-
export declare enum ApiAuthSessionBehavior {
|
|
48
|
-
PERFORM_CHECK_AND_REFRESH = "PERFORM_CHECK_AND_REFRESH",
|
|
49
|
-
SKIP_CHECK_AND_REFRESH = "SKIP_CHECK_AND_REFRESH"
|
|
50
|
-
}
|
|
51
|
-
export declare const CHECK_FAILED_ERROR_MESSAGE = "AuthSession check failed";
|
|
52
|
-
export type AuthSessionType = "API" | "MANUAL";
|
|
53
|
-
export type AuthSessionMetadata = {
|
|
54
|
-
createdAt: string;
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
authSessionId: string;
|
|
57
|
-
authSessionType: AuthSessionType;
|
|
58
|
-
authSessionInput?: Record<string, any>;
|
|
59
|
-
authSessionProxy?: string;
|
|
60
|
-
recorderStartUrl?: string;
|
|
61
|
-
recorderEndUrl?: string;
|
|
62
|
-
};
|
|
63
|
-
export interface SessionStorageState {
|
|
64
|
-
origin: string;
|
|
65
|
-
sessionStorage: {
|
|
66
|
-
name: string;
|
|
67
|
-
value: string;
|
|
68
|
-
}[];
|
|
69
|
-
}
|
|
70
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.fileSystemTreeSchema = exports.CHECK_FAILED_ERROR_MESSAGE = exports.ApiAuthSessionBehavior = void 0;
|
|
7
|
-
var _zod = require("zod");
|
|
8
|
-
const fileNodeSchema = _zod.z.object({
|
|
9
|
-
file: _zod.z.object({
|
|
10
|
-
contents: _zod.z.union([_zod.z.string(), _zod.z.instanceof(Uint8Array)])
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
const directoryNodeSchema = _zod.z.lazy(() => _zod.z.object({
|
|
14
|
-
directory: fileSystemTreeSchema
|
|
15
|
-
}));
|
|
16
|
-
const fileSystemTreeSchema = exports.fileSystemTreeSchema = _zod.z.record(_zod.z.union([directoryNodeSchema, fileNodeSchema]));
|
|
17
|
-
let ApiAuthSessionBehavior = exports.ApiAuthSessionBehavior = function (ApiAuthSessionBehavior) {
|
|
18
|
-
ApiAuthSessionBehavior["PERFORM_CHECK_AND_REFRESH"] = "PERFORM_CHECK_AND_REFRESH";
|
|
19
|
-
ApiAuthSessionBehavior["SKIP_CHECK_AND_REFRESH"] = "SKIP_CHECK_AND_REFRESH";
|
|
20
|
-
return ApiAuthSessionBehavior;
|
|
21
|
-
}({});
|
|
22
|
-
const CHECK_FAILED_ERROR_MESSAGE = exports.CHECK_FAILED_ERROR_MESSAGE = "AuthSession check failed";
|