Repository navigation
✨ 迁移为新 SDK 官方扩展仓,新增 Elasticsearch 扩展 - #4
Merged
Merged
Conversation
…扩展提供资产表单、校验、测试连接与凭据注入
…、只读/读写权限组与 SKILL.md
- frontend/:Vite 库构建(hostExternals 映射 react / @opskat/ui / @opskat/host-ui 到宿主注入对象),
Tailwind 仅 utilities、并入宿主 utilities 层并由 tooling/scope-css 限定到页面根节点,产物 dist/frontend/{index.js,style.css}
- 页面:集群头 + 索引过滤/系统索引开关;概览统计、节点表、非 green 提示;文档查询串/DSL、排序、
结果表与行详情(宽并排/窄浮层)、分页 20/50/100 与结果窗口上限;骨架、空态、整页错误+重试;en/zh-CN
- 控制台标签为占位组件(components/console/ConsoleTab.tsx),供下一步替换
- main.go 注册 asset.connect 页面;Makefile 构建前端并入 dist;vitest 覆盖列推导、分页/结果窗口等纯逻辑
… read;CI 指定前端锁文件路径,README 补全 dist 内容与前端构建依赖
…与 indices、拒绝 ./.. 路径段、带脚本的 reindex 与 _data_stream API 段归为全部索引;控制台重挂载沿用最新文本
…、整页错误区分连不上与 ES 返回错误
…e 计入目标索引、便捷工具拒绝 . / .. 索引段
…再读到关闭前未落盘的旧文本,两次保存也不会乱序覆盖
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这次改了什么
把本仓迁成基于新扩展 SDK(
github.com/opskat/opskat/pkg/extsdk)的官方扩展仓,并加入第一个官方扩展 Elasticsearch。宿主侧能力见 opskat/opskat#331(已合并);规格在 opskat 仓docs/specs/2026-09-29-es-extension.md。sdk/go、examples/echo、extensions/oss;README / README_zh 与 Makefile 改写(make build EXT=<name>产出可直接"从目录安装"或opsctl ext dev的dist/)。make ci)。request(任意请求,返回{status, body},--body-file支持文件 / stdin)与便捷工具health/indices/mapping/search。路径含协议 / 主机、./..段、?source=、不支持的方法在分类阶段直接拒绝(不弹审批)。_bulk/_msearch/_mget/_mtermvectors请求体内的索引都计入),多资源逐个判定;权限组 只读(默认)/ 读写。SKILL.md 说明分类与规则写法。验证
make ci通过(Go 测试、WASM 构建、前端 tsc / vitest / build)。未观察 / 已知遗留
minAppVersion目前宿主只校验格式、不做比较;实际阻止旧应用的是 hostABI 2.2。