hinacode 0.3.0-alpha.6 → 0.3.0-alpha.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.
@@ -3,7 +3,7 @@ globalThis.require ??= __createRequire(import.meta.url);
3
3
  import * as crypto from "node:crypto";
4
4
  import { createHash } from "node:crypto";
5
5
  import * as NFS from "node:fs";
6
- import * as YP from "node:os";
6
+ import * as NL from "node:os";
7
7
  import { tmpdir, userInfo } from "node:os";
8
8
  import * as path from "node:path";
9
9
  import { join as join$1 } from "node:path";
@@ -12215,7 +12215,7 @@ const makeTempDirectoryFactory = (method) => {
12215
12215
  const nodeMkdtemp = effectify(NFS.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
12216
12216
  return (options) => suspend$2(() => {
12217
12217
  const prefix = options?.prefix ?? "";
12218
- const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") : YP.tmpdir();
12218
+ const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") : NL.tmpdir();
12219
12219
  return nodeMkdtemp(prefix ? path.join(directory, prefix) : directory + "/");
12220
12220
  });
12221
12221
  };
@@ -15759,6 +15759,8 @@ const SubagentStatus = Literals(["running", "completed", "failed", "stopped"]);
15759
15759
  const Subagent = Struct({
15760
15760
  id: String$1,
15761
15761
  provider: optionalKey(ProviderId),
15762
+ model: optionalKey(String$1),
15763
+ effort: optionalKey(String$1),
15762
15764
  label: String$1,
15763
15765
  callId: NullOr(String$1),
15764
15766
  status: SubagentStatus,
@@ -15834,7 +15836,8 @@ const AgentEvent = Union2([
15834
15836
  message: String$1,
15835
15837
  stopped: optional(Boolean$1),
15836
15838
  signedOut: optional(Boolean$1),
15837
- loginCommand: optional(String$1)
15839
+ loginCommand: optional(String$1),
15840
+ sessionLost: optional(Boolean$1)
15838
15841
  }),
15839
15842
  Struct({ type: Literal2("turn_limited"), limit: UsageLimit })
15840
15843
  ]);
@@ -22130,24 +22133,24 @@ export {
22130
22133
  toArray as e7,
22131
22134
  cachedWithTTL as e8,
22132
22135
  minutes as e9,
22133
- concat as eA,
22134
- fromEffectDrain as eB,
22135
- fromEffect as eC,
22136
- fromIterableEffect as eD,
22137
- suspend as eE,
22138
- unlistedModel as eF,
22139
- make$e as eG,
22140
- tap as eH,
22141
- tick as eI,
22142
- map$1 as eJ,
22143
- drop as eK,
22144
- merge as eL,
22145
- onInterrupt as eM,
22146
- format as eN,
22147
- getOrNull as eO,
22148
- Record as eP,
22149
- make$h as eQ,
22150
- make$q as eR,
22136
+ interruptWhen as eA,
22137
+ concat as eB,
22138
+ fromEffectDrain as eC,
22139
+ fromEffect as eD,
22140
+ fromIterableEffect as eE,
22141
+ suspend as eF,
22142
+ unlistedModel as eG,
22143
+ make$e as eH,
22144
+ tap as eI,
22145
+ tick as eJ,
22146
+ map$1 as eK,
22147
+ drop as eL,
22148
+ merge as eM,
22149
+ onInterrupt as eN,
22150
+ format as eO,
22151
+ getOrNull as eP,
22152
+ Record as eQ,
22153
+ make$h as eR,
22151
22154
  join as eS,
22152
22155
  end as eT,
22153
22156
  forkScoped as eU,
@@ -22165,24 +22168,24 @@ export {
22165
22168
  withPermit as ef,
22166
22169
  acquireUseRelease as eg,
22167
22170
  shutdownUnsafe as eh,
22168
- forkIn as ei,
22169
- fromAsyncIterable as ej,
22170
- runForEach as ek,
22171
- pretty as el,
22171
+ make$q as ei,
22172
+ forkIn as ej,
22173
+ fromAsyncIterable as ek,
22174
+ runForEach as el,
22172
22175
  CLAUDE_EFFORT_LEVELS as em,
22173
22176
  ensuring as en,
22174
22177
  currentTimeMillis as eo,
22175
22178
  sum as ep,
22176
- publishedArtifactId as eq,
22177
- PUBLISH_DOCUMENT_TOOL as er,
22178
- PUBLISH_ARTIFACT_TOOL as es,
22179
- PUBLISH_WHITEBOARD_TOOL as et,
22180
- isDone as eu,
22181
- empty as ev,
22182
- succeed$1 as ew,
22183
- fromIterable as ex,
22184
- flatMap as ey,
22185
- interruptWhen as ez,
22179
+ race as eq,
22180
+ publishedArtifactId as er,
22181
+ PUBLISH_DOCUMENT_TOOL as es,
22182
+ PUBLISH_ARTIFACT_TOOL as et,
22183
+ PUBLISH_WHITEBOARD_TOOL as eu,
22184
+ isDone as ev,
22185
+ empty as ew,
22186
+ succeed$1 as ex,
22187
+ fromIterable as ey,
22188
+ flatMap as ez,
22186
22189
  optionalKey as f,
22187
22190
  UsageLimit as f$,
22188
22191
  flatMapNullishOr$1 as f0,
@@ -22204,15 +22207,15 @@ export {
22204
22207
  MessagePart as fG,
22205
22208
  Message as fH,
22206
22209
  sliding as fI,
22207
- PullRequestReviewer as fJ,
22208
- PullRequestLabel as fK,
22209
- PullRequestComment as fL,
22210
- DiffSide as fM,
22211
- omit as fN,
22212
- subtract as fO,
22213
- PULL_REQUEST_REFRESH as fP,
22214
- parseGitHubRepository as fQ,
22215
- parseGitHubPullRequestUrl as fR,
22210
+ parseGitHubPullRequestUrl as fJ,
22211
+ PullRequestReviewer as fK,
22212
+ PullRequestLabel as fL,
22213
+ PullRequestComment as fM,
22214
+ DiffSide as fN,
22215
+ omit as fO,
22216
+ subtract as fP,
22217
+ PULL_REQUEST_REFRESH as fQ,
22218
+ parseGitHubRepository as fR,
22216
22219
  request as fS,
22217
22220
  Class$1 as fT,
22218
22221
  ProjectAction as fU,
@@ -22249,7 +22252,7 @@ export {
22249
22252
  never$1 as fy,
22250
22253
  min$1 as fz,
22251
22254
  format$1 as g,
22252
- flatMapEager as g$,
22255
+ fromReadable as g$,
22253
22256
  getOrThrow$1 as g0,
22254
22257
  PullRequestWatch as g1,
22255
22258
  PullRequestLink as g2,
@@ -22260,33 +22263,33 @@ export {
22260
22263
  resumeGraceMs as g7,
22261
22264
  fail$2 as g8,
22262
22265
  WAIT_AGENT_TOOL as g9,
22263
- mapEager as gA,
22264
- updateContext as gB,
22265
- makeUnsafe$2 as gC,
22266
- tag as gD,
22267
- Error$1 as gE,
22268
- fromInputUnsafe as gF,
22269
- Path as gG,
22270
- run$1 as gH,
22271
- mebibytes as gI,
22272
- Class$3 as gJ,
22273
- constFalse as gK,
22274
- withLogSpan as gL,
22275
- log as gM,
22276
- Tracer as gN,
22277
- nativeTracer as gO,
22278
- hasInterrupts$1 as gP,
22279
- succeed$6 as gQ,
22280
- setStackTraceLimit as gR,
22281
- fail$3 as gS,
22282
- getStackTraceLimit as gT,
22283
- fiberEnterUninterruptibleUnsafe as gU,
22284
- contA as gV,
22285
- effectIsExit as gW,
22286
- closeUnsafe as gX,
22287
- contE as gY,
22288
- reportCauseUnsafe as gZ,
22289
- matchCauseEffectEager as g_,
22266
+ updateContext as gA,
22267
+ makeUnsafe$2 as gB,
22268
+ tag as gC,
22269
+ Error$1 as gD,
22270
+ fromInputUnsafe as gE,
22271
+ Path as gF,
22272
+ run$1 as gG,
22273
+ mebibytes as gH,
22274
+ Class$3 as gI,
22275
+ constFalse as gJ,
22276
+ withLogSpan as gK,
22277
+ log as gL,
22278
+ Tracer as gM,
22279
+ nativeTracer as gN,
22280
+ hasInterrupts$1 as gO,
22281
+ succeed$6 as gP,
22282
+ setStackTraceLimit as gQ,
22283
+ fail$3 as gR,
22284
+ getStackTraceLimit as gS,
22285
+ fiberEnterUninterruptibleUnsafe as gT,
22286
+ contA as gU,
22287
+ effectIsExit as gV,
22288
+ closeUnsafe as gW,
22289
+ contE as gX,
22290
+ reportCauseUnsafe as gY,
22291
+ matchCauseEffectEager as gZ,
22292
+ flatMapEager as g_,
22290
22293
  filter$2 as ga,
22291
22294
  isMaxLength as gb,
22292
22295
  schedule as gc,
@@ -22300,150 +22303,150 @@ export {
22300
22303
  relayWebSocketUrl as gk,
22301
22304
  remoteWebSocketUrl as gl,
22302
22305
  CHALLENGE_WAIT_MS as gm,
22303
- race as gn,
22304
- dialPlan as go,
22305
- REMOTE_PROTOCOL_VERSION as gp,
22306
- DIRECT_CHECK_INTERVAL_MS as gq,
22307
- DIRECT_CHECK_TIMEOUT_MS as gr,
22308
- LinearIssue as gs,
22309
- externalSpan as gt,
22310
- zero as gu,
22311
- fromInput as gv,
22312
- badArgument as gw,
22313
- isSchemaError$1 as gx,
22314
- isNoSuchElementError as gy,
22315
- StackTrace as gz,
22306
+ dialPlan as gn,
22307
+ REMOTE_PROTOCOL_VERSION as go,
22308
+ DIRECT_CHECK_INTERVAL_MS as gp,
22309
+ DIRECT_CHECK_TIMEOUT_MS as gq,
22310
+ LinearIssue as gr,
22311
+ externalSpan as gs,
22312
+ zero as gt,
22313
+ fromInput as gu,
22314
+ badArgument as gv,
22315
+ isSchemaError$1 as gw,
22316
+ isNoSuchElementError as gx,
22317
+ StackTrace as gy,
22318
+ mapEager as gz,
22316
22319
  hasInterruptsOnly as h,
22317
- Uint8ArrayFromBase64 as h$,
22318
- fromReadable as h0,
22319
- toArrayBuffer as h1,
22320
- layer$7 as h2,
22321
- pipeThroughDuplex as h3,
22322
- toUint8Array as h4,
22323
- WebSocketServer as h5,
22324
- orDie as h6,
22325
- runForEachArray as h7,
22326
- interruptible as h8,
22327
- die$4 as h9,
22328
- failCause$2 as hA,
22329
- forkChild as hB,
22330
- catch_ as hC,
22331
- isSchemaError as hD,
22332
- failCause as hE,
22333
- mapEffect as hF,
22334
- onEnd as hG,
22335
- isSchema as hH,
22336
- annotate$1 as hI,
22337
- fail$4 as hJ,
22338
- make$2 as hK,
22339
- declare as hL,
22340
- isStream as hM,
22341
- Class3 as hN,
22342
- Exit as hO,
22343
- provideContext as hP,
22344
- StructWithRest as hQ,
22345
- JsonObject as hR,
22346
- Opaque as hS,
22347
- decodeTo as hT,
22348
- transformOptional as hU,
22349
- flatMap$7 as hV,
22350
- toType as hW,
22351
- Any2 as hX,
22352
- UndefinedOr as hY,
22353
- Finite as hZ,
22354
- passthrough$1 as h_,
22355
- merge$2 as ha,
22356
- succeedContext as hb,
22357
- unwrap$3 as hc,
22358
- withFiberSucceed as hd,
22359
- reverse as he,
22360
- getOrUndefinedUnsafe as hf,
22361
- CurrentMemoMap as hg,
22362
- fiberEnterInterruptibleUnsafe as hh,
22363
- compose as hi,
22364
- Timestamp as hj,
22365
- AutomationTrigger as hk,
22366
- AutomationRun as hl,
22367
- isPolledTrigger as hm,
22368
- launch as hn,
22369
- Duration as ho,
22370
- DateTimeUtc as hp,
22371
- withConstructorDefault as hq,
22372
- withDecodingDefault as hr,
22373
- Redacted as hs,
22374
- Tuple as ht,
22375
- isRedacted as hu,
22376
- MutableJson as hv,
22377
- Never2 as hw,
22378
- toJsonSchemaDocument as hx,
22379
- annotateCurrentSpan as hy,
22380
- isUndefined as hz,
22320
+ Json as h$,
22321
+ toArrayBuffer as h0,
22322
+ layer$7 as h1,
22323
+ pipeThroughDuplex as h2,
22324
+ toUint8Array as h3,
22325
+ WebSocketServer as h4,
22326
+ orDie as h5,
22327
+ runForEachArray as h6,
22328
+ interruptible as h7,
22329
+ die$4 as h8,
22330
+ merge$2 as h9,
22331
+ forkChild as hA,
22332
+ catch_ as hB,
22333
+ isSchemaError as hC,
22334
+ failCause as hD,
22335
+ mapEffect as hE,
22336
+ onEnd as hF,
22337
+ isSchema as hG,
22338
+ annotate$1 as hH,
22339
+ fail$4 as hI,
22340
+ make$2 as hJ,
22341
+ declare as hK,
22342
+ isStream as hL,
22343
+ Class3 as hM,
22344
+ Exit as hN,
22345
+ provideContext as hO,
22346
+ StructWithRest as hP,
22347
+ JsonObject as hQ,
22348
+ Opaque as hR,
22349
+ decodeTo as hS,
22350
+ transformOptional as hT,
22351
+ flatMap$7 as hU,
22352
+ toType as hV,
22353
+ Any2 as hW,
22354
+ UndefinedOr as hX,
22355
+ Finite as hY,
22356
+ passthrough$1 as hZ,
22357
+ Uint8ArrayFromBase64 as h_,
22358
+ succeedContext as ha,
22359
+ unwrap$3 as hb,
22360
+ withFiberSucceed as hc,
22361
+ reverse as hd,
22362
+ getOrUndefinedUnsafe as he,
22363
+ CurrentMemoMap as hf,
22364
+ fiberEnterInterruptibleUnsafe as hg,
22365
+ compose as hh,
22366
+ Timestamp as hi,
22367
+ AutomationTrigger as hj,
22368
+ AutomationRun as hk,
22369
+ isPolledTrigger as hl,
22370
+ launch as hm,
22371
+ Duration as hn,
22372
+ DateTimeUtc as ho,
22373
+ withConstructorDefault as hp,
22374
+ withDecodingDefault as hq,
22375
+ Redacted as hr,
22376
+ Tuple as hs,
22377
+ isRedacted as ht,
22378
+ MutableJson as hu,
22379
+ Never2 as hv,
22380
+ toJsonSchemaDocument as hw,
22381
+ annotateCurrentSpan as hx,
22382
+ isUndefined as hy,
22383
+ failCause$2 as hz,
22381
22384
  isEffect as i,
22382
- uninterruptible as i$,
22383
- Json as i0,
22384
- TemplateLiteral2 as i1,
22385
- decode as i2,
22386
- withDefault$1 as i3,
22387
- isBetween as i4,
22388
- take$4 as i5,
22389
- toCodecJson as i6,
22390
- isNullish as i7,
22391
- isString as i8,
22392
- bounded as i9,
22393
- isDeferred as iA,
22394
- hasDies as iB,
22395
- shutdown as iC,
22396
- Scheduler as iD,
22397
- CurrentLogLevel as iE,
22398
- decodeEffect as iF,
22399
- UnknownFromJsonString as iG,
22400
- ignoreCause as iH,
22401
- Class$2 as iI,
22402
- TaggedStruct as iJ,
22403
- toEncoded as iK,
22404
- when as iL,
22405
- threadDeviceId as iM,
22406
- devicePlatformOf as iN,
22407
- runLast as iO,
22408
- fromOption as iP,
22409
- RUN_AGENT_TOOL as iQ,
22410
- ARTIFACT_THEME_GUIDE as iR,
22411
- DeviceUrl as iS,
22412
- DeviceApp as iT,
22413
- DeviceButton as iU,
22414
- WatchEventKind as iV,
22415
- isPattern as iW,
22416
- RelayHostList as iX,
22417
- RelayMachineList as iY,
22418
- GuideGroup as iZ,
22419
- PullRequestGuide as i_,
22420
- withParentSpan as ia,
22421
- die$3 as ib,
22422
- offerAll as ic,
22423
- interrupt$2 as id,
22424
- interruptors as ie,
22425
- decodeSync as ig,
22426
- catchCauseIf as ih,
22427
- NonEmptyArray as ii,
22428
- decode$1 as ij,
22429
- decodeUnknownResult as ik,
22430
- fn as il,
22431
- isTagged as im,
22432
- isReadonlyObject as io,
22433
- IllegalArgumentError2 as ip,
22434
- encode as iq,
22435
- collect as ir,
22436
- catchDone as is,
22437
- takeAll as it,
22438
- fromArray as iu,
22439
- whileLoop as iv,
22440
- isExit as iw,
22441
- matchEffect as ix,
22442
- defaultFormatter as iy,
22443
- logFatal as iz,
22385
+ flatten$4 as i$,
22386
+ TemplateLiteral2 as i0,
22387
+ decode as i1,
22388
+ withDefault$1 as i2,
22389
+ isBetween as i3,
22390
+ take$4 as i4,
22391
+ toCodecJson as i5,
22392
+ isNullish as i6,
22393
+ isString as i7,
22394
+ bounded as i8,
22395
+ withParentSpan as i9,
22396
+ hasDies as iA,
22397
+ shutdown as iB,
22398
+ Scheduler as iC,
22399
+ CurrentLogLevel as iD,
22400
+ decodeEffect as iE,
22401
+ UnknownFromJsonString as iF,
22402
+ ignoreCause as iG,
22403
+ Class$2 as iH,
22404
+ TaggedStruct as iI,
22405
+ toEncoded as iJ,
22406
+ when as iK,
22407
+ threadDeviceId as iL,
22408
+ devicePlatformOf as iM,
22409
+ runLast as iN,
22410
+ fromOption as iO,
22411
+ RUN_AGENT_TOOL as iP,
22412
+ ARTIFACT_THEME_GUIDE as iQ,
22413
+ DeviceUrl as iR,
22414
+ DeviceApp as iS,
22415
+ DeviceButton as iT,
22416
+ WatchEventKind as iU,
22417
+ isPattern as iV,
22418
+ RelayHostList as iW,
22419
+ RelayMachineList as iX,
22420
+ GuideGroup as iY,
22421
+ PullRequestGuide as iZ,
22422
+ uninterruptible as i_,
22423
+ die$3 as ia,
22424
+ offerAll as ib,
22425
+ interrupt$2 as ic,
22426
+ interruptors as id,
22427
+ decodeSync as ie,
22428
+ catchCauseIf as ig,
22429
+ NonEmptyArray as ih,
22430
+ decode$1 as ii,
22431
+ decodeUnknownResult as ij,
22432
+ fn as ik,
22433
+ isTagged as il,
22434
+ isReadonlyObject as im,
22435
+ IllegalArgumentError2 as io,
22436
+ encode as ip,
22437
+ collect as iq,
22438
+ catchDone as ir,
22439
+ takeAll as is,
22440
+ fromArray as it,
22441
+ whileLoop as iu,
22442
+ isExit as iv,
22443
+ matchEffect as iw,
22444
+ defaultFormatter as ix,
22445
+ logFatal as iy,
22446
+ isDeferred as iz,
22444
22447
  toCodecStringTree as j,
22445
- flatten$4 as j0,
22446
- diskFullness as j1,
22448
+ diskFullness as j0,
22449
+ pretty as j1,
22447
22450
  startingProvider as j2,
22448
22451
  min as j3,
22449
22452
  exponential as j4,