@nuxtagentic/automations 0.1.1 → 0.1.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtagentic/automations",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"module.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./runtime/*": "./runtime/*.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudconfig/core": "0.2.0-beta.
|
|
29
|
+
"@cloudconfig/core": "0.2.0-beta.6",
|
|
30
30
|
"@nuxt/kit": "4.6.1",
|
|
31
31
|
"@nuxt/ui": "^4.11.1",
|
|
32
32
|
"@cloudflare/workers-types": "5.20261015.1",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"cron-parser": "^5.10.1",
|
|
35
35
|
"h3": "1.15.11",
|
|
36
36
|
"vue-router": "^5.4.0",
|
|
37
|
-
"@nuxtagentic/
|
|
38
|
-
"@nuxtagentic/workspace": "0.1.
|
|
39
|
-
"@nuxtagentic/
|
|
40
|
-
"@nuxtagentic/
|
|
41
|
-
"@nuxtagentic/
|
|
42
|
-
"@nuxtagentic/
|
|
43
|
-
"@nuxtagentic/google": "0.1.
|
|
37
|
+
"@nuxtagentic/integrations": "0.1.2",
|
|
38
|
+
"@nuxtagentic/workspace": "0.1.2",
|
|
39
|
+
"@nuxtagentic/agents": "0.1.2",
|
|
40
|
+
"@nuxtagentic/kit": "0.1.2",
|
|
41
|
+
"@nuxtagentic/identity": "0.1.2",
|
|
42
|
+
"@nuxtagentic/prompt": "0.1.2",
|
|
43
|
+
"@nuxtagentic/google": "0.1.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"nuxt": "^4.6.1",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { getStatusColor, type DisplayStatus } from '../shared/automation-run'
|
|
4
4
|
|
|
5
|
-
const { status } = defineProps<{ status?: DisplayStatus }>()
|
|
5
|
+
const { status = undefined } = defineProps<{ status?: DisplayStatus }>()
|
|
6
6
|
const path = computed(() => {
|
|
7
7
|
switch (status) {
|
|
8
8
|
case 'running':
|
|
@@ -50,10 +50,10 @@ export default defineEventHandler(async (event) => {
|
|
|
50
50
|
const githubEvent = getHeader(event, 'X-GitHub-Event')
|
|
51
51
|
const name = githubEvent
|
|
52
52
|
? catalogTrigger(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
'github',
|
|
54
|
+
body.action ? `${githubEvent}.${String(body.action)}` : githubEvent,
|
|
55
|
+
body,
|
|
56
|
+
)
|
|
57
57
|
: String(body.event ?? '')
|
|
58
58
|
// GitHub sends every subscribed event; ignore the ones no trigger listens for.
|
|
59
59
|
if (githubEvent && !name) {
|
|
@@ -19,9 +19,9 @@ import type { AgentProviderKeys } from './agent-runner'
|
|
|
19
19
|
|
|
20
20
|
export type AutomationBackend = {
|
|
21
21
|
models: AutomationsConfig['models'] &
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
IntegrationsConfig['models'] &
|
|
23
|
+
AgentsConfig['models'] &
|
|
24
|
+
WorkspaceConfig['models']
|
|
25
25
|
}
|
|
26
26
|
export interface AutomationJob {
|
|
27
27
|
ownerId: number
|
|
@@ -25,8 +25,8 @@ import type { createJobContext, AutomationJob } from './automation-context'
|
|
|
25
25
|
import { runSavedAgent } from './agent-runner'
|
|
26
26
|
|
|
27
27
|
type Context = Awaited<ReturnType<typeof createJobContext>>
|
|
28
|
-
class PendingAutomationApproval extends Error {}
|
|
29
|
-
class InterruptedTool extends Error {}
|
|
28
|
+
class PendingAutomationApproval extends Error { }
|
|
29
|
+
class InterruptedTool extends Error { }
|
|
30
30
|
export type DurableStep = <T>(name: string, callback: () => Promise<T>) => Promise<T>
|
|
31
31
|
export type ApprovalWait = (id: number) => Promise<void>
|
|
32
32
|
export interface RunSnapshot {
|
|
@@ -620,8 +620,8 @@ async function outcome(
|
|
|
620
620
|
const url = new URL(target)
|
|
621
621
|
const allowed = String(
|
|
622
622
|
context.env?.NUXT_INTEGRATIONS_WEBHOOK_ORIGINS ??
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
process.env.NUXT_INTEGRATIONS_WEBHOOK_ORIGINS ??
|
|
624
|
+
'',
|
|
625
625
|
)
|
|
626
626
|
.split(',')
|
|
627
627
|
.map((entry) => entry.trim())
|