@aws/nx-plugin 0.94.1 → 0.95.0
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/LICENSE-THIRD-PARTY +548 -1069
- package/package.json +11 -11
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +25 -25
- package/src/preset/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +228 -106
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +7 -7
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +228 -106
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +45 -45
- package/src/ts/strands-agent/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/utils/api-constructs/files/cdk/core/api/utils/utils.ts.template +114 -53
- package/src/utils/versions.d.ts +45 -45
- package/src/utils/versions.js +44 -44
- package/src/utils/versions.js.map +1 -1
|
@@ -680,15 +680,15 @@ exports[`py#strands-agent generator > should match snapshot for generated files
|
|
|
680
680
|
name = "proj.test_project"
|
|
681
681
|
version = "0.1.0"
|
|
682
682
|
dependencies = [
|
|
683
|
-
"aws-lambda-powertools==3.
|
|
684
|
-
"aws-opentelemetry-distro==0.
|
|
685
|
-
"bedrock-agentcore==1.6.
|
|
683
|
+
"aws-lambda-powertools==3.27.0",
|
|
684
|
+
"aws-opentelemetry-distro==0.17.0",
|
|
685
|
+
"bedrock-agentcore==1.6.1",
|
|
686
686
|
"fastapi==0.135.3",
|
|
687
|
-
"boto3==1.42.
|
|
687
|
+
"boto3==1.42.88",
|
|
688
688
|
"mcp==1.27.0",
|
|
689
|
-
"strands-agents==1.
|
|
690
|
-
"strands-agents-tools==0.
|
|
691
|
-
"uvicorn==0.
|
|
689
|
+
"strands-agents==1.35.0",
|
|
690
|
+
"strands-agents-tools==0.4.1",
|
|
691
|
+
"uvicorn==0.44.0"
|
|
692
692
|
]
|
|
693
693
|
|
|
694
694
|
[dependency-groups]
|
|
@@ -1586,20 +1586,6 @@ export interface HttpApiIntegration {
|
|
|
1586
1586
|
options?: Omit<AddRoutesOptions, 'path' | 'methods' | 'integration'>;
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
|
-
/**
|
|
1590
|
-
* Common options shared by all IntegrationBuilder configurations
|
|
1591
|
-
*/
|
|
1592
|
-
interface IntegrationBuilderPropsBase<
|
|
1593
|
-
TOperation extends string,
|
|
1594
|
-
TDefaultIntegrationProps extends object,
|
|
1595
|
-
> {
|
|
1596
|
-
/** Map of operation names to their API path and HTTP method details */
|
|
1597
|
-
operations: Record<TOperation, OperationDetails>;
|
|
1598
|
-
|
|
1599
|
-
/** Default configuration options for integrations */
|
|
1600
|
-
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
1589
|
/**
|
|
1604
1590
|
* Options for constructing an IntegrationBuilder with a shared integration pattern.
|
|
1605
1591
|
* A single default integration is built once (for '$router') and reused for all operations.
|
|
@@ -1608,8 +1594,12 @@ interface SharedIntegrationBuilderProps<
|
|
|
1608
1594
|
TOperation extends string,
|
|
1609
1595
|
TDefaultIntegrationProps extends object,
|
|
1610
1596
|
TDefaultIntegration,
|
|
1611
|
-
>
|
|
1597
|
+
> {
|
|
1612
1598
|
pattern: 'shared';
|
|
1599
|
+
/** Map of operation names to their API path and HTTP method details */
|
|
1600
|
+
operations: Record<TOperation, OperationDetails>;
|
|
1601
|
+
/** Default configuration options for integrations */
|
|
1602
|
+
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
1613
1603
|
/** Function to create a default integration for the shared router */
|
|
1614
1604
|
buildDefaultIntegration: (
|
|
1615
1605
|
op: '$router',
|
|
@@ -1625,8 +1615,12 @@ interface IsolatedIntegrationBuilderProps<
|
|
|
1625
1615
|
TOperation extends string,
|
|
1626
1616
|
TDefaultIntegrationProps extends object,
|
|
1627
1617
|
TDefaultIntegration,
|
|
1628
|
-
>
|
|
1618
|
+
> {
|
|
1629
1619
|
pattern: 'isolated';
|
|
1620
|
+
/** Map of operation names to their API path and HTTP method details */
|
|
1621
|
+
operations: Record<TOperation, OperationDetails>;
|
|
1622
|
+
/** Default configuration options for integrations */
|
|
1623
|
+
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
1630
1624
|
/** Function to create a default integration for an operation */
|
|
1631
1625
|
buildDefaultIntegration: (
|
|
1632
1626
|
op: TOperation,
|
|
@@ -1654,25 +1648,6 @@ export type IntegrationBuilderProps<
|
|
|
1654
1648
|
TDefaultIntegration
|
|
1655
1649
|
>;
|
|
1656
1650
|
|
|
1657
|
-
/**
|
|
1658
|
-
* Extracts the IntegrationBuilderProps variant matching the given pattern.
|
|
1659
|
-
*/
|
|
1660
|
-
type IntegrationBuilderPropsForPattern<
|
|
1661
|
-
TOperation extends string,
|
|
1662
|
-
TBaseIntegration,
|
|
1663
|
-
TDefaultIntegrationProps extends object,
|
|
1664
|
-
TDefaultIntegration extends TBaseIntegration,
|
|
1665
|
-
TPattern extends 'shared' | 'isolated',
|
|
1666
|
-
> = Extract<
|
|
1667
|
-
IntegrationBuilderProps<
|
|
1668
|
-
TOperation,
|
|
1669
|
-
TBaseIntegration,
|
|
1670
|
-
TDefaultIntegrationProps,
|
|
1671
|
-
TDefaultIntegration
|
|
1672
|
-
>,
|
|
1673
|
-
{ pattern: TPattern }
|
|
1674
|
-
>;
|
|
1675
|
-
|
|
1676
1651
|
/**
|
|
1677
1652
|
* Resolves the default integration keys based on the pattern.
|
|
1678
1653
|
* - 'shared': only '$router' is a default key
|
|
@@ -1732,22 +1707,65 @@ export class IntegrationBuilder<
|
|
|
1732
1707
|
private integrations: Partial<TIntegrations> = {};
|
|
1733
1708
|
|
|
1734
1709
|
/**
|
|
1735
|
-
* Create an Integration Builder for an HTTP API
|
|
1710
|
+
* Create an Integration Builder for an HTTP API with a shared pattern
|
|
1736
1711
|
*/
|
|
1737
|
-
public static http
|
|
1712
|
+
public static http<
|
|
1738
1713
|
TOperation extends string,
|
|
1739
1714
|
TDefaultIntegrationProps extends object,
|
|
1740
1715
|
TDefaultIntegration extends HttpApiIntegration,
|
|
1741
|
-
TPattern extends 'shared' | 'isolated',
|
|
1742
1716
|
>(
|
|
1743
|
-
options:
|
|
1717
|
+
options: SharedIntegrationBuilderProps<
|
|
1744
1718
|
TOperation,
|
|
1745
|
-
HttpApiIntegration,
|
|
1746
1719
|
TDefaultIntegrationProps,
|
|
1747
|
-
TDefaultIntegration
|
|
1748
|
-
TPattern
|
|
1720
|
+
TDefaultIntegration
|
|
1749
1721
|
>,
|
|
1750
|
-
)
|
|
1722
|
+
): IntegrationBuilder<
|
|
1723
|
+
TOperation,
|
|
1724
|
+
HttpApiIntegration,
|
|
1725
|
+
Record<'$router', TDefaultIntegration>,
|
|
1726
|
+
TDefaultIntegrationProps,
|
|
1727
|
+
TDefaultIntegration,
|
|
1728
|
+
'shared'
|
|
1729
|
+
>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Create an Integration Builder for an HTTP API with an isolated pattern
|
|
1732
|
+
*/
|
|
1733
|
+
public static http<
|
|
1734
|
+
TOperation extends string,
|
|
1735
|
+
TDefaultIntegrationProps extends object,
|
|
1736
|
+
TDefaultIntegration extends HttpApiIntegration,
|
|
1737
|
+
>(
|
|
1738
|
+
options: IsolatedIntegrationBuilderProps<
|
|
1739
|
+
TOperation,
|
|
1740
|
+
TDefaultIntegrationProps,
|
|
1741
|
+
TDefaultIntegration
|
|
1742
|
+
>,
|
|
1743
|
+
): IntegrationBuilder<
|
|
1744
|
+
TOperation,
|
|
1745
|
+
HttpApiIntegration,
|
|
1746
|
+
Record<TOperation, TDefaultIntegration>,
|
|
1747
|
+
TDefaultIntegrationProps,
|
|
1748
|
+
TDefaultIntegration,
|
|
1749
|
+
'isolated'
|
|
1750
|
+
>;
|
|
1751
|
+
public static http<
|
|
1752
|
+
TOperation extends string,
|
|
1753
|
+
TDefaultIntegrationProps extends object,
|
|
1754
|
+
TDefaultIntegration extends HttpApiIntegration,
|
|
1755
|
+
TPattern extends 'shared' | 'isolated',
|
|
1756
|
+
>(
|
|
1757
|
+
options:
|
|
1758
|
+
| SharedIntegrationBuilderProps<
|
|
1759
|
+
TOperation,
|
|
1760
|
+
TDefaultIntegrationProps,
|
|
1761
|
+
TDefaultIntegration
|
|
1762
|
+
>
|
|
1763
|
+
| IsolatedIntegrationBuilderProps<
|
|
1764
|
+
TOperation,
|
|
1765
|
+
TDefaultIntegrationProps,
|
|
1766
|
+
TDefaultIntegration
|
|
1767
|
+
>,
|
|
1768
|
+
) {
|
|
1751
1769
|
return new IntegrationBuilder<
|
|
1752
1770
|
TOperation,
|
|
1753
1771
|
HttpApiIntegration,
|
|
@@ -1756,25 +1774,68 @@ export class IntegrationBuilder<
|
|
|
1756
1774
|
TDefaultIntegration,
|
|
1757
1775
|
TPattern
|
|
1758
1776
|
>(options);
|
|
1759
|
-
}
|
|
1777
|
+
}
|
|
1760
1778
|
|
|
1761
1779
|
/**
|
|
1762
|
-
* Create an Integration Builder for a REST API
|
|
1780
|
+
* Create an Integration Builder for a REST API with a shared pattern
|
|
1763
1781
|
*/
|
|
1764
|
-
public static rest
|
|
1782
|
+
public static rest<
|
|
1765
1783
|
TOperation extends string,
|
|
1766
1784
|
TDefaultIntegrationProps extends object,
|
|
1767
1785
|
TDefaultIntegration extends RestApiIntegration,
|
|
1768
|
-
TPattern extends 'shared' | 'isolated',
|
|
1769
1786
|
>(
|
|
1770
|
-
options:
|
|
1787
|
+
options: SharedIntegrationBuilderProps<
|
|
1771
1788
|
TOperation,
|
|
1772
|
-
RestApiIntegration,
|
|
1773
1789
|
TDefaultIntegrationProps,
|
|
1774
|
-
TDefaultIntegration
|
|
1775
|
-
|
|
1790
|
+
TDefaultIntegration
|
|
1791
|
+
>,
|
|
1792
|
+
): IntegrationBuilder<
|
|
1793
|
+
TOperation,
|
|
1794
|
+
RestApiIntegration,
|
|
1795
|
+
Record<'$router', TDefaultIntegration>,
|
|
1796
|
+
TDefaultIntegrationProps,
|
|
1797
|
+
TDefaultIntegration,
|
|
1798
|
+
'shared'
|
|
1799
|
+
>;
|
|
1800
|
+
/**
|
|
1801
|
+
* Create an Integration Builder for a REST API with an isolated pattern
|
|
1802
|
+
*/
|
|
1803
|
+
public static rest<
|
|
1804
|
+
TOperation extends string,
|
|
1805
|
+
TDefaultIntegrationProps extends object,
|
|
1806
|
+
TDefaultIntegration extends RestApiIntegration,
|
|
1807
|
+
>(
|
|
1808
|
+
options: IsolatedIntegrationBuilderProps<
|
|
1809
|
+
TOperation,
|
|
1810
|
+
TDefaultIntegrationProps,
|
|
1811
|
+
TDefaultIntegration
|
|
1776
1812
|
>,
|
|
1777
|
-
)
|
|
1813
|
+
): IntegrationBuilder<
|
|
1814
|
+
TOperation,
|
|
1815
|
+
RestApiIntegration,
|
|
1816
|
+
Record<TOperation, TDefaultIntegration>,
|
|
1817
|
+
TDefaultIntegrationProps,
|
|
1818
|
+
TDefaultIntegration,
|
|
1819
|
+
'isolated'
|
|
1820
|
+
>;
|
|
1821
|
+
public static rest<
|
|
1822
|
+
TOperation extends string,
|
|
1823
|
+
TDefaultIntegrationProps extends object,
|
|
1824
|
+
TDefaultIntegration extends RestApiIntegration,
|
|
1825
|
+
TPattern extends 'shared' | 'isolated',
|
|
1826
|
+
>(
|
|
1827
|
+
options:
|
|
1828
|
+
| SharedIntegrationBuilderProps<
|
|
1829
|
+
TOperation,
|
|
1830
|
+
TDefaultIntegrationProps,
|
|
1831
|
+
TDefaultIntegration
|
|
1832
|
+
>
|
|
1833
|
+
| IsolatedIntegrationBuilderProps<
|
|
1834
|
+
TOperation,
|
|
1835
|
+
TDefaultIntegrationProps,
|
|
1836
|
+
TDefaultIntegration
|
|
1837
|
+
>,
|
|
1838
|
+
) {
|
|
1778
1839
|
return new IntegrationBuilder<
|
|
1779
1840
|
TOperation,
|
|
1780
1841
|
RestApiIntegration,
|
|
@@ -1783,7 +1844,7 @@ export class IntegrationBuilder<
|
|
|
1783
1844
|
TDefaultIntegration,
|
|
1784
1845
|
TPattern
|
|
1785
1846
|
>(options);
|
|
1786
|
-
}
|
|
1847
|
+
}
|
|
1787
1848
|
|
|
1788
1849
|
private constructor(
|
|
1789
1850
|
options: IntegrationBuilderProps<
|
|
@@ -2377,20 +2438,6 @@ export interface HttpApiIntegration {
|
|
|
2377
2438
|
options?: Omit<AddRoutesOptions, 'path' | 'methods' | 'integration'>;
|
|
2378
2439
|
}
|
|
2379
2440
|
|
|
2380
|
-
/**
|
|
2381
|
-
* Common options shared by all IntegrationBuilder configurations
|
|
2382
|
-
*/
|
|
2383
|
-
interface IntegrationBuilderPropsBase<
|
|
2384
|
-
TOperation extends string,
|
|
2385
|
-
TDefaultIntegrationProps extends object,
|
|
2386
|
-
> {
|
|
2387
|
-
/** Map of operation names to their API path and HTTP method details */
|
|
2388
|
-
operations: Record<TOperation, OperationDetails>;
|
|
2389
|
-
|
|
2390
|
-
/** Default configuration options for integrations */
|
|
2391
|
-
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
2441
|
/**
|
|
2395
2442
|
* Options for constructing an IntegrationBuilder with a shared integration pattern.
|
|
2396
2443
|
* A single default integration is built once (for '$router') and reused for all operations.
|
|
@@ -2399,8 +2446,12 @@ interface SharedIntegrationBuilderProps<
|
|
|
2399
2446
|
TOperation extends string,
|
|
2400
2447
|
TDefaultIntegrationProps extends object,
|
|
2401
2448
|
TDefaultIntegration,
|
|
2402
|
-
>
|
|
2449
|
+
> {
|
|
2403
2450
|
pattern: 'shared';
|
|
2451
|
+
/** Map of operation names to their API path and HTTP method details */
|
|
2452
|
+
operations: Record<TOperation, OperationDetails>;
|
|
2453
|
+
/** Default configuration options for integrations */
|
|
2454
|
+
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
2404
2455
|
/** Function to create a default integration for the shared router */
|
|
2405
2456
|
buildDefaultIntegration: (
|
|
2406
2457
|
op: '$router',
|
|
@@ -2416,8 +2467,12 @@ interface IsolatedIntegrationBuilderProps<
|
|
|
2416
2467
|
TOperation extends string,
|
|
2417
2468
|
TDefaultIntegrationProps extends object,
|
|
2418
2469
|
TDefaultIntegration,
|
|
2419
|
-
>
|
|
2470
|
+
> {
|
|
2420
2471
|
pattern: 'isolated';
|
|
2472
|
+
/** Map of operation names to their API path and HTTP method details */
|
|
2473
|
+
operations: Record<TOperation, OperationDetails>;
|
|
2474
|
+
/** Default configuration options for integrations */
|
|
2475
|
+
defaultIntegrationOptions: TDefaultIntegrationProps;
|
|
2421
2476
|
/** Function to create a default integration for an operation */
|
|
2422
2477
|
buildDefaultIntegration: (
|
|
2423
2478
|
op: TOperation,
|
|
@@ -2445,25 +2500,6 @@ export type IntegrationBuilderProps<
|
|
|
2445
2500
|
TDefaultIntegration
|
|
2446
2501
|
>;
|
|
2447
2502
|
|
|
2448
|
-
/**
|
|
2449
|
-
* Extracts the IntegrationBuilderProps variant matching the given pattern.
|
|
2450
|
-
*/
|
|
2451
|
-
type IntegrationBuilderPropsForPattern<
|
|
2452
|
-
TOperation extends string,
|
|
2453
|
-
TBaseIntegration,
|
|
2454
|
-
TDefaultIntegrationProps extends object,
|
|
2455
|
-
TDefaultIntegration extends TBaseIntegration,
|
|
2456
|
-
TPattern extends 'shared' | 'isolated',
|
|
2457
|
-
> = Extract<
|
|
2458
|
-
IntegrationBuilderProps<
|
|
2459
|
-
TOperation,
|
|
2460
|
-
TBaseIntegration,
|
|
2461
|
-
TDefaultIntegrationProps,
|
|
2462
|
-
TDefaultIntegration
|
|
2463
|
-
>,
|
|
2464
|
-
{ pattern: TPattern }
|
|
2465
|
-
>;
|
|
2466
|
-
|
|
2467
2503
|
/**
|
|
2468
2504
|
* Resolves the default integration keys based on the pattern.
|
|
2469
2505
|
* - 'shared': only '$router' is a default key
|
|
@@ -2523,22 +2559,65 @@ export class IntegrationBuilder<
|
|
|
2523
2559
|
private integrations: Partial<TIntegrations> = {};
|
|
2524
2560
|
|
|
2525
2561
|
/**
|
|
2526
|
-
* Create an Integration Builder for an HTTP API
|
|
2562
|
+
* Create an Integration Builder for an HTTP API with a shared pattern
|
|
2527
2563
|
*/
|
|
2528
|
-
public static http
|
|
2564
|
+
public static http<
|
|
2529
2565
|
TOperation extends string,
|
|
2530
2566
|
TDefaultIntegrationProps extends object,
|
|
2531
2567
|
TDefaultIntegration extends HttpApiIntegration,
|
|
2532
|
-
TPattern extends 'shared' | 'isolated',
|
|
2533
2568
|
>(
|
|
2534
|
-
options:
|
|
2569
|
+
options: SharedIntegrationBuilderProps<
|
|
2535
2570
|
TOperation,
|
|
2536
|
-
HttpApiIntegration,
|
|
2537
2571
|
TDefaultIntegrationProps,
|
|
2538
|
-
TDefaultIntegration
|
|
2539
|
-
TPattern
|
|
2572
|
+
TDefaultIntegration
|
|
2540
2573
|
>,
|
|
2541
|
-
)
|
|
2574
|
+
): IntegrationBuilder<
|
|
2575
|
+
TOperation,
|
|
2576
|
+
HttpApiIntegration,
|
|
2577
|
+
Record<'$router', TDefaultIntegration>,
|
|
2578
|
+
TDefaultIntegrationProps,
|
|
2579
|
+
TDefaultIntegration,
|
|
2580
|
+
'shared'
|
|
2581
|
+
>;
|
|
2582
|
+
/**
|
|
2583
|
+
* Create an Integration Builder for an HTTP API with an isolated pattern
|
|
2584
|
+
*/
|
|
2585
|
+
public static http<
|
|
2586
|
+
TOperation extends string,
|
|
2587
|
+
TDefaultIntegrationProps extends object,
|
|
2588
|
+
TDefaultIntegration extends HttpApiIntegration,
|
|
2589
|
+
>(
|
|
2590
|
+
options: IsolatedIntegrationBuilderProps<
|
|
2591
|
+
TOperation,
|
|
2592
|
+
TDefaultIntegrationProps,
|
|
2593
|
+
TDefaultIntegration
|
|
2594
|
+
>,
|
|
2595
|
+
): IntegrationBuilder<
|
|
2596
|
+
TOperation,
|
|
2597
|
+
HttpApiIntegration,
|
|
2598
|
+
Record<TOperation, TDefaultIntegration>,
|
|
2599
|
+
TDefaultIntegrationProps,
|
|
2600
|
+
TDefaultIntegration,
|
|
2601
|
+
'isolated'
|
|
2602
|
+
>;
|
|
2603
|
+
public static http<
|
|
2604
|
+
TOperation extends string,
|
|
2605
|
+
TDefaultIntegrationProps extends object,
|
|
2606
|
+
TDefaultIntegration extends HttpApiIntegration,
|
|
2607
|
+
TPattern extends 'shared' | 'isolated',
|
|
2608
|
+
>(
|
|
2609
|
+
options:
|
|
2610
|
+
| SharedIntegrationBuilderProps<
|
|
2611
|
+
TOperation,
|
|
2612
|
+
TDefaultIntegrationProps,
|
|
2613
|
+
TDefaultIntegration
|
|
2614
|
+
>
|
|
2615
|
+
| IsolatedIntegrationBuilderProps<
|
|
2616
|
+
TOperation,
|
|
2617
|
+
TDefaultIntegrationProps,
|
|
2618
|
+
TDefaultIntegration
|
|
2619
|
+
>,
|
|
2620
|
+
) {
|
|
2542
2621
|
return new IntegrationBuilder<
|
|
2543
2622
|
TOperation,
|
|
2544
2623
|
HttpApiIntegration,
|
|
@@ -2547,25 +2626,68 @@ export class IntegrationBuilder<
|
|
|
2547
2626
|
TDefaultIntegration,
|
|
2548
2627
|
TPattern
|
|
2549
2628
|
>(options);
|
|
2550
|
-
}
|
|
2629
|
+
}
|
|
2551
2630
|
|
|
2552
2631
|
/**
|
|
2553
|
-
* Create an Integration Builder for a REST API
|
|
2632
|
+
* Create an Integration Builder for a REST API with a shared pattern
|
|
2554
2633
|
*/
|
|
2555
|
-
public static rest
|
|
2634
|
+
public static rest<
|
|
2556
2635
|
TOperation extends string,
|
|
2557
2636
|
TDefaultIntegrationProps extends object,
|
|
2558
2637
|
TDefaultIntegration extends RestApiIntegration,
|
|
2559
|
-
TPattern extends 'shared' | 'isolated',
|
|
2560
2638
|
>(
|
|
2561
|
-
options:
|
|
2639
|
+
options: SharedIntegrationBuilderProps<
|
|
2562
2640
|
TOperation,
|
|
2563
|
-
RestApiIntegration,
|
|
2564
2641
|
TDefaultIntegrationProps,
|
|
2565
|
-
TDefaultIntegration
|
|
2566
|
-
|
|
2642
|
+
TDefaultIntegration
|
|
2643
|
+
>,
|
|
2644
|
+
): IntegrationBuilder<
|
|
2645
|
+
TOperation,
|
|
2646
|
+
RestApiIntegration,
|
|
2647
|
+
Record<'$router', TDefaultIntegration>,
|
|
2648
|
+
TDefaultIntegrationProps,
|
|
2649
|
+
TDefaultIntegration,
|
|
2650
|
+
'shared'
|
|
2651
|
+
>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Create an Integration Builder for a REST API with an isolated pattern
|
|
2654
|
+
*/
|
|
2655
|
+
public static rest<
|
|
2656
|
+
TOperation extends string,
|
|
2657
|
+
TDefaultIntegrationProps extends object,
|
|
2658
|
+
TDefaultIntegration extends RestApiIntegration,
|
|
2659
|
+
>(
|
|
2660
|
+
options: IsolatedIntegrationBuilderProps<
|
|
2661
|
+
TOperation,
|
|
2662
|
+
TDefaultIntegrationProps,
|
|
2663
|
+
TDefaultIntegration
|
|
2567
2664
|
>,
|
|
2568
|
-
)
|
|
2665
|
+
): IntegrationBuilder<
|
|
2666
|
+
TOperation,
|
|
2667
|
+
RestApiIntegration,
|
|
2668
|
+
Record<TOperation, TDefaultIntegration>,
|
|
2669
|
+
TDefaultIntegrationProps,
|
|
2670
|
+
TDefaultIntegration,
|
|
2671
|
+
'isolated'
|
|
2672
|
+
>;
|
|
2673
|
+
public static rest<
|
|
2674
|
+
TOperation extends string,
|
|
2675
|
+
TDefaultIntegrationProps extends object,
|
|
2676
|
+
TDefaultIntegration extends RestApiIntegration,
|
|
2677
|
+
TPattern extends 'shared' | 'isolated',
|
|
2678
|
+
>(
|
|
2679
|
+
options:
|
|
2680
|
+
| SharedIntegrationBuilderProps<
|
|
2681
|
+
TOperation,
|
|
2682
|
+
TDefaultIntegrationProps,
|
|
2683
|
+
TDefaultIntegration
|
|
2684
|
+
>
|
|
2685
|
+
| IsolatedIntegrationBuilderProps<
|
|
2686
|
+
TOperation,
|
|
2687
|
+
TDefaultIntegrationProps,
|
|
2688
|
+
TDefaultIntegration
|
|
2689
|
+
>,
|
|
2690
|
+
) {
|
|
2569
2691
|
return new IntegrationBuilder<
|
|
2570
2692
|
TOperation,
|
|
2571
2693
|
RestApiIntegration,
|
|
@@ -2574,7 +2696,7 @@ export class IntegrationBuilder<
|
|
|
2574
2696
|
TDefaultIntegration,
|
|
2575
2697
|
TPattern
|
|
2576
2698
|
>(options);
|
|
2577
|
-
}
|
|
2699
|
+
}
|
|
2578
2700
|
|
|
2579
2701
|
private constructor(
|
|
2580
2702
|
options: IntegrationBuilderProps<
|
|
@@ -713,7 +713,7 @@ exports[`ts#mcp-server generator > should match snapshot for generated files > u
|
|
|
713
713
|
},
|
|
714
714
|
"dependencies": {
|
|
715
715
|
"@aws-lambda-powertools/parameters": "2.32.0",
|
|
716
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
716
|
+
"@aws-sdk/client-appconfigdata": "3.1029.0",
|
|
717
717
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
718
718
|
"express": "5.2.1",
|
|
719
719
|
"zod": "4.3.6"
|
|
@@ -248,7 +248,7 @@ export const registerCreateWorkspaceCommandTool = (server: McpServer) => {
|
|
|
248
248
|
text: \`Run the following command to create a workspace:
|
|
249
249
|
|
|
250
250
|
\\\`\\\`\\\`bash
|
|
251
|
-
npx create-nx-workspace@22.6.
|
|
251
|
+
npx create-nx-workspace@22.6.5 \${workspaceName} --pm=\${packageManager} --preset=@aws/nx-plugin --ci=skip --aiAgents
|
|
252
252
|
\\\`\\\`\\\`
|
|
253
253
|
|
|
254
254
|
This will create a new workspace within the \${workspaceName} directory.
|
|
@@ -1057,24 +1057,24 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1057
1057
|
"{
|
|
1058
1058
|
"name": "@proj/source",
|
|
1059
1059
|
"dependencies": {
|
|
1060
|
-
"@cloudscape-design/board-components": "3.0.
|
|
1061
|
-
"@cloudscape-design/components": "3.0.
|
|
1062
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
1060
|
+
"@cloudscape-design/board-components": "3.0.166",
|
|
1061
|
+
"@cloudscape-design/components": "3.0.1272",
|
|
1062
|
+
"@cloudscape-design/global-styles": "1.0.57",
|
|
1063
1063
|
"aws-cdk-lib": "2.248.0",
|
|
1064
1064
|
"constructs": "10.6.0",
|
|
1065
|
-
"react": "19.2.
|
|
1066
|
-
"react-dom": "19.2.
|
|
1065
|
+
"react": "19.2.5",
|
|
1066
|
+
"react-dom": "19.2.5",
|
|
1067
1067
|
"tailwindcss": "4.2.2"
|
|
1068
1068
|
},
|
|
1069
1069
|
"devDependencies": {
|
|
1070
1070
|
"@eslint/js": "^9.8.0",
|
|
1071
|
-
"@nx/eslint": "22.6.
|
|
1072
|
-
"@nx/eslint-plugin": "22.6.
|
|
1073
|
-
"@nx/js": "22.6.
|
|
1074
|
-
"@nx/react": "22.6.
|
|
1075
|
-
"@nx/vite": "22.6.
|
|
1076
|
-
"@nx/vitest": "22.6.
|
|
1077
|
-
"@nx/web": "22.6.
|
|
1071
|
+
"@nx/eslint": "22.6.5",
|
|
1072
|
+
"@nx/eslint-plugin": "22.6.5",
|
|
1073
|
+
"@nx/js": "22.6.5",
|
|
1074
|
+
"@nx/react": "22.6.5",
|
|
1075
|
+
"@nx/vite": "22.6.5",
|
|
1076
|
+
"@nx/vitest": "22.6.5",
|
|
1077
|
+
"@nx/web": "22.6.5",
|
|
1078
1078
|
"@swc-node/register": "~1.11.1",
|
|
1079
1079
|
"@swc/cli": "~0.8.0",
|
|
1080
1080
|
"@swc/core": "~1.15.5",
|
|
@@ -1082,12 +1082,12 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1082
1082
|
"@tailwindcss/vite": "4.2.2",
|
|
1083
1083
|
"@testing-library/dom": "10.4.0",
|
|
1084
1084
|
"@testing-library/react": "16.3.0",
|
|
1085
|
-
"@types/node": "25.
|
|
1085
|
+
"@types/node": "25.6.0",
|
|
1086
1086
|
"@types/react": "^19.0.0",
|
|
1087
1087
|
"@types/react-dom": "^19.0.0",
|
|
1088
1088
|
"@vitejs/plugin-react": "^6.0.0",
|
|
1089
|
-
"@vitest/coverage-v8": "4.1.
|
|
1090
|
-
"@vitest/ui": "4.1.
|
|
1089
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
1090
|
+
"@vitest/ui": "4.1.4",
|
|
1091
1091
|
"eslint": "^9.8.0",
|
|
1092
1092
|
"eslint-config-prettier": "^10.0.0",
|
|
1093
1093
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -1098,12 +1098,12 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1098
1098
|
"jiti": "2.4.2",
|
|
1099
1099
|
"jsdom": "~22.1.0",
|
|
1100
1100
|
"jsonc-eslint-parser": "3.1.0",
|
|
1101
|
-
"prettier": "3.8.
|
|
1101
|
+
"prettier": "3.8.2",
|
|
1102
1102
|
"typescript": "~5.9.2",
|
|
1103
1103
|
"typescript-eslint": "^8.40.0",
|
|
1104
|
-
"vite": "8.0.
|
|
1104
|
+
"vite": "8.0.8",
|
|
1105
1105
|
"vite-tsconfig-paths": "6.1.1",
|
|
1106
|
-
"vitest": "4.1.
|
|
1106
|
+
"vitest": "4.1.4"
|
|
1107
1107
|
},
|
|
1108
1108
|
"type": "module"
|
|
1109
1109
|
}
|
|
@@ -2649,42 +2649,42 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2649
2649
|
"{
|
|
2650
2650
|
"name": "@proj/source",
|
|
2651
2651
|
"dependencies": {
|
|
2652
|
-
"@cloudscape-design/board-components": "3.0.
|
|
2653
|
-
"@cloudscape-design/components": "3.0.
|
|
2654
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
2655
|
-
"@tanstack/react-router": "1.168.
|
|
2652
|
+
"@cloudscape-design/board-components": "3.0.166",
|
|
2653
|
+
"@cloudscape-design/components": "3.0.1272",
|
|
2654
|
+
"@cloudscape-design/global-styles": "1.0.57",
|
|
2655
|
+
"@tanstack/react-router": "1.168.17",
|
|
2656
2656
|
"aws-cdk-lib": "2.248.0",
|
|
2657
2657
|
"constructs": "10.6.0",
|
|
2658
|
-
"react": "19.2.
|
|
2659
|
-
"react-dom": "19.2.
|
|
2658
|
+
"react": "19.2.5",
|
|
2659
|
+
"react-dom": "19.2.5",
|
|
2660
2660
|
"tailwindcss": "4.2.2"
|
|
2661
2661
|
},
|
|
2662
2662
|
"devDependencies": {
|
|
2663
2663
|
"@eslint/js": "^9.8.0",
|
|
2664
|
-
"@nx/eslint": "22.6.
|
|
2665
|
-
"@nx/eslint-plugin": "22.6.
|
|
2666
|
-
"@nx/js": "22.6.
|
|
2667
|
-
"@nx/react": "22.6.
|
|
2668
|
-
"@nx/vite": "22.6.
|
|
2669
|
-
"@nx/vitest": "22.6.
|
|
2670
|
-
"@nx/web": "22.6.
|
|
2664
|
+
"@nx/eslint": "22.6.5",
|
|
2665
|
+
"@nx/eslint-plugin": "22.6.5",
|
|
2666
|
+
"@nx/js": "22.6.5",
|
|
2667
|
+
"@nx/react": "22.6.5",
|
|
2668
|
+
"@nx/vite": "22.6.5",
|
|
2669
|
+
"@nx/vitest": "22.6.5",
|
|
2670
|
+
"@nx/web": "22.6.5",
|
|
2671
2671
|
"@swc-node/register": "~1.11.1",
|
|
2672
2672
|
"@swc/cli": "~0.8.0",
|
|
2673
2673
|
"@swc/core": "~1.15.5",
|
|
2674
2674
|
"@swc/helpers": "~0.5.18",
|
|
2675
2675
|
"@tailwindcss/vite": "4.2.2",
|
|
2676
|
-
"@tanstack/router-generator": "1.166.
|
|
2677
|
-
"@tanstack/router-plugin": "1.167.
|
|
2676
|
+
"@tanstack/router-generator": "1.166.28",
|
|
2677
|
+
"@tanstack/router-plugin": "1.167.16",
|
|
2678
2678
|
"@tanstack/router-utils": "1.161.6",
|
|
2679
2679
|
"@tanstack/virtual-file-routes": "1.161.7",
|
|
2680
2680
|
"@testing-library/dom": "10.4.0",
|
|
2681
2681
|
"@testing-library/react": "16.3.0",
|
|
2682
|
-
"@types/node": "25.
|
|
2682
|
+
"@types/node": "25.6.0",
|
|
2683
2683
|
"@types/react": "^19.0.0",
|
|
2684
2684
|
"@types/react-dom": "^19.0.0",
|
|
2685
2685
|
"@vitejs/plugin-react": "^6.0.0",
|
|
2686
|
-
"@vitest/coverage-v8": "4.1.
|
|
2687
|
-
"@vitest/ui": "4.1.
|
|
2686
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
2687
|
+
"@vitest/ui": "4.1.4",
|
|
2688
2688
|
"eslint": "^9.8.0",
|
|
2689
2689
|
"eslint-config-prettier": "^10.0.0",
|
|
2690
2690
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -2695,12 +2695,12 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
2695
2695
|
"jiti": "2.4.2",
|
|
2696
2696
|
"jsdom": "~22.1.0",
|
|
2697
2697
|
"jsonc-eslint-parser": "3.1.0",
|
|
2698
|
-
"prettier": "3.8.
|
|
2698
|
+
"prettier": "3.8.2",
|
|
2699
2699
|
"typescript": "~5.9.2",
|
|
2700
2700
|
"typescript-eslint": "^8.40.0",
|
|
2701
|
-
"vite": "8.0.
|
|
2701
|
+
"vite": "8.0.8",
|
|
2702
2702
|
"vite-tsconfig-paths": "6.1.1",
|
|
2703
|
-
"vitest": "4.1.
|
|
2703
|
+
"vitest": "4.1.4"
|
|
2704
2704
|
},
|
|
2705
2705
|
"type": "module"
|
|
2706
2706
|
}
|
|
@@ -4909,14 +4909,14 @@ root &&
|
|
|
4909
4909
|
|
|
4910
4910
|
exports[`react-website generator > should handle npm scope prefix correctly > scoped-dependencies 1`] = `
|
|
4911
4911
|
{
|
|
4912
|
-
"@cloudscape-design/board-components": "3.0.
|
|
4913
|
-
"@cloudscape-design/components": "3.0.
|
|
4914
|
-
"@cloudscape-design/global-styles": "1.0.
|
|
4915
|
-
"@tanstack/react-router": "1.168.
|
|
4912
|
+
"@cloudscape-design/board-components": "3.0.166",
|
|
4913
|
+
"@cloudscape-design/components": "3.0.1272",
|
|
4914
|
+
"@cloudscape-design/global-styles": "1.0.57",
|
|
4915
|
+
"@tanstack/react-router": "1.168.17",
|
|
4916
4916
|
"aws-cdk-lib": "2.248.0",
|
|
4917
4917
|
"constructs": "10.6.0",
|
|
4918
|
-
"react": "19.2.
|
|
4919
|
-
"react-dom": "19.2.
|
|
4918
|
+
"react": "19.2.5",
|
|
4919
|
+
"react-dom": "19.2.5",
|
|
4920
4920
|
"tailwindcss": "4.2.2",
|
|
4921
4921
|
}
|
|
4922
4922
|
`;
|
|
@@ -7,7 +7,7 @@ WORKDIR /app
|
|
|
7
7
|
|
|
8
8
|
# Add AWS Distro for OpenTelemetry for observability
|
|
9
9
|
# https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observability-configure.html
|
|
10
|
-
RUN npm install @aws/aws-distro-opentelemetry-node-autoinstrumentation@0.
|
|
10
|
+
RUN npm install @aws/aws-distro-opentelemetry-node-autoinstrumentation@0.10.0
|
|
11
11
|
|
|
12
12
|
# Copy bundled agent
|
|
13
13
|
COPY --from=workspace dist/apps/test-project/bundle/agent/snapshot-bedrock-agent/index.js /app
|