@wenathlan/getry 2.0.165 → 2.0.167

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 (66) hide show
  1. package/README.md +1 -1
  2. package/accounts.ts +2087 -0
  3. package/antigravity.ts +2171 -0
  4. package/auth.ts +265 -0
  5. package/cli.ts +3 -3
  6. package/constants.ts +950 -0
  7. package/db.ts +810 -0
  8. package/docs/distributionlanes.md +1 -1
  9. package/docs/features.md +1 -2
  10. package/docs/gateway.md +2 -3
  11. package/docs/getry.md +33 -0
  12. package/engine.ts +1535 -0
  13. package/fingerprint.ts +1461 -0
  14. package/gateway.ts +1306 -0
  15. package/gatewaycheck.ts +142 -0
  16. package/intelligence.ts +169 -0
  17. package/json.ts +932 -0
  18. package/labels.ts +262 -0
  19. package/llm.ts +2709 -0
  20. package/models.ts +4017 -0
  21. package/nodeshim.ts +265 -0
  22. package/oauth.ts +2201 -0
  23. package/package.json +580 -225
  24. package/project.ts +1293 -0
  25. package/providers.ts +3238 -0
  26. package/quota.ts +1891 -0
  27. package/recovery.ts +2434 -0
  28. package/request.ts +4496 -0
  29. package/search.ts +1761 -0
  30. package/server.ts +766 -0
  31. package/streaming.ts +4398 -0
  32. package/{tests → test}/cli.test.ts +1 -1
  33. package/{tests → test}/gateway.test.ts +2 -2
  34. package/{tests → test}/gatewayversions.test.ts +1 -1
  35. package/{tests → test}/intelligence.test.ts +1 -1
  36. package/{tests → test}/keyrotation.test.ts +1 -1
  37. package/{tests → test}/onboardingstate.test.ts +1 -1
  38. package/{tests → test}/providerfixtures.ts +12 -12
  39. package/{tests → test}/researchfixtures.ts +1 -1
  40. package/{tests → test}/sandboxmodality.test.ts +1 -1
  41. package/thinking.ts +416 -0
  42. package/types.ts +809 -0
  43. package/utils.ts +263 -0
  44. package/validate.ts +61 -0
  45. package/versionregistry.ts +1325 -0
  46. /package/{tests → test}/debonairlane.test.ts +0 -0
  47. /package/{tests → test}/design.test.ts +0 -0
  48. /package/{tests → test}/family.test.ts +0 -0
  49. /package/{tests → test}/gatewayserver.ts +0 -0
  50. /package/{tests → test}/jsonpolicy.test.ts +0 -0
  51. /package/{tests → test}/llm.test.ts +0 -0
  52. /package/{tests → test}/modelroute.test.ts +0 -0
  53. /package/{tests → test}/promptlibrary.test.ts +0 -0
  54. /package/{tests → test}/providercli.test.ts +0 -0
  55. /package/{tests → test}/providerconstants.test.ts +0 -0
  56. /package/{tests → test}/providerfingerprint.test.ts +0 -0
  57. /package/{tests → test}/providermodels.test.ts +0 -0
  58. /package/{tests → test}/provideroauth.test.ts +0 -0
  59. /package/{tests → test}/routerotation.test.ts +0 -0
  60. /package/{tests → test}/serverauth.test.ts +0 -0
  61. /package/{tests → test}/serverengine.test.ts +0 -0
  62. /package/{tests → test}/serverproperty.test.ts +0 -0
  63. /package/{tests → test}/serverutils.test.ts +0 -0
  64. /package/{tests → test}/streamfallback.test.ts +0 -0
  65. /package/{tests → test}/thinkingladder.test.ts +0 -0
  66. /package/{tests → test}/torturellm.test.ts +0 -0
@@ -6,7 +6,7 @@ The eleven distribution lanes of the PR14 law and the honest status each lane an
6
6
  | --- | --- | --- | --- |
7
7
  | npmjs | package.json — @wenathlan/getry | live | the family-npmjs lane publishes the envelope every release rung |
8
8
  | GitHub Packages npm | package.json — @wenathlan/getry | live | the family-githubnpm lane publishes the same envelope idempotently |
9
- | Maven | pom.xml — io.github.wenathlan:getry | live | the family-maven lane deploys the jar |
9
+ | Maven | pom.xml — com.wenathlan:getry | live | the family-maven lane deploys the jar |
10
10
  | NuGet | getry.csproj | live | the family-nuget lane packs the envelope |
11
11
  | Gradle | build.gradle.kts — com.wenathlan:getry | live | the family-gradle lane publishes the module |
12
12
  | Ruby Gems | getry.gemspec | live | the family-rubygems lane pushes the gem |
package/docs/features.md CHANGED
@@ -16,8 +16,7 @@ every feature below is read from the code of the getry app root and the Sol them
16
16
  - cors handling — preflight and cors headers on every route.
17
17
  - response formats — chat completion, anthropic message and response shapes built from one pipeline.
18
18
  - gateway cli — `cli.ts` scaffolds and inspects gateway configs.
19
- - gateway probe — `gatewayprobe.ts` runs a manual chat round trip against a deployed host.
20
- - container smoke — `gatewaysmoke.ts` runs one full offline request cycle against the recorded openaicompat fixture.
19
+ - gateway check — `gatewaycheck.ts` folds both check seats: the offline smoke (one full request cycle against the recorded openaicompat fixture) and the manual probe (a chat round trip against a deployed host).
21
20
 
22
21
  ## providers
23
22
 
package/docs/gateway.md CHANGED
@@ -29,8 +29,7 @@
29
29
  - `oauth.ts` / `accounts.ts` / `recovery.ts` / `project.ts` — the provider oauth family, multi-account manager, recovery and project id discovery.
30
30
  - `db.ts` — the database contract: typed rows, in-memory seeds, HTTPS accessors, the health-aware round-robin key picker (`nextkeyrow`) and the better-sqlite3 mirror (onboarding states, labels and the `gateway_versions` route table).
31
31
  - `prismaconfig.ts` / `prismashim.ts` / `nodeshim.ts` — prisma schema path resolution and runtime shims.
32
- - `gatewayprobe.ts` — manual chat round trip against a deployed gateway (`GET /v1/models`, `POST /v1/chat/completions`).
33
- - `gatewaysmoke.ts` — offline container smoke: one full request cycle against the recorded openaicompat fixture.
32
+ - `gatewaycheck.ts` — the two gateway check seats in one file: the offline container smoke (one full request cycle against the recorded openaicompat fixture) and the manual probe (chat round trip against a deployed gateway, `GET /v1/models`, `POST /v1/chat/completions`).
34
33
  - `registernvidiakeys.ts` — registers the 22 nvidia api keys into the `nvidiaKey` table.
35
34
  - `cli.ts` / `providercli.ts` — the gateway cli and the provider cli.
36
35
  - `versionregistry.ts`, `request.ts`, `search.ts`, `fingerprint.ts`, `constants.ts`, `antigravity.ts` — the antigravity/gemini-cli provider lineage: version resolution, request building, search, fingerprinting, endpoint constants.
@@ -122,4 +121,4 @@ the 7-level thinking ladder (`thinking.ts`), each level bound to a token budget:
122
121
 
123
122
  ## tests
124
123
 
125
- - 29 test files under `tests/` cover the gateway surface: gateway, gatewayversions (the 5/35 route table law, the sqlite mirror rows, the thinking chain), server (auth, engine, property, utils), llm, modelroute, promptlibrary, keyrotation (the health-aware key round-robin and the masking discipline), routerotation, thinkingladder (the registerable ladder and the tier/budget/chain/lane routing), streamfallback, intelligence, jsonpolicy, family, design, cli, providercli, onboardingstate, sandboxmodality, debonairlane, torture.llm, plus the provider lineage (constants, fingerprint, models, oauth) and the shared fixtures (`gatewayserver.ts`, `providerfixtures.ts`, `researchfixtures.ts`).
124
+ - 29 test files under `test/` cover the gateway surface: gateway, gatewayversions (the 5/35 route table law, the sqlite mirror rows, the thinking chain), server (auth, engine, property, utils), llm, modelroute, promptlibrary, keyrotation (the health-aware key round-robin and the masking discipline), routerotation, thinkingladder (the registerable ladder and the tier/budget/chain/lane routing), streamfallback, intelligence, jsonpolicy, family, design, cli, providercli, onboardingstate, sandboxmodality, debonairlane, torture.llm, plus the provider lineage (constants, fingerprint, models, oauth) and the shared fixtures (`gatewayserver.ts`, `providerfixtures.ts`, `researchfixtures.ts`).
package/docs/getry.md ADDED
@@ -0,0 +1,33 @@
1
+ # getry — the dossier
2
+
3
+ The AI gateway library of the family: the key rotation, the reasoning levels and the provider authentication.
4
+
5
+ ## Identity
6
+
7
+ - Category: AI gateway library.
8
+ - Competitor space: OpenAI-compatible gateway surfaces, opencode.
9
+ - Consumer law: devthink pulls the gateway from the getry package — the AI logic never duplicates inside a sibling.
10
+
11
+ ## Objective
12
+
13
+ Mask every upstream provider behind the house name and answer one honest gateway: five provider gateways serving thirty-five OpenAI-compatible routes with the reasoning ladder.
14
+
15
+ ## Features
16
+
17
+ - Five provider gateways serving thirty-five OpenAI-compatible routes.
18
+ - The reasoning ladder: seven thinking levels the requests ride.
19
+ - Key rotation across providers.
20
+ - Provider authentication seats: google, github, gitlab (the authorize, scope, token, profile, env and pkce seats).
21
+ - The meta model: upstream providers masked behind the house name, free models fused into million-token windows, mid-session model rotation.
22
+ - The inference pipeline: porter (zero-cost rulers), the three-member local jury, the anti-sycophancy rule.
23
+ - Universal parameter autocorrection: never a whitelist, always the correction.
24
+
25
+ ## Interactions
26
+
27
+ - The chat console with the family chat design (the same tokens, titlebar and dpi ladder).
28
+ - The gateway API surface consumed by devthink and the family.
29
+
30
+ ## Doctrine
31
+
32
+ - One gateway, one owner: the AI seam lives here; the family imports it.
33
+ - The honesty law: the gateway never pretends a model it did not call.