@xmoxmo/bncr 0.0.7 → 0.0.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.
@@ -1,6 +1,6 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
- import type { BncrDiagnosticsSummary, PendingAdmission } from './types.js';
3
+ import type { BncrDiagnosticsSummary, PendingAdmission } from './types.ts';
4
4
 
5
5
  type RuntimeStatusInput = {
6
6
  accountId: string;
@@ -1,4 +1,4 @@
1
- import type { BncrRoute } from './types.js';
1
+ import type { BncrRoute } from './types.ts';
2
2
 
3
3
  const BNCR_SESSION_KEY_PREFIX = 'agent:main:bncr:direct:';
4
4
 
@@ -1,6 +1,6 @@
1
- import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.js';
1
+ import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.ts';
2
2
 
3
- type ParsedInbound = ReturnType<typeof import('./parse.js')['parseBncrInboundParams']>;
3
+ type ParsedInbound = ReturnType<typeof import('./parse.ts')['parseBncrInboundParams']>;
4
4
 
5
5
  type NativeCommand = {
6
6
  command: string;
@@ -1,8 +1,8 @@
1
1
  import fs from 'node:fs';
2
- import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.js';
3
- import { handleBncrNativeCommand } from './commands.js';
2
+ import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.ts';
3
+ import { handleBncrNativeCommand } from './commands.ts';
4
4
 
5
- type ParsedInbound = ReturnType<typeof import('./parse.js')['parseBncrInboundParams']>;
5
+ type ParsedInbound = ReturnType<typeof import('./parse.ts')['parseBncrInboundParams']>;
6
6
 
7
7
  export async function dispatchBncrInbound(params: {
8
8
  api: any;
@@ -1,6 +1,6 @@
1
- import { normalizeAccountId } from '../../core/accounts.js';
2
- import { resolveBncrChannelPolicy } from '../../core/policy.js';
3
- import { buildDisplayScopeCandidates } from '../../core/targets.js';
1
+ import { normalizeAccountId } from '../../core/accounts.ts';
2
+ import { resolveBncrChannelPolicy } from '../../core/policy.ts';
3
+ import { buildDisplayScopeCandidates } from '../../core/targets.ts';
4
4
 
5
5
  export type BncrGateResult =
6
6
  | { allowed: true }
@@ -1,7 +1,7 @@
1
1
  import { createHash } from 'node:crypto';
2
- import { normalizeAccountId } from '../../core/accounts.js';
3
- import type { BncrRoute } from '../../core/types.js';
4
- import { extractInlineTaskKey } from '../../core/targets.js';
2
+ import { normalizeAccountId } from '../../core/accounts.ts';
3
+ import type { BncrRoute } from '../../core/types.ts';
4
+ import { extractInlineTaskKey } from '../../core/targets.ts';
5
5
 
6
6
  function asString(v: unknown, fallback = ''): string {
7
7
  if (typeof v === 'string') return v;