ag-common 0.0.912 → 0.0.914

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/README.md CHANGED
@@ -46,6 +46,10 @@ npm i -S ag-common
46
46
 
47
47
  Please raise any issues or requests you might have [here](https://github.com/andreigec/ag-common/issues)
48
48
 
49
+ ## Testing
50
+
51
+ `pnpm test` runs the deterministic tests without live AWS resources. The legacy AWS checks are opt-in through `pnpm test:integration:aws` and require the existing `ag-common-tests` DynamoDB table and S3 bucket. The DynamoDB check wipes that dedicated test table; do not run it against shared application data.
52
+
49
53
  ## License
50
54
 
51
55
  [ISC](./LICENSE.md)
@@ -1,12 +1,10 @@
1
1
  export * from "./acm";
2
- export * from "./ai";
3
2
  export * from "./api";
4
3
  export * from "./apigw";
5
4
  export * from "./aws";
6
5
  export * from "./cosmos";
7
6
  export * from "./dynamo";
8
7
  export * from "./enforceDynamoProvisionCap";
9
- export * from "./google";
10
8
  export * from "./retryOnError";
11
9
  export * from "./s3";
12
10
  export * from "./ses";
@@ -15,14 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./acm"), exports);
18
- __exportStar(require("./ai"), exports);
19
18
  __exportStar(require("./api"), exports);
20
19
  __exportStar(require("./apigw"), exports);
21
20
  __exportStar(require("./aws"), exports);
22
21
  __exportStar(require("./cosmos"), exports);
23
22
  __exportStar(require("./dynamo"), exports);
24
23
  __exportStar(require("./enforceDynamoProvisionCap"), exports);
25
- __exportStar(require("./google"), exports);
26
24
  __exportStar(require("./retryOnError"), exports);
27
25
  __exportStar(require("./s3"), exports);
28
26
  __exportStar(require("./ses"), exports);
@@ -51,7 +51,7 @@ const DropdownList = ({ options, renderF, onChange, children, className, }) => {
51
51
  const value = typeof option === "string" ? option : option.value;
52
52
  const label = typeof option === "string" ? option : option.label;
53
53
  const isLast = index === options.length - 1;
54
- return (React.createElement(DropdownMenuPrimitive.Item, { key: value, className: (0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-main-bg-mid focus:text-main-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-50", !isLast && "border-b border-main-bg-mid"), onSelect: () => handleSelect(value) }, renderF ? renderF(value) : label));
54
+ return (React.createElement(DropdownMenuPrimitive.Item, { key: value, className: (0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-main-bg-mid focus:text-main-fg data-disabled:pointer-events-none data-disabled:opacity-50", !isLast && "border-b border-main-bg-mid"), onSelect: () => handleSelect(value) }, renderF ? renderF(value) : label));
55
55
  })))));
56
56
  };
57
57
  exports.DropdownList = DropdownList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-common",
3
- "version": "0.0.912",
3
+ "version": "0.0.914",
4
4
  "license": "ISC",
5
5
  "author": "admin@gec.dev",
6
6
  "repository": {
@@ -15,18 +15,18 @@
15
15
  "main": "./dist/index.js",
16
16
  "types": "./dist/index.d.ts",
17
17
  "dependencies": {
18
- "@aws-sdk/client-acm": "^3.1121.0",
19
- "@aws-sdk/client-apigatewaymanagementapi": "^3.1121.0",
20
- "@aws-sdk/client-dynamodb": "^3.1121.0",
21
- "@aws-sdk/client-s3": "^3.1121.0",
22
- "@aws-sdk/client-ses": "^3.1121.0",
23
- "@aws-sdk/client-sqs": "^3.1121.0",
24
- "@aws-sdk/client-sts": "^3.1121.0",
25
- "@aws-sdk/lib-dynamodb": "^3.1121.0",
26
- "@aws-sdk/s3-presigned-post": "^3.1121.0",
27
- "@aws-sdk/s3-request-presigner": "^3.1121.0",
28
- "@azure/cosmos": "^4.10.0",
29
- "@google/genai": "^2.19.0",
18
+ "@aws-sdk/client-acm": "^3.1146.0",
19
+ "@aws-sdk/client-apigatewaymanagementapi": "^3.1146.0",
20
+ "@aws-sdk/client-dynamodb": "^3.1146.0",
21
+ "@aws-sdk/client-s3": "^3.1146.0",
22
+ "@aws-sdk/client-ses": "^3.1146.0",
23
+ "@aws-sdk/client-sqs": "^3.1146.0",
24
+ "@aws-sdk/client-sts": "^3.1146.0",
25
+ "@aws-sdk/lib-dynamodb": "^3.1146.0",
26
+ "@aws-sdk/s3-presigned-post": "^3.1146.0",
27
+ "@aws-sdk/s3-request-presigner": "^3.1146.0",
28
+ "@azure/cosmos": "^4.10.1",
29
+ "@google/genai": "^2.27.0",
30
30
  "@radix-ui/react-accordion": "^1.2.20",
31
31
  "@radix-ui/react-avatar": "^1.2.6",
32
32
  "@radix-ui/react-checkbox": "^1.3.11",
@@ -44,33 +44,33 @@
44
44
  "clsx": "^2.1.1",
45
45
  "jsonwebtoken": "^9.0.3",
46
46
  "jwks-rsa": "^4.1.0",
47
- "lucide-react": "^1.37.0",
47
+ "lucide-react": "^1.51.0",
48
48
  "node-cache": "^5.1.2",
49
- "react": "^19.2.8",
50
- "react-dom": "^19.2.8",
51
- "tailwind-merge": "^3.6.0",
52
- "zod": "^4.5.4"
49
+ "react": "^19.3.0",
50
+ "react-dom": "^19.3.0",
51
+ "tailwind-merge": "^3.7.0",
52
+ "zod": "^4.6.5"
53
53
  },
54
54
  "devDependencies": {
55
- "@storybook/addon-docs": "^10.5.10",
56
- "@storybook/react-vite": "^10.5.10",
55
+ "@storybook/addon-docs": "^10.6.1",
56
+ "@storybook/react-vite": "^10.6.1",
57
57
  "@tailwindcss/postcss": "^4.3.3",
58
58
  "@types/jsonwebtoken": "^9.0.10",
59
- "@types/node": "^26.4.0",
60
- "@types/react": "^19.2.18",
61
- "@types/react-dom": "^19.2.5",
62
- "aws-cdk-lib": "^2.267.0",
59
+ "@types/node": "^26.6.4",
60
+ "@types/react": "^19.3.0",
61
+ "@types/react-dom": "^19.3.0",
62
+ "aws-cdk-lib": "^2.272.0",
63
63
  "constructs": "^10.8.1",
64
- "eslint-config-e7npm": "^0.1.66",
64
+ "eslint-config-e7npm": "^0.1.70",
65
65
  "rimraf": "^6.1.3",
66
- "storybook": "^10.5.10",
66
+ "storybook": "^10.6.1",
67
67
  "tailwindcss": "^4.3.3",
68
- "tsx": "^4.23.13",
68
+ "tsx": "^4.23.15",
69
69
  "typescript": "^7.0.2"
70
70
  },
71
71
  "peerDependencies": {
72
- "aws-cdk-lib": "^2.267.0",
73
- "constructs": "^10.0.0"
72
+ "aws-cdk-lib": "^2.272.0",
73
+ "constructs": "^10.8.1"
74
74
  },
75
75
  "scripts": {
76
76
  "preinstall": "npx only-allow pnpm",
@@ -80,6 +80,7 @@
80
80
  "build": "rimraf dist && tsc -p tsconfig.build.json",
81
81
  "start": "storybook dev -p 6006 --no-open",
82
82
  "build-storybook": "storybook build -o docs --quiet",
83
- "test": "tsx --test \"src/tests/**/*.test.ts\""
83
+ "test": "tsx --test \"src/tests/**/*.test.ts\"",
84
+ "test:integration:aws": "tsx --test \"src/tests/*.integration.ts\""
84
85
  }
85
86
  }
@@ -1,12 +0,0 @@
1
- import type { AIClientDependencies, AIEndpoint, AIModel, AIRequest, GenerationResult } from "../types";
2
- export type CodexAdapterConfig = {
3
- endpoint: AIEndpoint;
4
- dependencies?: AIClientDependencies;
5
- timeoutMs?: number;
6
- pollIntervalMs?: number;
7
- maxPollIntervalMs?: number;
8
- };
9
- /** Validate and normalize the direct private LAN endpoint used by Codex. */
10
- export declare const normalizeCodexEndpoint: (endpoint: AIEndpoint) => AIEndpoint;
11
- export declare const generateCodex: (request: AIRequest, config: CodexAdapterConfig) => Promise<GenerationResult>;
12
- export declare const listCodexModels: (endpoint: AIEndpoint, dependencies?: AIClientDependencies) => Promise<AIModel[]>;