godprotocol 2.2.86 → 2.2.88

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": "godprotocol",
3
- "version": "2.2.86",
3
+ "version": "2.2.88",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -139,7 +139,7 @@ class Headers extends Services {
139
139
  return res;
140
140
  };
141
141
 
142
- validate_third_party = async (xplatform, authorization) => {
142
+ validate_third_party = async (xplatform, authorization, request) => {
143
143
  const db = await this.platform_db();
144
144
 
145
145
  const query = {
@@ -174,10 +174,16 @@ class Headers extends Services {
174
174
  headers["authorization"] = `Bearer ${authorization}`;
175
175
  }
176
176
 
177
+ // Light patch for emulator support
178
+ let hst = request.headers.host;
179
+ if (hst.startsWith("10.0.2.2")) {
180
+ hst = hst.replace("10.0.2.2", "localhost");
181
+ }
182
+
177
183
  let third_party =
178
- xplatform !== this.platform_uri &&
179
- !gp_services.profile.endsWith(request.headers.host);
180
- if (gp_services.profile.endsWith(request.headers.host)) {
184
+ xplatform !== this.platform_uri && !gp_services.profile.endsWith(hst);
185
+
186
+ if (gp_services.profile.endsWith(hst)) {
181
187
  headers["x-platform"] = xplatform;
182
188
  }
183
189
 
@@ -247,6 +253,7 @@ class Headers extends Services {
247
253
  val = await this.validate_third_party(
248
254
  xplatform || this.platform_uri,
249
255
  authorisation,
256
+ request,
250
257
  );
251
258
  } else if (route.config.security?.includes("api_key")) {
252
259
  val = await this.validate_api_key(api_key, authorisation);
@@ -1,5 +0,0 @@
1
- Create platform,
2
-
3
- Register it to arena, adding its permissions.
4
-
5
- Use arena to signup your users.
@@ -1,20 +0,0 @@
1
- Storyline,
2
-
3
- Assistant recieves a prompt.
4
-
5
- It thinks it through, into type, and if type is activity, it determines the activity tool.
6
- (This is a thought action, meaning it does not carry personality, it just takes memory and reasoning.)
7
-
8
- Next stage is that it tries to resolve the selection arguments.
9
- If tool or what have you, it uses memory, context argument and prompt to determine what information it can already put together to resolve the selected.
10
- (This is the second thought action it carries out. They are thought actions because they are simply the agent reasoning within itself. And the world watching for an output / action it would come with.)
11
-
12
- Once, all that is done, it sends its action to the tool service aka it simply calls the tool service. It meta information is included in the call. Such as the conversation_id
13
-
14
- // At the tool service end.
15
-
16
- When it handles the endpoint, What ever solution it gets, it returns an agent, which is just a profile. i.e the handling profile.
17
-
18
- When godprotocol sees a response includes an agent property,
19
- it calls the agency service response endpoint, adding the handler payload to the call, and the conversation_id provided.
20
- Of course the platform i.e tool service must have third party authenticated the agent from them to the agent's own agency profile.
@@ -1,34 +0,0 @@
1
- The Story Board.
2
-
3
- First entry is the new_message endpoint.
4
-
5
- The user sends a message to that endpoint,
6
- if a conversation is provided, we retrieve the conversation.
7
-
8
- If not a conversation is provided, we infer one.
9
- A conversation is simply an activity (aka tool) discussion.
10
-
11
- There are three conversation kinds - activity (tools), feedback (preferences statements and corrections), pleasantry (small talks).
12
-
13
- If activity, we include tool_id, and args.
14
- If feedback, we include tool_id.
15
- if pleasantry, not much,
16
-
17
- Conversations also includes a spawn object, which is a {conversation, message} \_ids.
18
-
19
- =================
20
-
21
- Next is new_message,
22
- So a message is sent.
23
-
24
- We determine what categories the message is about.
25
- Categories are - argument_resolution, new_conversation, abandon_conversation, or feedback.
26
-
27
- First variable = m (the initiator)
28
- Second variable = c (the resolver)
29
- Third variable = x (the problem aka action)
30
-
31
- Fourth variable = y (the solution)
32
-
33
- mx + c = y
34
- (Need item)(buy item) + (seller) = (item)
@@ -1,15 +0,0 @@
1
- The flow is simple. It is thus.
2
-
3
- When you create a platform, you register it to a central platform.
4
- In this case, arena is the vote.
5
-
6
- So every single platform is registered as a third party to arena.
7
- The endpoint is able to recursively register the requesting platform under its requested permissions also.
8
-
9
- Those platforms state their dependencies aka permissions.
10
-
11
- Which arena would also have in its third parties.
12
-
13
- When those platforms want to register new profiles,
14
- they use the third_party endpoints of (signin, and signup)
15
-
@@ -1,8 +0,0 @@
1
- When you send a message first ->
2
-
3
- Question, does the system start with a message sent in?
4
- Or the architectural arrangement of profiles.
5
-
6
-
7
- And if message first, then how does it flow conversationally.
8
-
@@ -1,5 +0,0 @@
1
- const Modelconfig = {
2
- drivers: [],
3
- animations: [],
4
- geometry: [],
5
- }