codex-task 0.2.3 → 0.2.5
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/.codex-plugin/plugin.json +1 -1
- package/README.md +94 -26
- package/README_EN.md +59 -21
- package/dist/cli.js +50 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +19 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +503 -0
- package/dist/server.js.map +1 -0
- package/examples/mobile/README.md +69 -0
- package/examples/mobile/android/CodexTaskClient.kt +126 -0
- package/examples/mobile/android/MealWorkflow.kt +51 -0
- package/examples/mobile/ios/CodexTaskClient.swift +163 -0
- package/examples/mobile/ios/MealWorkflow.swift +55 -0
- package/package.json +3 -1
- package/scripts/service/Install-Windows.ps1 +47 -0
- package/scripts/service/Uninstall-Windows.ps1 +9 -0
- package/scripts/service/install-macos.sh +66 -0
- package/scripts/service/install-ubuntu.sh +63 -0
- package/scripts/service/install.sh +22 -0
- package/scripts/service/uninstall-macos.sh +12 -0
- package/scripts/service/uninstall-ubuntu.sh +12 -0
- package/scripts/service/uninstall.sh +22 -0
- package/skills/codex-task/SKILL.md +15 -0
|
@@ -17,6 +17,8 @@ The skill and executable are separate. Installing this skill does not install th
|
|
|
17
17
|
|
|
18
18
|
Do not silently perform a global npm installation. The package is `codex-task`, not `@wang121ye/codex-task`.
|
|
19
19
|
|
|
20
|
+
For a persistent self-hosted service, use the repository's platform installer and a global package. Do not use `npx` in an auto-start configuration: it can require registry access during boot and can change the version unexpectedly.
|
|
21
|
+
|
|
20
22
|
## Choose by the desired result
|
|
21
23
|
|
|
22
24
|
- Need text: use `codex-task text`. This covers text-to-text, image-to-text, and text-plus-image-to-text.
|
|
@@ -98,3 +100,16 @@ Use `--stream` only when JSONL progress events are useful. It is an item/task ev
|
|
|
98
100
|
Run `codex-task doctor` when Direct authentication, native transport, model resolution, or SDK availability is uncertain. It is read-only and sends no model request.
|
|
99
101
|
|
|
100
102
|
Run `codex-task gc` only for CodexTask-managed temporary artifacts and expired pending-task metadata. It never deletes default current-directory images or files under an explicit output path.
|
|
103
|
+
|
|
104
|
+
## Use a remote service only when configured
|
|
105
|
+
|
|
106
|
+
Prefer the local CLI. Use the HTTP service only when the user or environment explicitly supplies both a trusted service URL and Service Token. Never discover arbitrary LAN services, print the token, place it in a prompt, or send it to any host other than the configured service.
|
|
107
|
+
|
|
108
|
+
Remote submission is asynchronous:
|
|
109
|
+
|
|
110
|
+
1. POST JSON to `/v1/text`, `/v1/image`, `/v1/task`, or `/v1/tasks/:taskId/resume` with `Authorization: Bearer <token>`.
|
|
111
|
+
2. Poll the returned `statusUrl` until `completed`, `needs_input`, `failed`, or `cancelled`.
|
|
112
|
+
3. Download `result.artifacts[].downloadUrl` using the same token.
|
|
113
|
+
4. For `needs_input`, relay every question and resume with `result.taskId`.
|
|
114
|
+
|
|
115
|
+
The service does not provide TLS. Treat remote `task` as equivalent to local SDK execution with the requested sandbox and network permissions; the default remains `danger-full-access`, network enabled, and approval `never`. Do not expose the service directly to the public internet.
|