fix(session-query): rename session log export package
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
|
||||
# Browser Session export: `/export` command plus the shared download dialog.
|
||||
- id: session-log-download
|
||||
name: '@deepseek-ai/dsh-session-log-download'
|
||||
name: '@deepseek-ai/dsh-session-log-export'
|
||||
|
||||
- id: workspace
|
||||
name: '@deepseek-ai/dsh-workspace'
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
"@deepseek-ai/dsh-host-webserver": "workspace:^",
|
||||
"@deepseek-ai/dsh-message-feedback": "workspace:^",
|
||||
"@deepseek-ai/dsh-session-projection-cache": "workspace:^",
|
||||
"@deepseek-ai/dsh-session-log-download": "workspace:^",
|
||||
"@deepseek-ai/dsh-session-log-export": "workspace:^",
|
||||
"@deepseek-ai/dsh-session-stats": "workspace:^",
|
||||
"@deepseek-ai/dsh-storage": "workspace:^",
|
||||
"@deepseek-ai/dsh-storage-domain": "workspace:^",
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/session-query/README.md
|
||||
README.md: 75f447f667261fe3005d1a95e285120bebe6338d
|
||||
README.zh.md: b89ca7441ed825c7d76e9fec4dd6c400c6c6811e
|
||||
README.md: b955a7f6e19f5a49e48e564523cc343e32816dd2
|
||||
README.zh.md: d1e6c645050f4e58f9409e328552b5f9209bc3a5
|
||||
|
||||
@@ -8,7 +8,7 @@ This family provides authorized retrieval over live and durable session logs, in
|
||||
|---|---|---|
|
||||
| [`session-query/`](session-query/README.md) | Defines trusted reads, relationship queries, and search operations | `ctx.sessionQuery` |
|
||||
| [`session-query-sqlite/`](session-query-sqlite/README.md) | Implements session queries with SQLite full-text search | `ctx.sessionQuery` |
|
||||
| [`session-log-download/`](session-log-download/README.md) | Adds the Web `/export` command, shared browser download state, and result modal over the Host ZIP endpoint | `ctx.sessionLogDownload` |
|
||||
| [`session-log-export/`](session-log-export/README.md) | Adds the Web `/export` command, shared browser download state, and result modal over the Host ZIP endpoint | `ctx.sessionLogDownload` |
|
||||
| [`tool-session-query/`](tool-session-query/README.md) | Exposes workspace-authorized session queries to the model | registers on `ctx.tools` |
|
||||
|
||||
The subsystem reference — logical records, bounded reads, traces, filters, result pages — is [docs/subsystems/session-query.md](../../docs/subsystems/session-query.md).
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|---|---|---|
|
||||
| [`session-query/`](session-query/README.md) | 定义可信读取、关系查询和搜索操作 | `ctx.sessionQuery` |
|
||||
| [`session-query-sqlite/`](session-query-sqlite/README.md) | 使用 SQLite 全文搜索实现会话查询 | `ctx.sessionQuery` |
|
||||
| [`session-log-download/`](session-log-download/README.md) | 在 Host ZIP 端点之上增加 Web `/export` 命令、共享浏览器下载状态和结果弹窗 | `ctx.sessionLogDownload` |
|
||||
| [`session-log-export/`](session-log-export/README.md) | 在 Host ZIP 端点之上增加 Web `/export` 命令、共享浏览器下载状态和结果弹窗 | `ctx.sessionLogDownload` |
|
||||
| [`tool-session-query/`](tool-session-query/README.md) | 向模型公开经过工作区授权的会话查询 | 注册到 `ctx.tools` |
|
||||
|
||||
子系统参考——逻辑记录、有界读取、追踪、筛选器、结果页——见 [docs/subsystems/session-query.md](../../docs/subsystems/session-query.md)。
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import { clientBundle } from '../../client/tsdown.client.ts'
|
||||
|
||||
export default clientBundle('@deepseek-ai/dsh-session-log-download', ['lib/types/index.js', 'lib/types/invariant.js'])
|
||||
@@ -1,6 +1,6 @@
|
||||
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/session-query/session-log-download/README.md
|
||||
README.md: eb8f26e4c44abfea14a555555ceec4ad1da48c18
|
||||
README.zh.md: a1185315469518eb29acaa1a9c9010aa6b4660b4
|
||||
# pnpm run verify-translation-pairing --write packages/session-query/session-log-export/README.md
|
||||
README.md: f3625338e85a38ab279c5fa4700a7a9e1124cfb3
|
||||
README.zh.md: 5a2fa86d126f6bda808d3036bddc0e26fd310690
|
||||
@@ -1,4 +1,4 @@
|
||||
# @deepseek-ai/dsh-session-log-download
|
||||
# @deepseek-ai/dsh-session-log-export
|
||||
|
||||
English | [中文](README.zh.md)
|
||||
|
||||
@@ -21,7 +21,7 @@ The modal reports preparation, download start, or failure. Closing it does not c
|
||||
|
||||
```yaml
|
||||
- id: session-log-download
|
||||
name: '@deepseek-ai/dsh-session-log-download'
|
||||
name: '@deepseek-ai/dsh-session-log-export'
|
||||
```
|
||||
|
||||
The Web bundle mounts the package beside `dsh-host-apiproxy`, `dsh-commands`, `dsh-client-ui-commands`, and `dsh-client-ui-conversation`. The package contributes its button and modal to the right-aligned `conversation.session.header.utilities` list, independently of the title-adjacent mode, Subagent, and Task entries in `conversation.session.header.actions`; Trajectory carries no export control.
|
||||
@@ -1,4 +1,4 @@
|
||||
# @deepseek-ai/dsh-session-log-download
|
||||
# @deepseek-ai/dsh-session-log-export
|
||||
|
||||
[English](README.md) | 中文
|
||||
|
||||
@@ -21,7 +21,7 @@ Host 下载端点会在 `readRaw` 前 flush 活动的根 Session,因此斜杠
|
||||
|
||||
```yaml
|
||||
- id: session-log-download
|
||||
name: '@deepseek-ai/dsh-session-log-download'
|
||||
name: '@deepseek-ai/dsh-session-log-export'
|
||||
```
|
||||
|
||||
Web bundle 将本包与 `dsh-host-apiproxy`、`dsh-commands`、`dsh-client-ui-commands` 和 `dsh-client-ui-conversation` 一起挂载。本包把按钮和弹窗贡献到最右侧的 `conversation.session.header.utilities` 列表,与标题旁 `conversation.session.header.actions` 中的模式、Subagent 和 Task 配置项相互独立;Trajectory 不包含导出入口。
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-session-log-download",
|
||||
"name": "@deepseek-ai/dsh-session-log-export",
|
||||
"description": "Web Session-log export command and shared download dialog",
|
||||
"version": "0.0.1-rc.3",
|
||||
"publishConfig": { "access": "restricted" },
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
||||
"directory": "packages/session-query/session-log-download"
|
||||
"directory": "packages/session-query/session-log-export"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
@@ -1,10 +1,10 @@
|
||||
/** Package invariant companion for `@deepseek-ai/dsh-session-log-download`. */
|
||||
/** Package invariant companion for `@deepseek-ai/dsh-session-log-export`. */
|
||||
|
||||
/* jscpd:ignore-start */
|
||||
import type { Context } from '@deepseek-ai/cordis'
|
||||
import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'
|
||||
|
||||
const PACKAGE_NAME = '@deepseek-ai/dsh-session-log-download'
|
||||
const PACKAGE_NAME = '@deepseek-ai/dsh-session-log-export'
|
||||
|
||||
export const name = 'session-export-invariant'
|
||||
export const inject = ['invariants']
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from 'vitest'
|
||||
import { Context } from '@deepseek-ai/cordis'
|
||||
import { apply, inject, name } from '../src/invariant.ts'
|
||||
|
||||
describe('@deepseek-ai/dsh-session-log-download/invariant', () => {
|
||||
describe('@deepseek-ai/dsh-session-log-export/invariant', () => {
|
||||
it('registers the package-owned empty companion', async () => {
|
||||
const register = vi.fn(() => vi.fn())
|
||||
const ctx = new Context()
|
||||
@@ -10,7 +10,7 @@ describe('@deepseek-ai/dsh-session-log-download/invariant', () => {
|
||||
const dispose = await apply(ctx)
|
||||
expect(name).toBe('session-export-invariant')
|
||||
expect(inject).toEqual(['invariants'])
|
||||
expect(register).toHaveBeenCalledWith('@deepseek-ai/dsh-session-log-download', expect.any(Function))
|
||||
expect(register).toHaveBeenCalledWith('@deepseek-ai/dsh-session-log-export', expect.any(Function))
|
||||
dispose()
|
||||
})
|
||||
})
|
||||
@@ -9,7 +9,7 @@ import Include from '@deepseek-ai/cordis-plugin-include'
|
||||
import type { Agent } from '@deepseek-ai/dsh-agent'
|
||||
import CommandRuntime from '@deepseek-ai/dsh-commands'
|
||||
import SessionStore, { SessionId } from '@deepseek-ai/dsh-session'
|
||||
import * as SessionLogDownload from '@deepseek-ai/dsh-session-log-download'
|
||||
import * as SessionLogDownload from '@deepseek-ai/dsh-session-log-export'
|
||||
|
||||
let root: string | undefined
|
||||
let context: Context | undefined
|
||||
@@ -28,7 +28,7 @@ describe('session-log-download real Loader composition', () => {
|
||||
await writeFile(configPath, [
|
||||
"- name: '@deepseek-ai/dsh-session'",
|
||||
"- name: '@deepseek-ai/dsh-commands'",
|
||||
"- name: '@deepseek-ai/dsh-session-log-download'",
|
||||
"- name: '@deepseek-ai/dsh-session-log-export'",
|
||||
'',
|
||||
].join('\n'))
|
||||
|
||||
@@ -39,7 +39,7 @@ describe('session-log-download real Loader composition', () => {
|
||||
const modules = new Map<string, unknown>([
|
||||
['@deepseek-ai/dsh-session', SessionStore],
|
||||
['@deepseek-ai/dsh-commands', CommandRuntime],
|
||||
['@deepseek-ai/dsh-session-log-download', SessionLogDownload],
|
||||
['@deepseek-ai/dsh-session-log-export', SessionLogDownload],
|
||||
])
|
||||
context.loader.internal = {
|
||||
version: 'v2',
|
||||
@@ -0,0 +1,3 @@
|
||||
import { clientBundle } from '../../client/tsdown.client.ts'
|
||||
|
||||
export default clientBundle('@deepseek-ai/dsh-session-log-export', ['lib/types/index.js', 'lib/types/invariant.js'])
|
||||
Reference in New Issue
Block a user