sudoprivacy / dsh-shareone-plugin

목록에 있음

ShareOne tools for DeepSeek Harness

main도구 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:sudoprivacy/dsh-shareone-plugin

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 6196253동기화 2026. 8. 18.

최근 디렉터리 동기화에서 이 README 스냅샷을 새로 고치지 못했습니다.

dsh-shareone-plugin

ShareOne tools for DeepSeek Harness. This bundle lets Harness agents publish HTML, Markdown, TXT, PDF, Word, and PowerPoint files to ShareOne, update share settings, download source files, and process comments.

Install

dsh plugin --profile web add dsh-shareone-plugin
dsh --profile web

For local development from this repository:

dsh plugin --profile web add ./dsh-shareone-plugin
dsh --profile web

Configure

The default bundle config reads the API key from SHAREONE_API_KEY:

export SHAREONE_API_KEY=your_shareone_api_key
dsh --profile web

You can override config in your profile patch:

- insert:
    - id: shareone
      name: dsh-shareone-plugin
      config:
        baseUrl: https://shareone.vip
        apiKeyEnv: SHAREONE_API_KEY
        timeoutMs: 60000

Credential precedence:

tool argument api_key > plugin config apiKey > environment variable from apiKeyEnv

The plugin never renders configured API keys in tool output. The shareone_create_guest_key tool returns a temporary API key in its structured result so the agent can help first-time users configure ShareOne.

Tools

shareone_publish_text

Publish HTML, Markdown, or plain text content.

Main arguments:

  • filename
  • content
  • password
  • watermark
  • custom_slug
  • allow_comments
  • title

Uses POST /api/v1/pages.

shareone_publish_file

Publish a local file such as PDF, Word, PowerPoint, or other binary files.

Main arguments:

  • file_path
  • filename
  • content_type
  • password
  • watermark
  • custom_slug
  • allow_comments
  • title

Uses direct upload:

POST /api/v1/files/credential
upload to object storage
POST /api/v1/files/confirm

If direct upload is not available, the tool falls back to multipart POST /api/v1/files.

shareone_update_settings

Update settings for an existing share.

Main arguments:

  • ref
  • filename
  • title
  • password
  • clear_password
  • watermark
  • clear_watermark
  • custom_slug
  • clear_custom_slug
  • allow_comments
  • allow_data
  • require_viewer_email

The ref can be a full ShareOne URL, share id, or custom slug. The tool routes to page or file metadata endpoints based on the URL prefix and falls back from page update to file update when the type is unknown.

shareone_get_comments

List comments and summary counts for a share.

Main arguments:

  • ref
  • status: all, open, in_progress, unresolved, resolved, or dismissed

This is a public read operation and does not require an API key.

shareone_reply_comment

Reply to an existing parent comment as an agent. Requires owner API key.

Main arguments:

  • ref
  • parent_id
  • content

The tool fetches the parent comment first and reuses its quote and anchor data.

shareone_update_comment_status

Update a comment status. Requires owner API key.

Main arguments:

  • ref
  • comment_id
  • status: open, in_progress, resolved, or dismissed
  • note

shareone_download

Download the original source file to a local path.

Main arguments:

  • ref
  • output_path
  • password
  • owner

Public download is used by default. Set owner: true to use the owner download endpoint with an API key.

shareone_create_guest_key

Create a temporary ShareOne guest API key for first-time use.

Release

Publishing is handled by GitHub Actions when a version tag is pushed.

One-time setup:

GitHub repo secret NPM_TOKEN = npm automation token with publish access

Release a new version:

npm version patch
git push origin main --follow-tags

The workflow runs on tags matching v*.*.*. It checks that the tag version matches package.json, installs dependencies with npm ci, runs syntax and tool-registration checks, verifies package contents with npm pack --dry-run, and publishes to npm with provenance.

For discovery, publish the source repository on GitHub and add these topics:

dsh-plugin
deepseek-harness
shareone
agent-tool

Security Notes

This plugin can read files passed to shareone_publish_file or shareone_download.output_path. Published content is sent to the configured ShareOne server, which defaults to https://shareone.vip.

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 18. 오전 10:14

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.