@fencyai/react 0.1.216 → 0.1.217
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/dist/hooks/useAgentTasks/index.d.ts.map +1 -1
- package/dist/hooks/useAgentTasks/useActionRuntime.d.ts +6 -2
- package/dist/hooks/useAgentTasks/useActionRuntime.d.ts.map +1 -1
- package/dist/index.js +1831 -1802
- package/dist/types/UseAgentTasksProps.d.ts +7 -10
- package/dist/types/UseAgentTasksProps.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentTasks/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentTasks/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAsCnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,KAAG,aA4ZzD,CAAA"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ActionMap, AgentTaskProgressItemUpdated } from '@fencyai/js';
|
|
2
2
|
import { FetchPendingApprovals, FetchSubmitManualActionResultClientToken, PendingApproval } from '../../types/PendingApproval';
|
|
3
|
+
export type TaskBindings = {
|
|
4
|
+
actions?: ActionMap;
|
|
5
|
+
context?: () => Record<string, unknown>;
|
|
6
|
+
};
|
|
3
7
|
export type ActionRuntime = {
|
|
4
8
|
pendingApprovals: PendingApproval[];
|
|
5
9
|
/** Call for every progress item; ignores anything that is not an ExploreProduct action event. */
|
|
6
10
|
handleProgressItem: (item: AgentTaskProgressItemUpdated) => void;
|
|
7
|
-
/** Registers the credentials
|
|
8
|
-
registerTask: (agentTaskId: string, autoActionResultToken?: string) => void;
|
|
11
|
+
/** Registers the credentials and this turn's action/context maps. */
|
|
12
|
+
registerTask: (agentTaskId: string, autoActionResultToken?: string, bindings?: TaskBindings) => void;
|
|
9
13
|
forgetTask: (agentTaskId: string) => void;
|
|
10
14
|
};
|
|
11
15
|
export declare function useActionRuntime(params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionRuntime.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentTasks/useActionRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,KAAK,SAAS,EACd,KAAK,4BAA4B,EAGpC,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EACR,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EAElB,MAAM,6BAA6B,CAAA;AA6BpC,MAAM,MAAM,aAAa,GAAG;IACxB,gBAAgB,EAAE,eAAe,EAAE,CAAA;IACnC,iGAAiG;IACjG,kBAAkB,EAAE,CAAC,IAAI,EAAE,4BAA4B,KAAK,IAAI,CAAA;IAChE,
|
|
1
|
+
{"version":3,"file":"useActionRuntime.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentTasks/useActionRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,KAAK,SAAS,EACd,KAAK,4BAA4B,EAGpC,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EACR,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EAElB,MAAM,6BAA6B,CAAA;AA6BpC,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,gBAAgB,EAAE,eAAe,EAAE,CAAA;IACnC,iGAAiG;IACjG,kBAAkB,EAAE,CAAC,IAAI,EAAE,4BAA4B,KAAK,IAAI,CAAA;IAChE,qEAAqE;IACrE,YAAY,EAAE,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