@ttmg/cli 0.4.6-vibe-beta.10 → 0.4.6-vibe-beta.11
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 +4 -4
- package/dist/index.js +116 -103
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/scripts/vibe-upload-smoke.js +10 -3
- package/package.json +1 -1
- package/vibe-upload.md +9 -5
package/dist/package.json
CHANGED
|
@@ -104,7 +104,8 @@ function events(result) {
|
|
|
104
104
|
if (event.mode === 'vibe') {
|
|
105
105
|
assert.deepEqual(event.inputRequirements.requiredUserInputs, ['title', 'icon']);
|
|
106
106
|
assert.equal(event.inputRequirements.requestAdditionalMetadata, false);
|
|
107
|
-
assert.equal(event.inputRequirements.additionalMetadataSource, '
|
|
107
|
+
assert.equal(event.inputRequirements.additionalMetadataSource, 'cli-defaults');
|
|
108
|
+
assert.equal(event.inputRequirements.defaultMetadataProfile, 'ppe-trial');
|
|
108
109
|
}
|
|
109
110
|
return event;
|
|
110
111
|
});
|
|
@@ -191,8 +192,14 @@ async function main() {
|
|
|
191
192
|
assert.equal(info.import_token, 'process-test-secret');
|
|
192
193
|
assert.equal(info.app_info.icon_uri, 'web-icon-receipt');
|
|
193
194
|
assert.equal(info.app_info.app_name, input[input.indexOf('--title') + 1]);
|
|
194
|
-
assert.deepEqual(
|
|
195
|
-
'
|
|
195
|
+
assert.deepEqual(info.app_info, {
|
|
196
|
+
description: 'DevTool PPE integration test fixture. Not a production game.',
|
|
197
|
+
category: 'Other', subcategory: 'Other',
|
|
198
|
+
terms_of_service: 'https://example.invalid/devtool-ppe-test/terms',
|
|
199
|
+
privacy_policy: 'https://example.invalid/devtool-ppe-test/privacy',
|
|
200
|
+
copyright_confirmation: true, contact_email: 'devtool-test@example.invalid',
|
|
201
|
+
app_name: input[input.indexOf('--title') + 1], icon_uri: 'web-icon-receipt',
|
|
202
|
+
}, 'CLI must send complete PPE trial defaults without asking the user for them');
|
|
196
203
|
} else {
|
|
197
204
|
assert.match(req.headers['content-type'], /^multipart\/form-data; boundary=/);
|
|
198
205
|
assert.match(body.toString(), /name="task_id"\r\n\r\n7684370037737553941\r\n/);
|
package/package.json
CHANGED
package/vibe-upload.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## 中文
|
|
4
4
|
|
|
5
|
+
默认资料修复已在 `0.4.6-vibe-beta.11` 发布:CLI 自动补齐此前跑通的 PPE 试用资料,用户只提供标题和头像。beta.10 仅修改了输入提示,没有自动补齐字段,真实基础信息提交会被拒绝。
|
|
6
|
+
|
|
5
7
|
本次范围:本地准备 → 授权绑定 → 上传头像 → 提交应用信息 → 上传代码包 → 上传完成。不包含预览、审核或正式发布。`--web` 使用真实 PPE 授权和上传;`--mock` 的授权与素材上传仍为模拟。网页授权后自动上传的修复已在 `0.4.6-vibe-beta.9` 发布;用户输入要求已在 `0.4.6-vibe-beta.10` 修正。
|
|
6
8
|
|
|
7
9
|
### 博华如何接入
|
|
@@ -28,9 +30,9 @@ ttmg upload --vibe --dir ./game --title "星环守卫" --icon ./avatar.png --dry
|
|
|
28
30
|
|
|
29
31
|
### 用户需要提供什么
|
|
30
32
|
|
|
31
|
-
**只收集游戏标题和本地头像,并使用当前游戏目录或代码包。**
|
|
33
|
+
**只收集游戏标题和本地头像,并使用当前游戏目录或代码包。** 描述、分类、服务条款、隐私政策、版权确认及其他应用资料由 CLI 使用既有 PPE 试用默认值补齐,Skill 不向用户索要,也不生成资料表单或自行补值。
|
|
32
34
|
|
|
33
|
-
能力查询和上传事件均返回 `inputRequirements`:`requiredUserInputs=["title","icon"]`、`additionalMetadataSource="
|
|
35
|
+
能力查询和上传事件均返回 `inputRequirements`:`requiredUserInputs=["title","icon"]`、`additionalMetadataSource="cli-defaults"`、`requestAdditionalMetadata=false`。`--app-info` 仅兼容旧调用,当前流程不使用。
|
|
34
36
|
|
|
35
37
|
### Skill 读取什么
|
|
36
38
|
|
|
@@ -151,6 +153,8 @@ TTMG_VIBE_BACKEND=local-http TTMG_VIBE_API=http://127.0.0.1:3100 ttmg upload --v
|
|
|
151
153
|
|
|
152
154
|
## English
|
|
153
155
|
|
|
156
|
+
The default-metadata fix ships in `0.4.6-vibe-beta.11`. CLI now fills the existing PPE trial metadata automatically; users provide only title and icon. Beta.10 changed input guidance without filling the fields, and its real app-info submission was rejected.
|
|
157
|
+
|
|
154
158
|
### Skill entry
|
|
155
159
|
|
|
156
160
|
Scope: local preparation → authorization binding → avatar upload → app-info submission → package upload → **upload complete**. No preview, review or production release. `--web` uses real PPE authorization and uploads; `--mock` still simulates authorization and material uploads.
|
|
@@ -169,9 +173,9 @@ The Skill gathers the title and user-selected local icon in conversation. It doe
|
|
|
169
173
|
|
|
170
174
|
### User inputs
|
|
171
175
|
|
|
172
|
-
**Collect only the game title and local icon, using the current game directory or ZIP.** The
|
|
176
|
+
**Collect only the game title and local icon, using the current game directory or ZIP.** The CLI fills other app metadata with existing PPE trial defaults. Do not request extra fields, add a form or invent values.
|
|
173
177
|
|
|
174
|
-
Capabilities and upload events include `inputRequirements` with `requiredUserInputs=["title","icon"]`, `additionalMetadataSource="
|
|
178
|
+
Capabilities and upload events include `inputRequirements` with `requiredUserInputs=["title","icon"]`, `additionalMetadataSource="cli-defaults"` and `requestAdditionalMetadata=false`.
|
|
175
179
|
|
|
176
180
|
The `--app-info` option remains for legacy callers only; the current workflow does not use it.
|
|
177
181
|
|
|
@@ -255,7 +259,7 @@ The five endpoint contracts are listed in the table above. Mock and loopback HTT
|
|
|
255
259
|
|
|
256
260
|
A business-success response requires error_info.code=0. Package completion additionally requires package_uri and a valid non-failure status; no polling until SUCCEEDED. No platform Cookies or redirects are used. Configure TTMG_VIBE_BACKEND=local-http plus TTMG_VIBE_API=http://127.0.0.1:3100, or pass --vibe-api explicitly; this option rejects remote hosts.
|
|
257
261
|
|
|
258
|
-
For internal PPE integration, set TTMG_VIBE_BACKEND=ppe and TTMG_VIBE_PPE=ppe_op_vc without changing the Skill command. This uses real creation/polling on developers.tiktok.com and encodes the QR as aweme://webview?url=<encodeURIComponent(landing_url)>. The phone must use the same lane. OAuth is not bypassed or simulated. After authorization, the CLI uploads the icon, submits the title and icon URI, and uploads the package.
|
|
262
|
+
For internal PPE integration, set TTMG_VIBE_BACKEND=ppe and TTMG_VIBE_PPE=ppe_op_vc without changing the Skill command. This uses real creation/polling on developers.tiktok.com and encodes the QR as aweme://webview?url=<encodeURIComponent(landing_url)>. The phone must use the same lane. OAuth is not bypassed or simulated. After authorization, the CLI uploads the icon, submits the title and icon URI, and uploads the package. The CLI fills other app metadata with existing PPE trial defaults. The regular --web entry configures PPE internally and opens the system browser.
|
|
259
263
|
|
|
260
264
|
The normal --mock trial internally uses ppe_op_vc without environment variables. Task creation, QR and three polls are real; authorization, icon, app-info and package uploads are simulated with separate in-memory credentials. This changes --mock from an offline run into a PPE integration trial: platformWrite becomes true when task creation is attempted, while simulation remains true. No real material-upload endpoint is called, and real request failures still fail. --mock-scenario controls only simulated steps. Offline unit/process tests use injected transports, not a separate developer configuration.
|
|
261
265
|
|