structformatter 0.1.2 → 0.1.3
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/CHANGELOG.md +10 -0
- package/README.md +0 -21
- package/README.zh-CN.md +0 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.3] - 2025-12-27
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- GitHub Actions workflow for tag-triggered npm publish (Trusted Publishing / OIDC).
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- README: remove maintainer-only publish notes (moved to `CONTRIBUTING.md`).
|
|
17
|
+
|
|
8
18
|
## [0.1.2] - 2025-12-26
|
|
9
19
|
|
|
10
20
|
### Changed
|
package/README.md
CHANGED
|
@@ -39,8 +39,6 @@ Endpoints:
|
|
|
39
39
|
|
|
40
40
|
## Quickstart (npm)
|
|
41
41
|
|
|
42
|
-
After publishing:
|
|
43
|
-
|
|
44
42
|
```bash
|
|
45
43
|
pnpm dlx structformatter --config ./config.yaml
|
|
46
44
|
```
|
|
@@ -101,22 +99,3 @@ Per `specs/api.md` (v1):
|
|
|
101
99
|
bash examples/curl_schema_enforced.sh
|
|
102
100
|
python examples/python_openai_sdk_dropin.py
|
|
103
101
|
```
|
|
104
|
-
|
|
105
|
-
## Publishing to npm
|
|
106
|
-
|
|
107
|
-
Notes (npm auth changes as of Dec 2025):
|
|
108
|
-
- `npm login` is session-based (short-lived), so publish shortly after logging in.
|
|
109
|
-
- Publishing typically requires 2FA; for CI/CD use a granular token (not classic) or npm trusted publishing (OIDC).
|
|
110
|
-
|
|
111
|
-
1) Log in:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
npm login
|
|
115
|
-
npm whoami
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
2) Publish (runs `npm run build` via `prepack`):
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
npm publish
|
|
122
|
-
```
|
package/README.zh-CN.md
CHANGED
|
@@ -39,8 +39,6 @@ pnpm dev
|
|
|
39
39
|
|
|
40
40
|
## 快速开始(npm)
|
|
41
41
|
|
|
42
|
-
发布到 npm 后,可直接运行:
|
|
43
|
-
|
|
44
42
|
```bash
|
|
45
43
|
pnpm dlx structformatter --config ./config.yaml
|
|
46
44
|
```
|
|
@@ -101,22 +99,3 @@ StructFormatter 会承诺:
|
|
|
101
99
|
bash examples/curl_schema_enforced.sh
|
|
102
100
|
python examples/python_openai_sdk_dropin.py
|
|
103
101
|
```
|
|
104
|
-
|
|
105
|
-
## 发布到 npm
|
|
106
|
-
|
|
107
|
-
备注(npm 在 2025-12 之后的鉴权变化):
|
|
108
|
-
- `npm login` 改为基于 session 的短时登录态,建议登录后尽快发布。
|
|
109
|
-
- 发布通常需要 2FA;如果走 CI/CD,请使用 granular token(不要用 classic token)或配置 npm trusted publishing(OIDC)。
|
|
110
|
-
|
|
111
|
-
1) 先登录 npm:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
npm login
|
|
115
|
-
npm whoami
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
2) 发布(`prepack` 会自动执行 `npm run build`):
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
npm publish
|
|
122
|
-
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "structformatter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "OpenAI-compatible proxy that enforces JSON Schema structured outputs for upstream LLM APIs that do not support native constrained decoding.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|