@getripple/core 1.0.9 → 1.0.11

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/index.d.ts CHANGED
@@ -10,3 +10,5 @@ export * from "./readiness";
10
10
  export * from "./risk";
11
11
  export * from "./staged-check";
12
12
  export * from "./types";
13
+ export * from "./cloud";
14
+ export { syncAuditToCloud, pushIntentToCloud, fetchActiveIntentForCommit, } from "./cloud.js";
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.fetchActiveIntentForCommit = exports.pushIntentToCloud = exports.syncAuditToCloud = void 0;
17
18
  __exportStar(require("./adapters"), exports);
18
19
  __exportStar(require("./approval"), exports);
19
20
  __exportStar(require("./audit"), exports);
@@ -26,4 +27,9 @@ __exportStar(require("./readiness"), exports);
26
27
  __exportStar(require("./risk"), exports);
27
28
  __exportStar(require("./staged-check"), exports);
28
29
  __exportStar(require("./types"), exports);
30
+ __exportStar(require("./cloud"), exports);
31
+ var cloud_js_1 = require("./cloud.js");
32
+ Object.defineProperty(exports, "syncAuditToCloud", { enumerable: true, get: function () { return cloud_js_1.syncAuditToCloud; } });
33
+ Object.defineProperty(exports, "pushIntentToCloud", { enumerable: true, get: function () { return cloud_js_1.pushIntentToCloud; } });
34
+ Object.defineProperty(exports, "fetchActiveIntentForCommit", { enumerable: true, get: function () { return cloud_js_1.fetchActiveIntentForCommit; } });
29
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,iDAA+B;AAC/B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,iDAA+B;AAC/B,0CAAwB;AACxB,0CAAwB;AACxB,uCAEoB;AADlB,4GAAA,gBAAgB,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AAAE,sHAAA,0BAA0B,OAAA"}
Binary file
package/dist/types.js CHANGED
@@ -26,21 +26,17 @@
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.HistoryLog = exports.SystemGraph = void 0;
28
28
  class SystemGraph {
29
- constructor() {
30
- // Keyed by absolute OS-native file path.
31
- this.files = new Map();
32
- // Keyed by symbolId, formatted as filePath::symbolName.
33
- this.symbols = new Map();
34
- }
29
+ // Keyed by absolute OS-native file path.
30
+ files = new Map();
31
+ // Keyed by symbolId, formatted as filePath::symbolName.
32
+ symbols = new Map();
35
33
  }
36
34
  exports.SystemGraph = SystemGraph;
37
35
  // ────────────────────────────────────────────────────────────────────────────
38
36
  // HISTORY LOG
39
37
  // ────────────────────────────────────────────────────────────────────────────
40
38
  class HistoryLog {
41
- constructor() {
42
- this.events = [];
43
- }
39
+ events = [];
44
40
  log(event) {
45
41
  this.events.push(event);
46
42
  // Trim in-memory history to match the persisted MAX_EVENTS limit while
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAsJH,MAAa,WAAW;IAAxB;QACE,yCA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AoD;IACpD,iEAAiE;IACjE,WAAW;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,mBAAmB,CAAC,CAAC;IACjE,CAAC;IAED,qEAAqE;IACrE,QAAQ,CAAC,WAAmB;QAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAClE,CAAC;IAED,6EAA6E;IAC7E,UAAU,CAAC,MAAc;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CACvB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAClD,CAAC;IACJ,CAAC;CACF;AApCD,gCAoCC"}
package/package.json CHANGED
@@ -1,52 +1,54 @@
1
- {
2
- "name": "@getripple/core",
3
- "version": "1.0.9",
4
- "description": "Core engine for Ripple's local authorization gate: context planning, drift checks, and trust boundaries.",
5
- "license": "MIT",
6
- "type": "commonjs",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/raushankcode/ripple.git",
12
- "directory": "packages/core"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/raushankcode/ripple/issues"
16
- },
17
- "homepage": "https://raushankcode.github.io/ripple/",
18
- "keywords": [
19
- "ai-agent",
20
- "agent-workflow",
21
- "codebase",
22
- "architecture",
23
- "context-planning",
24
- "authorization-gate",
25
- "trust-boundaries",
26
- "static-analysis",
27
- "typescript",
28
- "javascript"
29
- ],
30
- "engines": {
31
- "node": ">=18"
32
- },
33
- "publishConfig": {
34
- "access": "public"
35
- },
36
- "files": [
37
- "dist",
38
- "CHANGELOG.md"
39
- ],
40
- "scripts": {
41
- "build": "tsc -p tsconfig.json",
42
- "test": "node test/run-context-planner-tests.js"
43
- },
44
- "dependencies": {
45
- "glob": "^13.0.6",
46
- "ts-morph": "^21.0.0"
47
- },
48
- "devDependencies": {
49
- "@types/node": "^18.0.0",
50
- "typescript": "~5.3.3"
51
- }
52
- }
1
+ {
2
+ "name": "@getripple/core",
3
+ "version": "1.0.11",
4
+ "description": "Core engine for Ripple's local authorization gate: context planning, drift checks, and trust boundaries.",
5
+ "license": "MIT",
6
+ "type": "commonjs",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/raushankcode/ripple.git",
12
+ "directory": "packages/core"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/raushankcode/ripple/issues"
16
+ },
17
+ "homepage": "https://raushankcode.github.io/ripple/",
18
+ "keywords": [
19
+ "ai-agent",
20
+ "agent-workflow",
21
+ "codebase",
22
+ "architecture",
23
+ "context-planning",
24
+ "authorization-gate",
25
+ "trust-boundaries",
26
+ "static-analysis",
27
+ "typescript",
28
+ "javascript"
29
+ ],
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "files": [
37
+ "dist",
38
+ "CHANGELOG.md"
39
+ ],
40
+ "scripts": {
41
+ "build": "tsc -p tsconfig.json && node -e \"require('fs').copyFileSync('../../node_modules/tree-sitter-python/tree-sitter-python.wasm', './dist/tree-sitter-python.wasm')\"",
42
+ "test": "node test/run-context-planner-tests.js"
43
+ },
44
+ "dependencies": {
45
+ "glob": "^13.0.6",
46
+ "tree-sitter-python": "^0.25.0",
47
+ "ts-morph": "^21.0.0",
48
+ "web-tree-sitter": "^0.26.10"
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^18.0.0",
52
+ "typescript": "~5.3.3"
53
+ }
54
+ }