trigger.dev 4.0.0-v4-beta.10 → 4.0.0-v4-beta.12
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/dist/esm/build/bundle.d.ts +4 -0
- package/dist/esm/build/bundle.js +8 -1
- package/dist/esm/build/bundle.js.map +1 -1
- package/dist/esm/cli/common.d.ts +1 -1
- package/dist/esm/cli/common.js +4 -0
- package/dist/esm/cli/common.js.map +1 -1
- package/dist/esm/commands/deploy.d.ts +1 -1
- package/dist/esm/commands/deploy.js +15 -1
- package/dist/esm/commands/deploy.js.map +1 -1
- package/dist/esm/commands/dev.js +1 -1
- package/dist/esm/commands/dev.js.map +1 -1
- package/dist/esm/commands/init.d.ts +1 -1
- package/dist/esm/commands/list-profiles.d.ts +1 -1
- package/dist/esm/commands/login.d.ts +1 -1
- package/dist/esm/commands/logout.d.ts +1 -1
- package/dist/esm/commands/promote.d.ts +1 -1
- package/dist/esm/commands/switch.d.ts +1 -1
- package/dist/esm/commands/trigger.d.ts +1 -1
- package/dist/esm/commands/whoami.d.ts +1 -1
- package/dist/esm/dev/devOutput.js +30 -1
- package/dist/esm/dev/devOutput.js.map +1 -1
- package/dist/esm/dev/devSession.js +27 -16
- package/dist/esm/dev/devSession.js.map +1 -1
- package/dist/esm/entryPoints/dev-run-worker.js +28 -8
- package/dist/esm/entryPoints/dev-run-worker.js.map +1 -1
- package/dist/esm/entryPoints/managed-run-worker.js +27 -7
- package/dist/esm/entryPoints/managed-run-worker.js.map +1 -1
- package/dist/esm/executions/taskRunProcess.js +10 -2
- package/dist/esm/executions/taskRunProcess.js.map +1 -1
- package/dist/esm/utilities/cliOutput.d.ts +6 -1
- package/dist/esm/utilities/cliOutput.js +10 -1
- package/dist/esm/utilities/cliOutput.js.map +1 -1
- package/dist/esm/utilities/eventBus.d.ts +1 -0
- package/dist/esm/utilities/eventBus.js.map +1 -1
- package/dist/esm/utilities/supportsHyperlinks.d.ts +15 -0
- package/dist/esm/utilities/supportsHyperlinks.js +122 -0
- package/dist/esm/utilities/supportsHyperlinks.js.map +1 -0
- package/dist/esm/utilities/terminalLink.d.ts +56 -0
- package/dist/esm/utilities/terminalLink.js +76 -0
- package/dist/esm/utilities/terminalLink.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type TerminalLinkOptions = {
|
|
2
|
+
/**
|
|
3
|
+
Override the default fallback. If false, the fallback will be disabled.
|
|
4
|
+
@default `${text} (${url})`
|
|
5
|
+
*/
|
|
6
|
+
readonly fallback?: ((text: string, url: string) => string) | boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
Create a clickable link in the terminal's stdout.
|
|
10
|
+
|
|
11
|
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda)
|
|
12
|
+
For unsupported terminals, the link will be printed in parens after the text: `My website (https://sindresorhus.com)`,
|
|
13
|
+
unless the fallback is disabled by setting the `fallback` option to `false`.
|
|
14
|
+
|
|
15
|
+
@param text - Text to linkify.
|
|
16
|
+
@param url - URL to link to.
|
|
17
|
+
|
|
18
|
+
@example
|
|
19
|
+
```
|
|
20
|
+
import terminalLink from 'terminal-link';
|
|
21
|
+
|
|
22
|
+
const link = terminalLink('My Website', 'https://sindresorhus.com');
|
|
23
|
+
console.log(link);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
@deprecated The default fallback is broken in some terminals. Please use `cliLink` instead.
|
|
27
|
+
*/
|
|
28
|
+
declare function terminalLink(text: string, url: string, { target, ...options }?: {
|
|
29
|
+
target?: "stdout" | "stderr";
|
|
30
|
+
} & TerminalLinkOptions): string;
|
|
31
|
+
declare namespace terminalLink {
|
|
32
|
+
var isSupported: boolean;
|
|
33
|
+
var stderr: typeof terminalLinkStderr;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
Create a clickable link in the terminal's stderr.
|
|
37
|
+
|
|
38
|
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda)
|
|
39
|
+
For unsupported terminals, the link will be printed in parens after the text: `My website (https://sindresorhus.com)`.
|
|
40
|
+
|
|
41
|
+
@param text - Text to linkify.
|
|
42
|
+
@param url - URL to link to.
|
|
43
|
+
|
|
44
|
+
@example
|
|
45
|
+
```
|
|
46
|
+
import terminalLink from 'terminal-link';
|
|
47
|
+
|
|
48
|
+
const link = terminalLink.stderr('My Website', 'https://sindresorhus.com');
|
|
49
|
+
console.error(link);
|
|
50
|
+
```
|
|
51
|
+
*/
|
|
52
|
+
declare function terminalLinkStderr(text: string, url: string, options?: TerminalLinkOptions): string;
|
|
53
|
+
declare namespace terminalLinkStderr {
|
|
54
|
+
var isSupported: boolean;
|
|
55
|
+
}
|
|
56
|
+
export { terminalLink };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
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.
|
|
7
|
+
*/
|
|
8
|
+
import ansiEscapes from "ansi-escapes";
|
|
9
|
+
import supportsHyperlinks from "./supportsHyperlinks.js";
|
|
10
|
+
/**
|
|
11
|
+
Create a clickable link in the terminal's stdout.
|
|
12
|
+
|
|
13
|
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda)
|
|
14
|
+
For unsupported terminals, the link will be printed in parens after the text: `My website (https://sindresorhus.com)`,
|
|
15
|
+
unless the fallback is disabled by setting the `fallback` option to `false`.
|
|
16
|
+
|
|
17
|
+
@param text - Text to linkify.
|
|
18
|
+
@param url - URL to link to.
|
|
19
|
+
|
|
20
|
+
@example
|
|
21
|
+
```
|
|
22
|
+
import terminalLink from 'terminal-link';
|
|
23
|
+
|
|
24
|
+
const link = terminalLink('My Website', 'https://sindresorhus.com');
|
|
25
|
+
console.log(link);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
@deprecated The default fallback is broken in some terminals. Please use `cliLink` instead.
|
|
29
|
+
*/
|
|
30
|
+
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
|
31
|
+
if (!supportsHyperlinks[target]) {
|
|
32
|
+
// If the fallback has been explicitly disabled, don't modify the text itself.
|
|
33
|
+
if (options.fallback === false) {
|
|
34
|
+
return text;
|
|
35
|
+
}
|
|
36
|
+
return typeof options.fallback === "function"
|
|
37
|
+
? options.fallback(text, url)
|
|
38
|
+
: `${text} (\u200B${url}\u200B)`;
|
|
39
|
+
}
|
|
40
|
+
return ansiEscapes.link(text, url);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
Check whether the terminal supports links.
|
|
44
|
+
|
|
45
|
+
Prefer just using the default fallback or the `fallback` option whenever possible.
|
|
46
|
+
*/
|
|
47
|
+
terminalLink.isSupported = supportsHyperlinks.stdout;
|
|
48
|
+
terminalLink.stderr = terminalLinkStderr;
|
|
49
|
+
/**
|
|
50
|
+
Create a clickable link in the terminal's stderr.
|
|
51
|
+
|
|
52
|
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda)
|
|
53
|
+
For unsupported terminals, the link will be printed in parens after the text: `My website (https://sindresorhus.com)`.
|
|
54
|
+
|
|
55
|
+
@param text - Text to linkify.
|
|
56
|
+
@param url - URL to link to.
|
|
57
|
+
|
|
58
|
+
@example
|
|
59
|
+
```
|
|
60
|
+
import terminalLink from 'terminal-link';
|
|
61
|
+
|
|
62
|
+
const link = terminalLink.stderr('My Website', 'https://sindresorhus.com');
|
|
63
|
+
console.error(link);
|
|
64
|
+
```
|
|
65
|
+
*/
|
|
66
|
+
function terminalLinkStderr(text, url, options = {}) {
|
|
67
|
+
return terminalLink(text, url, { target: "stderr", ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
Check whether the terminal's stderr supports links.
|
|
71
|
+
|
|
72
|
+
Prefer just using the default fallback or the `fallback` option whenever possible.
|
|
73
|
+
*/
|
|
74
|
+
terminalLinkStderr.isSupported = supportsHyperlinks.stderr;
|
|
75
|
+
export { terminalLink };
|
|
76
|
+
//# sourceMappingURL=terminalLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminalLink.js","sourceRoot":"","sources":["../../../src/utilities/terminalLink.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAUzD;;;;;;;;;;;;;;;;;;;EAmBE;AACF,SAAS,YAAY,CACnB,IAAY,EACZ,GAAW,EACX,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,OAAO,KAA6D,EAAE;IAE9F,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;QAChC,8EAA8E;QAC9E,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;YAC3C,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;YAC7B,CAAC,CAAC,GAAG,IAAI,WAAW,GAAG,SAAS,CAAC;IACrC,CAAC;IAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACrC,CAAC;AACD;;;;EAIE;AACF,YAAY,CAAC,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC;AACrD,YAAY,CAAC,MAAM,GAAG,kBAAkB,CAAC;AAEzC;;;;;;;;;;;;;;;;EAgBE;AACF,SAAS,kBAAkB,CAAC,IAAY,EAAE,GAAW,EAAE,UAA+B,EAAE;IACtF,OAAO,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AACnE,CAAC;AAED;;;;EAIE;AACF,kBAAkB,CAAC,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "4.0.0-v4-beta.
|
|
1
|
+
export const VERSION = "4.0.0-v4-beta.12";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trigger.dev",
|
|
3
|
-
"version": "4.0.0-v4-beta.
|
|
3
|
+
"version": "4.0.0-v4-beta.12",
|
|
4
4
|
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
"@opentelemetry/sdk-trace-base": "1.25.1",
|
|
82
82
|
"@opentelemetry/sdk-trace-node": "1.25.1",
|
|
83
83
|
"@opentelemetry/semantic-conventions": "1.25.1",
|
|
84
|
-
"@trigger.dev/build": "4.0.0-v4-beta.
|
|
85
|
-
"@trigger.dev/core": "4.0.0-v4-beta.
|
|
84
|
+
"@trigger.dev/build": "4.0.0-v4-beta.12",
|
|
85
|
+
"@trigger.dev/core": "4.0.0-v4-beta.12",
|
|
86
|
+
"ansi-escapes": "^7.0.0",
|
|
86
87
|
"c12": "^1.11.1",
|
|
87
88
|
"chalk": "^5.2.0",
|
|
88
89
|
"chokidar": "^3.6.0",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"evt": "^2.4.13",
|
|
96
97
|
"fast-npm-meta": "^0.2.2",
|
|
97
98
|
"gradient-string": "^2.0.2",
|
|
99
|
+
"has-flag": "^5.0.1",
|
|
98
100
|
"import-in-the-middle": "1.11.0",
|
|
99
101
|
"import-meta-resolve": "^4.1.0",
|
|
100
102
|
"jsonc-parser": "3.2.1",
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
"socket.io-client": "4.7.5",
|
|
116
118
|
"source-map-support": "0.5.21",
|
|
117
119
|
"std-env": "^3.7.0",
|
|
118
|
-
"
|
|
120
|
+
"supports-color": "^10.0.0",
|
|
119
121
|
"tiny-invariant": "^1.2.0",
|
|
120
122
|
"tinyexec": "^0.3.1",
|
|
121
123
|
"tinyglobby": "^0.2.10",
|