@coasys/ad4m 0.10.1-release-candidate-4-debug-strings → 0.10.1-release-candidate-4-debug-strings-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/lib/index.cjs +23 -18
- package/lib/index.js +23 -18
- package/lib/src/perspectives/PerspectiveHandle.d.ts +6 -6
- package/lib/src/perspectives/PerspectiveHandle.js +6 -6
- package/lib/src/runtime/RuntimeClient.d.ts +4 -4
- package/lib/src/runtime/RuntimeClient.js +6 -6
- package/lib/src/runtime/RuntimeResolver.d.ts +5 -5
- package/lib/src/runtime/RuntimeResolver.js +10 -5
- package/lib/src/schema.gql +2 -2
- package/lib/src/typeDefs.js +2 -2
- package/package.json +2 -1
- package/src/perspectives/PerspectiveHandle.ts +6 -6
- package/src/runtime/RuntimeClient.ts +9 -9
- package/src/runtime/RuntimeResolver.ts +12 -7
package/lib/index.cjs
CHANGED
|
@@ -7196,17 +7196,17 @@ class RuntimeClient {
|
|
|
7196
7196
|
}));
|
|
7197
7197
|
return runtimeGetNetworkMetrics;
|
|
7198
7198
|
}
|
|
7199
|
-
async debugStrings(
|
|
7199
|
+
async debugStrings(languageAddress) {
|
|
7200
7200
|
const { runtimeDebugStrings } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").query({
|
|
7201
|
-
query: gql `query runtimeDebugStrings($
|
|
7202
|
-
runtimeDebugStrings(
|
|
7203
|
-
|
|
7204
|
-
debugString
|
|
7201
|
+
query: gql `query runtimeDebugStrings($languageAddress: String) {
|
|
7202
|
+
runtimeDebugStrings(languageAddress: $languageAddress) {
|
|
7203
|
+
languageAddress
|
|
7205
7204
|
operation
|
|
7205
|
+
debugString
|
|
7206
7206
|
timestamp
|
|
7207
7207
|
}
|
|
7208
7208
|
}`,
|
|
7209
|
-
variables: {
|
|
7209
|
+
variables: { languageAddress }
|
|
7210
7210
|
}));
|
|
7211
7211
|
return runtimeDebugStrings;
|
|
7212
7212
|
}
|
|
@@ -15461,12 +15461,12 @@ var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
|
|
|
15461
15461
|
};
|
|
15462
15462
|
exports.PerspectiveState = void 0;
|
|
15463
15463
|
(function (PerspectiveState) {
|
|
15464
|
-
PerspectiveState["Private"] = "
|
|
15465
|
-
PerspectiveState["NeighboudhoodCreationInitiated"] = "
|
|
15466
|
-
PerspectiveState["NeighbourhoodJoinInitiated"] = "
|
|
15467
|
-
PerspectiveState["LinkLanguageFailedToInstall"] = "
|
|
15468
|
-
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "
|
|
15469
|
-
PerspectiveState["Synced"] = "
|
|
15464
|
+
PerspectiveState["Private"] = "Private";
|
|
15465
|
+
PerspectiveState["NeighboudhoodCreationInitiated"] = "NeighboudhoodCreationInitiated";
|
|
15466
|
+
PerspectiveState["NeighbourhoodJoinInitiated"] = "NeighbourhoodJoinInitiated";
|
|
15467
|
+
PerspectiveState["LinkLanguageFailedToInstall"] = "LinkLanguageFailedToInstall";
|
|
15468
|
+
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "LinkLanguageInstalledButNotSynced";
|
|
15469
|
+
PerspectiveState["Synced"] = "Synced";
|
|
15470
15470
|
})(exports.PerspectiveState || (exports.PerspectiveState = {}));
|
|
15471
15471
|
// This type is used in the GraphQL interface to reference a mutable
|
|
15472
15472
|
// prespective that is implemented locally by the Ad4m runtime.
|
|
@@ -16385,7 +16385,7 @@ scalar DateTime
|
|
|
16385
16385
|
|
|
16386
16386
|
type DebugStringEntry {
|
|
16387
16387
|
debugString: String!
|
|
16388
|
-
|
|
16388
|
+
languageAddress: String!
|
|
16389
16389
|
operation: String!
|
|
16390
16390
|
timestamp: String!
|
|
16391
16391
|
}
|
|
@@ -16766,7 +16766,7 @@ type Query {
|
|
|
16766
16766
|
perspectiveQueryProlog(query: String!, uuid: String!): String!
|
|
16767
16767
|
perspectiveSnapshot(uuid: String!): Perspective
|
|
16768
16768
|
perspectives: [PerspectiveHandle!]!
|
|
16769
|
-
runtimeDebugStrings(
|
|
16769
|
+
runtimeDebugStrings(languageAddress: String): [DebugStringEntry!]!
|
|
16770
16770
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
16771
16771
|
runtimeFriends: [String!]!
|
|
16772
16772
|
runtimeGetNetworkMetrics: String!
|
|
@@ -17061,7 +17061,7 @@ exports.DebugStringEntry = class DebugStringEntry {
|
|
|
17061
17061
|
__decorate([
|
|
17062
17062
|
Field(),
|
|
17063
17063
|
__metadata("design:type", String)
|
|
17064
|
-
], exports.DebugStringEntry.prototype, "
|
|
17064
|
+
], exports.DebugStringEntry.prototype, "languageAddress", void 0);
|
|
17065
17065
|
__decorate([
|
|
17066
17066
|
Field(),
|
|
17067
17067
|
__metadata("design:type", String)
|
|
@@ -17183,9 +17183,14 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
17183
17183
|
runtimeKnownLinkLanguageTemplates() {
|
|
17184
17184
|
return ["Qm12345abcdef"];
|
|
17185
17185
|
}
|
|
17186
|
-
runtimeDebugStrings(
|
|
17187
|
-
//
|
|
17188
|
-
return [
|
|
17186
|
+
runtimeDebugStrings(languageAddress) {
|
|
17187
|
+
// Mock data for testing - in real implementation this would come from stored debug strings
|
|
17188
|
+
return [{
|
|
17189
|
+
languageAddress: "Qm123example",
|
|
17190
|
+
debugString: "Debug string content",
|
|
17191
|
+
operation: "merge",
|
|
17192
|
+
timestamp: new Date().toISOString()
|
|
17193
|
+
}];
|
|
17189
17194
|
}
|
|
17190
17195
|
runtimeAddKnownLinkLanguageTemplates(addresses) {
|
|
17191
17196
|
return addresses;
|
package/lib/index.js
CHANGED
|
@@ -7192,17 +7192,17 @@ class RuntimeClient {
|
|
|
7192
7192
|
}));
|
|
7193
7193
|
return runtimeGetNetworkMetrics;
|
|
7194
7194
|
}
|
|
7195
|
-
async debugStrings(
|
|
7195
|
+
async debugStrings(languageAddress) {
|
|
7196
7196
|
const { runtimeDebugStrings } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").query({
|
|
7197
|
-
query: gql `query runtimeDebugStrings($
|
|
7198
|
-
runtimeDebugStrings(
|
|
7199
|
-
|
|
7200
|
-
debugString
|
|
7197
|
+
query: gql `query runtimeDebugStrings($languageAddress: String) {
|
|
7198
|
+
runtimeDebugStrings(languageAddress: $languageAddress) {
|
|
7199
|
+
languageAddress
|
|
7201
7200
|
operation
|
|
7201
|
+
debugString
|
|
7202
7202
|
timestamp
|
|
7203
7203
|
}
|
|
7204
7204
|
}`,
|
|
7205
|
-
variables: {
|
|
7205
|
+
variables: { languageAddress }
|
|
7206
7206
|
}));
|
|
7207
7207
|
return runtimeDebugStrings;
|
|
7208
7208
|
}
|
|
@@ -15457,12 +15457,12 @@ var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
|
|
|
15457
15457
|
};
|
|
15458
15458
|
var PerspectiveState;
|
|
15459
15459
|
(function (PerspectiveState) {
|
|
15460
|
-
PerspectiveState["Private"] = "
|
|
15461
|
-
PerspectiveState["NeighboudhoodCreationInitiated"] = "
|
|
15462
|
-
PerspectiveState["NeighbourhoodJoinInitiated"] = "
|
|
15463
|
-
PerspectiveState["LinkLanguageFailedToInstall"] = "
|
|
15464
|
-
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "
|
|
15465
|
-
PerspectiveState["Synced"] = "
|
|
15460
|
+
PerspectiveState["Private"] = "Private";
|
|
15461
|
+
PerspectiveState["NeighboudhoodCreationInitiated"] = "NeighboudhoodCreationInitiated";
|
|
15462
|
+
PerspectiveState["NeighbourhoodJoinInitiated"] = "NeighbourhoodJoinInitiated";
|
|
15463
|
+
PerspectiveState["LinkLanguageFailedToInstall"] = "LinkLanguageFailedToInstall";
|
|
15464
|
+
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "LinkLanguageInstalledButNotSynced";
|
|
15465
|
+
PerspectiveState["Synced"] = "Synced";
|
|
15466
15466
|
})(PerspectiveState || (PerspectiveState = {}));
|
|
15467
15467
|
// This type is used in the GraphQL interface to reference a mutable
|
|
15468
15468
|
// prespective that is implemented locally by the Ad4m runtime.
|
|
@@ -16381,7 +16381,7 @@ scalar DateTime
|
|
|
16381
16381
|
|
|
16382
16382
|
type DebugStringEntry {
|
|
16383
16383
|
debugString: String!
|
|
16384
|
-
|
|
16384
|
+
languageAddress: String!
|
|
16385
16385
|
operation: String!
|
|
16386
16386
|
timestamp: String!
|
|
16387
16387
|
}
|
|
@@ -16762,7 +16762,7 @@ type Query {
|
|
|
16762
16762
|
perspectiveQueryProlog(query: String!, uuid: String!): String!
|
|
16763
16763
|
perspectiveSnapshot(uuid: String!): Perspective
|
|
16764
16764
|
perspectives: [PerspectiveHandle!]!
|
|
16765
|
-
runtimeDebugStrings(
|
|
16765
|
+
runtimeDebugStrings(languageAddress: String): [DebugStringEntry!]!
|
|
16766
16766
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
16767
16767
|
runtimeFriends: [String!]!
|
|
16768
16768
|
runtimeGetNetworkMetrics: String!
|
|
@@ -17057,7 +17057,7 @@ let DebugStringEntry = class DebugStringEntry {
|
|
|
17057
17057
|
__decorate([
|
|
17058
17058
|
Field(),
|
|
17059
17059
|
__metadata("design:type", String)
|
|
17060
|
-
], DebugStringEntry.prototype, "
|
|
17060
|
+
], DebugStringEntry.prototype, "languageAddress", void 0);
|
|
17061
17061
|
__decorate([
|
|
17062
17062
|
Field(),
|
|
17063
17063
|
__metadata("design:type", String)
|
|
@@ -17179,9 +17179,14 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
17179
17179
|
runtimeKnownLinkLanguageTemplates() {
|
|
17180
17180
|
return ["Qm12345abcdef"];
|
|
17181
17181
|
}
|
|
17182
|
-
runtimeDebugStrings(
|
|
17183
|
-
//
|
|
17184
|
-
return [
|
|
17182
|
+
runtimeDebugStrings(languageAddress) {
|
|
17183
|
+
// Mock data for testing - in real implementation this would come from stored debug strings
|
|
17184
|
+
return [{
|
|
17185
|
+
languageAddress: "Qm123example",
|
|
17186
|
+
debugString: "Debug string content",
|
|
17187
|
+
operation: "merge",
|
|
17188
|
+
timestamp: new Date().toISOString()
|
|
17189
|
+
}];
|
|
17185
17190
|
}
|
|
17186
17191
|
runtimeAddKnownLinkLanguageTemplates(addresses) {
|
|
17187
17192
|
return addresses;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NeighbourhoodExpression } from "../neighbourhood/Neighbourhood";
|
|
2
2
|
export declare enum PerspectiveState {
|
|
3
|
-
Private = "
|
|
4
|
-
NeighboudhoodCreationInitiated = "
|
|
5
|
-
NeighbourhoodJoinInitiated = "
|
|
6
|
-
LinkLanguageFailedToInstall = "
|
|
7
|
-
LinkLanguageInstalledButNotSynced = "
|
|
8
|
-
Synced = "
|
|
3
|
+
Private = "Private",
|
|
4
|
+
NeighboudhoodCreationInitiated = "NeighboudhoodCreationInitiated",
|
|
5
|
+
NeighbourhoodJoinInitiated = "NeighbourhoodJoinInitiated",
|
|
6
|
+
LinkLanguageFailedToInstall = "LinkLanguageFailedToInstall",
|
|
7
|
+
LinkLanguageInstalledButNotSynced = "LinkLanguageInstalledButNotSynced",
|
|
8
|
+
Synced = "Synced"
|
|
9
9
|
}
|
|
10
10
|
export declare class PerspectiveHandle {
|
|
11
11
|
uuid: string;
|
|
@@ -11,12 +11,12 @@ import { Field, ObjectType } from "type-graphql";
|
|
|
11
11
|
import { NeighbourhoodExpression } from "../neighbourhood/Neighbourhood";
|
|
12
12
|
export var PerspectiveState;
|
|
13
13
|
(function (PerspectiveState) {
|
|
14
|
-
PerspectiveState["Private"] = "
|
|
15
|
-
PerspectiveState["NeighboudhoodCreationInitiated"] = "
|
|
16
|
-
PerspectiveState["NeighbourhoodJoinInitiated"] = "
|
|
17
|
-
PerspectiveState["LinkLanguageFailedToInstall"] = "
|
|
18
|
-
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "
|
|
19
|
-
PerspectiveState["Synced"] = "
|
|
14
|
+
PerspectiveState["Private"] = "Private";
|
|
15
|
+
PerspectiveState["NeighboudhoodCreationInitiated"] = "NeighboudhoodCreationInitiated";
|
|
16
|
+
PerspectiveState["NeighbourhoodJoinInitiated"] = "NeighbourhoodJoinInitiated";
|
|
17
|
+
PerspectiveState["LinkLanguageFailedToInstall"] = "LinkLanguageFailedToInstall";
|
|
18
|
+
PerspectiveState["LinkLanguageInstalledButNotSynced"] = "LinkLanguageInstalledButNotSynced";
|
|
19
|
+
PerspectiveState["Synced"] = "Synced";
|
|
20
20
|
})(PerspectiveState || (PerspectiveState = {}));
|
|
21
21
|
// This type is used in the GraphQL interface to reference a mutable
|
|
22
22
|
// prespective that is implemented locally by the Ad4m runtime.
|
|
@@ -20,10 +20,10 @@ export declare class RuntimeClient {
|
|
|
20
20
|
addFriends(dids: string[]): Promise<string[]>;
|
|
21
21
|
removeFriends(dids: string[]): Promise<string[]>;
|
|
22
22
|
friends(): Promise<string[]>;
|
|
23
|
-
hcAgentInfos(): Promise<
|
|
24
|
-
getNetworkMetrics(): Promise<
|
|
25
|
-
debugStrings(
|
|
26
|
-
restartHolochain(): Promise<
|
|
23
|
+
hcAgentInfos(): Promise<string>;
|
|
24
|
+
getNetworkMetrics(): Promise<string>;
|
|
25
|
+
debugStrings(languageAddress?: string): Promise<any[]>;
|
|
26
|
+
restartHolochain(): Promise<boolean>;
|
|
27
27
|
hcAddAgentInfos(agentInfos: String): Promise<void>;
|
|
28
28
|
verifyStringSignedByDid(did: string, didSigningKeyId: string, data: string, signedData: string): Promise<boolean>;
|
|
29
29
|
setStatus(perspective: Perspective): Promise<boolean>;
|
|
@@ -183,17 +183,17 @@ export class RuntimeClient {
|
|
|
183
183
|
}));
|
|
184
184
|
return runtimeGetNetworkMetrics;
|
|
185
185
|
}
|
|
186
|
-
async debugStrings(
|
|
186
|
+
async debugStrings(languageAddress) {
|
|
187
187
|
const { runtimeDebugStrings } = unwrapApolloResult(await __classPrivateFieldGet(this, _RuntimeClient_apolloClient, "f").query({
|
|
188
|
-
query: gql `query runtimeDebugStrings($
|
|
189
|
-
runtimeDebugStrings(
|
|
190
|
-
|
|
191
|
-
debugString
|
|
188
|
+
query: gql `query runtimeDebugStrings($languageAddress: String) {
|
|
189
|
+
runtimeDebugStrings(languageAddress: $languageAddress) {
|
|
190
|
+
languageAddress
|
|
192
191
|
operation
|
|
192
|
+
debugString
|
|
193
193
|
timestamp
|
|
194
194
|
}
|
|
195
195
|
}`,
|
|
196
|
-
variables: {
|
|
196
|
+
variables: { languageAddress }
|
|
197
197
|
}));
|
|
198
198
|
return runtimeDebugStrings;
|
|
199
199
|
}
|
|
@@ -43,7 +43,7 @@ export declare class TriggeredNotification {
|
|
|
43
43
|
triggerMatch: string;
|
|
44
44
|
}
|
|
45
45
|
export declare class DebugStringEntry {
|
|
46
|
-
|
|
46
|
+
languageAddress: string;
|
|
47
47
|
debugString: string;
|
|
48
48
|
operation: string;
|
|
49
49
|
timestamp: string;
|
|
@@ -82,15 +82,15 @@ export default class RuntimeResolver {
|
|
|
82
82
|
deleteTrustedAgents(agents: string[]): string[];
|
|
83
83
|
getTrustedAgents(): string[];
|
|
84
84
|
runtimeKnownLinkLanguageTemplates(): string[];
|
|
85
|
-
runtimeDebugStrings(
|
|
85
|
+
runtimeDebugStrings(languageAddress?: string): DebugStringEntry[];
|
|
86
86
|
runtimeAddKnownLinkLanguageTemplates(addresses: string[]): string[];
|
|
87
87
|
runtimeRemoveKnownLinkLanguageTemplates(addresses: string[]): string[];
|
|
88
88
|
runtimeFriends(): string[];
|
|
89
89
|
runtimeAddFriends(dids: string[]): string[];
|
|
90
90
|
runtimeRemoveFriends(dids: string[]): string[];
|
|
91
|
-
runtimeHcAgentInfos():
|
|
92
|
-
runtimeGetNetworkMetrics():
|
|
93
|
-
runtimeRestartHolochain():
|
|
91
|
+
runtimeHcAgentInfos(): string;
|
|
92
|
+
runtimeGetNetworkMetrics(): string;
|
|
93
|
+
runtimeRestartHolochain(): boolean;
|
|
94
94
|
runtimeHcAddAgentInfos(agentInfos: any): boolean;
|
|
95
95
|
runtimeVerifyStringSignedByDid(did: string, didSigningKeyId: string, data: string, signedData: string): boolean;
|
|
96
96
|
runtimeSetStatus(status: Perspective): boolean;
|
|
@@ -199,7 +199,7 @@ let DebugStringEntry = class DebugStringEntry {
|
|
|
199
199
|
__decorate([
|
|
200
200
|
Field(),
|
|
201
201
|
__metadata("design:type", String)
|
|
202
|
-
], DebugStringEntry.prototype, "
|
|
202
|
+
], DebugStringEntry.prototype, "languageAddress", void 0);
|
|
203
203
|
__decorate([
|
|
204
204
|
Field(),
|
|
205
205
|
__metadata("design:type", String)
|
|
@@ -324,9 +324,14 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
324
324
|
runtimeKnownLinkLanguageTemplates() {
|
|
325
325
|
return ["Qm12345abcdef"];
|
|
326
326
|
}
|
|
327
|
-
runtimeDebugStrings(
|
|
328
|
-
//
|
|
329
|
-
return [
|
|
327
|
+
runtimeDebugStrings(languageAddress) {
|
|
328
|
+
// Mock data for testing - in real implementation this would come from stored debug strings
|
|
329
|
+
return [{
|
|
330
|
+
languageAddress: "Qm123example",
|
|
331
|
+
debugString: "Debug string content",
|
|
332
|
+
operation: "merge",
|
|
333
|
+
timestamp: new Date().toISOString()
|
|
334
|
+
}];
|
|
330
335
|
}
|
|
331
336
|
runtimeAddKnownLinkLanguageTemplates(addresses) {
|
|
332
337
|
return addresses;
|
|
@@ -493,7 +498,7 @@ __decorate([
|
|
|
493
498
|
], RuntimeResolver.prototype, "runtimeKnownLinkLanguageTemplates", null);
|
|
494
499
|
__decorate([
|
|
495
500
|
Query(returns => [DebugStringEntry]),
|
|
496
|
-
__param(0, Arg("
|
|
501
|
+
__param(0, Arg("languageAddress", type => String, { nullable: true })),
|
|
497
502
|
__metadata("design:type", Function),
|
|
498
503
|
__metadata("design:paramtypes", [String]),
|
|
499
504
|
__metadata("design:returntype", Array)
|
package/lib/src/schema.gql
CHANGED
|
@@ -98,7 +98,7 @@ scalar DateTime
|
|
|
98
98
|
|
|
99
99
|
type DebugStringEntry {
|
|
100
100
|
debugString: String!
|
|
101
|
-
|
|
101
|
+
languageAddress: String!
|
|
102
102
|
operation: String!
|
|
103
103
|
timestamp: String!
|
|
104
104
|
}
|
|
@@ -479,7 +479,7 @@ type Query {
|
|
|
479
479
|
perspectiveQueryProlog(query: String!, uuid: String!): String!
|
|
480
480
|
perspectiveSnapshot(uuid: String!): Perspective
|
|
481
481
|
perspectives: [PerspectiveHandle!]!
|
|
482
|
-
runtimeDebugStrings(
|
|
482
|
+
runtimeDebugStrings(languageAddress: String): [DebugStringEntry!]!
|
|
483
483
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
484
484
|
runtimeFriends: [String!]!
|
|
485
485
|
runtimeGetNetworkMetrics: String!
|
package/lib/src/typeDefs.js
CHANGED
|
@@ -94,7 +94,7 @@ scalar DateTime
|
|
|
94
94
|
|
|
95
95
|
type DebugStringEntry {
|
|
96
96
|
debugString: String!
|
|
97
|
-
|
|
97
|
+
languageAddress: String!
|
|
98
98
|
operation: String!
|
|
99
99
|
timestamp: String!
|
|
100
100
|
}
|
|
@@ -475,7 +475,7 @@ type Query {
|
|
|
475
475
|
perspectiveQueryProlog(query: String!, uuid: String!): String!
|
|
476
476
|
perspectiveSnapshot(uuid: String!): Perspective
|
|
477
477
|
perspectives: [PerspectiveHandle!]!
|
|
478
|
-
runtimeDebugStrings(
|
|
478
|
+
runtimeDebugStrings(languageAddress: String): [DebugStringEntry!]!
|
|
479
479
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
480
480
|
runtimeFriends: [String!]!
|
|
481
481
|
runtimeGetNetworkMetrics: String!
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/src/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
|
+
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "patch-package && tsc && pnpm run buildSchema && pnpm run bundle",
|
|
10
11
|
"buildSchema": "node --es-module-specifier-resolution=node lib/src/buildSchema.js",
|
|
@@ -68,5 +69,5 @@
|
|
|
68
69
|
"graphql@15.7.2": "patches/graphql@15.7.2.patch"
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
|
-
"version": "0.10.1-release-candidate-4-debug-strings"
|
|
72
|
+
"version": "0.10.1-release-candidate-4-debug-strings-2"
|
|
72
73
|
}
|
|
@@ -2,12 +2,12 @@ import { Field, ObjectType } from "type-graphql";
|
|
|
2
2
|
import { NeighbourhoodExpression } from "../neighbourhood/Neighbourhood";
|
|
3
3
|
|
|
4
4
|
export enum PerspectiveState {
|
|
5
|
-
Private = "
|
|
6
|
-
NeighboudhoodCreationInitiated = "
|
|
7
|
-
NeighbourhoodJoinInitiated = "
|
|
8
|
-
LinkLanguageFailedToInstall = "
|
|
9
|
-
LinkLanguageInstalledButNotSynced = "
|
|
10
|
-
Synced = "
|
|
5
|
+
Private = "Private",
|
|
6
|
+
NeighboudhoodCreationInitiated = "NeighboudhoodCreationInitiated",
|
|
7
|
+
NeighbourhoodJoinInitiated = "NeighbourhoodJoinInitiated",
|
|
8
|
+
LinkLanguageFailedToInstall = "LinkLanguageFailedToInstall",
|
|
9
|
+
LinkLanguageInstalledButNotSynced = "LinkLanguageInstalledButNotSynced",
|
|
10
|
+
Synced = "Synced",
|
|
11
11
|
}
|
|
12
12
|
// This type is used in the GraphQL interface to reference a mutable
|
|
13
13
|
// prespective that is implemented locally by the Ad4m runtime.
|
|
@@ -183,7 +183,7 @@ export class RuntimeClient {
|
|
|
183
183
|
return runtimeFriends
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
async hcAgentInfos(): Promise<
|
|
186
|
+
async hcAgentInfos(): Promise<string> {
|
|
187
187
|
const { runtimeHcAgentInfos } = unwrapApolloResult(await this.#apolloClient.query({
|
|
188
188
|
query: gql`query runtimeHcAgentInfos {
|
|
189
189
|
runtimeHcAgentInfos
|
|
@@ -192,7 +192,7 @@ export class RuntimeClient {
|
|
|
192
192
|
return runtimeHcAgentInfos
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
async getNetworkMetrics(): Promise<
|
|
195
|
+
async getNetworkMetrics(): Promise<string> {
|
|
196
196
|
const { runtimeGetNetworkMetrics } = unwrapApolloResult(await this.#apolloClient.query({
|
|
197
197
|
query: gql`query runtimeGetNetworkMetrics {
|
|
198
198
|
runtimeGetNetworkMetrics
|
|
@@ -201,22 +201,22 @@ export class RuntimeClient {
|
|
|
201
201
|
return runtimeGetNetworkMetrics
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
async debugStrings(
|
|
204
|
+
async debugStrings(languageAddress?: string): Promise<any[]> {
|
|
205
205
|
const { runtimeDebugStrings } = unwrapApolloResult(await this.#apolloClient.query({
|
|
206
|
-
query: gql`query runtimeDebugStrings($
|
|
207
|
-
runtimeDebugStrings(
|
|
208
|
-
|
|
209
|
-
debugString
|
|
206
|
+
query: gql`query runtimeDebugStrings($languageAddress: String) {
|
|
207
|
+
runtimeDebugStrings(languageAddress: $languageAddress) {
|
|
208
|
+
languageAddress
|
|
210
209
|
operation
|
|
210
|
+
debugString
|
|
211
211
|
timestamp
|
|
212
212
|
}
|
|
213
213
|
}`,
|
|
214
|
-
variables: {
|
|
214
|
+
variables: { languageAddress }
|
|
215
215
|
}))
|
|
216
216
|
return runtimeDebugStrings
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
async restartHolochain(): Promise<
|
|
219
|
+
async restartHolochain(): Promise<boolean> {
|
|
220
220
|
const { runtimeRestartHolochain } = unwrapApolloResult(await this.#apolloClient.mutate({
|
|
221
221
|
mutation: gql`mutation runtimeRestartHolochain {
|
|
222
222
|
runtimeRestartHolochain
|
|
@@ -141,7 +141,7 @@ export class TriggeredNotification {
|
|
|
141
141
|
@ObjectType()
|
|
142
142
|
export class DebugStringEntry {
|
|
143
143
|
@Field()
|
|
144
|
-
|
|
144
|
+
languageAddress: string;
|
|
145
145
|
|
|
146
146
|
@Field()
|
|
147
147
|
debugString: string;
|
|
@@ -255,9 +255,14 @@ export default class RuntimeResolver {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
@Query(returns => [DebugStringEntry])
|
|
258
|
-
runtimeDebugStrings(@Arg("
|
|
259
|
-
//
|
|
260
|
-
return [
|
|
258
|
+
runtimeDebugStrings(@Arg("languageAddress", type => String, {nullable: true}) languageAddress?: string): DebugStringEntry[] {
|
|
259
|
+
// Mock data for testing - in real implementation this would come from stored debug strings
|
|
260
|
+
return [{
|
|
261
|
+
languageAddress: "Qm123example",
|
|
262
|
+
debugString: "Debug string content",
|
|
263
|
+
operation: "merge",
|
|
264
|
+
timestamp: new Date().toISOString()
|
|
265
|
+
}]
|
|
261
266
|
}
|
|
262
267
|
|
|
263
268
|
@Mutation(returns => [String])
|
|
@@ -286,12 +291,12 @@ export default class RuntimeResolver {
|
|
|
286
291
|
}
|
|
287
292
|
|
|
288
293
|
@Query()
|
|
289
|
-
runtimeHcAgentInfos():
|
|
294
|
+
runtimeHcAgentInfos(): string {
|
|
290
295
|
return JSON.stringify([{"agent":{"type":"Buffer","data":[9,191,231,58,255,107,202,55,206,57,9,103,17,34,206,195,207,114,5,73,77,198,56,136,17,227,242,231,194,135,128,48,170,189,119,186]},"signature":{"type":"Buffer","data":[195,143,170,36,234,123,255,85,188,138,124,2,91,18,53,231,44,41,240,8,80,131,100,150,165,125,146,90,17,200,190,129,114,211,11,146,150,128,198,199,79,118,157,101,194,68,58,245,98,182,79,139,140,41,143,129,8,136,87,77,180,231,218,11]},"agent_info":{"type":"Buffer","data":[134,165,115,112,97,99,101,196,36,203,165,212,173,24,215,165,196,25,145,248,113,246,139,205,182,241,138,57,0,26,8,217,179,23,126,59,136,128,213,110,225,173,72,197,95,165,97,103,101,110,116,196,36,9,191,231,58,255,107,202,55,206,57,9,103,17,34,206,195,207,114,5,73,77,198,56,136,17,227,242,231,194,135,128,48,170,189,119,186,164,117,114,108,115,145,217,99,107,105,116,115,117,110,101,45,112,114,111,120,121,58,47,47,101,83,52,86,112,54,109,118,80,48,122,116,85,101,104,114,117,113,89,52,102,66,53,101,69,98,121,48,69,66,100,89,84,50,95,67,48,69,112,77,111,76,111,47,107,105,116,115,117,110,101,45,113,117,105,99,47,104,47,49,57,50,46,49,54,56,46,49,55,56,46,54,48,47,112,47,55,55,52,52,47,45,45,172,115,105,103,110,101,100,95,97,116,95,109,115,207,0,0,1,123,233,104,189,50,176,101,120,112,105,114,101,115,95,97,102,116,101,114,95,109,115,206,0,18,79,128,169,109,101,116,97,95,105,110,102,111,196,34,129,187,100,104,116,95,115,116,111,114,97,103,101,95,97,114,99,95,104,97,108,102,95,108,101,110,103,116,104,206,128,0,0,1]}},{"agent":{"type":"Buffer","data":[98,187,145,48,115,209,94,143,31,153,102,69,138,29,133,213,34,52,39,164,157,139,178,111,23,33,118,250,28,155,78,246,128,49,179,38]},"signature":{"type":"Buffer","data":[233,192,38,3,59,248,124,231,57,255,40,154,50,60,119,252,68,198,154,109,175,155,106,217,211,155,109,223,249,91,221,210,17,132,72,230,11,230,247,119,72,244,145,91,75,7,67,5,130,151,44,231,52,220,28,154,212,82,58,90,203,211,236,4]},"agent_info":{"type":"Buffer","data":[134,165,115,112,97,99,101,196,36,203,165,212,173,24,215,165,196,25,145,248,113,246,139,205,182,241,138,57,0,26,8,217,179,23,126,59,136,128,213,110,225,173,72,197,95,165,97,103,101,110,116,196,36,98,187,145,48,115,209,94,143,31,153,102,69,138,29,133,213,34,52,39,164,157,139,178,111,23,33,118,250,28,155,78,246,128,49,179,38,164,117,114,108,115,145,217,99,107,105,116,115,117,110,101,45,112,114,111,120,121,58,47,47,55,101,77,106,48,73,83,72,56,56,81,56,45,89,51,74,89,70,53,76,72,57,83,54,68,119,71,73,49,88,45,115,87,53,68,104,66,87,121,71,119,78,115,47,107,105,116,115,117,110,101,45,113,117,105,99,47,104,47,49,57,50,46,49,54,56,46,49,55,56,46,54,48,47,112,47,55,55,52,52,47,45,45,172,115,105,103,110,101,100,95,97,116,95,109,115,207,0,0,1,123,233,103,45,197,176,101,120,112,105,114,101,115,95,97,102,116,101,114,95,109,115,206,0,18,79,128,169,109,101,116,97,95,105,110,102,111,196,34,129,187,100,104,116,95,115,116,111,114,97,103,101,95,97,114,99,95,104,97,108,102,95,108,101,110,103,116,104,206,128,0,0,1]}},{"agent":{"type":"Buffer","data":[181,101,115,45,214,127,198,153,159,184,30,87,67,224,208,184,203,176,130,158,236,127,153,125,243,183,188,167,154,25,118,254,101,145,210,109]},"signature":{"type":"Buffer","data":[88,189,229,122,44,171,194,156,90,79,148,49,207,224,34,199,219,88,24,243,103,127,123,41,87,171,127,92,6,216,198,171,26,226,237,217,122,78,98,146,55,255,68,240,202,83,58,140,147,185,3,66,15,216,210,22,99,197,73,234,120,17,74,1]},"agent_info":{"type":"Buffer","data":[134,165,115,112,97,99,101,196,36,203,165,212,173,24,215,165,196,25,145,248,113,246,139,205,182,241,138,57,0,26,8,217,179,23,126,59,136,128,213,110,225,173,72,197,95,165,97,103,101,110,116,196,36,181,101,115,45,214,127,198,153,159,184,30,87,67,224,208,184,203,176,130,158,236,127,153,125,243,183,188,167,154,25,118,254,101,145,210,109,164,117,114,108,115,145,217,99,107,105,116,115,117,110,101,45,112,114,111,120,121,58,47,47,114,70,71,83,100,113,104,101,68,107,70,70,56,69,102,109,45,69,116,55,119,81,101,120,83,88,55,65,112,69,51,89,86,99,45,120,102,52,104,106,77,115,77,47,107,105,116,115,117,110,101,45,113,117,105,99,47,104,47,49,57,50,46,49,54,56,46,49,55,56,46,54,48,47,112,47,55,55,52,52,47,45,45,172,115,105,103,110,101,100,95,97,116,95,109,115,207,0,0,1,123,233,113,23,220,176,101,120,112,105,114,101,115,95,97,102,116,101,114,95,109,115,206,0,18,79,128,169,109,101,116,97,95,105,110,102,111,196,34,129,187,100,104,116,95,115,116,111,114,97,103,101,95,97,114,99,95,104,97,108,102,95,108,101,110,103,116,104,206,128,0,0,1]}},{"agent":{"type":"Buffer","data":[3,171,237,107,186,245,165,47,237,235,211,49,245,62,113,53,255,252,223,226,75,118,148,187,23,53,70,174,160,184,64,63,94,210,227,56]},"signature":{"type":"Buffer","data":[129,12,55,104,239,121,138,2,86,106,136,51,219,79,170,8,195,69,81,188,225,192,247,196,54,39,164,110,75,39,240,56,245,189,154,77,72,11,97,250,202,149,242,97,128,28,47,164,236,104,136,82,212,246,44,143,132,119,255,135,112,11,20,13]},"agent_info":{"type":"Buffer","data":[134,165,115,112,97,99,101,196,36,203,165,212,173,24,215,165,196,25,145,248,113,246,139,205,182,241,138,57,0,26,8,217,179,23,126,59,136,128,213,110,225,173,72,197,95,165,97,103,101,110,116,196,36,3,171,237,107,186,245,165,47,237,235,211,49,245,62,113,53,255,252,223,226,75,118,148,187,23,53,70,174,160,184,64,63,94,210,227,56,164,117,114,108,115,145,217,97,107,105,116,115,117,110,101,45,112,114,111,120,121,58,47,47,104,121,112,115,86,121,103,117,80,84,115,53,118,73,80,65,102,97,112,90,88,113,117,84,115,79,80,100,67,81,79,79,117,103,57,51,82,103,106,95,114,85,73,47,107,105,116,115,117,110,101,45,113,117,105,99,47,104,47,49,54,53,46,50,50,46,51,50,46,49,49,47,112,47,53,55,55,57,47,45,45,172,115,105,103,110,101,100,95,97,116,95,109,115,207,0,0,1,123,233,113,188,123,176,101,120,112,105,114,101,115,95,97,102,116,101,114,95,109,115,206,0,18,79,128,169,109,101,116,97,95,105,110,102,111,196,34,129,187,100,104,116,95,115,116,111,114,97,103,101,95,97,114,99,95,104,97,108,102,95,108,101,110,103,116,104,206,128,0,0,1]}}])
|
|
291
296
|
}
|
|
292
297
|
|
|
293
298
|
@Query()
|
|
294
|
-
runtimeGetNetworkMetrics():
|
|
299
|
+
runtimeGetNetworkMetrics(): string {
|
|
295
300
|
return JSON.stringify({
|
|
296
301
|
"metrics": {},
|
|
297
302
|
"stats": {}
|
|
@@ -299,7 +304,7 @@ export default class RuntimeResolver {
|
|
|
299
304
|
}
|
|
300
305
|
|
|
301
306
|
@Mutation(returns => Boolean)
|
|
302
|
-
runtimeRestartHolochain():
|
|
307
|
+
runtimeRestartHolochain(): boolean {
|
|
303
308
|
return true
|
|
304
309
|
}
|
|
305
310
|
|