@agentforge/core 0.18.5 → 0.18.6

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 CHANGED
@@ -2678,6 +2678,20 @@ function withLogging2(options) {
2678
2678
  return (node) => withLogging(options)(node);
2679
2679
  }
2680
2680
 
2681
+ // src/langgraph/middleware/preset-development.ts
2682
+ function development(node, options) {
2683
+ const { nodeName, verbose = true, logger: logger6 } = options;
2684
+ const actualLogger = logger6 || createLogger(nodeName, { level: "debug" /* DEBUG */ });
2685
+ return withLogging2({
2686
+ logger: actualLogger,
2687
+ name: nodeName,
2688
+ logInput: verbose,
2689
+ logOutput: verbose,
2690
+ logDuration: true,
2691
+ logErrors: true
2692
+ })(node);
2693
+ }
2694
+
2681
2695
  // src/langgraph/middleware/preset-production.ts
2682
2696
  function production(node, options) {
2683
2697
  const {
@@ -2743,20 +2757,6 @@ function production(node, options) {
2743
2757
  return compose(...middleware)(node);
2744
2758
  }
2745
2759
 
2746
- // src/langgraph/middleware/preset-development.ts
2747
- function development(node, options) {
2748
- const { nodeName, verbose = true, logger: logger6 } = options;
2749
- const actualLogger = logger6 || createLogger(nodeName, { level: "debug" /* DEBUG */ });
2750
- return withLogging2({
2751
- logger: actualLogger,
2752
- name: nodeName,
2753
- logInput: verbose,
2754
- logOutput: verbose,
2755
- logDuration: true,
2756
- logErrors: true
2757
- })(node);
2758
- }
2759
-
2760
2760
  // src/langgraph/middleware/preset-testing.ts
2761
2761
  function testing(node, options) {
2762
2762
  const {
@@ -2786,7 +2786,7 @@ function testing(node, options) {
2786
2786
  return testingNode;
2787
2787
  }
2788
2788
 
2789
- // src/langgraph/middleware/preset-collection.ts
2789
+ // src/langgraph/middleware/presets.ts
2790
2790
  var presets = {
2791
2791
  production,
2792
2792
  development,
package/dist/index.d.cts CHANGED
@@ -2122,20 +2122,28 @@ type TestingPresetNode<State> = NodeFunction<State> & {
2122
2122
  };
2123
2123
 
2124
2124
  /**
2125
- * Production preset with comprehensive error handling, metrics, and tracing.
2125
+ * Development preset with verbose logging and debugging.
2126
2126
  */
2127
- declare function production<State>(node: NodeFunction<State>, options: ProductionPresetOptions<State>): NodeFunction<State>;
2127
+ declare function development<State>(node: NodeFunction<State>, options: DevelopmentPresetOptions): NodeFunction<State>;
2128
2128
 
2129
2129
  /**
2130
- * Development preset with verbose logging and debugging.
2130
+ * Production preset with comprehensive error handling, metrics, and tracing.
2131
2131
  */
2132
- declare function development<State>(node: NodeFunction<State>, options: DevelopmentPresetOptions): NodeFunction<State>;
2132
+ declare function production<State>(node: NodeFunction<State>, options: ProductionPresetOptions<State>): NodeFunction<State>;
2133
2133
 
2134
2134
  /**
2135
2135
  * Testing preset for unit and integration tests.
2136
2136
  */
2137
2137
  declare function testing<State>(node: NodeFunction<State>, options: TestingPresetOptions<State>): TestingPresetNode<State>;
2138
2138
 
2139
+ /**
2140
+ * Middleware Presets
2141
+ *
2142
+ * Pre-configured middleware combinations for common use cases.
2143
+ *
2144
+ * @module langgraph/middleware/presets
2145
+ */
2146
+
2139
2147
  declare const presets: {
2140
2148
  production: typeof production;
2141
2149
  development: typeof development;
package/dist/index.d.ts CHANGED
@@ -2122,20 +2122,28 @@ type TestingPresetNode<State> = NodeFunction<State> & {
2122
2122
  };
2123
2123
 
2124
2124
  /**
2125
- * Production preset with comprehensive error handling, metrics, and tracing.
2125
+ * Development preset with verbose logging and debugging.
2126
2126
  */
2127
- declare function production<State>(node: NodeFunction<State>, options: ProductionPresetOptions<State>): NodeFunction<State>;
2127
+ declare function development<State>(node: NodeFunction<State>, options: DevelopmentPresetOptions): NodeFunction<State>;
2128
2128
 
2129
2129
  /**
2130
- * Development preset with verbose logging and debugging.
2130
+ * Production preset with comprehensive error handling, metrics, and tracing.
2131
2131
  */
2132
- declare function development<State>(node: NodeFunction<State>, options: DevelopmentPresetOptions): NodeFunction<State>;
2132
+ declare function production<State>(node: NodeFunction<State>, options: ProductionPresetOptions<State>): NodeFunction<State>;
2133
2133
 
2134
2134
  /**
2135
2135
  * Testing preset for unit and integration tests.
2136
2136
  */
2137
2137
  declare function testing<State>(node: NodeFunction<State>, options: TestingPresetOptions<State>): TestingPresetNode<State>;
2138
2138
 
2139
+ /**
2140
+ * Middleware Presets
2141
+ *
2142
+ * Pre-configured middleware combinations for common use cases.
2143
+ *
2144
+ * @module langgraph/middleware/presets
2145
+ */
2146
+
2139
2147
  declare const presets: {
2140
2148
  production: typeof production;
2141
2149
  development: typeof development;
package/dist/index.js CHANGED
@@ -2502,6 +2502,20 @@ function withLogging2(options) {
2502
2502
  return (node) => withLogging(options)(node);
2503
2503
  }
2504
2504
 
2505
+ // src/langgraph/middleware/preset-development.ts
2506
+ function development(node, options) {
2507
+ const { nodeName, verbose = true, logger: logger6 } = options;
2508
+ const actualLogger = logger6 || createLogger(nodeName, { level: "debug" /* DEBUG */ });
2509
+ return withLogging2({
2510
+ logger: actualLogger,
2511
+ name: nodeName,
2512
+ logInput: verbose,
2513
+ logOutput: verbose,
2514
+ logDuration: true,
2515
+ logErrors: true
2516
+ })(node);
2517
+ }
2518
+
2505
2519
  // src/langgraph/middleware/preset-production.ts
2506
2520
  function production(node, options) {
2507
2521
  const {
@@ -2567,20 +2581,6 @@ function production(node, options) {
2567
2581
  return compose(...middleware)(node);
2568
2582
  }
2569
2583
 
2570
- // src/langgraph/middleware/preset-development.ts
2571
- function development(node, options) {
2572
- const { nodeName, verbose = true, logger: logger6 } = options;
2573
- const actualLogger = logger6 || createLogger(nodeName, { level: "debug" /* DEBUG */ });
2574
- return withLogging2({
2575
- logger: actualLogger,
2576
- name: nodeName,
2577
- logInput: verbose,
2578
- logOutput: verbose,
2579
- logDuration: true,
2580
- logErrors: true
2581
- })(node);
2582
- }
2583
-
2584
2584
  // src/langgraph/middleware/preset-testing.ts
2585
2585
  function testing(node, options) {
2586
2586
  const {
@@ -2610,7 +2610,7 @@ function testing(node, options) {
2610
2610
  return testingNode;
2611
2611
  }
2612
2612
 
2613
- // src/langgraph/middleware/preset-collection.ts
2613
+ // src/langgraph/middleware/presets.ts
2614
2614
  var presets = {
2615
2615
  production,
2616
2616
  development,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge/core",
3
- "version": "0.18.5",
3
+ "version": "0.18.6",
4
4
  "description": "Production-ready TypeScript agent framework built on LangGraph with orchestration, middleware, and typed abstractions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",