agent-relay 4.0.19 → 4.0.21
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/index.cjs +1407 -537
- package/dist/src/cli/commands/messaging.d.ts +44 -0
- package/dist/src/cli/commands/messaging.d.ts.map +1 -1
- package/dist/src/cli/commands/messaging.js +195 -8
- package/dist/src/cli/commands/messaging.js.map +1 -1
- package/dist/src/cli/commands/setup.d.ts +30 -1
- package/dist/src/cli/commands/setup.d.ts.map +1 -1
- package/dist/src/cli/commands/setup.js +102 -85
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/node_modules/@agent-relay/cloud/dist/auth.d.ts +2 -2
- package/node_modules/@agent-relay/cloud/dist/auth.d.ts.map +1 -1
- package/node_modules/@agent-relay/cloud/dist/auth.js +108 -62
- package/node_modules/@agent-relay/cloud/dist/auth.js.map +1 -1
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts +5 -35
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js +158 -292
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +3 -2
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@clack/core/CHANGELOG.md +200 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.cjs +15 -0
- package/node_modules/@clack/core/dist/index.cjs.map +1 -0
- package/node_modules/@clack/core/dist/index.d.cts +151 -0
- package/node_modules/@clack/core/dist/index.d.mts +151 -0
- package/node_modules/@clack/core/dist/index.d.ts +151 -0
- package/node_modules/@clack/core/dist/index.mjs +15 -0
- package/node_modules/@clack/core/dist/index.mjs.map +1 -0
- package/node_modules/@clack/core/package.json +62 -0
- package/node_modules/@clack/prompts/CHANGELOG.md +256 -0
- package/node_modules/@clack/prompts/LICENSE +23 -0
- package/node_modules/@clack/prompts/README.md +158 -0
- package/node_modules/@clack/prompts/dist/index.cjs +77 -0
- package/node_modules/@clack/prompts/dist/index.d.ts +106 -0
- package/node_modules/@clack/prompts/dist/index.mjs +77 -0
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +17 -0
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +9 -0
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +43 -0
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +35 -0
- package/node_modules/@clack/prompts/package.json +65 -0
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
- package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +22 -0
- package/node_modules/@smithy/util-endpoints/dist-types/decideEndpoint.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/coalesce.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/ite.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/split.d.ts +11 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +3 -1
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/agent-trajectories/README.md +562 -0
- package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js +2036 -0
- package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js.map +1 -0
- package/node_modules/agent-trajectories/dist/cli/index.d.ts +2 -0
- package/node_modules/agent-trajectories/dist/cli/index.js +4592 -0
- package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -0
- package/node_modules/agent-trajectories/dist/index-7tzw_CMS.d.ts +1777 -0
- package/node_modules/agent-trajectories/dist/index.d.ts +90 -0
- package/node_modules/agent-trajectories/dist/index.js +73 -0
- package/node_modules/agent-trajectories/dist/index.js.map +1 -0
- package/node_modules/agent-trajectories/dist/sdk/index.d.ts +2 -0
- package/node_modules/agent-trajectories/dist/sdk/index.js +39 -0
- package/node_modules/agent-trajectories/dist/sdk/index.js.map +1 -0
- package/node_modules/agent-trajectories/package.json +72 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1157 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/commander/lib/command.js +2509 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +520 -0
- package/node_modules/commander/lib/option.js +330 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +84 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +969 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/package.json +10 -10
- package/packages/cloud/dist/auth.d.ts +2 -2
- package/packages/cloud/dist/auth.d.ts.map +1 -1
- package/packages/cloud/dist/auth.js +108 -62
- package/packages/cloud/dist/auth.js.map +1 -1
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/workflows/trajectory.d.ts +5 -35
- package/packages/sdk/dist/workflows/trajectory.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/trajectory.js +158 -292
- package/packages/sdk/dist/workflows/trajectory.js.map +1 -1
- package/packages/sdk/package.json +3 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# picocolors
|
|
2
|
+
|
|
3
|
+
The tiniest and the fastest library for terminal output formatting with ANSI colors.
|
|
4
|
+
|
|
5
|
+
```javascript
|
|
6
|
+
import pc from "picocolors"
|
|
7
|
+
|
|
8
|
+
console.log(
|
|
9
|
+
pc.green(`How are ${pc.italic(`you`)} doing?`)
|
|
10
|
+
)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- **No dependencies.**
|
|
14
|
+
- **14 times** smaller and **2 times** faster than chalk.
|
|
15
|
+
- Used by popular tools like PostCSS, SVGO, Stylelint, and Browserslist.
|
|
16
|
+
- Node.js v6+ & browsers support. Support for both CJS and ESM projects.
|
|
17
|
+
- TypeScript type declarations included.
|
|
18
|
+
- [`NO_COLOR`](https://no-color.org/) friendly.
|
|
19
|
+
|
|
20
|
+
## Docs
|
|
21
|
+
Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "picocolors",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"main": "./picocolors.js",
|
|
5
|
+
"types": "./picocolors.d.ts",
|
|
6
|
+
"browser": {
|
|
7
|
+
"./picocolors.js": "./picocolors.browser.js"
|
|
8
|
+
},
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"description": "The tiniest and the fastest library for terminal output formatting with ANSI colors",
|
|
11
|
+
"files": [
|
|
12
|
+
"picocolors.*",
|
|
13
|
+
"types.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"terminal",
|
|
17
|
+
"colors",
|
|
18
|
+
"formatting",
|
|
19
|
+
"cli",
|
|
20
|
+
"console"
|
|
21
|
+
],
|
|
22
|
+
"author": "Alexey Raspopov",
|
|
23
|
+
"repository": "alexeyraspopov/picocolors",
|
|
24
|
+
"license": "ISC"
|
|
25
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var x=String;
|
|
2
|
+
var create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};
|
|
3
|
+
module.exports=create();
|
|
4
|
+
module.exports.createColors = create;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {}
|
|
2
|
+
let isColorSupported =
|
|
3
|
+
!(!!env.NO_COLOR || argv.includes("--no-color")) &&
|
|
4
|
+
(!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI)
|
|
5
|
+
|
|
6
|
+
let formatter = (open, close, replace = open) =>
|
|
7
|
+
input => {
|
|
8
|
+
let string = "" + input, index = string.indexOf(close, open.length)
|
|
9
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let replaceClose = (string, close, replace, index) => {
|
|
13
|
+
let result = "", cursor = 0
|
|
14
|
+
do {
|
|
15
|
+
result += string.substring(cursor, index) + replace
|
|
16
|
+
cursor = index + close.length
|
|
17
|
+
index = string.indexOf(close, cursor)
|
|
18
|
+
} while (~index)
|
|
19
|
+
return result + string.substring(cursor)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let createColors = (enabled = isColorSupported) => {
|
|
23
|
+
let f = enabled ? formatter : () => String
|
|
24
|
+
return {
|
|
25
|
+
isColorSupported: enabled,
|
|
26
|
+
reset: f("\x1b[0m", "\x1b[0m"),
|
|
27
|
+
bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
28
|
+
dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
29
|
+
italic: f("\x1b[3m", "\x1b[23m"),
|
|
30
|
+
underline: f("\x1b[4m", "\x1b[24m"),
|
|
31
|
+
inverse: f("\x1b[7m", "\x1b[27m"),
|
|
32
|
+
hidden: f("\x1b[8m", "\x1b[28m"),
|
|
33
|
+
strikethrough: f("\x1b[9m", "\x1b[29m"),
|
|
34
|
+
|
|
35
|
+
black: f("\x1b[30m", "\x1b[39m"),
|
|
36
|
+
red: f("\x1b[31m", "\x1b[39m"),
|
|
37
|
+
green: f("\x1b[32m", "\x1b[39m"),
|
|
38
|
+
yellow: f("\x1b[33m", "\x1b[39m"),
|
|
39
|
+
blue: f("\x1b[34m", "\x1b[39m"),
|
|
40
|
+
magenta: f("\x1b[35m", "\x1b[39m"),
|
|
41
|
+
cyan: f("\x1b[36m", "\x1b[39m"),
|
|
42
|
+
white: f("\x1b[37m", "\x1b[39m"),
|
|
43
|
+
gray: f("\x1b[90m", "\x1b[39m"),
|
|
44
|
+
|
|
45
|
+
bgBlack: f("\x1b[40m", "\x1b[49m"),
|
|
46
|
+
bgRed: f("\x1b[41m", "\x1b[49m"),
|
|
47
|
+
bgGreen: f("\x1b[42m", "\x1b[49m"),
|
|
48
|
+
bgYellow: f("\x1b[43m", "\x1b[49m"),
|
|
49
|
+
bgBlue: f("\x1b[44m", "\x1b[49m"),
|
|
50
|
+
bgMagenta: f("\x1b[45m", "\x1b[49m"),
|
|
51
|
+
bgCyan: f("\x1b[46m", "\x1b[49m"),
|
|
52
|
+
bgWhite: f("\x1b[47m", "\x1b[49m"),
|
|
53
|
+
|
|
54
|
+
blackBright: f("\x1b[90m", "\x1b[39m"),
|
|
55
|
+
redBright: f("\x1b[91m", "\x1b[39m"),
|
|
56
|
+
greenBright: f("\x1b[92m", "\x1b[39m"),
|
|
57
|
+
yellowBright: f("\x1b[93m", "\x1b[39m"),
|
|
58
|
+
blueBright: f("\x1b[94m", "\x1b[39m"),
|
|
59
|
+
magentaBright: f("\x1b[95m", "\x1b[39m"),
|
|
60
|
+
cyanBright: f("\x1b[96m", "\x1b[39m"),
|
|
61
|
+
whiteBright: f("\x1b[97m", "\x1b[39m"),
|
|
62
|
+
|
|
63
|
+
bgBlackBright: f("\x1b[100m", "\x1b[49m"),
|
|
64
|
+
bgRedBright: f("\x1b[101m", "\x1b[49m"),
|
|
65
|
+
bgGreenBright: f("\x1b[102m", "\x1b[49m"),
|
|
66
|
+
bgYellowBright: f("\x1b[103m", "\x1b[49m"),
|
|
67
|
+
bgBlueBright: f("\x1b[104m", "\x1b[49m"),
|
|
68
|
+
bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
|
|
69
|
+
bgCyanBright: f("\x1b[106m", "\x1b[49m"),
|
|
70
|
+
bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
module.exports = createColors()
|
|
75
|
+
module.exports.createColors = createColors
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type Formatter = (input: string | number | null | undefined) => string
|
|
2
|
+
|
|
3
|
+
export interface Colors {
|
|
4
|
+
isColorSupported: boolean
|
|
5
|
+
|
|
6
|
+
reset: Formatter
|
|
7
|
+
bold: Formatter
|
|
8
|
+
dim: Formatter
|
|
9
|
+
italic: Formatter
|
|
10
|
+
underline: Formatter
|
|
11
|
+
inverse: Formatter
|
|
12
|
+
hidden: Formatter
|
|
13
|
+
strikethrough: Formatter
|
|
14
|
+
|
|
15
|
+
black: Formatter
|
|
16
|
+
red: Formatter
|
|
17
|
+
green: Formatter
|
|
18
|
+
yellow: Formatter
|
|
19
|
+
blue: Formatter
|
|
20
|
+
magenta: Formatter
|
|
21
|
+
cyan: Formatter
|
|
22
|
+
white: Formatter
|
|
23
|
+
gray: Formatter
|
|
24
|
+
|
|
25
|
+
bgBlack: Formatter
|
|
26
|
+
bgRed: Formatter
|
|
27
|
+
bgGreen: Formatter
|
|
28
|
+
bgYellow: Formatter
|
|
29
|
+
bgBlue: Formatter
|
|
30
|
+
bgMagenta: Formatter
|
|
31
|
+
bgCyan: Formatter
|
|
32
|
+
bgWhite: Formatter
|
|
33
|
+
|
|
34
|
+
blackBright: Formatter
|
|
35
|
+
redBright: Formatter
|
|
36
|
+
greenBright: Formatter
|
|
37
|
+
yellowBright: Formatter
|
|
38
|
+
blueBright: Formatter
|
|
39
|
+
magentaBright: Formatter
|
|
40
|
+
cyanBright: Formatter
|
|
41
|
+
whiteBright: Formatter
|
|
42
|
+
|
|
43
|
+
bgBlackBright: Formatter
|
|
44
|
+
bgRedBright: Formatter
|
|
45
|
+
bgGreenBright: Formatter
|
|
46
|
+
bgYellowBright: Formatter
|
|
47
|
+
bgBlueBright: Formatter
|
|
48
|
+
bgMagentaBright: Formatter
|
|
49
|
+
bgCyanBright: Formatter
|
|
50
|
+
bgWhiteBright: Formatter
|
|
51
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Terkel Gjervig Nielsen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sisteransi",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "ANSI escape codes for some terminal swag",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Terkel Gjervig",
|
|
9
|
+
"email": "terkel@terkel.com",
|
|
10
|
+
"url": "https://terkel.com"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "tape test/*.js | tap-spec"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/terkelg/sisteransi"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"src"
|
|
21
|
+
],
|
|
22
|
+
"types": "./src/sisteransi.d.ts",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"ansi",
|
|
25
|
+
"escape codes",
|
|
26
|
+
"escape",
|
|
27
|
+
"terminal",
|
|
28
|
+
"style"
|
|
29
|
+
],
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"tap-spec": "^5.0.0",
|
|
32
|
+
"tape": "^4.13.2"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# sister ANSI [](https://www.npmjs.com/package/sisteransi) [](https://travis-ci.org/terkelg/sisteransi) [](https://www.npmjs.com/package/sisteransi)
|
|
2
|
+
|
|
3
|
+
> Ansi escape codes faster than you can say "[Bam bam](https://www.youtube.com/watch?v=OcaPu9JPenU)".
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install sisteransi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const ansi = require('sisteransi');
|
|
16
|
+
// or const { cursor } = require('sisteransi');
|
|
17
|
+
|
|
18
|
+
const p = str => process.stdout.write(str);
|
|
19
|
+
|
|
20
|
+
// move cursor to 2, 1
|
|
21
|
+
p(ansi.cursor.to(2, 1));
|
|
22
|
+
|
|
23
|
+
// to up, one down
|
|
24
|
+
p(ansi.cursor.up(2)+ansi.cursor.down(1));
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## API
|
|
28
|
+
|
|
29
|
+
### cursor
|
|
30
|
+
|
|
31
|
+
#### to(x, y)
|
|
32
|
+
Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
|
|
33
|
+
|
|
34
|
+
#### move(x, y)
|
|
35
|
+
Set the position of the cursor relative to its current position.
|
|
36
|
+
|
|
37
|
+
#### up(count = 1)
|
|
38
|
+
Move cursor up a specific amount of rows. Default is `1`.
|
|
39
|
+
|
|
40
|
+
#### down(count = 1)
|
|
41
|
+
Move cursor down a specific amount of rows. Default is `1`.
|
|
42
|
+
|
|
43
|
+
#### forward(count = 1)
|
|
44
|
+
Move cursor forward a specific amount of rows. Default is `1`.
|
|
45
|
+
|
|
46
|
+
#### backward(count = 1)
|
|
47
|
+
Move cursor backward a specific amount of rows. Default is `1`.
|
|
48
|
+
|
|
49
|
+
#### nextLine(count = 1)
|
|
50
|
+
Move cursor to the next line a specific amount of lines. Default is `1`.
|
|
51
|
+
|
|
52
|
+
#### prevLine(count = 1)
|
|
53
|
+
Move cursor to the previous a specific amount of lines. Default is `1`.
|
|
54
|
+
|
|
55
|
+
#### left
|
|
56
|
+
Move cursor to the left side.
|
|
57
|
+
|
|
58
|
+
#### hide
|
|
59
|
+
Hide cursor.
|
|
60
|
+
|
|
61
|
+
#### show
|
|
62
|
+
Show cursor.
|
|
63
|
+
|
|
64
|
+
#### save
|
|
65
|
+
|
|
66
|
+
Save cursor position.
|
|
67
|
+
|
|
68
|
+
#### restore
|
|
69
|
+
|
|
70
|
+
Restore cursor position.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### scroll
|
|
74
|
+
|
|
75
|
+
#### up(count = 1)
|
|
76
|
+
Scroll display up a specific amount of lines. Default to `1`.
|
|
77
|
+
|
|
78
|
+
#### down(count = 1)
|
|
79
|
+
Scroll display down a specific amount of lines. Default to `1`.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### erase
|
|
83
|
+
|
|
84
|
+
#### screen
|
|
85
|
+
Erase the screen and move the cursor the top left position.
|
|
86
|
+
|
|
87
|
+
#### up(count = 1)
|
|
88
|
+
Erase the screen from the current line up to the top of the screen. Default to `1`.
|
|
89
|
+
|
|
90
|
+
#### down(count = 2)
|
|
91
|
+
Erase the screen from the current line down to the bottom of the screen. Default to `1`.
|
|
92
|
+
|
|
93
|
+
#### line
|
|
94
|
+
Erase the entire current line.
|
|
95
|
+
|
|
96
|
+
#### lineEnd
|
|
97
|
+
Erase from the current cursor position to the end of the current line.
|
|
98
|
+
|
|
99
|
+
#### lineStart
|
|
100
|
+
Erase from the current cursor position to the start of the current line.
|
|
101
|
+
|
|
102
|
+
#### lines(count)
|
|
103
|
+
Erase from the current cursor position up the specified amount of rows.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Credit
|
|
107
|
+
|
|
108
|
+
This is a fork of [ansi-escapes](https://github.com/sindresorhus/ansi-escapes).
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
MIT © [Terkel Gjervig](https://terkel.com)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ESC = '\x1B';
|
|
4
|
+
const CSI = `${ESC}[`;
|
|
5
|
+
const beep = '\u0007';
|
|
6
|
+
|
|
7
|
+
const cursor = {
|
|
8
|
+
to(x, y) {
|
|
9
|
+
if (!y) return `${CSI}${x + 1}G`;
|
|
10
|
+
return `${CSI}${y + 1};${x + 1}H`;
|
|
11
|
+
},
|
|
12
|
+
move(x, y) {
|
|
13
|
+
let ret = '';
|
|
14
|
+
|
|
15
|
+
if (x < 0) ret += `${CSI}${-x}D`;
|
|
16
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
|
17
|
+
|
|
18
|
+
if (y < 0) ret += `${CSI}${-y}A`;
|
|
19
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
|
20
|
+
|
|
21
|
+
return ret;
|
|
22
|
+
},
|
|
23
|
+
up: (count = 1) => `${CSI}${count}A`,
|
|
24
|
+
down: (count = 1) => `${CSI}${count}B`,
|
|
25
|
+
forward: (count = 1) => `${CSI}${count}C`,
|
|
26
|
+
backward: (count = 1) => `${CSI}${count}D`,
|
|
27
|
+
nextLine: (count = 1) => `${CSI}E`.repeat(count),
|
|
28
|
+
prevLine: (count = 1) => `${CSI}F`.repeat(count),
|
|
29
|
+
left: `${CSI}G`,
|
|
30
|
+
hide: `${CSI}?25l`,
|
|
31
|
+
show: `${CSI}?25h`,
|
|
32
|
+
save: `${ESC}7`,
|
|
33
|
+
restore: `${ESC}8`
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const scroll = {
|
|
37
|
+
up: (count = 1) => `${CSI}S`.repeat(count),
|
|
38
|
+
down: (count = 1) => `${CSI}T`.repeat(count)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const erase = {
|
|
42
|
+
screen: `${CSI}2J`,
|
|
43
|
+
up: (count = 1) => `${CSI}1J`.repeat(count),
|
|
44
|
+
down: (count = 1) => `${CSI}J`.repeat(count),
|
|
45
|
+
line: `${CSI}2K`,
|
|
46
|
+
lineEnd: `${CSI}K`,
|
|
47
|
+
lineStart: `${CSI}1K`,
|
|
48
|
+
lines(count) {
|
|
49
|
+
let clear = '';
|
|
50
|
+
for (let i = 0; i < count; i++)
|
|
51
|
+
clear += this.line + (i < count - 1 ? cursor.up() : '');
|
|
52
|
+
if (count)
|
|
53
|
+
clear += cursor.left;
|
|
54
|
+
return clear;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
module.exports = { cursor, scroll, erase, beep };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const beep: string;
|
|
2
|
+
export const clear: string;
|
|
3
|
+
|
|
4
|
+
export namespace cursor {
|
|
5
|
+
export const left: string;
|
|
6
|
+
export const hide: string;
|
|
7
|
+
export const show: string;
|
|
8
|
+
export const save: string;
|
|
9
|
+
export const restore: string;
|
|
10
|
+
|
|
11
|
+
export function to(x: number, y?: number): string;
|
|
12
|
+
export function move(x: number, y: number): string;
|
|
13
|
+
export function up(count?: number): string;
|
|
14
|
+
export function down(count?: number): string;
|
|
15
|
+
export function forward(count?: number): string;
|
|
16
|
+
export function backward(count?: number): string;
|
|
17
|
+
export function nextLine(count?: number): string;
|
|
18
|
+
export function prevLine(count?: number): string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace scroll {
|
|
22
|
+
export function up(count?: number): string;
|
|
23
|
+
export function down(count?: number): string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace erase {
|
|
27
|
+
export const screen: string;
|
|
28
|
+
export const line: string;
|
|
29
|
+
export const lineEnd: string;
|
|
30
|
+
export const lineStart: string;
|
|
31
|
+
|
|
32
|
+
export function up(count?: number): string;
|
|
33
|
+
export function down(count?: number): string;
|
|
34
|
+
export function lines(count: number): string;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.21",
|
|
4
4
|
"description": "Real-time agent-to-agent communication system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -195,14 +195,14 @@
|
|
|
195
195
|
},
|
|
196
196
|
"homepage": "https://github.com/AgentWorkforce/relay#readme",
|
|
197
197
|
"dependencies": {
|
|
198
|
-
"@agent-relay/cloud": "4.0.
|
|
199
|
-
"@agent-relay/config": "4.0.
|
|
200
|
-
"@agent-relay/hooks": "4.0.
|
|
201
|
-
"@agent-relay/sdk": "4.0.
|
|
202
|
-
"@agent-relay/telemetry": "4.0.
|
|
203
|
-
"@agent-relay/trajectory": "4.0.
|
|
204
|
-
"@agent-relay/user-directory": "4.0.
|
|
205
|
-
"@agent-relay/utils": "4.0.
|
|
198
|
+
"@agent-relay/cloud": "4.0.21",
|
|
199
|
+
"@agent-relay/config": "4.0.21",
|
|
200
|
+
"@agent-relay/hooks": "4.0.21",
|
|
201
|
+
"@agent-relay/sdk": "4.0.21",
|
|
202
|
+
"@agent-relay/telemetry": "4.0.21",
|
|
203
|
+
"@agent-relay/trajectory": "4.0.21",
|
|
204
|
+
"@agent-relay/user-directory": "4.0.21",
|
|
205
|
+
"@agent-relay/utils": "4.0.21",
|
|
206
206
|
"@aws-sdk/client-s3": "3.1020.0",
|
|
207
207
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
208
208
|
"@relayauth/core": "^0.1.2",
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
"@relaycast/sdk": "^1.1.0",
|
|
212
212
|
"@relayfile/sdk": "^0.1.2",
|
|
213
213
|
"@sinclair/typebox": "^0.34.14",
|
|
214
|
+
"agent-trajectories": "^0.5.4",
|
|
214
215
|
"chalk": "^4.1.2",
|
|
215
216
|
"chokidar": "^5.0.0",
|
|
216
217
|
"commander": "^12.1.0",
|
|
@@ -247,7 +248,6 @@
|
|
|
247
248
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
248
249
|
"@typescript-eslint/parser": "^8.18.2",
|
|
249
250
|
"@vitest/coverage-v8": "^3.2.4",
|
|
250
|
-
"agent-trajectories": "^0.4.1",
|
|
251
251
|
"concurrently": "^9.2.1",
|
|
252
252
|
"eslint": "^8.57.1",
|
|
253
253
|
"husky": "^9.1.7",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type StoredAuth } from
|
|
2
|
-
export declare function readStoredAuth(): Promise<StoredAuth | null>;
|
|
1
|
+
import { type StoredAuth } from './types.js';
|
|
2
|
+
export declare function readStoredAuth(env?: NodeJS.ProcessEnv): Promise<StoredAuth | null>;
|
|
3
3
|
export declare function writeStoredAuth(auth: StoredAuth): Promise<void>;
|
|
4
4
|
export declare function clearStoredAuth(): Promise<void>;
|
|
5
5
|
export declare function refreshStoredAuth(auth: StoredAuth): Promise<StoredAuth>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAOA,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAOA,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAgEhF,wBAAsB,cAAc,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAarG;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CASrE;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAErD;AAyKD,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAgC7E;AASD,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5B,OAAO,CAAC,UAAU,CAAC,CAqBrB;AAkBD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,UAAU,EAChB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAoBnD"}
|