@vef-framework-react/integration 2.23.0 → 2.24.1

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 (77) hide show
  1. package/dist/cjs/api/log-api.cjs +1 -1
  2. package/dist/cjs/components/test-connection/index.cjs +1 -1
  3. package/dist/cjs/components/wire-trace/index.cjs +1 -1
  4. package/dist/cjs/pages/console-page/index.cjs +1 -1
  5. package/dist/cjs/pages/console-page/log.cjs +1 -1
  6. package/dist/cjs/pages/console-page/replay.cjs +1 -0
  7. package/dist/cjs/permissions.cjs +1 -1
  8. package/dist/es/api/code-set-api.js +1 -1
  9. package/dist/es/api/crud-api.js +1 -1
  10. package/dist/es/api/index.js +1 -1
  11. package/dist/es/api/log-api.js +11 -5
  12. package/dist/es/api/ops-api.js +1 -1
  13. package/dist/es/api/query.js +1 -1
  14. package/dist/es/api/stats-api.js +1 -1
  15. package/dist/es/components/auth-params/index.js +1 -1
  16. package/dist/es/components/directory/index.js +1 -1
  17. package/dist/es/components/form-section/index.js +1 -1
  18. package/dist/es/components/format.js +1 -1
  19. package/dist/es/components/index.js +1 -1
  20. package/dist/es/components/json-view/index.js +1 -1
  21. package/dist/es/components/params-editor/index.js +1 -1
  22. package/dist/es/components/script-doc/completions.js +1 -1
  23. package/dist/es/components/script-doc/index.js +1 -1
  24. package/dist/es/components/status/colors.js +1 -1
  25. package/dist/es/components/status/index.js +1 -1
  26. package/dist/es/components/status/labels.js +1 -1
  27. package/dist/es/components/test-connection/index.js +84 -84
  28. package/dist/es/components/wire-trace/index.js +7 -2
  29. package/dist/es/index.js +1 -1
  30. package/dist/es/pages/adapter-page/columns.js +1 -1
  31. package/dist/es/pages/adapter-page/form.js +1 -1
  32. package/dist/es/pages/adapter-page/helpers.js +1 -1
  33. package/dist/es/pages/adapter-page/index.js +1 -1
  34. package/dist/es/pages/adapter-page/search.js +1 -1
  35. package/dist/es/pages/code-map-page/columns.js +1 -1
  36. package/dist/es/pages/code-map-page/entries-editor.js +1 -1
  37. package/dist/es/pages/code-map-page/form.js +1 -1
  38. package/dist/es/pages/code-map-page/helpers.js +1 -1
  39. package/dist/es/pages/code-map-page/index.js +1 -1
  40. package/dist/es/pages/code-map-page/model.js +1 -1
  41. package/dist/es/pages/code-map-page/search.js +1 -1
  42. package/dist/es/pages/console-page/diagnostics.js +1 -1
  43. package/dist/es/pages/console-page/dry-run.js +1 -1
  44. package/dist/es/pages/console-page/index.js +4 -3
  45. package/dist/es/pages/console-page/log.js +69 -56
  46. package/dist/es/pages/console-page/replay.js +140 -0
  47. package/dist/es/pages/console-page/stats.js +1 -1
  48. package/dist/es/pages/contract-page/columns.js +1 -1
  49. package/dist/es/pages/contract-page/form.js +1 -1
  50. package/dist/es/pages/contract-page/helpers.js +1 -1
  51. package/dist/es/pages/contract-page/index.js +1 -1
  52. package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
  53. package/dist/es/pages/contract-page/model.js +1 -1
  54. package/dist/es/pages/contract-page/search.js +1 -1
  55. package/dist/es/pages/index.js +1 -1
  56. package/dist/es/pages/route-page/columns.js +1 -1
  57. package/dist/es/pages/route-page/form.js +1 -1
  58. package/dist/es/pages/route-page/helpers.js +1 -1
  59. package/dist/es/pages/route-page/index.js +1 -1
  60. package/dist/es/pages/route-page/search.js +1 -1
  61. package/dist/es/pages/system-page/columns.js +1 -1
  62. package/dist/es/pages/system-page/form.js +1 -1
  63. package/dist/es/pages/system-page/helpers.js +1 -1
  64. package/dist/es/pages/system-page/index.js +1 -1
  65. package/dist/es/pages/system-page/model.js +1 -1
  66. package/dist/es/pages/system-page/search.js +1 -1
  67. package/dist/es/permissions.js +5 -2
  68. package/dist/es/types/enums.js +1 -1
  69. package/dist/es/types/index.js +1 -1
  70. package/dist/types/api/log-api.d.ts +5 -3
  71. package/dist/types/pages/console-page/index.d.ts +1 -0
  72. package/dist/types/pages/console-page/log.d.ts +9 -2
  73. package/dist/types/pages/console-page/replay.d.ts +15 -0
  74. package/dist/types/permissions.d.ts +1 -0
  75. package/dist/types/types/index.d.ts +1 -1
  76. package/dist/types/types/log.d.ts +41 -7
  77. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { useRouteApi as e } from "../../api/crud-api.js";
3
3
  import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
4
4
  import { INTEGRATION_PERMISSIONS as r } from "../../permissions.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { useSystemDirectory as e } from "../../components/directory/index.js";
3
3
  import { useFormContext as t } from "@vef-framework-react/components";
4
4
  import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { INBOUND_AUTH_SCHEME_LABELS as t, OUTBOUND_AUTH_SCHEME_LABELS as n } from "../../components/status/labels.js";
4
4
  import { EnabledTag as r } from "../../components/status/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { ParamsEditor as e } from "../../components/params-editor/index.js";
3
3
  import { AuthParamsFields as t } from "../../components/auth-params/index.js";
4
4
  import { FormSection as n } from "../../components/form-section/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { API_PATH as e } from "../../api/query.js";
3
3
  import { systemFormToParams as t } from "./model.js";
4
4
  import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { useSystemApi as e } from "../../api/crud-api.js";
3
3
  import { TestConnectionDrawer as t } from "../../components/test-connection/index.js";
4
4
  import { INTEGRATION_PERMISSIONS as n } from "../../permissions.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { pruneAuthParams as e } from "../../components/auth-params/index.js";
3
3
  import { INBOUND_AUTH_SCHEMES as t, OUTBOUND_AUTH_SCHEMES as n } from "../../types/enums.js";
4
4
  import { INBOUND_AUTH_SCHEME_LABELS as r, OUTBOUND_AUTH_SCHEME_LABELS as i } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { useFormContext as e } from "@vef-framework-react/components";
3
3
  import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region src/pages/system-page/search.tsx
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  //#region src/permissions.ts
3
3
  var e = {
4
4
  contract: {
@@ -31,7 +31,10 @@ var e = {
31
31
  update: "integration.code_map.update",
32
32
  delete: "integration.code_map.delete"
33
33
  },
34
- log: { query: "integration.log.query" },
34
+ log: {
35
+ query: "integration.log.query",
36
+ replay: "integration.log.replay"
37
+ },
35
38
  ops: {
36
39
  dryRun: "integration.ops.dry_run",
37
40
  dryRunInbound: "integration.ops.dry_run_inbound",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  //#region src/types/enums.ts
3
3
  var e = ["outbound", "inbound"], t = [
4
4
  "input_invalid",
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/integration v2.23.0 made by Venus | 2026-09-22T09:09:19.032Z */
1
+ /*! @vef-framework-react/integration v2.24.1 made by Venus | 2026-09-28T10:43:02.883Z */
2
2
  import { DATA_SOURCE_MODES as e, DIRECTIONS as t, FAILURE_KINDS as n, INBOUND_AUTH_SCHEMES as r, MASKED_SECRET as i, OUTBOUND_AUTH_SCHEMES as a, ROUTE_FINDING_KINDS as o, UNMAPPED_POLICIES as s } from "./enums.js";
3
3
  export { e as DATA_SOURCE_MODES, t as DIRECTIONS, n as FAILURE_KINDS, r as INBOUND_AUTH_SCHEMES, i as MASKED_SECRET, a as OUTBOUND_AUTH_SCHEMES, o as ROUTE_FINDING_KINDS, s as UNMAPPED_POLICIES };
@@ -1,10 +1,12 @@
1
1
  import { PaginatedQueryParams } from '@vef-framework-react/components';
2
- import { PaginationResult, QueryFunction } from '@vef-framework-react/core';
3
- import { InvocationLog, LogSearch } from '../types';
2
+ import { MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
3
+ import { InvocationLog, LogSearch, ReplayParams, ReplayResult } from '../types';
4
4
  /**
5
- * The read-only query functions for the invocation log resource.
5
+ * The invocation log resource: the page query plus replay, a mutation because
6
+ * it is triggered imperatively and an outbound replay's calls are real.
6
7
  */
7
8
  export interface LogApi {
8
9
  findPage: QueryFunction<PaginationResult<InvocationLog>, PaginatedQueryParams<LogSearch>>;
10
+ replay: MutationFunction<ReplayResult, ReplayParams>;
9
11
  }
10
12
  export declare function useLogApi(): LogApi;
@@ -8,6 +8,7 @@ export interface IntegrationConsolePageProps {
8
8
  dryRunInbound?: string;
9
9
  diagnoseRoutes?: string;
10
10
  logQuery?: string;
11
+ logReplay?: string;
11
12
  statsView?: string;
12
13
  };
13
14
  /**
@@ -1,4 +1,11 @@
1
+ export interface LogPanelProps {
2
+ /**
3
+ * Permission code gating the replay action in the detail drawer.
4
+ */
5
+ replayPermission: string;
6
+ }
1
7
  /**
2
- * The invocation-log browser: a filtered list with a full-capture detail drawer.
8
+ * The invocation-log browser: a filtered list with a full-capture detail
9
+ * drawer that can replay the invocation.
3
10
  */
4
- export declare function LogPanel(): import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare function LogPanel({ replayPermission }: LogPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { MutationFunction } from '@vef-framework-react/core';
2
+ import { InvocationLog, ReplayParams, ReplayResult } from '../../types';
3
+ export interface ReplayPanelProps {
4
+ log: InvocationLog;
5
+ /**
6
+ * Permission code gating the replay action.
7
+ */
8
+ permission: string;
9
+ replay: MutationFunction<ReplayResult, ReplayParams>;
10
+ }
11
+ /**
12
+ * Re-runs a recorded invocation against the current definitions — optionally
13
+ * with an unsaved script — and compares the outcome with the original.
14
+ */
15
+ export declare function ReplayPanel({ log, permission, replay }: ReplayPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -38,6 +38,7 @@ export declare const INTEGRATION_PERMISSIONS: {
38
38
  };
39
39
  readonly log: {
40
40
  readonly query: "integration.log.query";
41
+ readonly replay: "integration.log.replay";
41
42
  };
42
43
  readonly ops: {
43
44
  readonly dryRun: "integration.ops.dry_run";
@@ -6,7 +6,7 @@ export type { Contract, ContractParams, ContractSearch, JsonSchema } from './con
6
6
  export type { RouteDiagnostics, RouteFinding } from './diagnostics';
7
7
  export * from './enums';
8
8
  export type { JsonObject, JsonValue } from './json';
9
- export type { HttpExchange, InvocationLog, LogSearch } from './log';
9
+ export type { HttpExchange, InvocationLog, InvocationOutcome, LogSearch, ReplayParams, ReplayResult } from './log';
10
10
  export type { ConnectionCheck, DatabaseProbe, DryRunInboundParams, DryRunParams, DryRunResult, HttpProbe, InboundDryRunResult, InboundRequestInput, TestConnectionParams } from './ops';
11
11
  export type { Route, RouteParams, RouteSearch } from './route';
12
12
  export type { IntegrationStatsResult, InvocationStats } from './stats';
@@ -16,23 +16,57 @@ export interface HttpExchange {
16
16
  responseBody?: string;
17
17
  durationMs: number;
18
18
  error?: string;
19
+ /**
20
+ * The caller's network address; only inbound deliveries carry one.
21
+ */
22
+ clientAddr?: string;
19
23
  }
20
24
  /**
21
- * One recorded invocation: its classification, timing, and the masked,
22
- * size-capped captures. Read-only. Mirrors the Go `integration.InvocationLog`.
23
- * `failureKind` is empty for a successful invocation.
25
+ * The outcome of one run — recorded or replayed — with its classification,
26
+ * timing, and masked, size-capped captures. `failureKind` is empty for a
27
+ * successful run.
24
28
  */
25
- export interface InvocationLog extends CreationAudited {
26
- systemCode: string;
27
- contractCode: string;
28
- direction: Direction;
29
+ export interface InvocationOutcome {
29
30
  failureKind?: FailureKind | "";
30
31
  durationMs: number;
31
32
  input?: JsonValue;
32
33
  output?: JsonValue;
33
34
  httpTrace?: HttpExchange[] | null;
34
35
  error?: string | null;
36
+ }
37
+ /**
38
+ * One recorded invocation. Read-only. Mirrors the Go `integration.InvocationLog`.
39
+ */
40
+ export interface InvocationLog extends CreationAudited, InvocationOutcome {
41
+ systemCode: string;
42
+ contractCode: string;
43
+ direction: Direction;
35
44
  requestId: string;
45
+ /**
46
+ * Whether a replay payload was kept (`vef.integration.log.replay`), so the
47
+ * invocation can be re-run.
48
+ */
49
+ replayable: boolean;
50
+ }
51
+ /**
52
+ * Parameters of a replay; `script` runs unsaved editor content in place of the
53
+ * saved adapter script.
54
+ */
55
+ export interface ReplayParams {
56
+ id: string;
57
+ script?: string;
58
+ }
59
+ /**
60
+ * The outcome of re-running a recorded invocation against the current
61
+ * definitions, shaped like the log entry it is compared with. Mirrors the Go
62
+ * `exec.ReplayResult`.
63
+ */
64
+ export interface ReplayResult extends InvocationOutcome {
65
+ /**
66
+ * The contract, system, or adapter was modified after the original
67
+ * invocation, so a different outcome may stem from that edit.
68
+ */
69
+ definitionChanged: boolean;
36
70
  }
37
71
  /**
38
72
  * Search parameters for invocation logs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vef-framework-react/integration",
3
- "version": "2.23.0",
3
+ "version": "2.24.1",
4
4
  "private": false,
5
5
  "description": "Integration engine management pages for VEF framework",
6
6
  "keywords": [
@@ -42,9 +42,9 @@
42
42
  "@emotion/react": "^11.14.0",
43
43
  "dayjs": "^1.11.0",
44
44
  "lucide-react": "^1.23.0",
45
- "@vef-framework-react/components": "2.23.0",
46
- "@vef-framework-react/core": "2.23.0",
47
- "@vef-framework-react/shared": "2.23.0"
45
+ "@vef-framework-react/core": "2.24.1",
46
+ "@vef-framework-react/components": "2.24.1",
47
+ "@vef-framework-react/shared": "2.24.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "react": "^19.2.7"