İçeriğe geç
safran

Aramak için yazın. Enter ilk sonucu açar.

    Şirket araçları

    İki araç profilden yanıt verir: get_company_profile, bir ajanın diğer araçları doğru kullanması için gereken her şeyi döndürür; who_owns ise bir deponun ya da bir iş takip sistemi projesinin hangi ekibe ait olduğunu söyler. İkisi de bir iş takip sistemini ya da wiki'yi çağırmaz.

    get_company_profile

    Her oturumun başlangıç noktasıdır. Sunucunun talimatları ajana onu diğer bütün araçlardan önce, bir kez çağırmasını ve süzgeç değerlerini (groups, projects, tracker, depo adları) uydurmak yerine onun yanıtından almasını söyler. Ağ çağrısı yapmaz: profili okur ve yerel kod indeksine durumunu sorar.

    Girdi

    Araç girdi almaz: girdi şeması boş bir nesnedir ve verilen her parametre reddedilir.

    Çıktı

    AlanTürİçerik
    companydizgiProfildeki company.
    languagesnesnetickets ve code: insanların kayıtları yazdığı dil ve tanımlayıcıların dili. Beceriler tickets dilinde yanıt verir.
    trackersdiziHer iş takip sistemi için bir girdi: id, type, projects (bildirilen proje anahtarları) ve capabilities (bu sistemin kayıt döndürmek dışında neler yapabildiği: comments, attachments, links, history, search, native-query değerlerinden herhangi biri).
    doc_sourcesdiziHer doküman kaynağının id ve type değeri. fetch_linked_doc yalnızca bunlardan birinin tanıdığı sayfaları getirir.
    repo_groupsnesneGrup adı → depo adları. groups süzgeçlerinde kullanılacak değerler.
    teamsdiziname, projects, repos ve profilde tanımlıysa confidence (low, medium, high). low, eşlemenin keşif tarafından tahmin edildiği anlamına gelir.
    glossarydiziterm (kayıtlarda kullanılan sözcük), code (kodda kullanılan sözcükler) ve isteğe bağlı bir note.
    conventionsdiziProfilde yazılı teamüller, dizgiler halinde.
    indexnesneembedder, repos, chunks, oldest_indexed_at (hiçbir şey indekslenmemişse yoktur) ve error (aşağıya bakın).

    Örnek

    {}

    Metin content:

    Company: acme
    Languages: tickets are written in "tr", code in "en"
    
    Trackers (1):
    - jira (jira): projects PAY, MOB, WEB; can do: comments, attachments, links, history, search, native-query
    
    Doc sources (1): wiki (confluence)
    
    Repo groups (3):
    - backend: payments-api, ledger
    - mobile: acme-ios, acme-android
    - frontend: web-app, admin-panel
    
    Teams (3):
    - Payments: projects PAY · repos payments-api, ledger
    - Mobile: projects MOB · repos acme-ios, acme-android · LOW CONFIDENCE (guessed by discovery; confirm with the user)
    - Web: projects WEB · repos web-app, admin-panel
    
    Glossary (2) — ticket word → words used in code:
    - Sepet → basket, cart
    - İade → refund, chargeback
    
    Conventions (2):
    - Branch names follow feature/<TICKET-KEY>-short-description.
    - Sub-task titles are written in English.
    
    Code index: 3 repos, 13 chunks, embedder ollama:bge-m3, oldest repo indexed 2026-11-20 06:00Z (3 days ago)

    Bu sonuçta hiçbir şey sarmalanmamıştır: profildeki metni işletmeci yazmıştır ve ona güvenilir. structuredContent:

    {
      "company": "acme",
      "languages": {"tickets": "tr", "code": "en"},
      "trackers": [
        {
          "id": "jira",
          "type": "jira",
          "projects": ["PAY", "MOB", "WEB"],
          "capabilities": ["comments", "attachments", "links", "history", "search", "native-query"]
        }
      ],
      "doc_sources": [{"id": "wiki", "type": "confluence"}],
      "repo_groups": {
        "backend": ["payments-api", "ledger"],
        "mobile": ["acme-ios", "acme-android"],
        "frontend": ["web-app", "admin-panel"]
      },
      "teams": [
        {"name": "Payments", "projects": ["PAY"], "repos": ["payments-api", "ledger"]},
        {
          "name": "Mobile",
          "projects": ["MOB"],
          "repos": ["acme-ios", "acme-android"],
          "confidence": "low"
        },
        {"name": "Web", "projects": ["WEB"], "repos": ["web-app", "admin-panel"]}
      ],
      "glossary": [
        {"term": "Sepet", "code": ["basket", "cart"]},
        {"term": "İade", "code": ["refund", "chargeback"]}
      ],
      "conventions": [
        "Branch names follow feature/<TICKET-KEY>-short-description.",
        "Sub-task titles are written in English."
      ],
      "index": {
        "embedder": "ollama:bge-m3",
        "repos": 3,
        "chunks": 13,
        "oldest_indexed_at": "2026-11-20T06:00:00.000Z"
      }
    }

    İndeks okunamadığında

    Profil indeks olmadan da işe yarar (yalnızca kayıtların kullanıldığı bir kurulum, henüz çalışmayan bir gömme modeli); bu yüzden hata veren bir indeks bu aracı başarısız kılmaz. O durumda index.error nedeni tek satırda tutar, repos ve chunks 0 olur ve profilin geri kalanı her zamanki gibi döner:

    …
    
    Code index: NOT AVAILABLE — The code index is locked by another Safran process → You cannot fix this from here. Tell the user, who runs the Safran server: Wait for the other command (a running `safran sync`, for example) to finish, then try again.
    {
      …
      "index": {
        "embedder": "ollama:bge-m3",
        "repos": 0,
        "chunks": 0,
        "error": "The code index is locked by another Safran process → You cannot fix this from here. Tell the user, who runs the Safran server: Wait for the other command (a running `safran sync`, for example) to finish, then try again."
      }
    }

    Okunabilen ama boş olan bir indeks aynı son satırda farklı biçimde bildirilir: satır — EMPTY: code tools return nothing until the user runs `safran sync`; ask them to ile biter.

    Sınırlar

    Metin gösterimi 24.000 karakterde (profileChars) kesilir; işaret, sığmayan kısımlar için group ile list_repos aracını ve who_owns aracını gösterir. structuredContent kesilmez.

    who_owns

    Bir deponun ya da bir iş takip sistemi projesinin sahibi olan ekipler. Bir ajan, profildeki ekip listesi konuyu bağlamadığında bir değişikliğin ya da kaydın hangi ekibe ait olduğunu söylemek için onu kullanır; ekip listesinin tamamı için doğru araç get_company_profile aracıdır.

    Girdi

    ParametreTürZorunluNotlar
    repodizgiikisinden birilist_repos sonucunda göründüğü haliyle deponun kısa adı, örneğin payments-api. 1-200 karakter.
    projectdizgiikisinden biriİş takip sistemi proje anahtarı; kayıt anahtarının sayıdan önceki kısmı, örneğin PAY. 1-100 karakter.

    repo ve project parametrelerinden tam olarak biri verilmelidir.

    Çıktı

    AlanTürİçerik
    teamsdiziSahip ekipler; her biri name, projects, repos ve isteğe bağlı confidence ile. Sahip bilinmiyorsa boştur.
    basisdizgiprofile: profilde bildirilmiş. history: birleştirilmiş pull request'lerden çıkarsanmış (yalnızca depolar için). none: bilinmiyor.

    Örnek

    {"repo": "payments-api"}
    Owner of repo payments-api (declared in the company profile):
    - Payments: projects PAY · repos payments-api, ledger
    {
      "teams": [{"name": "Payments", "projects": ["PAY"], "repos": ["payments-api", "ledger"]}],
      "basis": "profile"
    }

    Düşük güvenli bir eşleme metinde işaretlenir; böylece ajan üzerine bir şey kurmadan önce kullanıcıyla doğrular:

    {"project": "MOB"}
    Owner of project MOB (declared in the company profile):
    - Mobile: projects MOB · repos acme-ios, acme-android · LOW CONFIDENCE (guessed by discovery; confirm with the user)

    basis değeri history olduğunda metin INFERRED from merged pull requests, not declared — present it as a likely owner, not a fact der. Bu çıkarım, safran links refresh komutunun doldurduğu yerel bağlantı deposunu okur; bkz. find_past_work.

    Bilinmemek hata değildir

    Kimsenin sahiplenmediği bir depo ya da proje ile hiç var olmayan bir depo ya da proje aynı yanıtı alır: teams: [] ve basis: none. Metin ajana ikisini nasıl ayırt edeceğini söyler:

    {"repo": "billing-core"}
    No team is known for repo billing-core.
    → Check the name with list_repos. If it is right, the profile declares no owner and merged pull requests point to none: say the owner is unknown.
    {"teams": [], "basis": "none"}

    Hatalar

    İki parametreyi birden vermek ya da hiçbirini vermemek, araç çalışmadan reddedilir:

    Input validation error: Invalid arguments for tool who_owns: Pass exactly one of `repo` or `project`