ultracode-for-codex 0.2.1 → 0.2.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/LICENSE ADDED
@@ -0,0 +1,158 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work.
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
38
+ is based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship. For the purposes of this License, Derivative Works
41
+ shall not include works that remain separable from, or merely link (or bind by
42
+ name) to the interfaces of, the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including the original version
45
+ of the Work and any modifications or additions to that Work or Derivative Works
46
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work by
47
+ the copyright owner or by an individual or Legal Entity authorized to submit on
48
+ behalf of the copyright owner. For the purposes of this definition, "submitted"
49
+ means any form of electronic, verbal, or written communication sent to the
50
+ Licensor or its representatives, including but not limited to communication on
51
+ electronic mailing lists, source code control systems, and issue tracking
52
+ systems that are managed by, or on behalf of, the Licensor for the purpose of
53
+ discussing and improving the Work, but excluding communication that is
54
+ conspicuously marked or otherwise designated in writing by the copyright owner
55
+ as "Not a Contribution."
56
+
57
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58
+ of whom a Contribution has been received by Licensor and subsequently
59
+ incorporated within the Work.
60
+
61
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
62
+ License, each Contributor hereby grants to You a perpetual, worldwide,
63
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
64
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
65
+ sublicense, and distribute the Work and such Derivative Works in Source or
66
+ Object form.
67
+
68
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
69
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
70
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
71
+ license to make, have made, use, offer to sell, sell, import, and otherwise
72
+ transfer the Work, where such license applies only to those patent claims
73
+ licensable by such Contributor that are necessarily infringed by their
74
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
75
+ to which such Contribution(s) was submitted. If You institute patent litigation
76
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
77
+ alleging that the Work or a Contribution incorporated within the Work
78
+ constitutes direct or contributory patent infringement, then any patent licenses
79
+ granted to You under this License for that Work shall terminate as of the date
80
+ such litigation is filed.
81
+
82
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
83
+ Derivative Works thereof in any medium, with or without modifications, and in
84
+ Source or Object form, provided that You meet the following conditions:
85
+
86
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
87
+ this License; and
88
+
89
+ (b) You must cause any modified files to carry prominent notices stating that
90
+ You changed the files; and
91
+
92
+ (c) You must retain, in the Source form of any Derivative Works that You
93
+ distribute, all copyright, patent, trademark, and attribution notices from the
94
+ Source form of the Work, excluding those notices that do not pertain to any part
95
+ of the Derivative Works; and
96
+
97
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
98
+ any Derivative Works that You distribute must include a readable copy of the
99
+ attribution notices contained within such NOTICE file, excluding those notices
100
+ that do not pertain to any part of the Derivative Works, in at least one of the
101
+ following places: within a NOTICE text file distributed as part of the Derivative
102
+ Works; within the Source form or documentation, if provided along with the
103
+ Derivative Works; or, within a display generated by the Derivative Works, if and
104
+ wherever such third-party notices normally appear. The contents of the NOTICE
105
+ file are for informational purposes only and do not modify the License. You may
106
+ add Your own attribution notices within Derivative Works that You distribute,
107
+ alongside or as an addendum to the NOTICE text from the Work, provided that such
108
+ additional attribution notices cannot be construed as modifying the License.
109
+
110
+ You may add Your own copyright statement to Your modifications and may provide
111
+ additional or different license terms and conditions for use, reproduction, or
112
+ distribution of Your modifications, or for any such Derivative Works as a whole,
113
+ provided Your use, reproduction, and distribution of the Work otherwise complies
114
+ with the conditions stated in this License.
115
+
116
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
117
+ Contribution intentionally submitted for inclusion in the Work by You to the
118
+ Licensor shall be under the terms and conditions of this License, without any
119
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
120
+ supersede or modify the terms of any separate license agreement you may have
121
+ executed with Licensor regarding such Contributions.
122
+
123
+ 6. Trademarks. This License does not grant permission to use the trade names,
124
+ trademarks, service marks, or product names of the Licensor, except as required
125
+ for reasonable and customary use in describing the origin of the Work and
126
+ reproducing the content of the NOTICE file.
127
+
128
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
129
+ writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR
130
+ CONDITIONS OF ANY KIND, either express or implied, including, without
131
+ limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
132
+ MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
133
+ responsible for determining the appropriateness of using or redistributing the
134
+ Work and assume any risks associated with Your exercise of permissions under
135
+ this License.
136
+
137
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
138
+ tort (including negligence), contract, or otherwise, unless required by
139
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
140
+ writing, shall any Contributor be liable to You for damages, including any
141
+ direct, indirect, special, incidental, or consequential damages of any character
142
+ arising as a result of this License or out of the use or inability to use the
143
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
144
+ computer failure or malfunction, or any and all other commercial damages or
145
+ losses), even if such Contributor has been advised of the possibility of such
146
+ damages.
147
+
148
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
149
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
150
+ acceptance of support, warranty, indemnity, or other liability obligations or
151
+ rights consistent with this License. However, in accepting such obligations, You
152
+ may act only on Your own behalf and on Your sole responsibility, not on behalf
153
+ of any other Contributor, and only if You agree to indemnify, defend, and hold
154
+ each Contributor harmless for any liability incurred by, or claims asserted
155
+ against, such Contributor by reason of your accepting any such warranty or
156
+ additional liability.
157
+
158
+ END OF TERMS AND CONDITIONS
package/README.md CHANGED
@@ -26,7 +26,7 @@ npm run pack:ultracode-for-codex
26
26
  Install the tarball from a target project:
27
27
 
28
28
  ```bash
29
- npm install --save-dev /path/to/ultracode-for-codex-0.2.1.tgz
29
+ npm install --save-dev /path/to/ultracode-for-codex-0.2.3.tgz
30
30
  ```
31
31
 
32
32
  Run a workflow:
@@ -98,6 +98,8 @@ Use `--execution attached`, `--progress`, `--permission`, `--retry-limit`, and
98
98
  agent records also include stable agent identity and label fields.
99
99
  - Press `Ctrl-C` once to cancel the active workflow.
100
100
  - Use `--retry-limit <n>` to retry failed workflows inside the same process.
101
+ - `--timeout-ms` is the workflow timeout and the default per-agent silence
102
+ budget; it is not divided by the retry budget.
101
103
  - Use `--permission ask|allow|deny` for project/user/plugin/scriptPath workflow
102
104
  permission reviews.
103
105
  - Use `--progress plain` for human-readable log lines.
@@ -31,7 +31,7 @@ npm exec -- ultracode-for-codex --llm-guide
31
31
  For source-checkout validation, install the generated tarball instead:
32
32
 
33
33
  ```bash
34
- npm install --save-dev ./ultracode-for-codex-0.2.1.tgz
34
+ npm install --save-dev ./ultracode-for-codex-0.2.3.tgz
35
35
  ```
36
36
 
37
37
  Optional Codex companion skill:
@@ -87,6 +87,8 @@ Useful controls:
87
87
  agent records also include stable agent identity and label fields.
88
88
  - Press `Ctrl-C` once to cancel the running workflow.
89
89
  - Use `--retry-limit <n>` to retry failed runs in the same process.
90
+ - `--timeout-ms` is the workflow timeout and the default per-agent silence
91
+ budget; it is not divided by the retry budget.
90
92
  - Use `--permission ask|allow|deny` for project/user/plugin/scriptPath
91
93
  workflow permission reviews.
92
94
  - Use `--progress plain` for human-readable log lines.
@@ -10,7 +10,6 @@ import { WORKFLOW_JOURNAL_GENESIS_AGENT_CALL_KEY, WORKFLOW_JOURNAL_WRITE_FAILED_
10
10
  const MAX_SCRIPT_BYTES = 64 * 1024;
11
11
  const MAX_AGENT_CALLS = 1000;
12
12
  const MAX_PARALLELISM = 16;
13
- const DEFAULT_AGENT_STALL_TIMEOUT_MS = 180_000;
14
13
  const DEFAULT_AGENT_STALL_RETRY_LIMIT = 5;
15
14
  const DEFAULT_WORKSPACE_CONTEXT_MAX_FILES = 24;
16
15
  const DEFAULT_WORKSPACE_CONTEXT_MAX_FILE_BYTES = 12_000;
@@ -146,7 +145,7 @@ export class WorkflowTaskRegistry {
146
145
  this.options = options;
147
146
  this.stateDir = options.stateDir ?? join(options.cwd ?? process.cwd(), '.ultracode-for-codex');
148
147
  this.agentStallRetryLimit = normalizeAgentStallRetryLimit(options.agentStallRetryLimit);
149
- this.agentStallTimeoutMs = normalizeAgentStallTimeoutMs(options.agentStallTimeoutMs, options.requestTimeoutMs, this.agentStallRetryLimit);
148
+ this.agentStallTimeoutMs = normalizeAgentStallTimeoutMs(options.agentStallTimeoutMs, options.requestTimeoutMs);
150
149
  }
151
150
  async launch(input) {
152
151
  if (this.closed)
@@ -2469,12 +2468,11 @@ function normalizeAgentStallRetryLimit(value) {
2469
2468
  return DEFAULT_AGENT_STALL_RETRY_LIMIT;
2470
2469
  return Math.max(0, Math.floor(value));
2471
2470
  }
2472
- function normalizeAgentStallTimeoutMs(configured, requestTimeoutMs, retryLimit) {
2471
+ function normalizeAgentStallTimeoutMs(configured, requestTimeoutMs) {
2473
2472
  if (configured !== undefined && Number.isFinite(configured) && configured > 0) {
2474
2473
  return Math.max(1, Math.floor(configured));
2475
2474
  }
2476
- const retryAwareTimeout = Math.floor(requestTimeoutMs / Math.max(1, retryLimit + 2));
2477
- return Math.max(1, Math.min(DEFAULT_AGENT_STALL_TIMEOUT_MS, retryAwareTimeout));
2475
+ return Math.max(1, Math.floor(requestTimeoutMs));
2478
2476
  }
2479
2477
  function workflowTaskSnapshot(task) {
2480
2478
  return {
@@ -0,0 +1,56 @@
1
+ # Provenance Audit
2
+
3
+ Date: 2026-06-22
4
+
5
+ ## Scope
6
+
7
+ This audit checked:
8
+
9
+ - tracked repository files;
10
+ - generated npm package contents for `ultracode-for-codex@0.2.3`;
11
+ - the locally installed companion Codex skill.
12
+
13
+ Generated build output and package tarballs were checked as projections of the
14
+ tracked source. Dependency source trees were treated as third-party dependency
15
+ inputs, not project-authored code.
16
+
17
+ ## Result
18
+
19
+ Repository and package artifacts are clear for the Apache-2.0 license from an
20
+ artifact-provenance perspective.
21
+
22
+ License transition completed:
23
+
24
+ - Apache-2.0 `LICENSE` file is present;
25
+ - `package.json` and `package-lock.json` declare `Apache-2.0`;
26
+ - package version is prepared as `0.2.3` for the license-bearing patch release.
27
+
28
+ ## Evidence
29
+
30
+ - High-risk historical-source marker search: zero matches in tracked source,
31
+ generated package contents, and local companion skill after cleanup.
32
+ - Legacy API-project marker search: zero matches in tracked source, generated
33
+ package contents, and local companion skill after cleanup.
34
+ - Packaged runtime contents are limited to the CLI runtime, current docs,
35
+ settings, and companion skill.
36
+ - Production dependencies: none.
37
+ - Development dependencies: TypeScript and Node type packages only.
38
+ - Bundled third-party code: none.
39
+
40
+ Expected platform-control markers remain:
41
+
42
+ - provider environment variable names used by child-process environment
43
+ stripping and tests;
44
+ - Codex feature names used to disable unrelated child runtime features;
45
+ - npm registry and GitHub metadata URLs.
46
+
47
+ ## Remediation Completed
48
+
49
+ The local companion skill had stale local-only reference files that were not in
50
+ the package skill. Those local references were removed, and the local skill agent
51
+ metadata was synchronized with the packaged skill.
52
+
53
+ ## Residual Risk
54
+
55
+ This audit validates repository and package artifacts. It does not determine
56
+ external service contract compliance or replace legal review.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracode-for-codex",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Run local Codex-backed workflows from a command-owned CLI runtime.",
5
5
  "keywords": [
6
6
  "codex",
@@ -17,7 +17,7 @@
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/kangminlee-maker/ultracode-for-codex.git"
19
19
  },
20
- "license": "UNLICENSED",
20
+ "license": "Apache-2.0",
21
21
  "type": "module",
22
22
  "bin": {
23
23
  "ultracode-for-codex": "dist/cli.js"
@@ -41,6 +41,7 @@
41
41
  "skills/ultracode-for-codex/",
42
42
  "settings.json",
43
43
  "README.md",
44
+ "docs/provenance-audit.md",
44
45
  "docs/ultracode-p3a-journal-design.md",
45
46
  "docs/ultracode-p3b-resume-cache.md",
46
47
  "docs/ultracode-p3c-worktree-isolation.md"
@@ -61,7 +62,6 @@
61
62
  "typecheck": "tsc --noEmit -p tsconfig.json",
62
63
  "run": "npm run build && node dist/cli.js run --accept-llm-guide=v1"
63
64
  },
64
- "dependencies": {},
65
65
  "devDependencies": {
66
66
  "@types/node": "^22.0.0",
67
67
  "typescript": "^5.9.3"
@@ -35,7 +35,7 @@ For source-checkout validation before publish:
35
35
 
36
36
  ```bash
37
37
  npm run pack:ultracode-for-codex
38
- npm install --save-dev ./artifacts/ultracode-for-codex-0.2.1.tgz
38
+ npm install --save-dev ./artifacts/ultracode-for-codex-0.2.3.tgz
39
39
  ```
40
40
 
41
41
  CLI behavior:
@@ -49,6 +49,8 @@ CLI behavior:
49
49
  with agent identity and label fields on agent records;
50
50
  - `Ctrl-C` cancels the active attached workflow;
51
51
  - `--retry-limit <n>` retries failed workflows inside the same process;
52
+ - `--timeout-ms` is the workflow timeout and the default per-agent silence
53
+ budget; it is not divided by the retry budget.
52
54
  - `--permission ask|allow|deny` handles project/user/plugin/scriptPath reviews.
53
55
  - `--progress plain` switches to human-readable progress lines.
54
56
  - background file locations are controlled by `workflow.background` in