plugin.json
- name
- code
- version
- 0.1.10
- extensions
- dev.sailry.platform
plugin.json
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "code",
"version": "0.1.10",
"extensions": {
"dev.sailry.platform": {
"api_version": "v1",
"actions": [
"code.index.read",
"files.read"
],
"display": {
"label": "Code index",
"locales": {
"zh-CN": "代码索引",
"zh-TW": "程式碼索引",
"ja": "コード索引",
"ko": "코드 인덱스",
"de": "Codeindex",
"es": "Índice de código",
"fr": "Index du code",
"pt-BR": "Índice de código",
"ru": "Индекс кода"
},
"icon": "reicon:it/code"
},
"description": {
"label": "Find code symbols and source context",
"locales": {
"zh-CN": "检索代码符号与源码上下文"
}
},
"instructions": "Use code_search to find symbols, code_outline for one file's structure, and code_context for bounded symbol and source context. These tools parse saved source, not types or runtime behavior; compilation and tests remain necessary for diagnostics and verification. Use existing text search, file reads, commands, builds and tests when they better match the task or structure extraction is unavailable. First outline parses only its requested file; repository search and context reconcile the current worktree index lazily. Grammar availability does not guarantee every structural capability. Report unsupported, partial and truncated results accurately. Paths are relative to the current worktree. Symbol positions use zero-based lines and UTF-8 byte columns with exclusive byte ends; snippet line numbers are one-based. Use returned file revisions when expanding source. A revision conflict requires a fresh search or outline; never reuse stale ranges against new content. Code context returns at most 20 symbols, 5 merged source snippets and 16 KiB of UTF-8 JSON. Respect the Node code-index enable setting; these tools do not install or start language servers.",
"tools": [
{
"name": "code_search",
"operation": "code.search",
"contexts": [
"plugin",
"workspace"
],
"presentation": "summary",
"description": "Search indexed symbols by literal query terms, optional name substring, worktree-relative path prefix and language. Default 20 results, maximum 100. Returns source ranges, full-content file revisions, index revision and partial/truncated status; first repository search lazily reconciles the worktree. This is source structure, not type analysis.",
"display": {
"label": "Search code",
"locales": {
"en": "Search code",
"zh-CN": "检索代码",
"zh-TW": "搜尋程式碼",
"ja": "コードを検索",
"ko": "코드 검색",
"de": "Code suchen",
"es": "Buscar código",
"fr": "Rechercher du code",
"pt-BR": "Pesquisar código",
"ru": "Поиск кода"
},
"icon": "reicon:ui/magnifier",
"input": {
"summary": {
"path": "/query"
}
}
}
},
{
"name": "code_outline",
"operation": "code.outline",
"contexts": [
"plugin",
"workspace"
],
"presentation": "summary",
"description": "Return the requested saved file's source-ordered declarations, nesting depth and limited signatures. Parses only this file when needed; complete input is limited to 1 MiB. Returns actual extraction capabilities, file/index revisions, UTF-8 source ranges and partial/truncated status. Unsupported structure is explicit.",
"display": {
"label": "File structure",
"locales": {
"en": "File structure",
"zh-CN": "文件结构",
"zh-TW": "檔案結構",
"ja": "ファイル構造",
"ko": "파일 구조",
"de": "Dateistruktur",
"es": "Estructura del archivo",
"fr": "Structure du fichier",
"pt-BR": "Estrutura do arquivo",
"ru": "Структура файла"
},
"icon": "reicon:it/code",
"input": {
"summary": {
"path": "/path"
}
}
}
},
{
"name": "code_context",
"contexts": [
"plugin",
"workspace"
],
"presentation": "summary",
"description": "Combine symbol search and revision-checked source expansion for the current worktree. Returns at most 20 symbols, 5 merged source snippets and 16 KiB of UTF-8 JSON, with file/index revisions and honest partial/truncated status. Symbol lines are zero-based; snippet lines are one-based. A changed source revision fails instead of reading a stale range.",
"handler": {
"name": "context",
"read_only": true,
"flow": {
"operations": [
"code.search",
"files.read_lines"
]
},
"parameters": {
"type": "object",
"additionalProperties": false,
"properties": {
"query": {
"type": "string",
"description": "Literal search terms for names, paths and short signatures."
},
"name": {
"type": "string",
"description": "Literal symbol-name substring."
},
"path": {
"type": "string",
"description": "Worktree-relative path prefix."
},
"language": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 20
},
"max_snippets": {
"type": "integer",
"minimum": 1,
"maximum": 5,
"default": 5
},
"max_bytes": {
"type": "integer",
"minimum": 512,
"maximum": 16384,
"default": 16384
}
}
}
},
"display": {
"label": "Code context",
"locales": {
"en": "Code context",
"zh-CN": "代码上下文",
"zh-TW": "程式碼上下文",
"ja": "コードのコンテキスト",
"ko": "코드 컨텍스트",
"de": "Codekontext",
"es": "Contexto del código",
"fr": "Contexte du code",
"pt-BR": "Contexto do código",
"ru": "Контекст кода"
},
"icon": "reicon:it/code",
"input": {
"summary": {
"path": "/query"
}
}
}
}
],
"enabled_service": "code_index",
"category": "development",
"tint": "gray",
"scope": "host",
"host": {
"entry": "dev.sailry.platform/host/main.js",
"resources": [
"dev.sailry.platform/host/main.js",
"dev.sailry.platform/host/context.js"
],
"handlers": [
"context"
],
"read_only": [
"context"
]
}
}
}
}
What else this package ships
These files come with the package and this site does not publish them. They are listed so you know what is there before you install it.
- 2JavaScript files
Client extensions
Data this package carries for particular clients. The directory lists the clients named and never reads what is addressed to them.
- dev.sailry.platformships a directory of files