AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсОбучениеПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

v.lomtev@airassvet.ru

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Tigris Object Operations — Скилл для ИИ-агентов | AI Рассвет

    Tigris Object Operations

    Use when working with objects in Tigris Storage uploading, downloading, deleting, listing, getting metadata, or generating presigned URLs

    Скиллы для операций#GitHub#tigrisdata/skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    4

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add tigrisdata/skills --skill tigris-object-operations
    Скачать ZIP
    Версия
    1.0.0+668ea424758e
    Автор
    Владимир Ломтев
    Репозиторий
    tigrisdata/skills
    GitHub: tigrisdata/skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Tigris Object Operations

    Prerequisites

    Before doing anything else, install the Tigris CLI if it's not already available:

    tigris help || npm install -g @tigrisdata/cli
    

    If you need to install it, tell the user: "I'm installing the Tigris CLI (@tigrisdata/cli) so we can work with Tigris object storage."

    Overview

    Tigris Storage provides object operations: upload (put), download (get), delete (remove), list, metadata (head), and presigned URLs.

    All methods return TigrisStorageResponse<T, E> - check error property first.

    Quick Reference

    Operation Function Key Parameters
    Upload put(path, body, options) path, body, access, contentType
    Download get(path, format, options) path, format (string/file/stream)
    Delete remove(path, options) path
    List list(options) prefix, limit, paginationToken
    Metadata head(path, options) path
    Presigned URL getPresignedUrl(path, options) path, operation (get/put)

    Upload (put)

    import { put } from "@tigrisdata/storage";
    
    // Simple upload
    const result = await put("simple.txt", "Hello, World!");
    if (result.error) {
      console.error("Error:", result.error);
    } else {
      console.log("Uploaded:", result.data?.url);
    }
    
    // Large file with progress
    const result = await put("large.mp4", fileStream, {
      multipart: true,
      onUploadProgress: ({ loaded, total, percentage }) => {
        console.log(`${loaded}/${total} bytes (${percentage}%)`);
      },
    });
    
    // Prevent overwrite
    const result = await put("config.json", config, {
      allowOverwrite: false,
    });
    

    Put Options

    Option Values Default Purpose
    access public/private - Object visibility
    addRandomSuffix boolean false Avoid naming collisions
    allowOverwrite boolean true Allow replacing existing
    contentType string inferred MIME type
    contentDisposition inline/attachment inline Download behavior
    multipart boolean false Enable for large files
    onUploadProgress callback - Track upload progress

    Download (get)

    import { get } from "@tigrisdata/storage";
    
    // Get as string
    const result = await get("object.txt", "string");
    if (result.error) {
      console.error("Error:", result.error);
    } else {
      console.log("Content:", result.data);
    }
    
    // Get as file (triggers download in browser)
    const result = await get("object.pdf", "file", {
      contentDisposition: "attachment",
    });
    
    // Get as stream
    const result = await get("video.mp4", "stream");
    const reader = result.data?.getReader();
    // Process stream...
    

    Get Options

    Option Values Default Purpose
    contentDisposition inline/attachment inline Download behavior
    contentType string from upload MIME type
    encoding string utf-8 Text encoding
    snapshotVersion string - Read from snapshot

    Delete (remove)

    import { remove } from "@tigrisdata/storage";
    
    const result = await remove("object.txt");
    if (result.error) {
      console.error("Error:", result.error);
    } else {
      console.log("Deleted successfully");
    }
    

    List Objects

    import { list } from "@tigrisdata/storage";
    
    // List all objects
    const result = await list();
    console.log("Objects:", result.data?.items);
    
    // List with prefix (folders)
    const result = await list({ prefix: "images/" });
    
    // List with pagination
    const allFiles = [];
    let currentPage = await list({ limit: 10 });
    allFiles.push(...currentPage.data?.items);
    
    while (currentPage.data?.hasMore) {
      currentPage = await list({
        limit: 10,
        paginationToken: currentPage.data?.paginationToken,
      });
      allFiles.push(...currentPage.data?.items);
    }
    

    List Options

    Option Purpose
    prefix Filter keys starting with prefix
    delimiter Group keys (e.g., '/' for folders)
    limit Max objects to return (default: 100)
    paginationToken Continue from previous list
    snapshotVersion List from snapshot

    Object Metadata (head)

    import { head } from "@tigrisdata/storage";
    
    const result = await head("object.txt");
    if (result.error) {
      console.error("Error:", result.error);
    } else {
      console.log("Metadata:", result.data);
      // { path, size, contentType, modified, url, contentDisposition }
    }
    

    Presigned URLs

    import { getPresignedUrl } from "@tigrisdata/storage";
    
    // Presigned URL for GET (temporary access)
    const result = await getPresignedUrl("object.txt", {
      operation: "get",
      expiresIn: 3600, // 1 hour
    });
    console.log("URL:", result.data?.url);
    
    // Presigned URL for PUT (allow client upload)
    const result = await getPresignedUrl("upload.txt", {
      operation: "put",
      expiresIn: 600, // 10 minutes
    });
    

    Presigned URL Options

    Option Values Default Purpose
    operation get/put - URL purpose
    expiresIn seconds 3600 URL expiration
    contentType string - Require for PUT

    Common Mistakes

    Mistake Fix
    Not checking error first Always check if (result.error) before result.data
    Wrong format in get() Use 'string', 'file', or 'stream'
    Forgetting multipart: true Enable for files >100MB
    Ignoring pagination Use hasMore and paginationToken

    Client-Side Uploads

    For browser uploads, use the client package to upload directly to Tigris:

    import { upload } from "@tigrisdata/storage/client";
    
    const result = await upload(file.name, file, {
      url: "/api/upload", // Your backend endpoint
      onUploadProgress: ({ percentage }) => {
        console.log(`${percentage}%`);
      },
    });
    

    For initial setup, see file-storage.

    Требования и возможности

    Источник пакета
    https://github.com/tigrisdata/skills/tree/668ea424758e52ba0da604b8d250f8d4543caa17/skills/tigris-object-operations

    Файлы версии

    ПутьРазмерSHA256
    README.md1953b3e7056f0e8e7f5e...
    SKILL.md7086d95651ba71e79bd7...
    metadata.json9015d20af6c46591d41...

    Частые вопросы

    Как установить Tigris Object Operations?
    Используйте команду npx skills add tigrisdata/skills --skill tigris-object-operations или скачайте ZIP-архив.
    Можно ли скачать Tigris Object Operations бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    Ozon Seller и Performance APIСправочник Ozon Seller API и Performance API с локальными OpenAPI-спецификациями.Grill MeA relentless interview to sharpen a plan or design.Git CommitExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add tigrisdata/skills --skill tigris-object-operations
    Скачать ZIP
    Версия
    1.0.0+668ea424758e
    Автор
    Владимир Ломтев
    Репозиторий
    tigrisdata/skills
    GitHub: tigrisdata/skills
    Llm WikiThe foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources → wiki → schema). Also use when discussing knowledge management strategy, wiki structure decisions, or how to organize distilled knowledge. This is the "theory" skill — other skills handle specific operations (ingesting, querying, linting).