minipower-backend-blobstoring-dotnet-filesystem
Đăng ký Jarvis BlobStoring FileSystem — keyed IBlobStoringService FileSystemService với FileSystemOption RootPath. Dùng khi lưu file trên disk local hoặc volume mount.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- minipower-backend-blobstoring-dotnet-filesystem
- description
- Đăng ký Jarvis BlobStoring FileSystem — keyed IBlobStoringService FileSystemService với FileSystemOption RootPath. Dùng khi lưu file trên disk local hoặc volume mount.
- dependencies
- [ "Jarvis.BlobStoring", "Jarvis.BlobStoring.FileSystem" ]
03 SKILL.md 正文
FileSystem provider
Path vật lý: {RootPath}/{SubPath}/{bucket}/{fileName}.
appsettings
{
"FileSystem": {
"RootPath": "/var/app/storage",
"SubPath": "uploads",
"BucketName": "",
"PartitionBy": 0
}
}
Registration
using Jarvis.BlobStoring;
using Jarvis.BlobStoring.FileSystem;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
builder.Services.Configure<FileSystemOption>(builder.Configuration.GetSection("FileSystem"));
builder.Services.AddKeyedSingleton<IBlobStoringService, FileSystemService>("FileSystem");
Inject
public sealed class LocalFileService(
[FromKeyedServices("FileSystem")] IBlobStoringService storage)
{
public Task UploadAsync(string path, byte[] data, CancellationToken ct = default)
=> storage.UploadAsync(bucket: "documents", fileName: path, data);
}
Lưu ý
ViewAsynctrả chuỗi rỗng — không presigned URL; dùng API riêng nếu cần link tải.GetFileNameshiện trả rỗng trên implementation mặc định — liệt kê file cần mở rộng hoặc dùng MinIO.- Đảm bảo process có quyền ghi
RootPath(container: mount volume).
Validate
- Upload + download cùng
bucket+fileName - Path traversal: không cho
fileNamechứa..ở tầng application
04 同仓库更多 Skills
minipower-vcs-gitlab
Tra GitLab (search, issue, pipeline, MR), soạn MR/comment, tạo MR và commit/push sau L2. Dùng khi merge request, GitLab MCP, code_provider gitlab — không scaffold .NET, không force-push.
minipower-toolbox-skill-author
Viết và soát skill lá-rời Minipower (minipower-{module}-{capability}) — chọn module bằng 3 câu hỏi ADR-022, dựng cây SKILL.md/README.md/workflows/providers, đặt description kích hoạt được, cập nhật hub và test canh. Hỏi người xác nhận trước mọi quyết định, không tự chốt. Dùng khi tạo skill mới, thêm provider/pattern/workflow, mở module mới, hoặc soát skill có sẵn lệch chuẩn.
minipower-tasks-lark
Đọc, lọc, tìm, soạn nháp và ghi task Lark (tasklist / task) theo L1–L3. Dùng khi việc trên Lark, sprint, tasklist, "tìm task", "tạo task", tasks_provider lark — không dùng cho tin nhắn nhóm hay wiki.
minipower-support-registry
Rà registry DOC theo project_mode, nhắc owner thiếu ID hoặc chỗ lưu sai. Dùng khi doc-registry, thiếu DOC, rà soát tiêu chuẩn — không tự sửa FR, không init.
minipower-support-publish
暂无简介
minipower-router
Phân loại intent Minipower rồi gợi ý đúng một pack nghề hoặc kênh. Dùng khi làm gì tiếp, chọn skill, dispatcher, không biết mở pack nào — không tự gọi MCP L3, không spawn agent.