# Lab L10 verification output
# Date: 2026-11-26T12:56:04Z  Host: macOS 27.2.1 arm64  uv 0.10.2  node(PATH) v22.14.0
# Command: ./run.sh verify
# package-lock.json sha256: 6ae98e706aa77a3f05b0e1376148ced5697041f32c0d156c654a3d74a48bfed5
# Exit code: 0

== tsc --noEmit
  type-check OK
Lab L10 verification
  node v22.14.0 | @modelcontextprotocol/server 2.4.0 | @modelcontextprotocol/client 2.4.0 | transport stdio

[1] Modern client over stdio (versionNegotiation mode 'auto')
  negotiated protocol version: 2026-07-28
  PASS  negotiated protocol 2026-07-28
  server: demo-notes-ts 1.0.0

[2] Listing
[notes-server-ts] starting on stdio
  tools: ["add_note","get_note"]
  PASS  tools/list returns add_note and get_note
  add_note outputSchema properties: ["body","id","tags","title"]
  PASS  add_note declares an outputSchema
  PASS  resources/list returns notes://index
  PASS  prompts/list returns summarize_notes

[3] Tool calls
[notes-server-ts] added N-003
  add_note -> isError=false structured={"id":"N-003","title":"Demo: lab note","body":"Synthetic.","tags":["lab"]}
  PASS  add_note returns structuredContent matching the schema
  PASS  get_note N-003 succeeds
  get_note malformed -> isError=true: "Invalid note id \"../etc/passwd\": expected the format N-001."
  PASS  malformed id returns isError
  get_note unknown -> isError=true: "No note with id N-999."
  PASS  unknown id returns isError
  add_note empty title -> isError=true: "Input validation error: Invalid arguments for tool add_note: title: Too small: e"
  PASS  schema violation (empty title) returns isError

[4] Resource and prompt
  notes://index -> [{"id":"N-001","title":"Demo: buy cables"},{"id":"N-002","title":"Demo: weekly review"},{"id":"N-003","title":"Demo: lab note"}]
  PASS  resource lists the 3 notes
  PASS  prompt renders with the topic argument

[5] Legacy client over stdio (versionNegotiation mode 'legacy', initialize handshake)
[notes-server-ts] starting on stdio
  negotiated protocol version: 2025-11-25
  PASS  legacy handshake negotiates 2025-11-25
  PASS  legacy client can call get_note

ALL CHECKS PASSED (14)
