aui-agent-builder 0.4.6 → 0.4.8

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 (69) hide show
  1. package/dist/api-client/apollo-client.d.ts +102 -5
  2. package/dist/api-client/apollo-client.d.ts.map +1 -1
  3. package/dist/api-client/apollo-client.js +136 -5
  4. package/dist/api-client/apollo-client.js.map +1 -1
  5. package/dist/api-client/mock-db-client.d.ts +11 -0
  6. package/dist/api-client/mock-db-client.d.ts.map +1 -1
  7. package/dist/api-client/mock-db-client.js +15 -0
  8. package/dist/api-client/mock-db-client.js.map +1 -1
  9. package/dist/commands/import-agent.d.ts +2 -5
  10. package/dist/commands/import-agent.d.ts.map +1 -1
  11. package/dist/commands/import-agent.js +1 -1
  12. package/dist/commands/import-agent.js.map +1 -1
  13. package/dist/commands/init.d.ts.map +1 -1
  14. package/dist/commands/init.js +10 -3
  15. package/dist/commands/init.js.map +1 -1
  16. package/dist/commands/integration-mcp-test.d.ts +0 -2
  17. package/dist/commands/integration-mcp-test.d.ts.map +1 -1
  18. package/dist/commands/integration-mcp-test.js +41 -135
  19. package/dist/commands/integration-mcp-test.js.map +1 -1
  20. package/dist/commands/integration-mcp-url.d.ts +6 -7
  21. package/dist/commands/integration-mcp-url.d.ts.map +1 -1
  22. package/dist/commands/integration-mcp-url.js +10 -29
  23. package/dist/commands/integration-mcp-url.js.map +1 -1
  24. package/dist/commands/integration-toolkits.d.ts +4 -11
  25. package/dist/commands/integration-toolkits.d.ts.map +1 -1
  26. package/dist/commands/integration-toolkits.js +6 -28
  27. package/dist/commands/integration-toolkits.js.map +1 -1
  28. package/dist/commands/integration-tools.d.ts +5 -15
  29. package/dist/commands/integration-tools.d.ts.map +1 -1
  30. package/dist/commands/integration-tools.js +17 -63
  31. package/dist/commands/integration-tools.js.map +1 -1
  32. package/dist/commands/integration.d.ts +0 -1
  33. package/dist/commands/integration.d.ts.map +1 -1
  34. package/dist/commands/integration.js +62 -168
  35. package/dist/commands/integration.js.map +1 -1
  36. package/dist/commands/mockdb-guide.d.ts +1 -1
  37. package/dist/commands/mockdb-guide.d.ts.map +1 -1
  38. package/dist/commands/mockdb-guide.js +18 -0
  39. package/dist/commands/mockdb-guide.js.map +1 -1
  40. package/dist/commands/pull-agent.d.ts +2 -5
  41. package/dist/commands/pull-agent.d.ts.map +1 -1
  42. package/dist/commands/pull-agent.js +1 -1
  43. package/dist/commands/pull-agent.js.map +1 -1
  44. package/dist/config/index.d.ts +36 -1
  45. package/dist/config/index.d.ts.map +1 -1
  46. package/dist/config/index.js +19 -5
  47. package/dist/config/index.js.map +1 -1
  48. package/dist/errors/index.d.ts +9 -0
  49. package/dist/errors/index.d.ts.map +1 -1
  50. package/dist/errors/index.js +20 -9
  51. package/dist/errors/index.js.map +1 -1
  52. package/dist/index.js +43 -34
  53. package/dist/index.js.map +1 -1
  54. package/dist/services/integration.service.d.ts +73 -148
  55. package/dist/services/integration.service.d.ts.map +1 -1
  56. package/dist/services/integration.service.js +400 -559
  57. package/dist/services/integration.service.js.map +1 -1
  58. package/dist/services/mock-db.service.d.ts +13 -1
  59. package/dist/services/mock-db.service.d.ts.map +1 -1
  60. package/dist/services/mock-db.service.js +98 -2
  61. package/dist/services/mock-db.service.js.map +1 -1
  62. package/dist/services/pull-schema.service.d.ts +4 -5
  63. package/dist/services/pull-schema.service.d.ts.map +1 -1
  64. package/dist/services/pull-schema.service.js +12 -10
  65. package/dist/services/pull-schema.service.js.map +1 -1
  66. package/dist/ui/components/ErrorDisplay.d.ts.map +1 -1
  67. package/dist/ui/components/ErrorDisplay.js +16 -4
  68. package/dist/ui/components/ErrorDisplay.js.map +1 -1
  69. package/package.json +1 -2
@@ -1,11 +1,24 @@
1
- import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Box, Text } from "ink";
3
3
  import { colors, icons } from "../theme.js";
4
- import { toCLIError } from "../../errors/index.js";
4
+ import { toCLIError, CLIError } from "../../errors/index.js";
5
5
  const isDebug = () => !!process.env.AUI_DEBUG || process.argv.includes("--verbose");
6
6
  function resolveError(props) {
7
7
  const classified = props.error ? toCLIError(props.error) : null;
8
8
  const base = classified ?? toCLIError(new Error(props.message ?? "Unknown error"));
9
+ // Don't let a generic caller `message` mask a classified API/auth error.
10
+ if (classified && classified.code !== "UNKNOWN_ERROR") {
11
+ if (props.suggestion || props.docsUrl) {
12
+ return new CLIError(classified.message, {
13
+ suggestion: props.suggestion ?? classified.suggestion,
14
+ docsUrl: props.docsUrl ?? classified.docsUrl,
15
+ code: classified.code,
16
+ exitCode: classified.exitCode,
17
+ cause: props.error,
18
+ });
19
+ }
20
+ return classified;
21
+ }
9
22
  if (props.message && props.message !== base.message) {
10
23
  return toCLIError(Object.assign(new Error(props.message), {
11
24
  suggestion: props.suggestion ?? base.suggestion,
@@ -23,7 +36,6 @@ export function ErrorDisplay(props) {
23
36
  const suggestion = props.suggestion ?? cliError.suggestion;
24
37
  const docsUrl = props.docsUrl ?? cliError.docsUrl;
25
38
  const debug = isDebug();
26
- const rootCause = cliError.cause instanceof Error ? cliError.cause : cliError;
27
- return (_jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsx(Box, { children: _jsxs(Text, { color: colors.error, children: [icons.error, " ", message] }) }), suggestion && (_jsx(Box, { marginLeft: 2, marginTop: 1, children: _jsxs(Text, { color: colors.warning, children: [icons.arrowRight, " ", suggestion] }) })), docsUrl && (_jsx(Box, { marginLeft: 2, marginTop: suggestion ? 0 : 1, children: _jsxs(Text, { color: colors.info, children: [icons.arrowRight, " Docs: ", _jsx(Text, { underline: true, children: docsUrl })] }) })), debug && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { color: colors.muted, children: "─".repeat(50) }), _jsxs(Text, { color: colors.muted, children: ["Error code: ", cliError.code] }), _jsxs(Text, { color: colors.muted, children: ["Exit code: ", cliError.exitCode] }), rootCause.stack && (_jsxs(_Fragment, { children: [_jsx(Text, { color: colors.muted, children: "Stack trace:" }), _jsx(Text, { color: colors.muted, children: rootCause.stack })] })), _jsx(Text, { color: colors.muted, children: "─".repeat(50) })] }))] }));
39
+ return (_jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsx(Box, { children: _jsxs(Text, { color: colors.error, children: [icons.error, " ", message] }) }), suggestion && (_jsx(Box, { marginLeft: 2, marginTop: 1, children: _jsxs(Text, { color: colors.warning, children: [icons.arrowRight, " ", suggestion] }) })), docsUrl && (_jsx(Box, { marginLeft: 2, marginTop: suggestion ? 0 : 1, children: _jsxs(Text, { color: colors.info, children: [icons.arrowRight, " Docs: ", _jsx(Text, { underline: true, children: docsUrl })] }) })), debug && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { color: colors.muted, children: "─".repeat(50) }), _jsxs(Text, { color: colors.muted, children: ["Error code: ", cliError.code] }), _jsxs(Text, { color: colors.muted, children: ["Exit code: ", cliError.exitCode] }), _jsx(Text, { color: colors.muted, children: "─".repeat(50) })] }))] }));
28
40
  }
29
41
  //# sourceMappingURL=ErrorDisplay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorDisplay.js","sourceRoot":"","sources":["../../../src/ui/components/ErrorDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAiB,MAAM,uBAAuB,CAAC;AAElE,MAAM,OAAO,GAAG,GAAG,EAAE,CACnB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAahE,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,UA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H,CACP,EACA,OAAO,IAAI,CACV,KAAC,GAAG,IAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAC/C,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,aACrB,KAAK,CAAC,UAAU,aAAQ,KAAC,IAAI,IAAC,SAAS,kBAAE,OAAO,GAAQ,IACpD,GACH,CACP,EACA,KAAK,IAAI,CACR,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aACtC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAQ,EAClD,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,6BAAe,QAAQ,CAAC,IAAI,IAAQ,EAC7D,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,6BAAe,QAAQ,CAAC,QAAQ,IAAQ,EACjE,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAQ,IAC9C,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aui-agent-builder",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "CLI for building, managing, and deploying AUI AI agent configurations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -44,7 +44,6 @@
44
44
  "@aui.io/aui-client": "^1.2.34",
45
45
  "@aui.io/aui-ui-kit": "^0.1.0",
46
46
  "@babel/standalone": "^7.29.2",
47
- "@composio/core": "^0.10.0",
48
47
  "@opentelemetry/api": "^1.9.0",
49
48
  "@opentelemetry/exporter-trace-otlp-http": "^0.213.0",
50
49
  "@opentelemetry/resources": "^2.6.0",