wowok_agent 0.1.3 → 0.1.4

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": "wowok_agent",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -8,6 +8,7 @@ import { CallBase, CallResult } from "./base";
8
8
  export interface CallArbitration_Data {
9
9
  object?: string; // undefined for creating a new object
10
10
  permission?: string;
11
+
11
12
  type_parameter?: string;
12
13
  permission_new?: string;
13
14
  description?: string;
package/src/call/guard.ts CHANGED
@@ -64,7 +64,6 @@ export class CallGuard extends CallBase {
64
64
  const bytes = (concatenate(Uint8Array, ...output) as Uint8Array);
65
65
  const txb = new TransactionBlock();
66
66
 
67
- console.log(bytes)
68
67
  const obj = txb.moveCall({
69
68
  target: Protocol.Instance().guardFn('new') as FnCallType,
70
69
  arguments: [txb.pure.string(this.data.description), txb.pure.vector('u8', [].slice.call(bytes.reverse()))],
@@ -106,13 +105,11 @@ export class CallGuard extends CallBase {
106
105
  const buildNode = (guard_node:GuardNode, type_required:ValueType | 'number' | 'variable', table:GuardConst[], output:Uint8Array[]) => {
107
106
  const node: any = guard_node as any;
108
107
  if (node?.identifier !== undefined) {
109
- console.log(node)
110
108
  const f = table.find(v=>v.identifier === node.identifier);
111
109
  if (f) {
112
110
  checkType(f.value_type, type_required, node);
113
111
  output.push(Bcs.getInstance().ser(ValueType.TYPE_U8, ContextType.TYPE_CONSTANT));
114
112
  output.push(Bcs.getInstance().ser(ValueType.TYPE_U8, node.identifier))
115
- console.log(2)
116
113
  } else {
117
114
  ERROR(Errors.InvalidParam, 'node identifier - ' + node.toString());
118
115
  }
@@ -16,7 +16,7 @@ export interface CallPersonal_Data {
16
16
  close?: boolean; // close a personal resource
17
17
  }
18
18
 
19
- export class CallEntity extends CallBase {
19
+ export class CallPersonal extends CallBase {
20
20
  data: CallPersonal_Data;
21
21
  constructor(data: CallPersonal_Data) {
22
22
  super();
package/src/index.ts CHANGED
@@ -12,4 +12,6 @@ export * from './call/machine'
12
12
  export * from './call/repository'
13
13
  export * from './call/service'
14
14
  export * from './call/guard'
15
+ export * from './call/personal'
15
16
  export * from './account'
17
+ export * from './call'