import { describe, it, expect } from 'vitest'
// Cross-package resolution smoke test: prove the harness can bare-import the REAL exports of
// every relay package (each resolves via its own node_modules/relay-contracts symlink transitively).
import { issueCapabilityToken, onUpgrade, needsStepUp } from 'relay-auth'
import { createClientHandshake, createHostHandshake, createE2ESession, deriveContentKey } from 'relay-e2e'
import { createReplaySealer } from 'agent'
import { CapabilityTokenSchema } from 'relay-contracts'

describe('cross-package import smoke', () => {
  it('resolves the real exports of relay-auth / relay-e2e / agent / relay-contracts', () => {
    expect(typeof issueCapabilityToken).toBe('function')
    expect(typeof onUpgrade).toBe('function')
    expect(typeof needsStepUp).toBe('function')
    expect(typeof createClientHandshake).toBe('function')
    expect(typeof createHostHandshake).toBe('function')
    expect(typeof createE2ESession).toBe('function')
    expect(typeof deriveContentKey).toBe('function')
    expect(typeof createReplaySealer).toBe('function')
    expect(CapabilityTokenSchema).toBeDefined()
  })
})
