New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@google-labs/graph-runner

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-labs/graph-runner - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

dist/src/index.d.ts

@@ -6,6 +6,5 @@ /**

*/
export type { Edge, GraphDescriptor, NodeConfiguration, NodeDescriptor, NodeHandler, InputValues, OutputValues, NodeHandlers, NodeTypeIdentifier, KitDescriptor, } from "./types.js";
export type { Edge, GraphDescriptor, NodeConfiguration, NodeDescriptor, NodeHandler, InputValues, OutputValues, NodeHandlers, NodeTypeIdentifier, KitDescriptor, NodeValue, Capability, } from "./types.js";
export { TraversalMachine } from "./traversal/machine.js";
export { GraphRepresentation } from "./traversal/representation.js";
export { toMermaid } from "./mermaid.js";
//# sourceMappingURL=index.d.ts.map

@@ -7,4 +7,3 @@ /**

export { TraversalMachine } from "./traversal/machine.js";
export { GraphRepresentation } from "./traversal/representation.js";
export { toMermaid } from "./mermaid.js";
//# sourceMappingURL=index.js.map

@@ -31,3 +31,3 @@ /**

const nodeType = descriptor.type;
const text = `"${nodeType}\nid='${node}'"`;
const text = `"${nodeType} <br> id='${node}'"`;
switch (nodeType) {

@@ -34,0 +34,0 @@ case "include":

@@ -90,4 +90,4 @@ /**

return;
if (output)
result[input] = outputs[out];
if (output != null && output != undefined)
result[input] = output;
});

@@ -94,0 +94,0 @@ return result;

@@ -6,3 +6,12 @@ /**

*/
export interface Capability {
readonly kind: string;
}
/**
* A type representing a valid JSON value.
*/
export type NodeValue = string | number | boolean | null | undefined | NodeValue[] | Capability | {
[key: string]: NodeValue;
};
/**
* Unique identifier of a node in a graph.

@@ -26,3 +35,3 @@ */

*/
export interface NodeDescriptor {
export type NodeDescriptor = {
/**

@@ -40,7 +49,7 @@ * Unique id of the node in graph.

configuration?: NodeConfiguration;
}
};
/**
* Represents an edge in a graph.
*/
export interface Edge {
export type Edge = {
/**

@@ -75,3 +84,3 @@ * The node that the edge is coming from.

constant?: boolean;
}
};
/**

@@ -83,3 +92,3 @@ * Represents a "kit": a collection of `NodeHandlers`. The basic permise here

*/
export interface KitDescriptor {
export type KitDescriptor = {
/**

@@ -94,7 +103,7 @@ * The URL pointing to the location of the kit.

using?: string[];
}
};
/**
* Represents a graph.
*/
export interface GraphDescriptor {
export type GraphDescriptor = {
/**

@@ -112,12 +121,12 @@ * The collection of all edges in the graph.

kits?: KitDescriptor[];
}
};
export type EdgeMap = Map<NodeIdentifier, OutputValues>;
/**
* Values that are supplied as inputs to the ` ndler`.
* Values that are supplied as inputs to the `NodeHandler`.
*/
export type InputValues = Record<InputIdentifier, unknown>;
export type EdgeMap = Map<NodeIdentifier, OutputValues>;
export type InputValues = Record<InputIdentifier, NodeValue>;
/**
* Values that the `NodeHandler` outputs.
*/
export type OutputValues = Partial<Record<OutputIdentifier, unknown>>;
export type OutputValues = Partial<Record<OutputIdentifier, NodeValue>>;
/**

@@ -127,3 +136,3 @@ * Values that are supplied as part of the graph. These values are merged with

*/
export type NodeConfiguration = Record<string, unknown>;
export type NodeConfiguration = Record<string, NodeValue>;
/**

@@ -130,0 +139,0 @@ * A function that represents a type of a node in the graph.

{
"name": "@google-labs/graph-runner",
"version": "0.0.1",
"version": "0.0.2",
"description": "Reference implementation of generative app composition graph traversal",

@@ -40,3 +40,3 @@ "main": "./dist/src/index.js",

},
"homepage": "https://github.com/google/labs-prototypes#readme",
"homepage": "https://github.com/google/labs-prototypes/tree/main/seeds/graph-runner#readme",
"devDependencies": {

@@ -43,0 +43,0 @@ "@ava/typescript": "^4.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc