Skip to content

Commit 0d69dc4

Browse files
committed
chore(lint): delete commented-out code
Removes dead sub-block configs from the Human in the Loop and Greptile blocks and an unused commented-out DisplayMode type. The docs generator read the commented-out greptile_search entry in tools.access, so the generated Greptile docs advertised a disabled operation; regenerated.
1 parent f7b47bc commit 0d69dc4

5 files changed

Lines changed: 3 additions & 162 deletions

File tree

‎apps/docs/content/docs/integrations/greptile.mdx‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,6 @@ Query repositories in natural language and get answers with relevant code refere
5353
| ↳ `summary` | string | Summary of the code section |
5454
| ↳ `distance` | number | Similarity score \(lower = more relevant\) |
5555

56-
### Greptile Search
57-
58-
Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.
59-
60-
#### Input
61-
62-
| Parameter | Type | Required | Description |
63-
| --------- | ---- | -------- | ----------- |
64-
| `query` | string | Yes | Natural language search query to find relevant code. Example: "authentication middleware" or "database connection handling" |
65-
| `repositories` | string | Yes | Comma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" \(defaults to github:main\). Example: "facebook/react" or "github:main:facebook/react,github:main:facebook/relay" |
66-
| `sessionId` | string | No | Session ID for conversation continuity. Use the same sessionId across multiple searches to maintain context. Example: "session-abc123" |
67-
| `genius` | boolean | No | Enable genius mode for more thorough search \(slower but more accurate\) |
68-
| `apiKey` | string | Yes | Greptile API key |
69-
| `githubToken` | string | Yes | GitHub Personal Access Token with repo read access |
70-
71-
#### Output
72-
73-
| Parameter | Type | Description |
74-
| --------- | ---- | ----------- |
75-
| `sources` | array | Relevant code references matching the search query |
76-
| ↳ `repository` | string | Repository name \(owner/repo\) |
77-
| ↳ `remote` | string | Git remote \(github/gitlab\) |
78-
| ↳ `branch` | string | Branch name |
79-
| ↳ `filepath` | string | Path to the file |
80-
| ↳ `linestart` | number | Starting line number |
81-
| ↳ `lineend` | number | Ending line number |
82-
| ↳ `summary` | string | Summary of the code section |
83-
| ↳ `distance` | number | Similarity score \(lower = more relevant\) |
84-
8556
### Greptile Index Repository
8657

8758
Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.

‎apps/sim/blocks/blocks/greptile.ts‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const GreptileBlock: BlockConfig<GreptileResponse> = {
4242
type: 'dropdown',
4343
options: [
4444
{ label: 'Query', id: 'greptile_query' },
45-
// { label: 'Search', id: 'greptile_search' }, // Disabled: Greptile search endpoint returning v1 deprecation error
4645
{ label: 'Index Repository', id: 'greptile_index_repo' },
4746
{ label: 'Check Status', id: 'greptile_status' },
4847
],
@@ -78,36 +77,6 @@ export const GreptileBlock: BlockConfig<GreptileResponse> = {
7877
type: 'switch',
7978
condition: { field: 'operation', value: 'greptile_query' },
8079
},
81-
// Search operation inputs - Disabled: Greptile search endpoint returning v1 deprecation error
82-
// {
83-
// id: 'query',
84-
// title: 'Search Query',
85-
// type: 'long-input',
86-
// placeholder: 'Search for code patterns, functions, or concepts...',
87-
// condition: { field: 'operation', value: 'greptile_search' },
88-
// required: true,
89-
// },
90-
// {
91-
// id: 'repositories',
92-
// title: 'Repositories',
93-
// type: 'long-input',
94-
// placeholder: 'owner/repo, github:main:owner/repo (comma-separated)',
95-
// condition: { field: 'operation', value: 'greptile_search' },
96-
// required: true,
97-
// },
98-
// {
99-
// id: 'sessionId',
100-
// title: 'Session ID',
101-
// type: 'short-input',
102-
// placeholder: 'Optional session ID for conversation continuity',
103-
// condition: { field: 'operation', value: 'greptile_search' },
104-
// },
105-
// {
106-
// id: 'genius',
107-
// title: 'Genius Mode',
108-
// type: 'switch',
109-
// condition: { field: 'operation', value: 'greptile_search' },
110-
// },
11180
// Index & Status shared inputs
11281
{
11382
id: 'remote',
@@ -168,7 +137,7 @@ export const GreptileBlock: BlockConfig<GreptileResponse> = {
168137
},
169138
],
170139
tools: {
171-
access: ['greptile_query', /* 'greptile_search', */ 'greptile_index_repo', 'greptile_status'],
140+
access: ['greptile_query', 'greptile_index_repo', 'greptile_status'],
172141
config: {
173142
tool: (params) => params.operation,
174143
},

‎apps/sim/blocks/blocks/human_in_the_loop.ts‎

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -22,113 +22,26 @@ export const HumanInTheLoopBlock: BlockConfig<ResponseBlockOutput> = {
2222
},
2323
},
2424
subBlocks: [
25-
// Operation dropdown hidden - block defaults to human approval mode
26-
// {
27-
// id: 'operation',
28-
// title: 'Operation',
29-
// type: 'dropdown',
30-
// layout: 'full',
31-
// options: [
32-
// { label: 'Human Approval', id: 'human' },
33-
// { label: 'API Response', id: 'api' },
34-
// ],
35-
// value: () => 'human',
36-
// description: 'Choose whether to wait for human approval or send an API response',
37-
// },
3825
{
3926
id: 'builderData',
4027
title: 'Display Data',
4128
type: 'response-format',
42-
// condition: { field: 'operation', value: 'human' }, // Always shown since we only support human mode
4329
description:
4430
'Define the structure of your response data. Use <variable.name> in field names to reference workflow variables.',
4531
},
4632
{
4733
id: 'notification',
4834
title: 'Notification (Send URL)',
4935
type: 'tool-input',
50-
// condition: { field: 'operation', value: 'human' }, // Always shown since we only support human mode
5136
description: 'Configure notification tools to alert approvers (e.g., Slack, Email)',
5237
defaultValue: [],
5338
},
54-
// API mode subBlocks commented out - only human approval mode is supported
55-
// {
56-
// id: 'dataMode',
57-
// title: 'Response Data Mode',
58-
// type: 'dropdown',
59-
// layout: 'full',
60-
// options: [
61-
// { label: 'Builder', id: 'structured' },
62-
// { label: 'Editor', id: 'json' },
63-
// ],
64-
// value: () => 'structured',
65-
// condition: { field: 'operation', value: 'api' },
66-
// description: 'Choose how to define your response data structure',
67-
// },
6839
{
6940
id: 'inputFormat',
7041
title: 'Resume Form',
7142
type: 'input-format',
72-
// condition: { field: 'operation', value: 'human' }, // Always shown since we only support human mode
7343
description: 'Define the fields the approver can fill in when resuming',
7444
},
75-
// {
76-
// id: 'data',
77-
// title: 'Response Data',
78-
// type: 'code',
79-
// layout: 'full',
80-
// placeholder: '{\n "message": "Hello world",\n "userId": "<variable.userId>"\n}',
81-
// language: 'json',
82-
// condition: {
83-
// field: 'operation',
84-
// value: 'api',
85-
// and: { field: 'dataMode', value: 'json' },
86-
// },
87-
// description:
88-
// 'Data that will be sent as the response body on API calls. Use <variable.name> to reference workflow variables.',
89-
// wandConfig: {
90-
// enabled: true,
91-
// maintainHistory: true,
92-
// prompt: `You are an expert JSON programmer.
93-
// Generate ONLY the raw JSON object based on the user's request.
94-
// The output MUST be a single, valid JSON object, starting with { and ending with }.
95-
//
96-
// Current response: {context}
97-
//
98-
// Do not include any explanations, markdown formatting, or other text outside the JSON object.
99-
//
100-
// You have access to the following variables you can use to generate the JSON body:
101-
// - 'params' (object): Contains input parameters derived from the JSON schema. Access these directly using the parameter name wrapped in angle brackets, e.g., '<paramName>'. Do NOT use 'params.paramName'.
102-
// - 'environmentVariables' (object): Contains environment variables. Reference these using the double curly brace syntax: '{{ENV_VAR_NAME}}'. Do NOT use 'environmentVariables.VAR_NAME' or env.
103-
//
104-
// Example:
105-
// {
106-
// "name": "<block.agent.response.content>",
107-
// "age": <block.function.output.age>,
108-
// "success": true
109-
// }`,
110-
// placeholder: 'Describe the API response structure you need...',
111-
// generationType: 'json-object',
112-
// },
113-
// },
114-
// {
115-
// id: 'status',
116-
// title: 'Status Code',
117-
// type: 'short-input',
118-
// layout: 'half',
119-
// placeholder: '200',
120-
// condition: { field: 'operation', value: 'api' },
121-
// description: 'HTTP status code (default: 200)',
122-
// },
123-
// {
124-
// id: 'headers',
125-
// title: 'Response Headers',
126-
// type: 'table',
127-
// layout: 'full',
128-
// columns: ['Key', 'Value'],
129-
// condition: { field: 'operation', value: 'api' },
130-
// description: 'Additional HTTP headers to include in the response',
131-
// },
13245
],
13346
tools: { access: [] },
13447
inputs: {

‎apps/sim/stores/terminal/types.ts‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/**
2-
* Display mode type for terminal output.
3-
*
4-
* @remarks
5-
* Currently unused but kept for future customization of terminal rendering.
6-
*/
7-
// export type DisplayMode = 'raw' | 'prettier'
8-
91
/**
102
* Terminal state persisted across workspace sessions.
113
*/

‎packages/deployment-config/src/integrations.json‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updatedAt": "2026-09-29",
2+
"updatedAt": "2026-10-02",
33
"integrations": [
44
{
55
"type": "onepassword",
@@ -11409,10 +11409,6 @@
1140911409
"name": "Query",
1141011410
"description": "Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions."
1141111411
},
11412-
{
11413-
"name": "Search",
11414-
"description": "Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations."
11415-
},
1141611412
{
1141711413
"name": "Index Repository",
1141811414
"description": "Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour."
@@ -11422,7 +11418,7 @@
1142211418
"description": "Check the indexing status of a repository. Use this to verify if a repository is ready to be queried or to monitor indexing progress."
1142311419
}
1142411420
],
11425-
"operationCount": 4,
11421+
"operationCount": 3,
1142611422
"triggers": [],
1142711423
"triggerCount": 0,
1142811424
"authType": "api-key",

0 commit comments

Comments
 (0)