@aiti-ai/aiti-ai-schedule 0.4.9 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,38 +1,30 @@
1
1
  # @aiti-ai/aiti-ai-schedule
2
2
 
3
- > pi-web 常驻调度器 —— 扩展声明式定时任务 + AI 计划(cron/间隔/一次性)+ 三模式执行引擎 + AI 自建计划工具 + 管理页
3
+ > pi-web resident scheduler — extension declarative scheduled tasks + AI plans (cron/interval/one-shot) + three-mode execution engine + AI self-service plan tool + management page
4
4
 
5
- ## 来源 · Origin
5
+ English · [简体中文](./README.zh-CN.md)
6
6
 
7
- 本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/pi-web) 构建,浏览器为主操作面)+ 各开发工具内的调试注入(aiti-devtools)+ 丰富的扩展体系。
7
+ ## About aiti
8
8
 
9
9
  This package is part of the **aiti** ecosystem — a personal AI development workbench powered by [pi](https://pi.dev): **aiti-agent** (a self-hosted web workbench built on the open-source [pi-web](https://github.com/aiti-ai/pi-web)) plus debug injection into mainstream dev tools (aiti-devtools) and a rich extension system.
10
10
 
11
- - 工作台 / workbench: <https://github.com/aiti-ai/pi-web>
12
- - 生态仓库 / monorepo: <https://github.com/aiti-ai/aiti-ai>
13
- - 官网 / site: <https://aiti.pw>
11
+ - Workbench (aiti-agent, built on pi-web): <https://github.com/aiti-ai/pi-web>
12
+ - Ecosystem monorepo: <https://github.com/aiti-ai/aiti-ai>
13
+ - Site: <https://aiti.pw>
14
14
 
15
- ## 功能定位(中文)
15
+ Category: System tools · Tags: `scheduler` · `cron` · `interval` · `ai-plan` · `declarative`
16
16
 
17
- pi-web 常驻调度器 —— 扩展声明式定时任务 + AI 计划(cron/间隔/一次性)+ 三模式执行引擎 + AI 自建计划工具 + 管理页
17
+ ## Install
18
18
 
19
- 系统工具 · tags: `scheduler` · `cron` · `interval` · `ai-plan` · `declarative`
19
+ Bundled with **aiti-agent** (`@aiti-ai/pi-web`) — enable it from the in-app extension manager (ExtMan / App Center).
20
20
 
21
- ## Positioning (English)
21
+ Manual install: place this package at `~/.pi/web/extensions/aiti-ai-schedule/` and reload pi-web.
22
22
 
23
- pi-web resident scheduler — extension declarative scheduled tasks + AI plans (cron/interval/one-shot) + three-mode execution engine + AI self-service plan tool + management page
23
+ ## Documentation
24
24
 
25
- ## 安装 / 部署
26
-
27
- ```bash
28
- # 内置于 pi-web 扩展目录,随 pi-web 启动;门控见下方「门控与部署」
29
- ```
30
-
31
- ## 文档 · Documentation
32
-
33
- - 中文完整文档(aiti-docs): <https://aiti.pw/extensions/aiti-ai-schedule.html>
34
- - English docs: <https://aiti.pw/en/extensions/aiti-ai-schedule.html>
35
- - 扩展注册表 / registry: <https://aiti.pw/extensions.html> · machine-readable <https://aiti.pw/extensions.json>
25
+ - Documentation (English): <https://aiti.pw/en/extensions/aiti-ai-schedule.html>
26
+ - 文档(中文): <https://aiti.pw/extensions/aiti-ai-schedule.html>
27
+ - Extension registry: <https://aiti.pw/extensions.html> · machine-readable <https://aiti.pw/extensions.json>
36
28
 
37
29
  ## License
38
30
 
@@ -0,0 +1,31 @@
1
+ # @aiti-ai/aiti-ai-schedule
2
+
3
+ > pi-web 常驻调度器 —— 扩展声明式定时任务 + AI 计划(cron/间隔/一次性)+ 三模式执行引擎 + AI 自建计划工具 + 管理页
4
+
5
+ [English](./README.md) · 简体中文
6
+
7
+ ## 关于 aiti
8
+
9
+ 本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/pi-web) 构建,浏览器为主操作面)+ 各开发工具内的调试注入(aiti-devtools)+ 丰富的扩展体系。
10
+
11
+ - 工作台(aiti-agent,基于 pi-web): <https://github.com/aiti-ai/pi-web>
12
+ - 生态仓库: <https://github.com/aiti-ai/aiti-ai>
13
+ - 官网: <https://aiti.pw>
14
+
15
+ 分类: 系统工具 · tags: `scheduler` · `cron` · `interval` · `ai-plan` · `declarative`
16
+
17
+ ## 安装
18
+
19
+ 随 **aiti-agent**(`@aiti-ai/pi-web`)捆绑发行——在工作台内的扩展管理器(ExtMan / 应用中心)启用即可。
20
+
21
+ 手动安装:把本包放到 `~/.pi/web/extensions/aiti-ai-schedule/` 后 reload。
22
+
23
+ ## 文档
24
+
25
+ - 中文文档: <https://aiti.pw/extensions/aiti-ai-schedule.html>
26
+ - Documentation (English): <https://aiti.pw/en/extensions/aiti-ai-schedule.html>
27
+ - 扩展注册表: <https://aiti.pw/extensions.html> · machine-readable <https://aiti.pw/extensions.json>
28
+
29
+ ## 许可证
30
+
31
+ MIT
@@ -4,9 +4,10 @@
4
4
  * 插槽:toolbar(⏰ 线图按钮入口)+ pages(弹窗面板,data-ext-float 规范)。
5
5
  * 委托入口:window.__aitiAiScheduleOpen(prefill?) —— prompt 收藏/cmd 行内 ⏰ 调起预填新建。
6
6
  */
7
- import { __setCtx } from "./host-shim";
7
+ import { __setCtx, t } from "./host-shim";
8
8
  import { SchedulePageSlot, ScheduleDockRight, ScheduleDockSidebar, SCHED_KEY } from "./schedule-app";
9
9
  import { seedDockDefault, sidebarZoneOf, declareDockZones, presentState, present } from "../../../_shared/ext-float-dock";
10
+ import { dockIconDecl } from "../../../_shared/dock-icons";
10
11
 
11
12
  const OPEN_EVENT = "aiti-ai-schedule:open";
12
13
  function requestOpen(prefill?: Record<string, unknown>) {
@@ -31,7 +32,7 @@ export default function register(ctx: Record<string, any>) {
31
32
 
32
33
  function ToolbarButton() {
33
34
  return (
34
- <button type="button" title="调度:定时任务与计划管理" onClick={() => requestOpen()}
35
+ <button type="button" title={t("sh.app.title")} onClick={() => requestOpen()}
35
36
  onMouseEnter={(e) => { e.currentTarget.style.color = "var(--text)"; }}
36
37
  onMouseLeave={(e) => { e.currentTarget.style.color = "var(--text-muted)"; }}
37
38
  style={{ display: "flex", alignItems: "center", justifyContent: "center", width: 36, height: 36, padding: 0, background: "none", borderTop: "none", borderRight: "1px solid var(--border)", color: "var(--text-muted)", cursor: "pointer", flexShrink: 0 }}>
@@ -50,13 +51,13 @@ export default function register(ctx: Record<string, any>) {
50
51
  ctx.registerItems?.("toolbar", [{
51
52
  id: "aiti-ai-schedule-open",
52
53
  meta: {
53
- label: "调度",
54
- title: "调度:定时任务与计划管理",
54
+ label: "i18n:sh.app.label",
55
+ title: "i18n:sh.app.title",
55
56
  icon: "icons/clock.svg",
56
57
  onClick: () => requestOpen(),
57
58
  },
58
59
  }]);
59
- ctx.registerItems?.("pages", [{ id: "aiti-ai-schedule-page", render: SchedulePageSlot, meta: { label: "调度" } }]);
60
+ ctx.registerItems?.("pages", [{ id: "aiti-ai-schedule-page", render: SchedulePageSlot, meta: { label: "i18n:sh.app.label" } }]);
60
61
  // aiti-float dock v3(P3 批)+ v4 对齐分组:任务(定时任务,用户拍板 2026-09-16 区块名就叫「任务」)=核心区块,默认位=左栏区块(上对齐组,
61
62
  // priority 1 紧随项目);右栏 tab 保留为可选位。老用户已存的 dockpref(旧默认 right-panel)
62
63
  // 不被覆盖(seed 只填缺席)——由 session-manager 编排器显式 dock 一次性迁入左栏。
@@ -64,9 +65,9 @@ export default function register(ctx: Record<string, any>) {
64
65
  // zones 全集注册(v3.1):TabBar 页签/浮窗 ⇱ 位置菜单的数据源——face 未挂载
65
66
  // (右栏 tab 后台态)时菜单只能靠这里;浮窗壳另带 DOM 属性兑底。
66
67
  declareDockZones(SCHED_KEY, [sidebarZoneOf(SCHED_KEY), "right-panel"], sidebarZoneOf(SCHED_KEY));
67
- ctx.registerItems?.("rightFileDock", [{ id: "panel", render: ScheduleDockRight, meta: { title: "调度" } }]);
68
+ ctx.registerItems?.("rightFileDock", [{ id: "panel", render: ScheduleDockRight, meta: { title: "i18n:sh.app.label", icon: dockIconDecl("clock") } }]);
68
69
  // 展开高度策略在 face 层(schedule-app 嵌入态 maxHeight 55vh + body 内部滚动)——
69
70
  // cell 级 maxHeightPct 百分比在互斥折叠后的 auto 高 wrapper 里解析不了,不传。
70
- ctx.registerItems?.("sidebarExplorerDock", [{ id: "panel", render: ScheduleDockSidebar, meta: { title: "任务", priority: 1, align: "top" } }]);
71
+ ctx.registerItems?.("sidebarExplorerDock", [{ id: "panel", render: ScheduleDockSidebar, meta: { title: "i18n:sb.tasks", priority: 1, align: "top" } }]);
71
72
  try { console.log("[aiti-ai-schedule] 管理弹窗已挂载(toolbar ⏰ 入口 → pages 弹窗)"); } catch { /* noop */ }
72
73
  }