ai-change-guard 0.0.0-stage → 0.1.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.
Files changed (3) hide show
  1. package/README.md +28 -2
  2. package/bin.js +3 -0
  3. package/package.json +38 -4
package/README.md CHANGED
@@ -1,3 +1,29 @@
1
- # Temporary Holding Version
1
+ # ai-change-guard
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ AI providers retire models on a schedule. When a model you call is retired, requests start failing, or get quietly rerouted to a different model that may answer differently. AI Change Guard finds every model your code uses, tells you which ones are retiring and when, and proves whether a replacement still works by replaying your real prompts on both models.
4
+
5
+ Runs on your machine or in your CI. Your code and API keys never leave it.
6
+
7
+ ## Scan
8
+
9
+ ```sh
10
+ npx ai-change-guard scan .
11
+ npx ai-change-guard scan https://github.com/owner/repo
12
+ ```
13
+
14
+ Finds model IDs and deprecated AI APIs in Python, JS/TS, Go, Java, YAML, JSON, `.env` and more, checks them against a catalog of official retirement dates (every date keeps its source link), and flags AI security mistakes and token waste. Options: `--json`, `--fail-on retired|retiring` (exit code 1 for CI).
15
+
16
+ ## Test a model switch on your real prompts
17
+
18
+ ```sh
19
+ npx ai-change-guard import exported-logs.jsonl --out golden.jsonl --model gpt-4o
20
+ npx ai-change-guard replay --set golden.jsonl --old openai:gpt-4o --new openai:gpt-5
21
+ ```
22
+
23
+ The replay flags broken JSON, changed tool calls, missing content, new refusals and drifting answers. Your provider key comes from the environment (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`).
24
+
25
+ Also: `starter` (a golden set from the prompts in your code), `switch` (change the model ID everywhere, or open a pull request with the report), `baseline` and `watch` (nightly check for silent model changes), `fallback` (tested backup models for LiteLLM or OpenRouter).
26
+
27
+ Full documentation, the GitHub Action and the MCP server: https://github.com/Navin-kumar0007/ai-change-guard-cli
28
+
29
+ MIT licensed.
package/bin.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // `npx ai-change-guard ...` runs the scanner's command-line tool.
3
+ import "@ai-changeguard/scanner/dist/cli.js";
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "ai-change-guard",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Find every AI model in your code, get warned before it is retired, and test the replacement on your real prompts.",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "ai",
8
+ "llm",
9
+ "openai",
10
+ "anthropic",
11
+ "gemini",
12
+ "model-deprecation",
13
+ "migration"
14
+ ],
15
+ "homepage": "https://github.com/Navin-kumar0007/ai-change-guard-cli#readme",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Navin-kumar0007/ai-change-guard-cli.git",
19
+ "directory": "packages/cli"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/Navin-kumar0007/ai-change-guard-cli/issues"
23
+ },
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "type": "module",
31
+ "bin": {
32
+ "ai-change-guard": "./bin.js"
33
+ },
34
+ "files": [
35
+ "bin.js"
36
+ ],
37
+ "dependencies": {
38
+ "@ai-changeguard/scanner": "0.1.0"
39
+ }
40
+ }