oh-my-opencode 4.5.0 → 4.5.1

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.
Files changed (3) hide show
  1. package/dist/cli/index.js +140 -124
  2. package/dist/index.js +258 -181
  3. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -60608,7 +60608,7 @@ var init_storage = __esm(() => {
60608
60608
  init_constants4();
60609
60609
  });
60610
60610
 
60611
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
60611
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
60612
60612
  var require_code = __commonJS((exports) => {
60613
60613
  Object.defineProperty(exports, "__esModule", { value: true });
60614
60614
  exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
@@ -60762,7 +60762,7 @@ var require_code = __commonJS((exports) => {
60762
60762
  exports.regexpCode = regexpCode;
60763
60763
  });
60764
60764
 
60765
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
60765
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
60766
60766
  var require_scope = __commonJS((exports) => {
60767
60767
  Object.defineProperty(exports, "__esModule", { value: true });
60768
60768
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
@@ -60908,7 +60908,7 @@ var require_scope = __commonJS((exports) => {
60908
60908
  exports.ValueScope = ValueScope;
60909
60909
  });
60910
60910
 
60911
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
60911
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
60912
60912
  var require_codegen = __commonJS((exports) => {
60913
60913
  Object.defineProperty(exports, "__esModule", { value: true });
60914
60914
  exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
@@ -61618,7 +61618,7 @@ var require_codegen = __commonJS((exports) => {
61618
61618
  }
61619
61619
  });
61620
61620
 
61621
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
61621
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
61622
61622
  var require_util = __commonJS((exports) => {
61623
61623
  Object.defineProperty(exports, "__esModule", { value: true });
61624
61624
  exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
@@ -61782,7 +61782,7 @@ var require_util = __commonJS((exports) => {
61782
61782
  exports.checkStrictMode = checkStrictMode;
61783
61783
  });
61784
61784
 
61785
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
61785
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
61786
61786
  var require_names = __commonJS((exports) => {
61787
61787
  Object.defineProperty(exports, "__esModule", { value: true });
61788
61788
  var codegen_1 = require_codegen();
@@ -61807,7 +61807,7 @@ var require_names = __commonJS((exports) => {
61807
61807
  exports.default = names;
61808
61808
  });
61809
61809
 
61810
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
61810
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
61811
61811
  var require_errors = __commonJS((exports) => {
61812
61812
  Object.defineProperty(exports, "__esModule", { value: true });
61813
61813
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
@@ -61925,7 +61925,7 @@ var require_errors = __commonJS((exports) => {
61925
61925
  }
61926
61926
  });
61927
61927
 
61928
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
61928
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
61929
61929
  var require_boolSchema = __commonJS((exports) => {
61930
61930
  Object.defineProperty(exports, "__esModule", { value: true });
61931
61931
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
@@ -61973,7 +61973,7 @@ var require_boolSchema = __commonJS((exports) => {
61973
61973
  }
61974
61974
  });
61975
61975
 
61976
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
61976
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
61977
61977
  var require_rules = __commonJS((exports) => {
61978
61978
  Object.defineProperty(exports, "__esModule", { value: true });
61979
61979
  exports.getRules = exports.isJSONType = undefined;
@@ -62001,7 +62001,7 @@ var require_rules = __commonJS((exports) => {
62001
62001
  exports.getRules = getRules;
62002
62002
  });
62003
62003
 
62004
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
62004
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
62005
62005
  var require_applicability = __commonJS((exports) => {
62006
62006
  Object.defineProperty(exports, "__esModule", { value: true });
62007
62007
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
@@ -62021,7 +62021,7 @@ var require_applicability = __commonJS((exports) => {
62021
62021
  exports.shouldUseRule = shouldUseRule;
62022
62022
  });
62023
62023
 
62024
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
62024
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
62025
62025
  var require_dataType = __commonJS((exports) => {
62026
62026
  Object.defineProperty(exports, "__esModule", { value: true });
62027
62027
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
@@ -62202,7 +62202,7 @@ var require_dataType = __commonJS((exports) => {
62202
62202
  }
62203
62203
  });
62204
62204
 
62205
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
62205
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
62206
62206
  var require_defaults = __commonJS((exports) => {
62207
62207
  Object.defineProperty(exports, "__esModule", { value: true });
62208
62208
  exports.assignDefaults = undefined;
@@ -62236,7 +62236,7 @@ var require_defaults = __commonJS((exports) => {
62236
62236
  }
62237
62237
  });
62238
62238
 
62239
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
62239
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
62240
62240
  var require_code2 = __commonJS((exports) => {
62241
62241
  Object.defineProperty(exports, "__esModule", { value: true });
62242
62242
  exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
@@ -62365,7 +62365,7 @@ var require_code2 = __commonJS((exports) => {
62365
62365
  exports.validateUnion = validateUnion;
62366
62366
  });
62367
62367
 
62368
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
62368
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
62369
62369
  var require_keyword = __commonJS((exports) => {
62370
62370
  Object.defineProperty(exports, "__esModule", { value: true });
62371
62371
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
@@ -62480,7 +62480,7 @@ var require_keyword = __commonJS((exports) => {
62480
62480
  exports.validateKeywordUsage = validateKeywordUsage;
62481
62481
  });
62482
62482
 
62483
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
62483
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
62484
62484
  var require_subschema = __commonJS((exports) => {
62485
62485
  Object.defineProperty(exports, "__esModule", { value: true });
62486
62486
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
@@ -62685,7 +62685,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
62685
62685
  }
62686
62686
  });
62687
62687
 
62688
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
62688
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
62689
62689
  var require_resolve = __commonJS((exports) => {
62690
62690
  Object.defineProperty(exports, "__esModule", { value: true });
62691
62691
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
@@ -62838,7 +62838,7 @@ var require_resolve = __commonJS((exports) => {
62838
62838
  exports.getSchemaRefs = getSchemaRefs;
62839
62839
  });
62840
62840
 
62841
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
62841
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
62842
62842
  var require_validate = __commonJS((exports) => {
62843
62843
  Object.defineProperty(exports, "__esModule", { value: true });
62844
62844
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
@@ -63343,7 +63343,7 @@ var require_validate = __commonJS((exports) => {
63343
63343
  exports.getData = getData;
63344
63344
  });
63345
63345
 
63346
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
63346
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
63347
63347
  var require_validation_error = __commonJS((exports) => {
63348
63348
  Object.defineProperty(exports, "__esModule", { value: true });
63349
63349
 
@@ -63357,7 +63357,7 @@ var require_validation_error = __commonJS((exports) => {
63357
63357
  exports.default = ValidationError;
63358
63358
  });
63359
63359
 
63360
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
63360
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
63361
63361
  var require_ref_error = __commonJS((exports) => {
63362
63362
  Object.defineProperty(exports, "__esModule", { value: true });
63363
63363
  var resolve_1 = require_resolve();
@@ -63372,7 +63372,7 @@ var require_ref_error = __commonJS((exports) => {
63372
63372
  exports.default = MissingRefError;
63373
63373
  });
63374
63374
 
63375
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
63375
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
63376
63376
  var require_compile = __commonJS((exports) => {
63377
63377
  Object.defineProperty(exports, "__esModule", { value: true });
63378
63378
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
@@ -63593,7 +63593,7 @@ var require_compile = __commonJS((exports) => {
63593
63593
  }
63594
63594
  });
63595
63595
 
63596
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
63596
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
63597
63597
  var require_data = __commonJS((exports, module) => {
63598
63598
  module.exports = {
63599
63599
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
@@ -64377,7 +64377,7 @@ var require_fast_uri = __commonJS((exports, module) => {
64377
64377
  module.exports.fastUri = fastUri;
64378
64378
  });
64379
64379
 
64380
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
64380
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
64381
64381
  var require_uri = __commonJS((exports) => {
64382
64382
  Object.defineProperty(exports, "__esModule", { value: true });
64383
64383
  var uri = require_fast_uri();
@@ -64385,7 +64385,7 @@ var require_uri = __commonJS((exports) => {
64385
64385
  exports.default = uri;
64386
64386
  });
64387
64387
 
64388
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/core.js
64388
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
64389
64389
  var require_core = __commonJS((exports) => {
64390
64390
  Object.defineProperty(exports, "__esModule", { value: true });
64391
64391
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
@@ -64496,7 +64496,7 @@ var require_core = __commonJS((exports) => {
64496
64496
  constructor(opts = {}) {
64497
64497
  this.schemas = {};
64498
64498
  this.refs = {};
64499
- this.formats = {};
64499
+ this.formats = Object.create(null);
64500
64500
  this._compilations = new Set;
64501
64501
  this._loading = {};
64502
64502
  this._cache = new Map;
@@ -64978,7 +64978,7 @@ var require_core = __commonJS((exports) => {
64978
64978
  }
64979
64979
  });
64980
64980
 
64981
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
64981
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
64982
64982
  var require_id = __commonJS((exports) => {
64983
64983
  Object.defineProperty(exports, "__esModule", { value: true });
64984
64984
  var def = {
@@ -64990,7 +64990,7 @@ var require_id = __commonJS((exports) => {
64990
64990
  exports.default = def;
64991
64991
  });
64992
64992
 
64993
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
64993
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
64994
64994
  var require_ref = __commonJS((exports) => {
64995
64995
  Object.defineProperty(exports, "__esModule", { value: true });
64996
64996
  exports.callRef = exports.getValidate = undefined;
@@ -65109,7 +65109,7 @@ var require_ref = __commonJS((exports) => {
65109
65109
  exports.default = def;
65110
65110
  });
65111
65111
 
65112
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
65112
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
65113
65113
  var require_core2 = __commonJS((exports) => {
65114
65114
  Object.defineProperty(exports, "__esModule", { value: true });
65115
65115
  var id_1 = require_id();
@@ -65127,7 +65127,7 @@ var require_core2 = __commonJS((exports) => {
65127
65127
  exports.default = core2;
65128
65128
  });
65129
65129
 
65130
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
65130
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
65131
65131
  var require_limitNumber = __commonJS((exports) => {
65132
65132
  Object.defineProperty(exports, "__esModule", { value: true });
65133
65133
  var codegen_1 = require_codegen();
@@ -65156,7 +65156,7 @@ var require_limitNumber = __commonJS((exports) => {
65156
65156
  exports.default = def;
65157
65157
  });
65158
65158
 
65159
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
65159
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
65160
65160
  var require_multipleOf = __commonJS((exports) => {
65161
65161
  Object.defineProperty(exports, "__esModule", { value: true });
65162
65162
  var codegen_1 = require_codegen();
@@ -65181,7 +65181,7 @@ var require_multipleOf = __commonJS((exports) => {
65181
65181
  exports.default = def;
65182
65182
  });
65183
65183
 
65184
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
65184
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
65185
65185
  var require_ucs2length = __commonJS((exports) => {
65186
65186
  Object.defineProperty(exports, "__esModule", { value: true });
65187
65187
  function ucs2length(str2) {
@@ -65204,7 +65204,7 @@ var require_ucs2length = __commonJS((exports) => {
65204
65204
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
65205
65205
  });
65206
65206
 
65207
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
65207
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
65208
65208
  var require_limitLength = __commonJS((exports) => {
65209
65209
  Object.defineProperty(exports, "__esModule", { value: true });
65210
65210
  var codegen_1 = require_codegen();
@@ -65233,7 +65233,7 @@ var require_limitLength = __commonJS((exports) => {
65233
65233
  exports.default = def;
65234
65234
  });
65235
65235
 
65236
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
65236
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
65237
65237
  var require_pattern = __commonJS((exports) => {
65238
65238
  Object.defineProperty(exports, "__esModule", { value: true });
65239
65239
  var code_1 = require_code2();
@@ -65267,7 +65267,7 @@ var require_pattern = __commonJS((exports) => {
65267
65267
  exports.default = def;
65268
65268
  });
65269
65269
 
65270
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
65270
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
65271
65271
  var require_limitProperties = __commonJS((exports) => {
65272
65272
  Object.defineProperty(exports, "__esModule", { value: true });
65273
65273
  var codegen_1 = require_codegen();
@@ -65293,7 +65293,7 @@ var require_limitProperties = __commonJS((exports) => {
65293
65293
  exports.default = def;
65294
65294
  });
65295
65295
 
65296
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
65296
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
65297
65297
  var require_required = __commonJS((exports) => {
65298
65298
  Object.defineProperty(exports, "__esModule", { value: true });
65299
65299
  var code_1 = require_code2();
@@ -65372,7 +65372,7 @@ var require_required = __commonJS((exports) => {
65372
65372
  exports.default = def;
65373
65373
  });
65374
65374
 
65375
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
65375
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
65376
65376
  var require_limitItems = __commonJS((exports) => {
65377
65377
  Object.defineProperty(exports, "__esModule", { value: true });
65378
65378
  var codegen_1 = require_codegen();
@@ -65398,7 +65398,7 @@ var require_limitItems = __commonJS((exports) => {
65398
65398
  exports.default = def;
65399
65399
  });
65400
65400
 
65401
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
65401
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
65402
65402
  var require_equal = __commonJS((exports) => {
65403
65403
  Object.defineProperty(exports, "__esModule", { value: true });
65404
65404
  var equal = require_fast_deep_equal();
@@ -65406,7 +65406,7 @@ var require_equal = __commonJS((exports) => {
65406
65406
  exports.default = equal;
65407
65407
  });
65408
65408
 
65409
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
65409
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
65410
65410
  var require_uniqueItems = __commonJS((exports) => {
65411
65411
  Object.defineProperty(exports, "__esModule", { value: true });
65412
65412
  var dataType_1 = require_dataType();
@@ -65470,7 +65470,7 @@ var require_uniqueItems = __commonJS((exports) => {
65470
65470
  exports.default = def;
65471
65471
  });
65472
65472
 
65473
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
65473
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
65474
65474
  var require_const = __commonJS((exports) => {
65475
65475
  Object.defineProperty(exports, "__esModule", { value: true });
65476
65476
  var codegen_1 = require_codegen();
@@ -65496,7 +65496,7 @@ var require_const = __commonJS((exports) => {
65496
65496
  exports.default = def;
65497
65497
  });
65498
65498
 
65499
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
65499
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
65500
65500
  var require_enum = __commonJS((exports) => {
65501
65501
  Object.defineProperty(exports, "__esModule", { value: true });
65502
65502
  var codegen_1 = require_codegen();
@@ -65542,7 +65542,7 @@ var require_enum = __commonJS((exports) => {
65542
65542
  exports.default = def;
65543
65543
  });
65544
65544
 
65545
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
65545
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
65546
65546
  var require_validation = __commonJS((exports) => {
65547
65547
  Object.defineProperty(exports, "__esModule", { value: true });
65548
65548
  var limitNumber_1 = require_limitNumber();
@@ -65572,7 +65572,7 @@ var require_validation = __commonJS((exports) => {
65572
65572
  exports.default = validation;
65573
65573
  });
65574
65574
 
65575
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
65575
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
65576
65576
  var require_additionalItems = __commonJS((exports) => {
65577
65577
  Object.defineProperty(exports, "__esModule", { value: true });
65578
65578
  exports.validateAdditionalItems = undefined;
@@ -65622,7 +65622,7 @@ var require_additionalItems = __commonJS((exports) => {
65622
65622
  exports.default = def;
65623
65623
  });
65624
65624
 
65625
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
65625
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
65626
65626
  var require_items = __commonJS((exports) => {
65627
65627
  Object.defineProperty(exports, "__esModule", { value: true });
65628
65628
  exports.validateTuple = undefined;
@@ -65676,7 +65676,7 @@ var require_items = __commonJS((exports) => {
65676
65676
  exports.default = def;
65677
65677
  });
65678
65678
 
65679
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
65679
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
65680
65680
  var require_prefixItems = __commonJS((exports) => {
65681
65681
  Object.defineProperty(exports, "__esModule", { value: true });
65682
65682
  var items_1 = require_items();
@@ -65690,7 +65690,7 @@ var require_prefixItems = __commonJS((exports) => {
65690
65690
  exports.default = def;
65691
65691
  });
65692
65692
 
65693
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
65693
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
65694
65694
  var require_items2020 = __commonJS((exports) => {
65695
65695
  Object.defineProperty(exports, "__esModule", { value: true });
65696
65696
  var codegen_1 = require_codegen();
@@ -65722,7 +65722,7 @@ var require_items2020 = __commonJS((exports) => {
65722
65722
  exports.default = def;
65723
65723
  });
65724
65724
 
65725
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
65725
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
65726
65726
  var require_contains = __commonJS((exports) => {
65727
65727
  Object.defineProperty(exports, "__esModule", { value: true });
65728
65728
  var codegen_1 = require_codegen();
@@ -65813,7 +65813,7 @@ var require_contains = __commonJS((exports) => {
65813
65813
  exports.default = def;
65814
65814
  });
65815
65815
 
65816
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
65816
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
65817
65817
  var require_dependencies = __commonJS((exports) => {
65818
65818
  Object.defineProperty(exports, "__esModule", { value: true });
65819
65819
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
@@ -65898,7 +65898,7 @@ var require_dependencies = __commonJS((exports) => {
65898
65898
  exports.default = def;
65899
65899
  });
65900
65900
 
65901
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
65901
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
65902
65902
  var require_propertyNames = __commonJS((exports) => {
65903
65903
  Object.defineProperty(exports, "__esModule", { value: true });
65904
65904
  var codegen_1 = require_codegen();
@@ -65938,7 +65938,7 @@ var require_propertyNames = __commonJS((exports) => {
65938
65938
  exports.default = def;
65939
65939
  });
65940
65940
 
65941
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
65941
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
65942
65942
  var require_additionalProperties = __commonJS((exports) => {
65943
65943
  Object.defineProperty(exports, "__esModule", { value: true });
65944
65944
  var code_1 = require_code2();
@@ -66041,7 +66041,7 @@ var require_additionalProperties = __commonJS((exports) => {
66041
66041
  exports.default = def;
66042
66042
  });
66043
66043
 
66044
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
66044
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
66045
66045
  var require_properties = __commonJS((exports) => {
66046
66046
  Object.defineProperty(exports, "__esModule", { value: true });
66047
66047
  var validate_1 = require_validate();
@@ -66096,7 +66096,7 @@ var require_properties = __commonJS((exports) => {
66096
66096
  exports.default = def;
66097
66097
  });
66098
66098
 
66099
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
66099
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
66100
66100
  var require_patternProperties = __commonJS((exports) => {
66101
66101
  Object.defineProperty(exports, "__esModule", { value: true });
66102
66102
  var code_1 = require_code2();
@@ -66167,7 +66167,7 @@ var require_patternProperties = __commonJS((exports) => {
66167
66167
  exports.default = def;
66168
66168
  });
66169
66169
 
66170
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
66170
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
66171
66171
  var require_not = __commonJS((exports) => {
66172
66172
  Object.defineProperty(exports, "__esModule", { value: true });
66173
66173
  var util_1 = require_util();
@@ -66195,7 +66195,7 @@ var require_not = __commonJS((exports) => {
66195
66195
  exports.default = def;
66196
66196
  });
66197
66197
 
66198
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
66198
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
66199
66199
  var require_anyOf = __commonJS((exports) => {
66200
66200
  Object.defineProperty(exports, "__esModule", { value: true });
66201
66201
  var code_1 = require_code2();
@@ -66209,7 +66209,7 @@ var require_anyOf = __commonJS((exports) => {
66209
66209
  exports.default = def;
66210
66210
  });
66211
66211
 
66212
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
66212
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
66213
66213
  var require_oneOf = __commonJS((exports) => {
66214
66214
  Object.defineProperty(exports, "__esModule", { value: true });
66215
66215
  var codegen_1 = require_codegen();
@@ -66264,7 +66264,7 @@ var require_oneOf = __commonJS((exports) => {
66264
66264
  exports.default = def;
66265
66265
  });
66266
66266
 
66267
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
66267
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
66268
66268
  var require_allOf = __commonJS((exports) => {
66269
66269
  Object.defineProperty(exports, "__esModule", { value: true });
66270
66270
  var util_1 = require_util();
@@ -66288,7 +66288,7 @@ var require_allOf = __commonJS((exports) => {
66288
66288
  exports.default = def;
66289
66289
  });
66290
66290
 
66291
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
66291
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
66292
66292
  var require_if = __commonJS((exports) => {
66293
66293
  Object.defineProperty(exports, "__esModule", { value: true });
66294
66294
  var codegen_1 = require_codegen();
@@ -66354,7 +66354,7 @@ var require_if = __commonJS((exports) => {
66354
66354
  exports.default = def;
66355
66355
  });
66356
66356
 
66357
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
66357
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
66358
66358
  var require_thenElse = __commonJS((exports) => {
66359
66359
  Object.defineProperty(exports, "__esModule", { value: true });
66360
66360
  var util_1 = require_util();
@@ -66369,7 +66369,7 @@ var require_thenElse = __commonJS((exports) => {
66369
66369
  exports.default = def;
66370
66370
  });
66371
66371
 
66372
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
66372
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
66373
66373
  var require_applicator = __commonJS((exports) => {
66374
66374
  Object.defineProperty(exports, "__esModule", { value: true });
66375
66375
  var additionalItems_1 = require_additionalItems();
@@ -66412,7 +66412,7 @@ var require_applicator = __commonJS((exports) => {
66412
66412
  exports.default = getApplicator;
66413
66413
  });
66414
66414
 
66415
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
66415
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
66416
66416
  var require_format = __commonJS((exports) => {
66417
66417
  Object.defineProperty(exports, "__esModule", { value: true });
66418
66418
  var codegen_1 = require_codegen();
@@ -66499,7 +66499,7 @@ var require_format = __commonJS((exports) => {
66499
66499
  exports.default = def;
66500
66500
  });
66501
66501
 
66502
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
66502
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
66503
66503
  var require_format2 = __commonJS((exports) => {
66504
66504
  Object.defineProperty(exports, "__esModule", { value: true });
66505
66505
  var format_1 = require_format();
@@ -66507,7 +66507,7 @@ var require_format2 = __commonJS((exports) => {
66507
66507
  exports.default = format2;
66508
66508
  });
66509
66509
 
66510
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
66510
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
66511
66511
  var require_metadata = __commonJS((exports) => {
66512
66512
  Object.defineProperty(exports, "__esModule", { value: true });
66513
66513
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
@@ -66527,7 +66527,7 @@ var require_metadata = __commonJS((exports) => {
66527
66527
  ];
66528
66528
  });
66529
66529
 
66530
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
66530
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
66531
66531
  var require_draft7 = __commonJS((exports) => {
66532
66532
  Object.defineProperty(exports, "__esModule", { value: true });
66533
66533
  var core_1 = require_core2();
@@ -66546,7 +66546,7 @@ var require_draft7 = __commonJS((exports) => {
66546
66546
  exports.default = draft7Vocabularies;
66547
66547
  });
66548
66548
 
66549
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
66549
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
66550
66550
  var require_types = __commonJS((exports) => {
66551
66551
  Object.defineProperty(exports, "__esModule", { value: true });
66552
66552
  exports.DiscrError = undefined;
@@ -66557,7 +66557,7 @@ var require_types = __commonJS((exports) => {
66557
66557
  })(DiscrError || (exports.DiscrError = DiscrError = {}));
66558
66558
  });
66559
66559
 
66560
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
66560
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
66561
66561
  var require_discriminator = __commonJS((exports) => {
66562
66562
  Object.defineProperty(exports, "__esModule", { value: true });
66563
66563
  var codegen_1 = require_codegen();
@@ -66659,7 +66659,7 @@ var require_discriminator = __commonJS((exports) => {
66659
66659
  exports.default = def;
66660
66660
  });
66661
66661
 
66662
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
66662
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
66663
66663
  var require_json_schema_draft_07 = __commonJS((exports, module) => {
66664
66664
  module.exports = {
66665
66665
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -66814,7 +66814,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
66814
66814
  };
66815
66815
  });
66816
66816
 
66817
- // node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/ajv.js
66817
+ // node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
66818
66818
  var require_ajv = __commonJS((exports, module) => {
66819
66819
  Object.defineProperty(exports, "__esModule", { value: true });
66820
66820
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
@@ -85837,13 +85837,28 @@ function createTeamModeStatusInjector(config, keywordDetectorConfig) {
85837
85837
  init_logger();
85838
85838
  var TOOL_RESULT_PLACEHOLDER = "Tool output unavailable (context compacted)";
85839
85839
  var TOOL_RESULT_RECOVERY_CONTINUATION = "Recovered missing tool results. Continue from the repaired tool output.";
85840
+ var TERMINAL_OPENCODE_TOOL_STATUSES = new Set(["completed", "error"]);
85841
+ function isRecord14(value) {
85842
+ return typeof value === "object" && value !== null;
85843
+ }
85844
+ function isTerminalOpenCodeToolPart(part) {
85845
+ const candidate = part;
85846
+ if (candidate.type !== "tool" || typeof candidate.callID !== "string" || candidate.callID.length === 0) {
85847
+ return false;
85848
+ }
85849
+ if (!isRecord14(candidate.state)) {
85850
+ return false;
85851
+ }
85852
+ const status = candidate.state["status"];
85853
+ return typeof status === "string" && TERMINAL_OPENCODE_TOOL_STATUSES.has(status);
85854
+ }
85840
85855
  function getToolUseID(part) {
85841
85856
  const candidate = part;
85842
85857
  if (candidate.type === "tool_use" && typeof candidate.id === "string" && candidate.id.length > 0) {
85843
85858
  return candidate.id;
85844
85859
  }
85845
85860
  if (candidate.type === "tool" && typeof candidate.callID === "string" && candidate.callID.length > 0) {
85846
- return candidate.callID;
85861
+ return isTerminalOpenCodeToolPart(part) ? null : candidate.callID;
85847
85862
  }
85848
85863
  return null;
85849
85864
  }
@@ -86577,7 +86592,7 @@ function resolveToolCallID(ctx) {
86577
86592
  }
86578
86593
  // src/features/tool-metadata-store/task-metadata-contract.ts
86579
86594
  init_logger();
86580
- function isRecord14(value) {
86595
+ function isRecord15(value) {
86581
86596
  return typeof value === "object" && value !== null;
86582
86597
  }
86583
86598
  function readString2(value) {
@@ -86662,7 +86677,7 @@ function parseTaskMetadataBlock(text) {
86662
86677
  return parsed;
86663
86678
  }
86664
86679
  function extractTaskLink(metadata, outputText) {
86665
- if (isRecord14(metadata)) {
86680
+ if (isRecord15(metadata)) {
86666
86681
  const metadataLink = {
86667
86682
  sessionId: readSessionIdFromMetadata(metadata),
86668
86683
  taskId: readTaskIdFromMetadata(metadata),
@@ -94859,7 +94874,7 @@ function createProcessedCommandStore() {
94859
94874
 
94860
94875
  // src/hooks/auto-slash-command/hook.ts
94861
94876
  var COMMAND_EXECUTE_FALLBACK_DEDUP_TTL_MS = 100;
94862
- function isRecord15(value) {
94877
+ function isRecord16(value) {
94863
94878
  return typeof value === "object" && value !== null;
94864
94879
  }
94865
94880
  function getDeletedSessionID(properties) {
@@ -94877,7 +94892,7 @@ function getCommandExecutionEventID(input) {
94877
94892
  "commandId"
94878
94893
  ];
94879
94894
  const recordInput = input;
94880
- if (!isRecord15(recordInput)) {
94895
+ if (!isRecord16(recordInput)) {
94881
94896
  return null;
94882
94897
  }
94883
94898
  for (const key of candidateKeys) {
@@ -99615,16 +99630,16 @@ var THINKING_SUMMARY_MAX_CHARS = 500;
99615
99630
  function hasData(value) {
99616
99631
  return typeof value === "object" && value !== null && "data" in value;
99617
99632
  }
99618
- function isRecord16(value) {
99633
+ function isRecord17(value) {
99619
99634
  return typeof value === "object" && value !== null;
99620
99635
  }
99621
99636
  function getMessageInfo(value) {
99622
- if (!isRecord16(value))
99637
+ if (!isRecord17(value))
99623
99638
  return;
99624
- if (!isRecord16(value.info))
99639
+ if (!isRecord17(value.info))
99625
99640
  return;
99626
99641
  const info = value.info;
99627
- const modelValue = isRecord16(info.model) ? info.model : undefined;
99642
+ const modelValue = isRecord17(info.model) ? info.model : undefined;
99628
99643
  const model = modelValue && typeof modelValue.providerID === "string" && typeof modelValue.modelID === "string" ? {
99629
99644
  providerID: modelValue.providerID,
99630
99645
  modelID: modelValue.modelID,
@@ -99636,7 +99651,7 @@ function getMessageInfo(value) {
99636
99651
  model,
99637
99652
  providerID: typeof info.providerID === "string" ? info.providerID : undefined,
99638
99653
  modelID: typeof info.modelID === "string" ? info.modelID : undefined,
99639
- tools: isRecord16(info.tools) ? Object.entries(info.tools).reduce((acc, [key, value2]) => {
99654
+ tools: isRecord17(info.tools) ? Object.entries(info.tools).reduce((acc, [key, value2]) => {
99640
99655
  if (value2 === true || value2 === false || value2 === "allow" || value2 === "deny" || value2 === "ask") {
99641
99656
  acc[key] = value2;
99642
99657
  }
@@ -99645,11 +99660,11 @@ function getMessageInfo(value) {
99645
99660
  };
99646
99661
  }
99647
99662
  function getMessageParts(value) {
99648
- if (!isRecord16(value))
99663
+ if (!isRecord17(value))
99649
99664
  return [];
99650
99665
  if (!Array.isArray(value.parts))
99651
99666
  return [];
99652
- return value.parts.filter(isRecord16).map((part) => ({
99667
+ return value.parts.filter(isRecord17).map((part) => ({
99653
99668
  type: typeof part.type === "string" ? part.type : undefined,
99654
99669
  text: typeof part.text === "string" ? part.text : undefined,
99655
99670
  thinking: typeof part.thinking === "string" ? part.thinking : undefined
@@ -99669,11 +99684,11 @@ function parseCreatedAt(value) {
99669
99684
  return;
99670
99685
  }
99671
99686
  function getMessageCreatedAt2(value) {
99672
- if (!isRecord16(value))
99687
+ if (!isRecord17(value))
99673
99688
  return;
99674
- const info = isRecord16(value.info) ? value.info : undefined;
99675
- const infoTime = isRecord16(info?.time) ? info.time : undefined;
99676
- const messageTime = isRecord16(value.time) ? value.time : undefined;
99689
+ const info = isRecord17(value.info) ? value.info : undefined;
99690
+ const infoTime = isRecord17(info?.time) ? info.time : undefined;
99691
+ const messageTime = isRecord17(value.time) ? value.time : undefined;
99677
99692
  return parseCreatedAt(infoTime?.created ?? messageTime?.created);
99678
99693
  }
99679
99694
  function extractMessages(value) {
@@ -100694,11 +100709,11 @@ function buildRetryModelPayload(model, agentSettings) {
100694
100709
  }
100695
100710
 
100696
100711
  // src/hooks/runtime-fallback/session-messages.ts
100697
- function isRecord17(value) {
100712
+ function isRecord18(value) {
100698
100713
  return typeof value === "object" && value !== null;
100699
100714
  }
100700
100715
  function isSessionMessage(value) {
100701
- return isRecord17(value);
100716
+ return isRecord18(value);
100702
100717
  }
100703
100718
  function isSessionMessageArray(value) {
100704
100719
  return Array.isArray(value) && value.every(isSessionMessage);
@@ -100707,7 +100722,7 @@ function extractSessionMessages(messagesResponse) {
100707
100722
  if (isSessionMessageArray(messagesResponse)) {
100708
100723
  return messagesResponse;
100709
100724
  }
100710
- if (!isRecord17(messagesResponse)) {
100725
+ if (!isRecord18(messagesResponse)) {
100711
100726
  return;
100712
100727
  }
100713
100728
  const data = messagesResponse.data;
@@ -105481,7 +105496,7 @@ init_safe_create_hook();
105481
105496
  // src/tools/grep/tools.ts
105482
105497
  import { resolve as resolve21 } from "path";
105483
105498
 
105484
- // node_modules/.bun/@opencode-ai+plugin@1.15.4/node_modules/@opencode-ai/plugin/dist/tool.js
105499
+ // node_modules/.bun/@opencode-ai+plugin@1.15.10/node_modules/@opencode-ai/plugin/dist/tool.js
105485
105500
  import { z as z36 } from "zod";
105486
105501
  function tool(input) {
105487
105502
  return input;
@@ -106423,7 +106438,7 @@ function normalizeToolArgSchemas(toolDefinition) {
106423
106438
  return toolDefinition;
106424
106439
  }
106425
106440
  var UNSUPPORTED_SCHEMA_KEYWORDS = new Set(["contentEncoding", "contentMediaType"]);
106426
- function isRecord18(value) {
106441
+ function isRecord19(value) {
106427
106442
  return typeof value === "object" && value !== null && !Array.isArray(value);
106428
106443
  }
106429
106444
  function normalizeJsonSchemaRef(value) {
@@ -106436,7 +106451,7 @@ function sanitizeJsonSchema(value, depth = 0, isPropertyName = false) {
106436
106451
  if (Array.isArray(value)) {
106437
106452
  return value.map((item) => sanitizeJsonSchema(item, depth + 1, false));
106438
106453
  }
106439
- if (!isRecord18(value)) {
106454
+ if (!isRecord19(value)) {
106440
106455
  return value;
106441
106456
  }
106442
106457
  const sanitized = {};
@@ -108215,7 +108230,7 @@ async function formatFullSession(task, client, options) {
108215
108230
  }
108216
108231
 
108217
108232
  // src/features/background-agent/error-classifier.ts
108218
- function isRecord19(value) {
108233
+ function isRecord20(value) {
108219
108234
  return typeof value === "object" && value !== null;
108220
108235
  }
108221
108236
  function isAbortedSessionError(error) {
@@ -108241,7 +108256,7 @@ function getErrorText(error) {
108241
108256
  return "";
108242
108257
  }
108243
108258
  function extractErrorName2(error) {
108244
- if (isRecord19(error) && typeof error["name"] === "string")
108259
+ if (isRecord20(error) && typeof error["name"] === "string")
108245
108260
  return error["name"];
108246
108261
  if (error instanceof Error)
108247
108262
  return error.name;
@@ -108252,11 +108267,11 @@ function extractErrorMessage(error) {
108252
108267
  return;
108253
108268
  if (typeof error === "string")
108254
108269
  return error;
108255
- if (isRecord19(error)) {
108270
+ if (isRecord20(error)) {
108256
108271
  const dataRaw = error["data"];
108257
108272
  const candidates = [
108258
108273
  dataRaw,
108259
- isRecord19(dataRaw) ? dataRaw["error"] : undefined,
108274
+ isRecord20(dataRaw) ? dataRaw["error"] : undefined,
108260
108275
  error["error"],
108261
108276
  error["cause"],
108262
108277
  error
@@ -108264,7 +108279,7 @@ function extractErrorMessage(error) {
108264
108279
  for (const candidate of candidates) {
108265
108280
  if (typeof candidate === "string" && candidate.length > 0)
108266
108281
  return candidate;
108267
- if (isRecord19(candidate) && typeof candidate["message"] === "string" && candidate["message"].length > 0) {
108282
+ if (isRecord20(candidate) && typeof candidate["message"] === "string" && candidate["message"].length > 0) {
108268
108283
  return candidate["message"];
108269
108284
  }
108270
108285
  }
@@ -108278,7 +108293,7 @@ function extractErrorMessage(error) {
108278
108293
  }
108279
108294
  }
108280
108295
  function extractErrorStatusCode(error) {
108281
- if (!isRecord19(error))
108296
+ if (!isRecord20(error))
108282
108297
  return;
108283
108298
  for (const key of ["statusCode", "status", "code"]) {
108284
108299
  const val = error[key];
@@ -108292,7 +108307,7 @@ function extractErrorStatusCode(error) {
108292
108307
  return parsed;
108293
108308
  }
108294
108309
  const responseRaw = error["response"];
108295
- if (isRecord19(responseRaw)) {
108310
+ if (isRecord20(responseRaw)) {
108296
108311
  const respStatus = responseRaw["status"];
108297
108312
  if (typeof respStatus === "number" && respStatus >= 100 && respStatus < 600)
108298
108313
  return respStatus;
@@ -108306,15 +108321,15 @@ function extractErrorStatusCode(error) {
108306
108321
  }
108307
108322
  function getSessionErrorMessage(properties) {
108308
108323
  const errorRaw = properties["error"];
108309
- if (!isRecord19(errorRaw))
108324
+ if (!isRecord20(errorRaw))
108310
108325
  return;
108311
108326
  const dataRaw = errorRaw["data"];
108312
- if (isRecord19(dataRaw)) {
108327
+ if (isRecord20(dataRaw)) {
108313
108328
  const message2 = dataRaw["message"];
108314
108329
  if (typeof message2 === "string")
108315
108330
  return message2;
108316
108331
  const nestedError = dataRaw["error"];
108317
- if (isRecord19(nestedError)) {
108332
+ if (isRecord20(nestedError)) {
108318
108333
  const nestedMessage = nestedError["message"];
108319
108334
  if (typeof nestedMessage === "string")
108320
108335
  return nestedMessage;
@@ -119398,7 +119413,7 @@ The task was re-queued on a fallback model after a retryable failure.
119398
119413
  }, this.directory);
119399
119414
  const messages = normalizeSDKResponse(messagesResp, []);
119400
119415
  const promptContext = resolvePromptContextFromSessionMessages(messages, task.parentSessionId);
119401
- const normalizedTools = isRecord19(promptContext?.tools) ? normalizePromptTools(promptContext.tools) : undefined;
119416
+ const normalizedTools = isRecord20(promptContext?.tools) ? normalizePromptTools(promptContext.tools) : undefined;
119402
119417
  if (promptContext?.agent || promptContext?.model || normalizedTools) {
119403
119418
  agent = promptContext?.agent ?? task.parentAgent;
119404
119419
  model = promptContext?.model?.providerID && promptContext.model.modelID ? { providerID: promptContext.model.providerID, modelID: promptContext.model.modelID } : undefined;
@@ -119977,7 +119992,7 @@ async function getOrRegisterClient(options) {
119977
119992
  }
119978
119993
  }
119979
119994
  function parseRegistrationResponse(data) {
119980
- if (!isRecord20(data))
119995
+ if (!isRecord21(data))
119981
119996
  return null;
119982
119997
  const clientId = data.client_id;
119983
119998
  if (typeof clientId !== "string" || clientId.length === 0)
@@ -119988,7 +120003,7 @@ function parseRegistrationResponse(data) {
119988
120003
  }
119989
120004
  return { clientId };
119990
120005
  }
119991
- function isRecord20(value) {
120006
+ function isRecord21(value) {
119992
120007
  return typeof value === "object" && value !== null;
119993
120008
  }
119994
120009
 
@@ -121324,18 +121339,18 @@ function isTerminal(status) {
121324
121339
  // node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
121325
121340
  import * as z4mini2 from "zod/v4-mini";
121326
121341
 
121327
- // node_modules/.bun/zod-to-json-schema@3.25.1+3c5d820c62823f0b/node_modules/zod-to-json-schema/dist/esm/Options.js
121342
+ // node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/Options.js
121328
121343
  var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
121329
- // node_modules/.bun/zod-to-json-schema@3.25.1+3c5d820c62823f0b/node_modules/zod-to-json-schema/dist/esm/selectParser.js
121344
+ // node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/selectParser.js
121330
121345
  import { ZodFirstPartyTypeKind as ZodFirstPartyTypeKind3 } from "zod/v3";
121331
121346
 
121332
- // node_modules/.bun/zod-to-json-schema@3.25.1+3c5d820c62823f0b/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
121347
+ // node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
121333
121348
  import { ZodFirstPartyTypeKind } from "zod/v3";
121334
121349
 
121335
- // node_modules/.bun/zod-to-json-schema@3.25.1+3c5d820c62823f0b/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
121350
+ // node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
121336
121351
  import { ZodFirstPartyTypeKind as ZodFirstPartyTypeKind2 } from "zod/v3";
121337
121352
 
121338
- // node_modules/.bun/zod-to-json-schema@3.25.1+3c5d820c62823f0b/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
121353
+ // node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
121339
121354
  var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
121340
121355
  // node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
121341
121356
  function getMethodLiteral(schema2) {
@@ -123686,49 +123701,120 @@ async function registerClient(authorizationServerUrl, { metadata, clientMetadata
123686
123701
  return OAuthClientInformationFullSchema.parse(await response.json());
123687
123702
  }
123688
123703
 
123689
- // node_modules/.bun/eventsource-parser@3.0.6/node_modules/eventsource-parser/dist/index.js
123704
+ // node_modules/.bun/eventsource-parser@3.0.8/node_modules/eventsource-parser/dist/index.js
123690
123705
  class ParseError2 extends Error {
123691
123706
  constructor(message, options) {
123692
123707
  super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
123693
123708
  }
123694
123709
  }
123710
+ var LF = 10;
123711
+ var CR = 13;
123712
+ var SPACE = 32;
123695
123713
  function noop(_arg) {}
123696
123714
  function createParser(callbacks) {
123697
123715
  if (typeof callbacks == "function")
123698
123716
  throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");
123699
- const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks;
123700
- let incompleteLine = "", isFirstChunk = true, id, data = "", eventType = "";
123701
- function feed(newChunk) {
123702
- const chunk = isFirstChunk ? newChunk.replace(/^\xEF\xBB\xBF/, "") : newChunk, [complete, incomplete] = splitLines2(`${incompleteLine}${chunk}`);
123703
- for (const line of complete)
123704
- parseLine(line);
123705
- incompleteLine = incomplete, isFirstChunk = false;
123706
- }
123707
- function parseLine(line) {
123708
- if (line === "") {
123717
+ const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks, pendingFragments = [];
123718
+ let isFirstChunk = true, id, data = "", dataLines = 0, eventType;
123719
+ function feed(chunk) {
123720
+ if (isFirstChunk && (isFirstChunk = false, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
123721
+ const trailing2 = processLines(chunk);
123722
+ trailing2 !== "" && pendingFragments.push(trailing2);
123723
+ return;
123724
+ }
123725
+ if (chunk.indexOf(`
123726
+ `) === -1 && chunk.indexOf("\r") === -1) {
123727
+ pendingFragments.push(chunk);
123728
+ return;
123729
+ }
123730
+ pendingFragments.push(chunk);
123731
+ const input = pendingFragments.join("");
123732
+ pendingFragments.length = 0;
123733
+ const trailing = processLines(input);
123734
+ trailing !== "" && pendingFragments.push(trailing);
123735
+ }
123736
+ function processLines(chunk) {
123737
+ let searchIndex = 0;
123738
+ if (chunk.indexOf("\r") === -1) {
123739
+ let lfIndex = chunk.indexOf(`
123740
+ `, searchIndex);
123741
+ for (;lfIndex !== -1; ) {
123742
+ if (searchIndex === lfIndex) {
123743
+ dataLines > 0 && onEvent({ id, event: eventType, data }), id = undefined, data = "", dataLines = 0, eventType = undefined, searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
123744
+ `, searchIndex);
123745
+ continue;
123746
+ }
123747
+ const firstCharCode = chunk.charCodeAt(searchIndex);
123748
+ if (isDataPrefix(chunk, searchIndex, firstCharCode)) {
123749
+ const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE ? searchIndex + 6 : searchIndex + 5, value = chunk.slice(valueStart, lfIndex);
123750
+ if (dataLines === 0 && chunk.charCodeAt(lfIndex + 1) === LF) {
123751
+ onEvent({ id, event: eventType, data: value }), id = undefined, data = "", eventType = undefined, searchIndex = lfIndex + 2, lfIndex = chunk.indexOf(`
123752
+ `, searchIndex);
123753
+ continue;
123754
+ }
123755
+ data = dataLines === 0 ? value : `${data}
123756
+ ${value}`, dataLines++;
123757
+ } else
123758
+ isEventPrefix(chunk, searchIndex, firstCharCode) ? eventType = chunk.slice(chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6, lfIndex) || undefined : parseLine(chunk, searchIndex, lfIndex);
123759
+ searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
123760
+ `, searchIndex);
123761
+ }
123762
+ return chunk.slice(searchIndex);
123763
+ }
123764
+ for (;searchIndex < chunk.length; ) {
123765
+ const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
123766
+ `, searchIndex);
123767
+ let lineEnd = -1;
123768
+ if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = crIndex < lfIndex ? crIndex : lfIndex : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1)
123769
+ break;
123770
+ parseLine(chunk, searchIndex, lineEnd), searchIndex = lineEnd + 1, chunk.charCodeAt(searchIndex - 1) === CR && chunk.charCodeAt(searchIndex) === LF && searchIndex++;
123771
+ }
123772
+ return chunk.slice(searchIndex);
123773
+ }
123774
+ function parseLine(chunk, start, end) {
123775
+ if (start === end) {
123709
123776
  dispatchEvent();
123710
123777
  return;
123711
123778
  }
123712
- if (line.startsWith(":")) {
123713
- onComment && onComment(line.slice(line.startsWith(": ") ? 2 : 1));
123779
+ const firstCharCode = chunk.charCodeAt(start);
123780
+ if (isDataPrefix(chunk, start, firstCharCode)) {
123781
+ const valueStart = chunk.charCodeAt(start + 5) === SPACE ? start + 6 : start + 5, value2 = chunk.slice(valueStart, end);
123782
+ data = dataLines === 0 ? value2 : `${data}
123783
+ ${value2}`, dataLines++;
123784
+ return;
123785
+ }
123786
+ if (isEventPrefix(chunk, start, firstCharCode)) {
123787
+ eventType = chunk.slice(chunk.charCodeAt(start + 6) === SPACE ? start + 7 : start + 6, end) || undefined;
123788
+ return;
123789
+ }
123790
+ if (firstCharCode === 105 && chunk.charCodeAt(start + 1) === 100 && chunk.charCodeAt(start + 2) === 58) {
123791
+ const value2 = chunk.slice(chunk.charCodeAt(start + 3) === SPACE ? start + 4 : start + 3, end);
123792
+ id = value2.includes("\x00") ? undefined : value2;
123714
123793
  return;
123715
123794
  }
123716
- const fieldSeparatorIndex = line.indexOf(":");
123717
- if (fieldSeparatorIndex !== -1) {
123718
- const field = line.slice(0, fieldSeparatorIndex), offset = line[fieldSeparatorIndex + 1] === " " ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
123719
- processField(field, value, line);
123795
+ if (firstCharCode === 58) {
123796
+ if (onComment) {
123797
+ const line2 = chunk.slice(start, end);
123798
+ onComment(line2.slice(chunk.charCodeAt(start + 1) === SPACE ? 2 : 1));
123799
+ }
123720
123800
  return;
123721
123801
  }
123722
- processField(line, "", line);
123802
+ const line = chunk.slice(start, end), fieldSeparatorIndex = line.indexOf(":");
123803
+ if (fieldSeparatorIndex === -1) {
123804
+ processField(line, "", line);
123805
+ return;
123806
+ }
123807
+ const field = line.slice(0, fieldSeparatorIndex), offset = line.charCodeAt(fieldSeparatorIndex + 1) === SPACE ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
123808
+ processField(field, value, line);
123723
123809
  }
123724
123810
  function processField(field, value, line) {
123725
123811
  switch (field) {
123726
123812
  case "event":
123727
- eventType = value;
123813
+ eventType = value || undefined;
123728
123814
  break;
123729
123815
  case "data":
123730
- data = `${data}${value}
123731
- `;
123816
+ data = dataLines === 0 ? value : `${data}
123817
+ ${value}`, dataLines++;
123732
123818
  break;
123733
123819
  case "id":
123734
123820
  id = value.includes("\x00") ? undefined : value;
@@ -123746,38 +123832,29 @@ function createParser(callbacks) {
123746
123832
  }
123747
123833
  }
123748
123834
  function dispatchEvent() {
123749
- data.length > 0 && onEvent({
123835
+ dataLines > 0 && onEvent({
123750
123836
  id,
123751
- event: eventType || undefined,
123752
- data: data.endsWith(`
123753
- `) ? data.slice(0, -1) : data
123754
- }), id = undefined, data = "", eventType = "";
123837
+ event: eventType,
123838
+ data
123839
+ }), id = undefined, data = "", dataLines = 0, eventType = undefined;
123755
123840
  }
123756
123841
  function reset(options = {}) {
123757
- incompleteLine && options.consume && parseLine(incompleteLine), isFirstChunk = true, id = undefined, data = "", eventType = "", incompleteLine = "";
123842
+ if (options.consume && pendingFragments.length > 0) {
123843
+ const incompleteLine = pendingFragments.join("");
123844
+ parseLine(incompleteLine, 0, incompleteLine.length);
123845
+ }
123846
+ isFirstChunk = true, id = undefined, data = "", dataLines = 0, eventType = undefined, pendingFragments.length = 0;
123758
123847
  }
123759
123848
  return { feed, reset };
123760
123849
  }
123761
- function splitLines2(chunk) {
123762
- const lines = [];
123763
- let incompleteLine = "", searchIndex = 0;
123764
- for (;searchIndex < chunk.length; ) {
123765
- const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
123766
- `, searchIndex);
123767
- let lineEnd = -1;
123768
- if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = Math.min(crIndex, lfIndex) : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1) {
123769
- incompleteLine = chunk.slice(searchIndex);
123770
- break;
123771
- } else {
123772
- const line = chunk.slice(searchIndex, lineEnd);
123773
- lines.push(line), searchIndex = lineEnd + 1, chunk[searchIndex - 1] === "\r" && chunk[searchIndex] === `
123774
- ` && searchIndex++;
123775
- }
123776
- }
123777
- return [lines, incompleteLine];
123850
+ function isDataPrefix(chunk, i2, firstCharCode) {
123851
+ return firstCharCode === 100 && chunk.charCodeAt(i2 + 1) === 97 && chunk.charCodeAt(i2 + 2) === 116 && chunk.charCodeAt(i2 + 3) === 97 && chunk.charCodeAt(i2 + 4) === 58;
123852
+ }
123853
+ function isEventPrefix(chunk, i2, firstCharCode) {
123854
+ return firstCharCode === 101 && chunk.charCodeAt(i2 + 1) === 118 && chunk.charCodeAt(i2 + 2) === 101 && chunk.charCodeAt(i2 + 3) === 110 && chunk.charCodeAt(i2 + 4) === 116 && chunk.charCodeAt(i2 + 5) === 58;
123778
123855
  }
123779
123856
 
123780
- // node_modules/.bun/eventsource-parser@3.0.6/node_modules/eventsource-parser/dist/stream.js
123857
+ // node_modules/.bun/eventsource-parser@3.0.8/node_modules/eventsource-parser/dist/stream.js
123781
123858
  class EventSourceParserStream extends TransformStream {
123782
123859
  constructor({ onError, onRetry, onComment } = {}) {
123783
123860
  let parser;
@@ -140034,11 +140111,11 @@ async function createTools(args) {
140034
140111
  // src/plugin/chat-params.ts
140035
140112
  init_shared();
140036
140113
  var SAFE_MAX_OUTPUT_TOKENS_FALLBACK = 4096;
140037
- function isRecord21(value) {
140114
+ function isRecord22(value) {
140038
140115
  return typeof value === "object" && value !== null;
140039
140116
  }
140040
140117
  function buildChatParamsInput(raw) {
140041
- if (!isRecord21(raw))
140118
+ if (!isRecord22(raw))
140042
140119
  return null;
140043
140120
  const sessionID = raw.sessionID;
140044
140121
  const agent = raw.agent;
@@ -140047,16 +140124,16 @@ function buildChatParamsInput(raw) {
140047
140124
  const message = raw.message;
140048
140125
  if (typeof sessionID !== "string")
140049
140126
  return null;
140050
- if (!isRecord21(model))
140127
+ if (!isRecord22(model))
140051
140128
  return null;
140052
- if (!isRecord21(provider))
140129
+ if (!isRecord22(provider))
140053
140130
  return null;
140054
- if (!isRecord21(message))
140131
+ if (!isRecord22(message))
140055
140132
  return null;
140056
140133
  let agentName;
140057
140134
  if (typeof agent === "string") {
140058
140135
  agentName = agent;
140059
- } else if (isRecord21(agent)) {
140136
+ } else if (isRecord22(agent)) {
140060
140137
  const name = agent.name;
140061
140138
  if (typeof name === "string") {
140062
140139
  agentName = name;
@@ -140083,12 +140160,12 @@ function buildChatParamsInput(raw) {
140083
140160
  };
140084
140161
  }
140085
140162
  function isChatParamsOutput(raw) {
140086
- if (!isRecord21(raw))
140163
+ if (!isRecord22(raw))
140087
140164
  return false;
140088
- if (!isRecord21(raw.options)) {
140165
+ if (!isRecord22(raw.options)) {
140089
140166
  raw.options = {};
140090
140167
  }
140091
- return isRecord21(raw.options);
140168
+ return isRecord22(raw.options);
140092
140169
  }
140093
140170
  function createChatParamsHandler(args) {
140094
140171
  return async (input, output) => {
@@ -140128,7 +140205,7 @@ function createChatParamsHandler(args) {
140128
140205
  temperature: typeof output.temperature === "number" ? output.temperature : undefined,
140129
140206
  topP: typeof output.topP === "number" ? output.topP : undefined,
140130
140207
  maxTokens: typeof output.maxOutputTokens === "number" ? output.maxOutputTokens : undefined,
140131
- thinking: isRecord21(output.options.thinking) ? output.options.thinking : undefined
140208
+ thinking: isRecord22(output.options.thinking) ? output.options.thinking : undefined
140132
140209
  },
140133
140210
  capabilities
140134
140211
  });
@@ -140185,20 +140262,20 @@ function createChatParamsHandler(args) {
140185
140262
  init_shared();
140186
140263
  var INTERNAL_MARKER_CACHE_LIMIT = 1000;
140187
140264
  var internalMarkerCache = new Map;
140188
- function isRecord22(value) {
140265
+ function isRecord23(value) {
140189
140266
  return typeof value === "object" && value !== null;
140190
140267
  }
140191
140268
  function buildChatHeadersInput(raw) {
140192
- if (!isRecord22(raw))
140269
+ if (!isRecord23(raw))
140193
140270
  return null;
140194
140271
  const sessionID = raw.sessionID;
140195
140272
  const provider = raw.provider;
140196
140273
  const message = raw.message;
140197
140274
  if (typeof sessionID !== "string")
140198
140275
  return null;
140199
- if (!isRecord22(provider) || typeof provider.id !== "string")
140276
+ if (!isRecord23(provider) || typeof provider.id !== "string")
140200
140277
  return null;
140201
- if (!isRecord22(message))
140278
+ if (!isRecord23(message))
140202
140279
  return null;
140203
140280
  return {
140204
140281
  sessionID,
@@ -140210,12 +140287,12 @@ function buildChatHeadersInput(raw) {
140210
140287
  };
140211
140288
  }
140212
140289
  function isChatHeadersOutput(raw) {
140213
- if (!isRecord22(raw))
140290
+ if (!isRecord23(raw))
140214
140291
  return false;
140215
- if (!isRecord22(raw.headers)) {
140292
+ if (!isRecord23(raw.headers)) {
140216
140293
  raw.headers = {};
140217
140294
  }
140218
- return isRecord22(raw.headers);
140295
+ return isRecord23(raw.headers);
140219
140296
  }
140220
140297
  function isCopilotProvider(providerID) {
140221
140298
  return providerID === "github-copilot" || providerID === "github-copilot-enterprise";
@@ -140231,7 +140308,7 @@ async function hasInternalMarker(client, sessionID, messageID) {
140231
140308
  path: { id: sessionID, messageID }
140232
140309
  });
140233
140310
  const data = response.data;
140234
- if (!isRecord22(data) || !Array.isArray(data.parts)) {
140311
+ if (!isRecord23(data) || !Array.isArray(data.parts)) {
140235
140312
  internalMarkerCache.set(cacheKey, false);
140236
140313
  if (internalMarkerCache.size > INTERNAL_MARKER_CACHE_LIMIT) {
140237
140314
  internalMarkerCache.clear();
@@ -140239,7 +140316,7 @@ async function hasInternalMarker(client, sessionID, messageID) {
140239
140316
  return false;
140240
140317
  }
140241
140318
  const hasMarker = data.parts.some((part) => {
140242
- if (!isRecord22(part) || part.type !== "text" || typeof part.text !== "string") {
140319
+ if (!isRecord23(part) || part.type !== "text" || typeof part.text !== "string") {
140243
140320
  return false;
140244
140321
  }
140245
140322
  return part.text.includes(OMO_INTERNAL_INITIATOR_MARKER);
@@ -140276,8 +140353,8 @@ function createChatHeadersHandler(args) {
140276
140353
  return;
140277
140354
  if (!isCopilotProvider(normalizedInput.provider.id))
140278
140355
  return;
140279
- const model = isRecord22(input) && isRecord22(input.model) ? input.model : undefined;
140280
- const api = model && isRecord22(model.api) ? model.api : undefined;
140356
+ const model = isRecord23(input) && isRecord23(input.model) ? input.model : undefined;
140357
+ const api = model && isRecord23(model.api) ? model.api : undefined;
140281
140358
  if (api?.npm === "@ai-sdk/github-copilot")
140282
140359
  return;
140283
140360
  if (!await isOmoInternalMessage(normalizedInput, ctx.client))
@@ -140855,7 +140932,7 @@ function findLastUserTurn(messages) {
140855
140932
  }
140856
140933
  return;
140857
140934
  }
140858
- function isRecord23(value) {
140935
+ function isRecord24(value) {
140859
140936
  return typeof value === "object" && value !== null;
140860
140937
  }
140861
140938
  function readStringField2(record3, key) {
@@ -140863,11 +140940,11 @@ function readStringField2(record3, key) {
140863
140940
  return typeof value === "string" && value.length > 0 ? value : undefined;
140864
140941
  }
140865
140942
  function readModelIdentifier(info) {
140866
- if (!isRecord23(info)) {
140943
+ if (!isRecord24(info)) {
140867
140944
  return;
140868
140945
  }
140869
140946
  const model = info["model"];
140870
- const nestedModel = isRecord23(model) ? model : undefined;
140947
+ const nestedModel = isRecord24(model) ? model : undefined;
140871
140948
  const providerID = nestedModel ? readStringField2(nestedModel, "providerID") ?? readStringField2(info, "providerID") : readStringField2(info, "providerID");
140872
140949
  const modelID = nestedModel ? readStringField2(nestedModel, "modelID") ?? readStringField2(info, "modelID") : readStringField2(info, "modelID");
140873
140950
  return providerID && modelID ? { providerID, modelID } : undefined;
@@ -140893,11 +140970,11 @@ function shouldRepairAssistantPrefillForModel(model) {
140893
140970
  return ASSISTANT_PREFILL_UNSUPPORTED_MODEL_PREFIXES.some((prefix) => modelID.startsWith(prefix));
140894
140971
  }
140895
140972
  function isCompactionContinuationPart(part) {
140896
- if (!isRecord23(part)) {
140973
+ if (!isRecord24(part)) {
140897
140974
  return false;
140898
140975
  }
140899
140976
  const metadata = part["metadata"];
140900
- return isRecord23(metadata) && metadata["compaction_continue"] === true;
140977
+ return isRecord24(metadata) && metadata["compaction_continue"] === true;
140901
140978
  }
140902
140979
  function hasInternalContinuationTrigger(messages) {
140903
140980
  return findLastUserTurn(messages)?.parts.some(isCompactionContinuationPart) === true;
@@ -141578,14 +141655,14 @@ function normalizeSessionStatusToIdle(input) {
141578
141655
 
141579
141656
  // src/plugin/event.ts
141580
141657
  init_event_session_id();
141581
- function isRecord24(value) {
141658
+ function isRecord25(value) {
141582
141659
  return typeof value === "object" && value !== null;
141583
141660
  }
141584
141661
  function normalizeFallbackModelID(modelID) {
141585
141662
  return modelID.replace(/-thinking$/i, "").replace(/-max$/i, "").replace(/-high$/i, "");
141586
141663
  }
141587
141664
  function extractErrorName3(error) {
141588
- if (isRecord24(error) && typeof error.name === "string")
141665
+ if (isRecord25(error) && typeof error.name === "string")
141589
141666
  return error.name;
141590
141667
  if (error instanceof Error)
141591
141668
  return error.name;
@@ -141596,16 +141673,16 @@ function extractErrorMessage3(error) {
141596
141673
  return "";
141597
141674
  if (typeof error === "string")
141598
141675
  return error;
141599
- if (isRecord24(error)) {
141676
+ if (isRecord25(error)) {
141600
141677
  const candidates = [
141601
141678
  error.data,
141602
- isRecord24(error.data) ? error.data.error : undefined,
141679
+ isRecord25(error.data) ? error.data.error : undefined,
141603
141680
  error.error,
141604
141681
  error.cause,
141605
141682
  error
141606
141683
  ];
141607
141684
  for (const candidate of candidates) {
141608
- if (isRecord24(candidate) && typeof candidate.message === "string" && candidate.message.length > 0) {
141685
+ if (isRecord25(candidate) && typeof candidate.message === "string" && candidate.message.length > 0) {
141609
141686
  return candidate.message;
141610
141687
  }
141611
141688
  }
@@ -141689,7 +141766,7 @@ function createEventHandler2(args) {
141689
141766
  if (input.event.type.startsWith("message.") || input.event.type.startsWith("tool.")) {
141690
141767
  return resolveMessageEventSessionID(properties);
141691
141768
  }
141692
- const record3 = isRecord24(properties) ? properties : undefined;
141769
+ const record3 = isRecord25(properties) ? properties : undefined;
141693
141770
  const sessionID = record3?.sessionID;
141694
141771
  return typeof sessionID === "string" && sessionID.length > 0 ? sessionID : undefined;
141695
141772
  };