@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.
- package/README.md +8 -0
- package/index.ts +6 -6
- package/package.json +4 -1
- package/src/channel.ts +2612 -2593
- package/src/core/status.ts +1 -1
- package/src/core/targets.ts +1 -1
- package/src/messaging/inbound/commands.ts +2 -2
- package/src/messaging/inbound/dispatch.ts +3 -3
- package/src/messaging/inbound/gate.ts +3 -3
- package/src/messaging/inbound/parse.ts +3 -3
package/src/core/status.ts
CHANGED
package/src/core/targets.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.
|
|
1
|
+
import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.ts';
|
|
2
2
|
|
|
3
|
-
type ParsedInbound = ReturnType<typeof import('./parse.
|
|
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.
|
|
3
|
-
import { handleBncrNativeCommand } from './commands.
|
|
2
|
+
import { formatDisplayScope, normalizeInboundSessionKey, withTaskSessionKey } from '../../core/targets.ts';
|
|
3
|
+
import { handleBncrNativeCommand } from './commands.ts';
|
|
4
4
|
|
|
5
|
-
type ParsedInbound = ReturnType<typeof import('./parse.
|
|
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.
|
|
2
|
-
import { resolveBncrChannelPolicy } from '../../core/policy.
|
|
3
|
-
import { buildDisplayScopeCandidates } from '../../core/targets.
|
|
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.
|
|
3
|
-
import type { BncrRoute } from '../../core/types.
|
|
4
|
-
import { extractInlineTaskKey } from '../../core/targets.
|
|
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;
|