start DIN-SDK
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Branch: feat/din-sdk (from develop)
Assignee: @Santiagocetran
Roadmap ref: P4-1.2 (CLI Integration Layer — Shared SDK Extraction) · P3-DOC7 (dind Architecture Document)
Long-running issue (expected to stay open 1–2 months). A detailed task file under
Developer/tasks/will follow — this issue tracks the overall effort, not a weekly task.
Goal
Extract the logic-dependent parts of dincli commands into a shared SDK layer at dincli/sdk/, so the same logic can be driven by both the interactive CLI and the upcoming DIN daemon (dind).
Design
- All logic lives in
dincli/sdk/. CLI command modules become thin wrappers: parse arguments → call SDK function → render output. - SDK functions return structured JSON outputs. This is the contract between the SDK and its two consumers:
- the CLI reads the JSON and renders terminal UI/UX (tables, colors, human-readable messages);
dindreads the same JSON to update its configuration and job queue.
- The CLI is refactored onto the SDK in this same branch — the branch is done when
dinclicommands run through the SDK layer and all existing tests pass. - No circular dependencies: SDK must be importable standalone (IPFS client, contract interfaces, wallet/account helpers, manifest loading — see P4-1.2 in
Developer/ROADMAP.mdfor the candidate module list).
Scope
- Inventory
dinclicommand modules and identify which logic moves todincli/sdk/ - Define the JSON output schema/conventions for SDK functions (status, data, error codes)
- Extract shared modules (IPFS, contracts, wallet/keystore, manifest/config) into the SDK
- Refactor CLI commands to call SDK functions and render their JSON output
- All existing tests pass; add SDK-level tests where extraction changes call paths
- Document the public SDK interface and backward-compatibility guarantees for existing
dinclicommands
References
Developer/ROADMAP.md— P4-1.2, P3-DOC7, and the P4 phase overview ("Daemon and Agentic AI Layer")Developer/issues/containerization.md— worker/container runner must be callable "from both CLI commands and futuredinddaemon jobs"Developer/issues/validator-operations.md— daemon-mode logging/health expectationsDocumentation/— DIN workflow and Model workflow docs for the command surfaces being extracted
Branching note
Kept separate from the DIN daemon work (see the "start DIN daemon" issue) so the CLI-on-SDK refactor can merge into develop without waiting for the daemon. dind builds on top of this SDK's JSON interface.
- 主要言語
- Python
- スター
- 4
- フォーク
- 7
- 平均マージ
- 3日 4時間
- マージ済み PR(30日)
- 34
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InfiniteZeroFoundation/DevNet のほかの issue
-
ROADMAP.md: refresh "What is still open for P3" (several items were fixed in October)対応中かも @umermjd11 が 3 日前に担当しました。 オープンdocumentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
InfiniteZeroFoundation/DevNet#285 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Update the 25 translated organisation READMEs to match the English version対応中かも @mrCabez が今日担当しました。 オープンgood first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
InfiniteZeroFoundation/DevNet#277 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Update the client-service guide to explain training and uploading separately対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
InfiniteZeroFoundation/DevNet#266 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
InfiniteZeroFoundation/DevNet#299 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Long run
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
InfiniteZeroFoundation/DevNet#298 ·
メンテナーはふだん 1 日以内に返信
InfiniteZeroFoundation/DevNet の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
aws-samples/sample-per-model-bedrock#639 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
awslabs/visual-asset-management-system#937 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
project-codeflare/codeflare-sdk#1195 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pandas-dev/pandas-stubs#2051 ·
メンテナーはふだん 1 日以内に返信