You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/tmp/ghc-base/omp-dispatch: dependencies break the omomp convention:
index.ts:225 hands a tool definition to the host through registerTool without the shared registration entry: registerTool argument is not a direct omompTool(...) call; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
index.ts:238 hands a tool definition to the host through registerTool without the shared registration entry: registerTool argument is not a direct omompTool(...) call; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
src/ports/host.ts:325 hands a tool definition to the host through customTools without the shared registration entry: customTools value is not an array literal; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
exit=1
结果 1、2、3、4 before · exit 0 · bash /tmp/ghc-ev-461/omp-dispatch/real/collect-before.sh
/tmp/ghc-base/omp-dispatch: dependencies break the omomp convention:
index.ts:225 hands a tool definition to the host through registerTool without the shared registration entry: registerTool argument is not a direct omompTool(...) call; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
index.ts:238 hands a tool definition to the host through registerTool without the shared registration entry: registerTool argument is not a direct omompTool(...) call; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
src/ports/host.ts:325 hands a tool definition to the host through customTools without the shared registration entry: customTools value is not an array literal; wrap the definition in a direct omompTool(...) call from the shared src/tool-entry.ts
exit=1
结果 1、2、3、4 before · exit 0 · bash /tmp/ghc-ev-461/omp-dispatch/real/collect-before.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #263
摘要
将
omp-dispatch交给宿主的全部五个工具(协调者dispatch_ticket、dispatch_step与 seat 工具dispatch_submit、dispatch_verdict、dispatch_escalate)统一接入共享omompTool注册入口,使空白字符串、[]、{}、全空子对象及null在工具执行前等价于省略并拒绝数组空元素;同时用显式参数形式取代以launch: {}、dependsOn: []和replaceBody.body: ""承载特定含义的旧写法。实现说明
结果 5 [保持]——clearAdoptPr: false、revision校验与既有的非空取值语义保持不变;议程状态机(src/domain/engine.ts)、seat 生命周期与 GitHub 写入逻辑未改动,仍在既有parseDispatch*/parseSeat*与控制器分支内处理。oh-my-omp/shared的字节级副本omomp-shared/tool-entry.ts(并在omomp-shared.json声明)。omompTool将工具定义标记lenientArgValidation: true,在execute调用解析器前按@oh-my-pi/omptypeschema 递归剔除空白字符串、[]、{}(含子字段全空的对象)和null,遇数组空元素直接抛出包含<path>[<i>]: array element must not be empty的校验错误,剔除未声明根键并重新运行宿主validateToolArguments,使必填字段为空白时得到与省略相同的宿主拒绝。src/domain/public-grammar.ts(buildPublicGrammar)与src/domain/parse.ts中落地 §5 显式字段与校验互斥:dispatch_step以launch: true配合可选根字段role取代launch: { role? }(parseDispatchStepParameters校验launch === true与resolve二选一,且role仅在launch === true时允许)。wireEntrySchema(用于convene.tickets与resolve.add)以dependsOn或independent: true二选一取代dependsOn: [](toEntry拒绝同时设置或同时省略)。dispatch_step.resolve以clearDependsOn: true取代dependsOn: []清空依赖(dependsOn: []被omompTool视为省略,保留既有依赖;parseDispatchStepParameters拒绝同时设置dependsOn与clearDependsOn: true)。replaceBody以非空body(text)或clearBody: true二选一取代空字符串body: ""(toAction拒绝同时设置或同时省略)。index.ts的dispatch_ticket与dispatch_step改为pi.registerTool(omompTool(...));src/ports/host.ts的 seat 工具改为在createAgentSession的customTools数组字面量中直接调用omompTool(submitDefinition)、omompTool(verdictDefinition)与omompTool(escalateDefinition),移除原有的未包裹seatTools数组变量。同步更新src/runtime/coordinator.ts简报示例、README.md、CHANGELOG.md、tests/sim/extension.ts与tests/tool-parameters.test.ts。dispatch_escalate.tier在 schema 上定义为z.enum(["simple", "complex"]).optional(),真实模型会话受 JSON Schema 枚举约束只会发送"simple"、"complex"或省略该字段,无法由模型侧实际发出tier: "";其空白/null归一化由tests/tool-parameters.test.ts通过omompTool直接执行覆盖。