@forge/tunnel 6.1.0-next.8 → 6.1.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
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7e13ccd: Add support for multi-service tunnelling
|
|
8
|
+
- a209a3d: integrate with rovo dev cli
|
|
9
|
+
- 2a0dadd: Remove Node18 runtime
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7b15cc4: Hide TypeScript bundler behind an EAP
|
|
14
|
+
- Updated dependencies [b262081]
|
|
15
|
+
- Updated dependencies [97c4d60]
|
|
16
|
+
- Updated dependencies [924b093]
|
|
17
|
+
- Updated dependencies [278cd16]
|
|
18
|
+
- Updated dependencies [be30715]
|
|
19
|
+
- Updated dependencies [725a653]
|
|
20
|
+
- Updated dependencies [a0e621c]
|
|
21
|
+
- Updated dependencies [3620005]
|
|
22
|
+
- Updated dependencies [7b15cc4]
|
|
23
|
+
- Updated dependencies [d27aec7]
|
|
24
|
+
- Updated dependencies [bda7c8d]
|
|
25
|
+
- Updated dependencies [a209a3d]
|
|
26
|
+
- Updated dependencies [2a0dadd]
|
|
27
|
+
- @forge/cli-shared@8.5.0
|
|
28
|
+
- @forge/bundler@6.1.4
|
|
29
|
+
- @forge/csp@5.0.1
|
|
30
|
+
|
|
31
|
+
## 6.1.0-next.9
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- a209a3d: integrate with rovo dev cli
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [b262081]
|
|
40
|
+
- Updated dependencies [97c4d60]
|
|
41
|
+
- Updated dependencies [278cd16]
|
|
42
|
+
- Updated dependencies [3620005]
|
|
43
|
+
- Updated dependencies [a209a3d]
|
|
44
|
+
- @forge/cli-shared@8.5.0-next.8
|
|
45
|
+
- @forge/bundler@6.1.4-next.9
|
|
46
|
+
- @forge/csp@5.0.1-next.0
|
|
47
|
+
|
|
3
48
|
## 6.1.0-next.8
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
@@ -10,10 +10,12 @@ export declare class LocalFunctionHost implements FunctionChangeWatcher {
|
|
|
10
10
|
private readonly configFile;
|
|
11
11
|
private readonly logger;
|
|
12
12
|
private readonly createSandbox;
|
|
13
|
+
private currentTunnelOptions;
|
|
13
14
|
constructor(configFile: ConfigFile, logger: Logger, createSandbox: (cfg: SandboxConfig) => Promise<Sandbox>);
|
|
14
15
|
startWatching(bundledCode: BundlerOutput, tunnelOptions?: TunnelOptions): Promise<void>;
|
|
15
16
|
stopWatching(): Promise<void>;
|
|
16
17
|
private onRuntimeLog;
|
|
18
|
+
private runAssistantErrorAnalysis;
|
|
17
19
|
private initializeSandboxes;
|
|
18
20
|
static getDebuggerPort(modName: string, handler: string, tunnelOptions: TunnelOptions): number | undefined;
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../src/command/interactors/function-change-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../src/command/interactors/function-change-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAEV,MAAM,EACN,aAAa,EAId,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAIL,OAAO,EACP,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,qBAAa,iBAAkB,YAAW,qBAAqB;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IALhC,OAAO,CAAC,oBAAoB,CAA8C;gBAGvD,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC;IAG7D,aAAa,CACxB,WAAW,EAAE,aAAa,EAC1B,aAAa,GAAE,aAA2C,GACzD,OAAO,CAAC,IAAI,CAAC;IAeH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,yBAAyB,CAa/B;YAEY,mBAAmB;WAuBnB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;CAY7F"}
|
|
@@ -12,12 +12,14 @@ class LocalFunctionHost {
|
|
|
12
12
|
configFile;
|
|
13
13
|
logger;
|
|
14
14
|
createSandbox;
|
|
15
|
+
currentTunnelOptions = cli_shared_1.defaultNoDebugTunnelOptions;
|
|
15
16
|
constructor(configFile, logger, createSandbox) {
|
|
16
17
|
this.configFile = configFile;
|
|
17
18
|
this.logger = logger;
|
|
18
19
|
this.createSandbox = createSandbox;
|
|
19
20
|
}
|
|
20
21
|
async startWatching(bundledCode, tunnelOptions = cli_shared_1.defaultNoDebugTunnelOptions) {
|
|
22
|
+
this.currentTunnelOptions = tunnelOptions;
|
|
21
23
|
const pathTo = (relativePath) => path_1.default.resolve(bundledCode.outputDir, relativePath);
|
|
22
24
|
const manifestFilePath = pathTo(cli_shared_1.manifestFileName);
|
|
23
25
|
const manifestContents = JSON.stringify(await this.configFile.readConfig());
|
|
@@ -30,6 +32,19 @@ class LocalFunctionHost {
|
|
|
30
32
|
}
|
|
31
33
|
onRuntimeLog = (event) => {
|
|
32
34
|
this.logger.info((0, util_1.formatRuntimeLog)(event));
|
|
35
|
+
if (event.logLevel === runtime_1.LogLevel.ERROR) {
|
|
36
|
+
this.runAssistantErrorAnalysis(event);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
runAssistantErrorAnalysis = (event) => {
|
|
40
|
+
const assistantName = this.currentTunnelOptions.assistantName;
|
|
41
|
+
if (assistantName) {
|
|
42
|
+
const errorMessage = JSON.stringify(event);
|
|
43
|
+
const prompt = (0, cli_shared_1.createForgeTunnelErrorPrompt)(errorMessage);
|
|
44
|
+
(0, cli_shared_1.runAssistant)(prompt, assistantName, this.logger).catch((error) => {
|
|
45
|
+
this.logger.error(new Error(`Error analysis with ${assistantName}: ${error}`));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
33
48
|
};
|
|
34
49
|
async initializeSandboxes(srcPath, tunnelOptions) {
|
|
35
50
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "6.1.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Tunnel functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"compile": "tsc -b -v"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@forge/bundler": "6.1.4
|
|
15
|
-
"@forge/cli-shared": "8.5.0
|
|
16
|
-
"@forge/csp": "5.0.
|
|
14
|
+
"@forge/bundler": "6.1.4",
|
|
15
|
+
"@forge/cli-shared": "8.5.0",
|
|
16
|
+
"@forge/csp": "5.0.1",
|
|
17
17
|
"@forge/runtime": "6.0.3",
|
|
18
18
|
"cheerio": "^1.1.0",
|
|
19
19
|
"chokidar": "^3.6.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
34
|
-
"@forge/manifest": "10.4.0
|
|
34
|
+
"@forge/manifest": "10.4.0",
|
|
35
35
|
"@types/express": "^4.17.21",
|
|
36
36
|
"@types/jest": "^29.5.14",
|
|
37
37
|
"@types/node": "20.19.1",
|