Skip to content

add Node ID universal decoder for offline Database ID extraction #244

Description

@amondnet

Summary

GitHub Node ID를 로컬에서 디코딩하여 Database ID를 추출하는 기능 구현.
API 호출 없이 오프라인에서도 Node ID ↔ Database ID 변환 가능.

Background

  • Greptile 블로그 참고: https://www.greptile.com/blog/github-ids
  • 현재 id-converter.ts는 REST API를 호출하여 Node ID 조회 (추가 API 호출 필요)
  • Node ID 디코딩으로 API 없이 Database ID 추출 가능

Tasks

  • T001 [P] Create src/lib/node-id-decoder.ts with MessagePack decoder
  • T002 [P] Create test/lib/node-id-decoder.test.ts with unit tests
  • T003 Integrate decoder into src/lib/id-converter.ts (depends on T001)
  • T004 Update test/lib/id-converter.test.ts (depends on T002, T003)
  • T005 Update docs-dev/GITHUB_ID_SYSTEMS.md documentation

Acceptance Criteria

  • New 형식 Node ID (MessagePack+Base64) 디코딩 성공
  • Legacy 형식 Node ID (텍스트 Base64) 디코딩 성공
  • 외부 의존성 없음 (순수 JS 구현)
  • 모든 테스트 통과
  • 기존 함수 하위 호환성 유지

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreCore CLI functionalitytype:featureNew feature or enhancement

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions