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.
Files changed (130) hide show
  1. package/dist/index.cjs +1407 -537
  2. package/dist/src/cli/commands/messaging.d.ts +44 -0
  3. package/dist/src/cli/commands/messaging.d.ts.map +1 -1
  4. package/dist/src/cli/commands/messaging.js +195 -8
  5. package/dist/src/cli/commands/messaging.js.map +1 -1
  6. package/dist/src/cli/commands/setup.d.ts +30 -1
  7. package/dist/src/cli/commands/setup.d.ts.map +1 -1
  8. package/dist/src/cli/commands/setup.js +102 -85
  9. package/dist/src/cli/commands/setup.js.map +1 -1
  10. package/node_modules/@agent-relay/cloud/dist/auth.d.ts +2 -2
  11. package/node_modules/@agent-relay/cloud/dist/auth.d.ts.map +1 -1
  12. package/node_modules/@agent-relay/cloud/dist/auth.js +108 -62
  13. package/node_modules/@agent-relay/cloud/dist/auth.js.map +1 -1
  14. package/node_modules/@agent-relay/cloud/package.json +2 -2
  15. package/node_modules/@agent-relay/config/package.json +1 -1
  16. package/node_modules/@agent-relay/hooks/package.json +4 -4
  17. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts +5 -35
  18. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  19. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js +158 -292
  20. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js.map +1 -1
  21. package/node_modules/@agent-relay/sdk/package.json +3 -2
  22. package/node_modules/@agent-relay/telemetry/package.json +1 -1
  23. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  24. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  25. package/node_modules/@agent-relay/utils/package.json +2 -2
  26. package/node_modules/@clack/core/CHANGELOG.md +200 -0
  27. package/node_modules/@clack/core/LICENSE +9 -0
  28. package/node_modules/@clack/core/README.md +22 -0
  29. package/node_modules/@clack/core/dist/index.cjs +15 -0
  30. package/node_modules/@clack/core/dist/index.cjs.map +1 -0
  31. package/node_modules/@clack/core/dist/index.d.cts +151 -0
  32. package/node_modules/@clack/core/dist/index.d.mts +151 -0
  33. package/node_modules/@clack/core/dist/index.d.ts +151 -0
  34. package/node_modules/@clack/core/dist/index.mjs +15 -0
  35. package/node_modules/@clack/core/dist/index.mjs.map +1 -0
  36. package/node_modules/@clack/core/package.json +62 -0
  37. package/node_modules/@clack/prompts/CHANGELOG.md +256 -0
  38. package/node_modules/@clack/prompts/LICENSE +23 -0
  39. package/node_modules/@clack/prompts/README.md +158 -0
  40. package/node_modules/@clack/prompts/dist/index.cjs +77 -0
  41. package/node_modules/@clack/prompts/dist/index.d.ts +106 -0
  42. package/node_modules/@clack/prompts/dist/index.mjs +77 -0
  43. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +12 -0
  44. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +17 -0
  45. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +9 -0
  46. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +43 -0
  47. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +35 -0
  48. package/node_modules/@clack/prompts/package.json +65 -0
  49. package/node_modules/@smithy/config-resolver/package.json +2 -2
  50. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  51. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
  52. package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
  53. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
  54. package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
  55. package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
  56. package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
  57. package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
  58. package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
  59. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  60. package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
  61. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
  62. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
  63. package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
  64. package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +22 -0
  65. package/node_modules/@smithy/util-endpoints/dist-types/decideEndpoint.d.ts +7 -0
  66. package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +2 -0
  67. package/node_modules/@smithy/util-endpoints/dist-types/lib/coalesce.d.ts +7 -0
  68. package/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +3 -0
  69. package/node_modules/@smithy/util-endpoints/dist-types/lib/ite.d.ts +6 -0
  70. package/node_modules/@smithy/util-endpoints/dist-types/lib/split.d.ts +11 -0
  71. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +4 -0
  72. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +3 -1
  73. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  74. package/node_modules/agent-trajectories/README.md +562 -0
  75. package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js +2036 -0
  76. package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js.map +1 -0
  77. package/node_modules/agent-trajectories/dist/cli/index.d.ts +2 -0
  78. package/node_modules/agent-trajectories/dist/cli/index.js +4592 -0
  79. package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -0
  80. package/node_modules/agent-trajectories/dist/index-7tzw_CMS.d.ts +1777 -0
  81. package/node_modules/agent-trajectories/dist/index.d.ts +90 -0
  82. package/node_modules/agent-trajectories/dist/index.js +73 -0
  83. package/node_modules/agent-trajectories/dist/index.js.map +1 -0
  84. package/node_modules/agent-trajectories/dist/sdk/index.d.ts +2 -0
  85. package/node_modules/agent-trajectories/dist/sdk/index.js +39 -0
  86. package/node_modules/agent-trajectories/dist/sdk/index.js.map +1 -0
  87. package/node_modules/agent-trajectories/package.json +72 -0
  88. package/node_modules/commander/LICENSE +22 -0
  89. package/node_modules/commander/Readme.md +1157 -0
  90. package/node_modules/commander/esm.mjs +16 -0
  91. package/node_modules/commander/index.js +24 -0
  92. package/node_modules/commander/lib/argument.js +149 -0
  93. package/node_modules/commander/lib/command.js +2509 -0
  94. package/node_modules/commander/lib/error.js +39 -0
  95. package/node_modules/commander/lib/help.js +520 -0
  96. package/node_modules/commander/lib/option.js +330 -0
  97. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  98. package/node_modules/commander/package-support.json +16 -0
  99. package/node_modules/commander/package.json +84 -0
  100. package/node_modules/commander/typings/esm.d.mts +3 -0
  101. package/node_modules/commander/typings/index.d.ts +969 -0
  102. package/node_modules/picocolors/LICENSE +15 -0
  103. package/node_modules/picocolors/README.md +21 -0
  104. package/node_modules/picocolors/package.json +25 -0
  105. package/node_modules/picocolors/picocolors.browser.js +4 -0
  106. package/node_modules/picocolors/picocolors.d.ts +5 -0
  107. package/node_modules/picocolors/picocolors.js +75 -0
  108. package/node_modules/picocolors/types.d.ts +51 -0
  109. package/node_modules/sisteransi/license +21 -0
  110. package/node_modules/sisteransi/package.json +34 -0
  111. package/node_modules/sisteransi/readme.md +113 -0
  112. package/node_modules/sisteransi/src/index.js +58 -0
  113. package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  114. package/package.json +10 -10
  115. package/packages/cloud/dist/auth.d.ts +2 -2
  116. package/packages/cloud/dist/auth.d.ts.map +1 -1
  117. package/packages/cloud/dist/auth.js +108 -62
  118. package/packages/cloud/dist/auth.js.map +1 -1
  119. package/packages/cloud/package.json +2 -2
  120. package/packages/config/package.json +1 -1
  121. package/packages/hooks/package.json +4 -4
  122. package/packages/sdk/dist/workflows/trajectory.d.ts +5 -35
  123. package/packages/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  124. package/packages/sdk/dist/workflows/trajectory.js +158 -292
  125. package/packages/sdk/dist/workflows/trajectory.js.map +1 -1
  126. package/packages/sdk/package.json +3 -2
  127. package/packages/telemetry/package.json +1 -1
  128. package/packages/trajectory/package.json +2 -2
  129. package/packages/user-directory/package.json +2 -2
  130. package/packages/utils/package.json +2 -2
@@ -0,0 +1,16 @@
1
+ import commander from './index.js';
2
+
3
+ // wrapper to provide named exports for ESM.
4
+ export const {
5
+ program,
6
+ createCommand,
7
+ createArgument,
8
+ createOption,
9
+ CommanderError,
10
+ InvalidArgumentError,
11
+ InvalidOptionArgumentError, // deprecated old name
12
+ Command,
13
+ Argument,
14
+ Option,
15
+ Help,
16
+ } = commander;
@@ -0,0 +1,24 @@
1
+ const { Argument } = require('./lib/argument.js');
2
+ const { Command } = require('./lib/command.js');
3
+ const { CommanderError, InvalidArgumentError } = require('./lib/error.js');
4
+ const { Help } = require('./lib/help.js');
5
+ const { Option } = require('./lib/option.js');
6
+
7
+ exports.program = new Command();
8
+
9
+ exports.createCommand = (name) => new Command(name);
10
+ exports.createOption = (flags, description) => new Option(flags, description);
11
+ exports.createArgument = (name, description) => new Argument(name, description);
12
+
13
+ /**
14
+ * Expose classes
15
+ */
16
+
17
+ exports.Command = Command;
18
+ exports.Option = Option;
19
+ exports.Argument = Argument;
20
+ exports.Help = Help;
21
+
22
+ exports.CommanderError = CommanderError;
23
+ exports.InvalidArgumentError = InvalidArgumentError;
24
+ exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated
@@ -0,0 +1,149 @@
1
+ const { InvalidArgumentError } = require('./error.js');
2
+
3
+ class Argument {
4
+ /**
5
+ * Initialize a new command argument with the given name and description.
6
+ * The default is that the argument is required, and you can explicitly
7
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
8
+ *
9
+ * @param {string} name
10
+ * @param {string} [description]
11
+ */
12
+
13
+ constructor(name, description) {
14
+ this.description = description || '';
15
+ this.variadic = false;
16
+ this.parseArg = undefined;
17
+ this.defaultValue = undefined;
18
+ this.defaultValueDescription = undefined;
19
+ this.argChoices = undefined;
20
+
21
+ switch (name[0]) {
22
+ case '<': // e.g. <required>
23
+ this.required = true;
24
+ this._name = name.slice(1, -1);
25
+ break;
26
+ case '[': // e.g. [optional]
27
+ this.required = false;
28
+ this._name = name.slice(1, -1);
29
+ break;
30
+ default:
31
+ this.required = true;
32
+ this._name = name;
33
+ break;
34
+ }
35
+
36
+ if (this._name.length > 3 && this._name.slice(-3) === '...') {
37
+ this.variadic = true;
38
+ this._name = this._name.slice(0, -3);
39
+ }
40
+ }
41
+
42
+ /**
43
+ * Return argument name.
44
+ *
45
+ * @return {string}
46
+ */
47
+
48
+ name() {
49
+ return this._name;
50
+ }
51
+
52
+ /**
53
+ * @package
54
+ */
55
+
56
+ _concatValue(value, previous) {
57
+ if (previous === this.defaultValue || !Array.isArray(previous)) {
58
+ return [value];
59
+ }
60
+
61
+ return previous.concat(value);
62
+ }
63
+
64
+ /**
65
+ * Set the default value, and optionally supply the description to be displayed in the help.
66
+ *
67
+ * @param {*} value
68
+ * @param {string} [description]
69
+ * @return {Argument}
70
+ */
71
+
72
+ default(value, description) {
73
+ this.defaultValue = value;
74
+ this.defaultValueDescription = description;
75
+ return this;
76
+ }
77
+
78
+ /**
79
+ * Set the custom handler for processing CLI command arguments into argument values.
80
+ *
81
+ * @param {Function} [fn]
82
+ * @return {Argument}
83
+ */
84
+
85
+ argParser(fn) {
86
+ this.parseArg = fn;
87
+ return this;
88
+ }
89
+
90
+ /**
91
+ * Only allow argument value to be one of choices.
92
+ *
93
+ * @param {string[]} values
94
+ * @return {Argument}
95
+ */
96
+
97
+ choices(values) {
98
+ this.argChoices = values.slice();
99
+ this.parseArg = (arg, previous) => {
100
+ if (!this.argChoices.includes(arg)) {
101
+ throw new InvalidArgumentError(
102
+ `Allowed choices are ${this.argChoices.join(', ')}.`,
103
+ );
104
+ }
105
+ if (this.variadic) {
106
+ return this._concatValue(arg, previous);
107
+ }
108
+ return arg;
109
+ };
110
+ return this;
111
+ }
112
+
113
+ /**
114
+ * Make argument required.
115
+ *
116
+ * @returns {Argument}
117
+ */
118
+ argRequired() {
119
+ this.required = true;
120
+ return this;
121
+ }
122
+
123
+ /**
124
+ * Make argument optional.
125
+ *
126
+ * @returns {Argument}
127
+ */
128
+ argOptional() {
129
+ this.required = false;
130
+ return this;
131
+ }
132
+ }
133
+
134
+ /**
135
+ * Takes an argument and returns its human readable equivalent for help usage.
136
+ *
137
+ * @param {Argument} arg
138
+ * @return {string}
139
+ * @private
140
+ */
141
+
142
+ function humanReadableArgName(arg) {
143
+ const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
144
+
145
+ return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']';
146
+ }
147
+
148
+ exports.Argument = Argument;
149
+ exports.humanReadableArgName = humanReadableArgName;