← 返回
效率工具 中文

dxh141130

Automate punching time in/out on WPS Time / NetTime (wpstime.com NetTime). Use for phrases like setup punchclock/configure punchclock/set up time clock, clock in/clock out, start break/end break, start lunch/end lunch, check status/status. Runs a Playwright flow, captures a screenshot, and replies with a brief confirmation.
在WPS时间/NetTime(wpstime.com NetTime)上自动打卡。用于设置打卡/配置打卡、上班打卡/下班打卡、开始休息/结束休息、开始午休/结束午休、查看状态等场景。运行Playwright流程,截取屏幕截图,并回复简短确认。
dxh141130
效率工具 clawhub v1.0.1 1 版本 99843.3 Key: 无需
★ 0
Stars
📥 2,549
下载
💾 409
安装
1
版本
#latest

概述

WPS Time / NetTime Punchclock

Run the bundled Playwright script to log into WPS Time NetTime using macOS Keychain credentials, perform the requested punch action (or status check), take a screenshot, and report results.

Inputs → actions

Map user intent to the script --action:

Setup / credentials

  • setup punchclock / configure punchclock / set up time clock → run setup flow

Punch actions

  • clock in → clock-in
  • clock out → clock-out
  • start break → start-break
  • end break → end-break (implemented as Clock In (end break) in script)
  • start lunch → start-lunch
  • end lunch → end-lunch (implemented as Clock In (end lunch) in script)
  • status / check status → status

First-time setup (per machine / per user)

Option A (recommended): local terminal setup (password never enters chat logs)

Run the interactive setup script to store credentials in macOS Keychain:

cd {baseDir}/scripts
node ./setup.mjs

This stores credentials locally under Keychain services:

  • wpstime-punchclock.company (secret = company/common id)
  • wpstime-punchclock (account = username, secret = password)

Option B: chat wizard setup (includes password; higher risk)

Only use if the user explicitly asks for chat-based setup and accepts that the password will appear in chat history/logs.

Workflow:

1) Warn clearly:

  • the password will be sent via chat and may be stored by the chat platform + gateway logs.
  • recommend Option A instead.

2) If they still confirm, collect 3 fields in separate turns:

  • companyId
  • username
  • password

3) Store into macOS Keychain on the SAME machine running the gateway using security add-generic-password -U:

security add-generic-password -U -s "wpstime-punchclock.company" -a "company" -w "<companyId>"
security add-generic-password -U -s "wpstime-punchclock" -a "<username>" -w "<password>"

4) Never echo the password back. After storing, run status to verify login works.

Workflow

1) Run the punch script (headless by default):

node {baseDir}/scripts/punchclock.mjs --action <action>

Optional flags:

  • --headless 0 for debugging
  • --outDir to control screenshot output

2) Parse stdout JSON.

  • On success: read performed, screenshotPath, and (optionally) pull key fields from snippet.
  • On failure: report error and do not claim the punch succeeded.

3) Reply to the requesting channel with:

  • one-line confirmation (what was performed)
  • effective status/time if present (best-effort)
  • attach the screenshot at screenshotPath

4) If the user asks to clock in/out but they may already be in that state, prefer running status first or immediately after to confirm and avoid double-punch confusion.

Credentials (macOS Keychain)

Do not store secrets in files or prompts. Use Keychain.

Preferred services (used by setup.mjs):

  • Service wpstime-punchclock.company → secret = company/common id
  • Service wpstime-punchclock → account = username, secret = password

Backward-compat (older OpenClaw setups):

  • openclaw.wpstime.company
  • openclaw.wpstime

If missing, the punch script throws an error. When that happens, guide the user to run:

cd {baseDir}/scripts
node ./setup.mjs

Then retry the requested action.

Reference

If you need the longer operational runbook, read:

  • references/PUNCHCLOCK_RUNBOOK.md

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 18:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 439 📥 147,716
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,320
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,861