@r8s/operator-paperclip 0.19.0
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 +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @r8s/operator-paperclip — Paperclip agent orchestration operator as an npm-resolved
|
|
3
|
+
* operator package. The package version mirrors the operator's own
|
|
4
|
+
* version (0.19.0); consumers declare
|
|
5
|
+
* "@r8s/operator-paperclip": "^0.0.0" as a peerDependency
|
|
6
|
+
* so npm resolves ONE copy per tree and mixed majors fail at install time.
|
|
7
|
+
*/
|
|
8
|
+
import { declareOperator } from '@r8s/core';
|
|
9
|
+
import type { Operator } from '@r8s/k8s-types';
|
|
10
|
+
/** The paperclip-operator operator version this package was cut for. */
|
|
11
|
+
export declare const DEFAULT_PAPERCLIP_VERSION = "0.19.0";
|
|
12
|
+
/**
|
|
13
|
+
* Operator declaration — mirror of the `paperclip-operator` entry in
|
|
14
|
+
* packages/crds/operators.yaml (registry stays the CLI metadata source;
|
|
15
|
+
* version parity is enforced by the operator-contracts suite).
|
|
16
|
+
*/
|
|
17
|
+
export declare function PaperclipOperator(version?: string): Operator & {
|
|
18
|
+
namespace: string;
|
|
19
|
+
};
|
|
20
|
+
/** Registry identity for the operator-contracts mirror checks. */
|
|
21
|
+
export declare const OPERATOR_KEY = "paperclip-operator";
|
|
22
|
+
/** Same factory, conventional alias so generic suites find it. */
|
|
23
|
+
export declare const operatorFactory: typeof PaperclipOperator;
|
|
24
|
+
/**
|
|
25
|
+
* Declare paperclip-operator unless the surrounding Platform already provides it.
|
|
26
|
+
* Spread into resources: `resources.push(...declareIfMissing(shared))`
|
|
27
|
+
*/
|
|
28
|
+
export declare function declareIfMissing(shared: Operator[], version?: string): ReturnType<typeof declareOperator>[];
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,WAAW,CAAA;AAEjD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,GAAE,MAAkC,GAC1C,QAAQ,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAmBlC;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,uBAAuB,CAAA;AAEhD,kEAAkE;AAClE,eAAO,MAAM,eAAe,0BAAoB,CAAA;AAEhD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,QAAQ,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,UAAU,CAAC,OAAO,eAAe,CAAC,EAAE,CAGtC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operatorFactory = exports.OPERATOR_KEY = exports.DEFAULT_PAPERCLIP_VERSION = void 0;
|
|
4
|
+
exports.PaperclipOperator = PaperclipOperator;
|
|
5
|
+
exports.declareIfMissing = declareIfMissing;
|
|
6
|
+
/**
|
|
7
|
+
* @r8s/operator-paperclip — Paperclip agent orchestration operator as an npm-resolved
|
|
8
|
+
* operator package. The package version mirrors the operator's own
|
|
9
|
+
* version (0.19.0); consumers declare
|
|
10
|
+
* "@r8s/operator-paperclip": "^0.0.0" as a peerDependency
|
|
11
|
+
* so npm resolves ONE copy per tree and mixed majors fail at install time.
|
|
12
|
+
*/
|
|
13
|
+
const core_1 = require("@r8s/core");
|
|
14
|
+
/** The paperclip-operator operator version this package was cut for. */
|
|
15
|
+
exports.DEFAULT_PAPERCLIP_VERSION = '0.19.0';
|
|
16
|
+
/**
|
|
17
|
+
* Operator declaration — mirror of the `paperclip-operator` entry in
|
|
18
|
+
* packages/crds/operators.yaml (registry stays the CLI metadata source;
|
|
19
|
+
* version parity is enforced by the operator-contracts suite).
|
|
20
|
+
*/
|
|
21
|
+
function PaperclipOperator(version = exports.DEFAULT_PAPERCLIP_VERSION) {
|
|
22
|
+
return {
|
|
23
|
+
name: 'paperclip-operator',
|
|
24
|
+
description: 'Paperclip agent orchestration operator',
|
|
25
|
+
source: {
|
|
26
|
+
type: 'helm',
|
|
27
|
+
chart: 'paperclip-operator',
|
|
28
|
+
repository: 'oci://ghcr.io/paperclipinc/charts',
|
|
29
|
+
version,
|
|
30
|
+
namespace: 'paperclip-system',
|
|
31
|
+
values: {
|
|
32
|
+
metrics: { enabled: true, serviceMonitor: { enabled: false } },
|
|
33
|
+
leaderElection: { enabled: false },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
version,
|
|
37
|
+
namespace: 'paperclip-system',
|
|
38
|
+
crds: ['instances.paperclip.inc'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/** Registry identity for the operator-contracts mirror checks. */
|
|
42
|
+
exports.OPERATOR_KEY = 'paperclip-operator';
|
|
43
|
+
/** Same factory, conventional alias so generic suites find it. */
|
|
44
|
+
exports.operatorFactory = PaperclipOperator;
|
|
45
|
+
/**
|
|
46
|
+
* Declare paperclip-operator unless the surrounding Platform already provides it.
|
|
47
|
+
* Spread into resources: `resources.push(...declareIfMissing(shared))`
|
|
48
|
+
*/
|
|
49
|
+
function declareIfMissing(shared, version) {
|
|
50
|
+
if (shared.some((op) => op.name === 'paperclip-operator'))
|
|
51
|
+
return [];
|
|
52
|
+
return [(0, core_1.declareOperator)(PaperclipOperator(version))];
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;AAkBA,8CAqBC;AAYD,4CAMC;AAzDD;;;;;;GAMG;AACH,oCAA2C;AAG3C,wEAAwE;AAC3D,QAAA,yBAAyB,GAAG,QAAQ,CAAA;AAEjD;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,UAAkB,iCAAyB;IAE3C,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,wCAAwC;QACrD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,oBAAoB;YAC3B,UAAU,EAAE,mCAAmC;YAC/C,OAAO;YACP,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;gBAC9D,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACnC;SACF;QACD,OAAO;QACP,SAAS,EAAE,kBAAkB;QAC7B,IAAI,EAAE,CAAC,yBAAyB,CAAC;KAClC,CAAA;AACH,CAAC;AAED,kEAAkE;AACrD,QAAA,YAAY,GAAG,oBAAoB,CAAA;AAEhD,kEAAkE;AACrD,QAAA,eAAe,GAAG,iBAAiB,CAAA;AAEhD;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAAkB,EAClB,OAAgB;IAEhB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,oBAAoB,CAAC;QAAE,OAAO,EAAE,CAAA;IACpE,OAAO,CAAC,IAAA,sBAAe,EAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AACtD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@r8s/operator-paperclip",
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Paperclip agent orchestration operator \u2014 npm-resolved operator package for r8s",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Berget AI AB",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/berget-ai/r8s.git",
|
|
10
|
+
"directory": "packages/operator-paperclip"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"r8s",
|
|
20
|
+
"operator",
|
|
21
|
+
"paperclip",
|
|
22
|
+
"paperclip-operator"
|
|
23
|
+
],
|
|
24
|
+
"r8s": {
|
|
25
|
+
"category": "Operators",
|
|
26
|
+
"operator": "paperclip-operator"
|
|
27
|
+
},
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js",
|
|
34
|
+
"require": "./dist/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc --build",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@r8s/core": "^0.3.0",
|
|
44
|
+
"@r8s/k8s-types": "^0.3.0",
|
|
45
|
+
"@r8s/crds": "^0.3.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"typescript": "^5.3.0",
|
|
49
|
+
"vitest": "^1.0.0"
|
|
50
|
+
}
|
|
51
|
+
}
|