Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name": "genesys-cloud-architect",
"source": "./",
"description": "Create, test, and debug Genesys Cloud Architect flows",
"version": "2.0.12"
"version": "2.0.13"
}
]
}
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "genesys-cloud-architect",
"description": "Create, test, and debug Genesys Cloud Architect flows",
"version": "2.0.12",
"version": "2.0.13",
"author": {
"name": "Lucas Woodward",
"url": "https://makingchatbots.com/"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genesys-cloud-architect",
"version": "2.0.12",
"version": "2.0.13",
"private": true,
"engines": {
"node": ">=22"
Expand Down
32 changes: 24 additions & 8 deletions scripts/deploy-runner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion servers/genesys-cloud-architect-mcp.js

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions src/deploy-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import https from "node:https";
import path from "node:path";
import { pathToFileURL } from "node:url";
import { parseArgs } from "node:util";
import { formatApiError } from "../shared/api-error.ts";
import type {
DeployResultPayload,
DeployStatus,
Expand Down Expand Up @@ -592,8 +593,7 @@ async function main(): Promise<void> {
// afterwards (typically the searchability poll) does not undo it.
emit("result", success(undefined, validationFromLog()));
} else {
const message = err instanceof Error ? err.message : String(err);
emit("result", failure(message));
emit("result", failure(formatApiError(err)));
}
} finally {
session.endExitCode = 0;
Expand All @@ -604,11 +604,6 @@ async function main(): Promise<void> {
main()
.then(() => process.exit(0))
.catch((err) => {
emit(
"result",
failure(
`Unhandled error: ${err instanceof Error ? err.message : String(err)}`,
),
);
emit("result", failure(`Unhandled error: ${formatApiError(err)}`));
process.exit(1);
});
2 changes: 1 addition & 1 deletion src/mcp-server/tools/find-flow-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import type { ToolFactory } from "../utilities/types.ts";

/** The API's own ceiling on results per query, per the help centre. */
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/find-flow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type platformClient from "purecloud-platform-client-v2";
import type { ArchitectApi } from "purecloud-platform-client-v2";
import { z } from "zod/v3";
import { formatApiError } from "../utilities/api-error.ts";
import { formatApiError } from "../../shared/api-error.ts";
import {
isExactNameMatch,
moveExactMatchToTop,
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/find-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import { type EntityRef, toEntityRef } from "../utilities/entity-ref.ts";
import {
isExactNameMatch,
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/flow-dependencies.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type platformClient from "purecloud-platform-client-v2";
import type { ArchitectApi } from "purecloud-platform-client-v2";
import { z } from "zod/v3";
import { formatApiError } from "../utilities/api-error.ts";
import { formatApiError } from "../../shared/api-error.ts";
import type { ToolFactory } from "../utilities/types.ts";

function flowTypeToObjectType(flowType: string): string {
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/flow-execution-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import {
type ConfigurationSource,
fetchFlowConfiguration,
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/flow-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import { type EntityRef, toEntityRef } from "../utilities/entity-ref.ts";
import type { ToolFactory } from "../utilities/types.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/get-prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import { type EntityRef, toEntityRef } from "../utilities/entity-ref.ts";
import {
type ConfigurationSource,
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/org-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import type { ToolFactory } from "../utilities/types.ts";

interface OrgDetailsResult {
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/tools/test-bot-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
authHint,
formatApiError,
toApiError,
} from "../utilities/api-error.ts";
} from "../../shared/api-error.ts";
import { nameKey } from "../utilities/name-match.ts";
import type { ToolFactory } from "../utilities/types.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/utilities/fetch-flow-configuration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ArchitectApi } from "purecloud-platform-client-v2";
import { z } from "zod/v3";
import { toApiError } from "./api-error.ts";
import { toApiError } from "../../shared/api-error.ts";

/**
* Which configuration of a flow a tool read. `deleted` is present when the
Expand Down
File renamed without changes.
Loading