Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ temp/
pods/workspace/init/
pods/workspace/init-scripts/

# Local QA artifacts (screen recordings, etc.)
qa-artifacts/

# Logs
*.log
npm-debug.log*
Expand Down
33 changes: 33 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions models/ai-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"@hcengineering/core": "workspace:^0.7.24",
"@hcengineering/model": "workspace:^0.7.17",
"@hcengineering/model-core": "workspace:^0.7.0",
"@hcengineering/model-view": "workspace:^0.7.0",
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/setting": "workspace:^0.7.0",
"@hcengineering/ui": "workspace:^0.7.0"
}
}
17 changes: 15 additions & 2 deletions models/ai-bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,25 @@
// limitations under the License.
//

import { AccountRole } from '@hcengineering/core'
import { type Builder } from '@hcengineering/model'

import core from '@hcengineering/model-core'
import view from '@hcengineering/model-view'
import setting from '@hcengineering/setting'
import aiBot from './plugin'

export { aiBotId } from '@hcengineering/ai-bot'
export { aiBotOperation } from './migration'
export default aiBot

export function createModel (builder: Builder): void {}
export function createModel (builder: Builder): void {
builder.createDoc(setting.class.WorkspaceSettingCategory, core.space.Model, {
name: 'agent-missions',
label: aiBot.string.AgentMissions,
icon: view.icon.Settings,
component: aiBot.component.AgentMissions,
group: 'settings-editor',
role: AccountRole.Maintainer,
order: 880
})
}
16 changes: 14 additions & 2 deletions models/ai-bot/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@
// limitations under the License.
//

import { mergeIds } from '@hcengineering/platform'
import { type IntlString, mergeIds } from '@hcengineering/platform'
import aiBot, { aiBotId } from '@hcengineering/ai-bot'

export default mergeIds(aiBotId, aiBot, {})
export default mergeIds(aiBotId, aiBot, {
string: {
AgentMissions: 'Agent Missions' as IntlString,
RunAgentMission: 'Run Agent Mission' as IntlString,
AgentProfiles: 'Agents' as IntlString,
ExecutorResources: 'Executors' as IntlString,
Channels: 'Channels' as IntlString,
TelegramConnected: 'Telegram: connected' as IntlString,
TelegramNotConnected: 'Telegram: not connected' as IntlString,
SlackPlanned: 'Slack: planned' as IntlString,
DiscordPlanned: 'Discord: planned' as IntlString
}
})
1 change: 1 addition & 0 deletions models/tracker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"ts-jest": "^29.1.1"
},
"dependencies": {
"@hcengineering/ai-bot": "workspace:^0.7.0",
"@hcengineering/activity": "workspace:^0.7.0",
"@hcengineering/chunter": "workspace:^0.7.0",
"@hcengineering/contact": "workspace:^0.7.0",
Expand Down
52 changes: 52 additions & 0 deletions models/tracker/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { type KeyBinding } from '@hcengineering/view'
import tracker from './plugin'

import tags from '@hcengineering/tags'
import aiBot from '@hcengineering/ai-bot'
import { defaultPriorities, issuePriorities } from '@hcengineering/tracker-resources/src/types'

function createGotoSpecialAction (
Expand Down Expand Up @@ -769,4 +770,55 @@ export function createActions (builder: Builder, issuesId: string, componentsId:
},
tracker.action.EditRelatedTargets
)

createAction(
builder,
{
action: view.actionImpl.ShowPopup,
actionProps: {
component: aiBot.component.RunMissionPopup,
element: 'top',
fillProps: {
_id: 'taskId',
space: 'projectId'
}
},
label: aiBot.string.RunAgentMission,
icon: view.icon.Settings,
input: 'focus',
category: tracker.category.Tracker,
target: tracker.class.Issue,
context: {
mode: ['context', 'browser'],
application: tracker.app.Tracker,
group: 'tools'
}
},
tracker.action.RunAgentMissionOnIssue
)

createAction(
builder,
{
action: view.actionImpl.ShowPopup,
actionProps: {
component: aiBot.component.RunMissionPopup,
element: 'top',
fillProps: {
_id: 'projectId'
}
},
label: aiBot.string.RunAgentMission,
icon: view.icon.Settings,
input: 'focus',
category: tracker.category.Tracker,
target: tracker.class.Project,
context: {
mode: ['context', 'browser'],
application: tracker.app.Tracker,
group: 'tools'
}
},
tracker.action.RunAgentMissionOnProject
)
}
2 changes: 2 additions & 0 deletions plugins/ai-bot-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"@hcengineering/presentation": "workspace:^0.7.0",
"@hcengineering/contact": "workspace:^0.7.0",
"@hcengineering/contact-resources": "workspace:^0.7.0",
"@hcengineering/setting": "workspace:^0.7.0",
"@hcengineering/tracker": "workspace:^0.7.0",
"@hcengineering/ui": "workspace:^0.7.0",
"svelte": "^4.2.20"
}
Expand Down
Loading