- /memory-stores: 远程记忆存储管理 - /vault: 密钥保险库管理 - /schedule: 云端定时触发器管理(cron) - /skill-store: 技能商店浏览和安装 - /agents-platform: 远程 agent 调度管理 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
import type { Command } from '../../types/command.js'
|
|
|
|
const scheduleCommand: Command = {
|
|
type: 'local-jsx',
|
|
// Primary name renamed from 'schedule' → 'triggers' to avoid collision
|
|
// with the upstream bundled skill `src/skills/bundled/scheduleRemoteAgents.ts`,
|
|
// which also registers as `/schedule`. The new name matches the underlying
|
|
// API endpoint (`/v1/code/triggers`). Directory still named schedule/ to
|
|
// keep the rename minimal — only the user-facing slash name changes.
|
|
name: 'triggers',
|
|
aliases: ['cron'],
|
|
description:
|
|
'Manage scheduled remote agent triggers (cloud cron). Requires Claude Pro/Max/Team subscription.',
|
|
// REPL markdown renderer strips `<...>` as HTML tags — use uppercase.
|
|
argumentHint:
|
|
'list | get ID | create CRON PROMPT | update ID FIELD VALUE | delete ID | run ID | enable ID | disable ID',
|
|
isHidden: false,
|
|
isEnabled: () => true,
|
|
bridgeSafe: false,
|
|
availability: ['claude-ai'],
|
|
load: async () => {
|
|
const m = await import('./launchSchedule.js')
|
|
return { call: m.callSchedule }
|
|
},
|
|
}
|
|
|
|
export default scheduleCommand
|