@kosuke-ai/cli 1.0.1-next.5 → 1.0.1-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist/commands/mcp.js +85 -0
- package/dist/generated/tools/deploy/cancel.js +20 -0
- package/dist/generated/tools/deploy/messages.js +20 -0
- package/dist/generated/tools/deploy/run.js +52 -0
- package/dist/generated/tools/index.js +138 -0
- package/dist/generated/tools/preview/get.js +24 -0
- package/dist/generated/tools/preview/health.js +24 -0
- package/dist/generated/tools/preview/reset.js +23 -0
- package/dist/generated/tools/preview/share-create.js +24 -0
- package/dist/generated/tools/preview/share-delete.js +24 -0
- package/dist/generated/tools/preview/share-get.js +24 -0
- package/dist/generated/tools/preview/shared-artifact.js +25 -0
- package/dist/generated/tools/preview/shared.js +20 -0
- package/dist/generated/tools/projects/create.js +26 -0
- package/dist/generated/tools/projects/delete.js +20 -0
- package/dist/generated/tools/projects/env-vars-add.js +50 -0
- package/dist/generated/tools/projects/env-vars-remove.js +31 -0
- package/dist/generated/tools/projects/get.js +20 -0
- package/dist/generated/tools/projects/list.js +12 -0
- package/dist/generated/tools/projects/services-add.js +111 -0
- package/dist/generated/tools/projects/services-list.js +20 -0
- package/dist/generated/tools/projects/services-remove.js +25 -0
- package/dist/generated/tools/projects/services-update.js +104 -0
- package/dist/generated/tools/projects/settings-get.js +20 -0
- package/dist/generated/tools/projects/settings-import.js +208 -0
- package/dist/generated/tools/projects/settings-update.js +72 -0
- package/dist/generated/tools/projects/skills.js +32 -0
- package/dist/generated/tools/projects/update.js +24 -0
- package/dist/generated/tools/sessions/activate.js +25 -0
- package/dist/generated/tools/sessions/artifacts-get.js +30 -0
- package/dist/generated/tools/sessions/artifacts-list.js +25 -0
- package/dist/generated/tools/sessions/checklist-generate.js +25 -0
- package/dist/generated/tools/sessions/checklist-get.js +25 -0
- package/dist/generated/tools/sessions/comments-add.js +53 -0
- package/dist/generated/tools/sessions/comments-delete.js +30 -0
- package/dist/generated/tools/sessions/comments-list.js +25 -0
- package/dist/generated/tools/sessions/comments-update.js +62 -0
- package/dist/generated/tools/sessions/create.js +69 -0
- package/dist/generated/tools/sessions/delete.js +25 -0
- package/dist/generated/tools/sessions/diff-files.js +25 -0
- package/dist/generated/tools/sessions/diff-patch.js +64 -0
- package/dist/generated/tools/sessions/edit-prompt.js +69 -0
- package/dist/generated/tools/sessions/files-get.js +30 -0
- package/dist/generated/tools/sessions/files-list.js +25 -0
- package/dist/generated/tools/sessions/files-write.js +37 -0
- package/dist/generated/tools/sessions/get.js +25 -0
- package/dist/generated/tools/sessions/git-commit-message.js +25 -0
- package/dist/generated/tools/sessions/git-commit.js +29 -0
- package/dist/generated/tools/sessions/git-push.js +25 -0
- package/dist/generated/tools/sessions/git-state.js +25 -0
- package/dist/generated/tools/sessions/jobs-cancel.js +30 -0
- package/dist/generated/tools/sessions/jobs-get.js +30 -0
- package/dist/generated/tools/sessions/list.js +56 -0
- package/dist/generated/tools/sessions/messages.js +25 -0
- package/dist/generated/tools/sessions/search.js +17 -0
- package/dist/generated/tools/sessions/send.js +137 -0
- package/dist/generated/tools/sessions/update.js +63 -0
- package/dist/generated/tools/workspaces/access-status.js +28 -0
- package/dist/generated/tools/workspaces/ai-provider-get.js +20 -0
- package/dist/generated/tools/workspaces/ai-provider-remove.js +39 -0
- package/dist/generated/tools/workspaces/ai-provider-set.js +106 -0
- package/dist/generated/tools/workspaces/credits.js +20 -0
- package/dist/generated/tools/workspaces/get.js +20 -0
- package/dist/generated/tools/workspaces/getting-started-get.js +20 -0
- package/dist/generated/tools/workspaces/getting-started-update.js +27 -0
- package/dist/generated/tools/workspaces/list.js +12 -0
- package/dist/generated/tools/workspaces/members.js +24 -0
- package/dist/generated/tools/workspaces/sandbox-limit.js +20 -0
- package/dist/generated/tools/workspaces/stop-sandboxes.js +31 -0
- package/dist/generated/tools/workspaces/usage.js +28 -0
- package/dist/program.js +4 -2
- package/dist/runtime/mcp-attachments.js +110 -0
- package/dist/runtime/mcp-composite-support.js +49 -0
- package/dist/runtime/mcp-composite.js +309 -0
- package/dist/runtime/mcp-guard.js +74 -0
- package/dist/runtime/mcp-invoke.js +123 -0
- package/dist/runtime/mcp-open-pr.js +83 -0
- package/dist/runtime/mcp-redact.js +31 -0
- package/dist/runtime/mcp-server.js +219 -0
- package/dist/runtime/mcp-tool.js +6 -0
- package/package.json +2 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { operation } from '../../commands/projects/settings-update.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "projects_settings_update",
|
|
4
|
+
"toolset": "projects",
|
|
5
|
+
"description": "Change setup commands, branches, working directory or sandbox tier.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"hostSetupCommand": {
|
|
14
|
+
"type": [
|
|
15
|
+
"string",
|
|
16
|
+
"null"
|
|
17
|
+
],
|
|
18
|
+
"description": "Shell command that runs once on first deploy (or when its content changes) to provision the host: install runtimes and system packages. Re-runs only when edited."
|
|
19
|
+
},
|
|
20
|
+
"setupCommand": {
|
|
21
|
+
"type": [
|
|
22
|
+
"string",
|
|
23
|
+
"null"
|
|
24
|
+
],
|
|
25
|
+
"description": "Shell command that runs at repository root on every deploy, strictly BEFORE any service starts. Services from this config (databases included) are not reachable from it. Use it for installing dependencies; run migrations and seeds at the front of the dependent service's startCommand instead."
|
|
26
|
+
},
|
|
27
|
+
"warmupCommand": {
|
|
28
|
+
"type": [
|
|
29
|
+
"string",
|
|
30
|
+
"null"
|
|
31
|
+
],
|
|
32
|
+
"description": "Shell command that runs inside the sandbox once services are healthy. Typically authenticates and curls heavy routes to warm up compilation cache."
|
|
33
|
+
},
|
|
34
|
+
"agentWorkDir": {
|
|
35
|
+
"type": [
|
|
36
|
+
"string",
|
|
37
|
+
"null"
|
|
38
|
+
],
|
|
39
|
+
"description": "Relative path from the repository root where the AI agent operates. Useful for monorepos where the agent should work only in a subdirectory (e.g. \"packages/frontend\"). Defaults to repository root."
|
|
40
|
+
},
|
|
41
|
+
"sessionBaseBranch": {
|
|
42
|
+
"type": [
|
|
43
|
+
"string",
|
|
44
|
+
"null"
|
|
45
|
+
],
|
|
46
|
+
"description": "Git branch new coding sessions branch from (e.g. \"main\"). Null/omitted uses the repository default branch."
|
|
47
|
+
},
|
|
48
|
+
"prTargetBranch": {
|
|
49
|
+
"type": [
|
|
50
|
+
"string",
|
|
51
|
+
"null"
|
|
52
|
+
],
|
|
53
|
+
"description": "Git branch that submitted PRs target (e.g. \"main\"). Null/omitted uses the repository default branch."
|
|
54
|
+
},
|
|
55
|
+
"sandboxTier": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Sandbox resource tier provisioned for the preview: SMALL, MEDIUM, LARGE, or XLARGE. Omitted leaves the current tier. A first deploy boots on XLARGE (unknown footprint) — measure actual peak usage and set the right-sized tier here so later sandboxes use it.",
|
|
58
|
+
"enum": [
|
|
59
|
+
"SMALL",
|
|
60
|
+
"MEDIUM",
|
|
61
|
+
"LARGE",
|
|
62
|
+
"XLARGE"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"projectId"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
operation,
|
|
72
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { operation } from '../../commands/projects/skills.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "projects_skills",
|
|
4
|
+
"toolset": "projects",
|
|
5
|
+
"description": "List the skills the agent can invoke in this project, for one provider.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"provider": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"anthropic",
|
|
17
|
+
"openai"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"sessionId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Prefer that chat session's sandbox when listing live. Silently ignored if it is not this project's."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"projectId",
|
|
27
|
+
"provider"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
},
|
|
31
|
+
operation,
|
|
32
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { operation } from '../../commands/projects/update.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "projects_update",
|
|
4
|
+
"toolset": "projects",
|
|
5
|
+
"description": "Rename a project.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"name": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"projectId",
|
|
19
|
+
"name"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
operation,
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/activate.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_activate",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Start a backlog session: claim a sandbox and run its saved prompt as the first turn.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/artifacts-get.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_artifacts_get",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Read one artifact of the session: a markdown or html one carries its body, an image or a video a presigned url, its media type and its size.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
},
|
|
17
|
+
"artifactId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Artifact id."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"projectId",
|
|
24
|
+
"sessionId",
|
|
25
|
+
"artifactId"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
29
|
+
operation,
|
|
30
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/artifacts-list.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_artifacts_list",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "List the session's artifacts, most recently changed first. Rows only: a body or a file url comes from reading one.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/checklist-generate.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_checklist_generate",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Generate testing checklist items from the branch's changes on GitHub.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/checklist-get.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_checklist_get",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Read the testing checklist of a chat session.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/comments-add.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_comments_add",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Leave a review comment on a range of lines in the diff.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
},
|
|
17
|
+
"filePath": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"side": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"old",
|
|
24
|
+
"new"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"startLineNumber": {
|
|
28
|
+
"type": "integer"
|
|
29
|
+
},
|
|
30
|
+
"endLineNumber": {
|
|
31
|
+
"type": "integer"
|
|
32
|
+
},
|
|
33
|
+
"body": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"lineSnapshot": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"projectId",
|
|
42
|
+
"sessionId",
|
|
43
|
+
"filePath",
|
|
44
|
+
"side",
|
|
45
|
+
"startLineNumber",
|
|
46
|
+
"endLineNumber",
|
|
47
|
+
"body",
|
|
48
|
+
"lineSnapshot"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
},
|
|
52
|
+
operation,
|
|
53
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/comments-delete.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_comments_delete",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Delete your own comment.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
},
|
|
17
|
+
"commentId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Comment id."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"projectId",
|
|
24
|
+
"sessionId",
|
|
25
|
+
"commentId"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
29
|
+
operation,
|
|
30
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/comments-list.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_comments_list",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "List the review comments left on the diff.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/comments-update.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_comments_update",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Edit the body of your own comment, or resolve or reopen any comment. One of the two per call.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
},
|
|
17
|
+
"commentId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Comment id."
|
|
20
|
+
},
|
|
21
|
+
"body": {
|
|
22
|
+
"description": "The whole request body.",
|
|
23
|
+
"anyOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"body": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 4000
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"body"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"resolved": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"resolved"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"projectId",
|
|
55
|
+
"sessionId",
|
|
56
|
+
"commentId",
|
|
57
|
+
"body"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
operation,
|
|
62
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/create.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_create",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"content": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"model": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"status": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"backlog"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"ownerId": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"priority": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"urgent",
|
|
35
|
+
"high",
|
|
36
|
+
"medium",
|
|
37
|
+
"low",
|
|
38
|
+
"none"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"startBranch": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"attachments": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"maxItems": 10,
|
|
47
|
+
"description": "Files to attach, at most 10 of 10 MiB each. Each is a path on this machine; the request is sent as multipart when any are given.",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"path": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Path of a file to attach."
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"path"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"projectId"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
operation,
|
|
69
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/delete.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_delete",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Delete a chat session.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/diff-files.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_diff_files",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "List the files the session's branch changes against its base, with totals.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"projectId",
|
|
20
|
+
"sessionId"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
operation,
|
|
25
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { operation } from '../../commands/sessions/diff-patch.js';
|
|
2
|
+
export const tool = {
|
|
3
|
+
"name": "sessions_diff_patch",
|
|
4
|
+
"toolset": "sessions",
|
|
5
|
+
"description": "Read patches: a page (cursor), one file (path, with hunkOffset/hunkEnd), or one file with both sides (path and contents=1). path and cursor are mutually exclusive.",
|
|
6
|
+
"inputSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"projectId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Project id."
|
|
12
|
+
},
|
|
13
|
+
"sessionId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Session id."
|
|
16
|
+
},
|
|
17
|
+
"path": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "One file. Cannot be combined with cursor."
|
|
20
|
+
},
|
|
21
|
+
"paths": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "JSON array of file paths to refresh."
|
|
24
|
+
},
|
|
25
|
+
"afterPath": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Renew pagination strictly after this loaded path."
|
|
28
|
+
},
|
|
29
|
+
"cursor": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Opaque page cursor from meta.pagination.nextCursor. Cannot be combined with path."
|
|
32
|
+
},
|
|
33
|
+
"contents": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Return both sides of the file named by path. Only the literal '1' counts.",
|
|
36
|
+
"enum": [
|
|
37
|
+
"1"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"base": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Commit id to diff against instead of the current base. Must be provided with head."
|
|
43
|
+
},
|
|
44
|
+
"head": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Commit id for the comparison head. Must be provided with base."
|
|
47
|
+
},
|
|
48
|
+
"hunkOffset": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"description": "First hunk to return for path. A value that is not a non-negative integer is ignored."
|
|
51
|
+
},
|
|
52
|
+
"hunkEnd": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"description": "Hunk to stop before, for path. Ignored the same way as hunkOffset."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"projectId",
|
|
59
|
+
"sessionId"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
},
|
|
63
|
+
operation,
|
|
64
|
+
};
|