mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-10-27 16:32:49 -05:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0729882658 | ||
|
|
5025257893 |
@@ -37,7 +37,38 @@ tools:
|
|||||||
TABLE_NAME,
|
TABLE_NAME,
|
||||||
ORDINAL_POSITION
|
ORDINAL_POSITION
|
||||||
|
|
||||||
|
count_total_records:
|
||||||
|
source: ibmi-system
|
||||||
|
description: >-
|
||||||
|
Return the total row count for a table by reading the Db2 for i
|
||||||
|
catalog statistic QSYS2.SYSTABLESTAT.NUMBER_ROWS. Optionally
|
||||||
|
provide table_schema to disambiguate tables that share a name
|
||||||
|
across libraries.
|
||||||
|
parameters:
|
||||||
|
- name: table_name
|
||||||
|
type: string
|
||||||
|
description: "The name of the table to count records for."
|
||||||
|
required: true
|
||||||
|
- name: table_schema
|
||||||
|
type: string
|
||||||
|
description: "Schema/library holding the table. Example: 'MYLIB'."
|
||||||
|
required: true
|
||||||
|
statement: |
|
||||||
|
SELECT
|
||||||
|
TABLE_SCHEMA,
|
||||||
|
TABLE_NAME,
|
||||||
|
NUMBER_ROWS AS TOTAL_RECORDS,
|
||||||
|
LAST_USED_TIMESTAMP
|
||||||
|
FROM
|
||||||
|
QSYS2.SYSTABLESTAT
|
||||||
|
WHERE
|
||||||
|
TABLE_NAME = UPPER(:table_name)
|
||||||
|
AND (:table_schema IS NULL OR TABLE_SCHEMA = UPPER(:table_schema))
|
||||||
|
ORDER BY
|
||||||
|
TABLE_SCHEMA
|
||||||
|
|
||||||
toolsets:
|
toolsets:
|
||||||
custom_tools:
|
custom_tools:
|
||||||
tools:
|
tools:
|
||||||
- get_column_info
|
- get_column_info
|
||||||
|
- count_total_records
|
||||||
|
|||||||
@@ -98,6 +98,10 @@
|
|||||||
"command": ["npx", "@playwright/mcp@latest"],
|
"command": ["npx", "@playwright/mcp@latest"],
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
},
|
},
|
||||||
|
"chrome-devtools": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["npx", "-y", "chrome-devtools-mcp@latest"],
|
||||||
|
},
|
||||||
"ibmi-server": {
|
"ibmi-server": {
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"command": [
|
"command": [
|
||||||
@@ -134,17 +138,11 @@
|
|||||||
"explore": {
|
"explore": {
|
||||||
"model": "zai-coding-plan/glm-4.5-air",
|
"model": "zai-coding-plan/glm-4.5-air",
|
||||||
},
|
},
|
||||||
"scout": {
|
|
||||||
"model": "zai-coding-plan/glm-4.5-air",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"share": "disabled",
|
"share": "disabled",
|
||||||
"snapshot": true,
|
"snapshot": true,
|
||||||
// OpenCode Quota: tuiCommandDisplay chooses whether native TUI command output appears in the session transcript or a local popup dialog.
|
|
||||||
// OpenCode Quota: loads the server plugin for slash commands and quota checks.
|
|
||||||
"plugin": ["./plugins/ibmi-gate.ts", "@slkiser/opencode-quota@latest"],
|
"plugin": ["./plugins/ibmi-gate.ts", "@slkiser/opencode-quota@latest"],
|
||||||
"provider": {
|
"provider": {
|
||||||
// Detected zai authentication; opencode-quota added this global provider declaration.
|
|
||||||
"zai": {},
|
"zai": {},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user