impel-cli 0.20.6 → 0.20.8

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/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release notes
2
2
 
3
+ ## 0.20.8 — Claude direct-answer compatibility
4
+
5
+ - Publishes the bound direct-answer tool with Claude's supported closed object
6
+ schema while retaining the legacy `task` alias only inside the local runtime.
7
+ - Keeps the model-visible contract to one required `question`, so qualified
8
+ Claude custom agents receive the exact eager tool instead of silently losing it.
9
+
10
+ ## 0.20.7 — Native-agent state compatibility
11
+
12
+ - Keeps profile discovery aligned with the durable transport schema so
13
+ answer-mode records remain integrity-validated without blocking agent sync.
14
+
3
15
  ## 0.20.6 — Native-agent canary controls
4
16
 
5
17
  - Gives Codex verbatim-relay parents one explicit 60-second blocking wait so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impel-cli",
3
- "version": "0.20.6",
3
+ "version": "0.20.8",
4
4
  "description": "Prepare isolated Claude and Codex workspaces for every accessible Impel tenant",
5
5
  "type": "module",
6
6
  "bin": {
package/src/agents.js CHANGED
@@ -378,8 +378,8 @@ function validatedPendingState(filePath, invocationId) {
378
378
  const allowed = new Set([
379
379
  "schema", "invocationId", "tenantId", "agentId", "scopeParam", "policyFingerprint",
380
380
  "requestFingerprint", "idempotencyKey", "startArguments", "upstreamRunId", "status",
381
- "startAttempts", "createdAt", "updatedAt", "fence", "sequence", "lastTransportError",
382
- "result", "output", "error",
381
+ "startAttempts", "startMode", "createdAt", "updatedAt", "fence", "sequence",
382
+ "lastTransportError", "result", "output", "error", "version",
383
383
  ]);
384
384
  if (!state || typeof state !== "object" || Array.isArray(state)
385
385
  || Object.keys(state).some((key) => !allowed.has(key))
@@ -397,10 +397,14 @@ function validatedPendingState(filePath, invocationId) {
397
397
  || !state.status
398
398
  || !Number.isSafeInteger(state.startAttempts)
399
399
  || state.startAttempts < 0
400
+ || (state.startMode !== undefined
401
+ && state.startMode !== "durable"
402
+ && state.startMode !== "answer")
400
403
  || !Number.isFinite(Date.parse(state.createdAt))
401
404
  || !Number.isFinite(Date.parse(state.updatedAt))
402
405
  || (state.fence !== undefined && (!Number.isSafeInteger(state.fence) || state.fence < 0))
403
406
  || (state.sequence !== undefined && (!Number.isSafeInteger(state.sequence) || state.sequence < 0))
407
+ || (state.version !== undefined && (!Number.isSafeInteger(state.version) || state.version < 0))
404
408
  || (state.upstreamRunId !== null
405
409
  && (typeof state.upstreamRunId !== "string" || !state.upstreamRunId))) {
406
410
  throw new Error("native-agent run state failed integrity validation during profile sync");
@@ -2136,13 +2136,9 @@ export function nativeAgentCompositeTools({ mode = "durable" } = {}) {
2136
2136
  inputSchema: {
2137
2137
  type: "object",
2138
2138
  additionalProperties: false,
2139
- anyOf: [
2140
- { required: ["question"], not: { required: ["task"] } },
2141
- { required: ["task"], not: { required: ["question"] } },
2142
- ],
2139
+ required: ["question"],
2143
2140
  properties: {
2144
2141
  question: { type: "string", minLength: 1, maxLength: 40_000 },
2145
- task: { type: "string", minLength: 1, maxLength: 40_000 },
2146
2142
  context: { type: "string", maxLength: 40_000 },
2147
2143
  contextKeys: {
2148
2144
  type: "array",