@webx-ui/module-tasks 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/ProjectDialog.d.ts +8 -0
- package/dist/ProjectsPage.d.ts +7 -0
- package/dist/TaskFormPage.d.ts +9 -0
- package/dist/TaskPage.d.ts +8 -0
- package/dist/TasksMarkdown.d.ts +6 -0
- package/dist/TasksPage.d.ts +7 -0
- package/dist/TasksSettingsPage.d.ts +7 -0
- package/dist/TasksTextDialog.d.ts +17 -0
- package/dist/api.d.ts +29 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1753 -0
- package/dist/index.js.map +1 -0
- package/dist/messages.d.ts +8 -0
- package/dist/module.d.ts +13 -0
- package/dist/style.css +1 -0
- package/dist/tones.d.ts +10 -0
- package/dist/types.d.ts +116 -0
- package/package.json +62 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 webx-ui
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @webx-ui/module-tasks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The «Tasks» section of the [WebX UI](https://github.com/webx-ui/webx-ui) admin panel: a queue of
|
|
4
|
+
work between people and AI agents. The list of tasks with its views («Waiting for me», «In work»,
|
|
5
|
+
drafts, closed), one task with its specification, its stages and their reports, the buttons a
|
|
6
|
+
reviewer and a planner press (accept, send back, answer a question, release, cancel) and the
|
|
7
|
+
journal; the form of a task — the described screen `tasks.form` — and the projects.
|
|
8
|
+
|
|
9
|
+
The server half is the Composer package `webx-ui/module-tasks`; agents work the queue over its MCP
|
|
10
|
+
tools.
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { createAdmin } from '@webx-ui/module-admin'
|
|
14
|
+
import { tasks } from '@webx-ui/module-tasks'
|
|
15
|
+
import '@webx-ui/module-tasks/style.css'
|
|
16
|
+
|
|
17
|
+
createAdmin({ modules: [tasks()] })
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Beside the menu entry the panel shows how many tasks wait for a person — a stage to review, or an
|
|
21
|
+
agent's question — when the signed-in administrator can act on them.
|
|
22
|
+
|
|
23
|
+
MIT.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Project } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
project?: Project | null;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
project: Project | null;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
base?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
base: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: number | null;
|
|
3
|
+
base?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
id: number | null;
|
|
7
|
+
base: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id: number;
|
|
3
|
+
base?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
base: string;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
source: string | null | undefined;
|
|
3
|
+
empty?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
base?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
base: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
base?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
base: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
label: string;
|
|
4
|
+
confirmText: string;
|
|
5
|
+
cancelText: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
danger?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
required: boolean;
|
|
12
|
+
danger: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
form: HTMLFormElement;
|
|
16
|
+
}, any>;
|
|
17
|
+
export default _default;
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdminContext } from '@webx-ui/module-admin';
|
|
2
|
+
import { NotificationSettings, Project, ProjectInput, TaskDetail, TaskInput, TaskQuery, TasksPage } from './types';
|
|
3
|
+
export interface TasksApi {
|
|
4
|
+
projects(): Promise<Project[]>;
|
|
5
|
+
createProject(input: ProjectInput): Promise<Project>;
|
|
6
|
+
saveProject(id: number, input: ProjectInput): Promise<Project>;
|
|
7
|
+
/** A page of tasks under a view, with the count of every view. */
|
|
8
|
+
tasks(query?: TaskQuery): Promise<TasksPage>;
|
|
9
|
+
task(id: number): Promise<TaskDetail>;
|
|
10
|
+
/** A draft with its stages. */
|
|
11
|
+
create(input: TaskInput): Promise<TaskDetail>;
|
|
12
|
+
/** Within the rules of §3: refused with 409 and the reason when the task has started. */
|
|
13
|
+
save(id: number, input: TaskInput): Promise<TaskDetail>;
|
|
14
|
+
ready(id: number): Promise<TaskDetail>;
|
|
15
|
+
cancel(id: number, reason?: string): Promise<TaskDetail>;
|
|
16
|
+
comment(id: number, body: string, stageId?: number | null): Promise<TaskDetail>;
|
|
17
|
+
accept(stage: number, note?: string): Promise<TaskDetail>;
|
|
18
|
+
rework(stage: number, remarks: string): Promise<TaskDetail>;
|
|
19
|
+
unblock(stage: number, answer: string): Promise<TaskDetail>;
|
|
20
|
+
release(stage: number, reason?: string): Promise<TaskDetail>;
|
|
21
|
+
cancelStage(stage: number, reason?: string): Promise<TaskDetail>;
|
|
22
|
+
/** The notification settings; the bot token only as whether one is set. */
|
|
23
|
+
settings(): Promise<NotificationSettings>;
|
|
24
|
+
saveSettings(values: Record<string, unknown>, forgetToken?: boolean): Promise<NotificationSettings>;
|
|
25
|
+
/** Sends one message now; refused with 409 and Telegram's own words when it does not get through. */
|
|
26
|
+
testNotice(): Promise<string>;
|
|
27
|
+
}
|
|
28
|
+
/** The queue's endpoints under the panel's API path; every change answers the whole task. */
|
|
29
|
+
export declare function createTasksApi(admin: AdminContext): TasksApi;
|
package/dist/i18n.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { tasks, type TasksOptions } from './module';
|
|
2
|
+
export { createTasksApi, type TasksApi } from './api';
|
|
3
|
+
export { tasksMessages } from './messages';
|
|
4
|
+
export { default as WxTasksPage } from './TasksPage';
|
|
5
|
+
export { default as WxTaskPage } from './TaskPage';
|
|
6
|
+
export { default as WxTaskFormPage } from './TaskFormPage';
|
|
7
|
+
export { default as WxTasksProjectsPage } from './ProjectsPage';
|
|
8
|
+
export { default as WxTasksSettingsPage } from './TasksSettingsPage';
|
|
9
|
+
export type { CurrentStage, JournalEntry, JournalKind, NotificationSettings, Priority, Project, ProjectInput, ReviewMode, Stage, StageInput, StageStatus, TaskDetail, TaskInput, TaskQuery, TaskRow, TasksPage, TaskStatus, TaskView, } from './types';
|