@rippling/rippling-sdk 0.2.0-alpha.116 → 0.2.0-alpha.117
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/manifest/package-manifest.d.mts +39 -2
- package/lib/manifest/package-manifest.d.mts.map +1 -1
- package/lib/manifest/package-manifest.d.ts +39 -2
- package/lib/manifest/package-manifest.d.ts.map +1 -1
- package/lib/manifest/package-manifest.js +37 -0
- package/lib/manifest/package-manifest.js.map +1 -1
- package/lib/manifest/package-manifest.mjs +37 -0
- package/lib/manifest/package-manifest.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +38 -1
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +38 -1
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +8 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +8 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/src/lib/manifest/definitions/README.md +64 -0
- package/src/lib/manifest/package-manifest.ts +88 -2
- package/src/resources/agents/agents.ts +44 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { MetadataManifest } from "./metadata-manifest.mjs";
|
|
2
|
+
import type { DefinedFunction } from "./definitions/function/definition.mjs";
|
|
3
|
+
import type { App } from "./definitions/app/definition.mjs";
|
|
2
4
|
/** Publisher-owned package information, independent of component identities. */
|
|
3
5
|
export interface PackageInformation {
|
|
4
6
|
key: string;
|
|
@@ -6,12 +8,47 @@ export interface PackageInformation {
|
|
|
6
8
|
type: 'managed' | 'unmanaged';
|
|
7
9
|
description?: string;
|
|
8
10
|
}
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Serialized metadata resolved from a packaged component definition.
|
|
13
|
+
* The backend validates the selection and stores its canonical identifier.
|
|
14
|
+
*/
|
|
15
|
+
export type PackageComponentIdentifier = Readonly<Record<string, unknown> & {
|
|
16
|
+
type: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Serialized package information and a reference to the project's source manifest.
|
|
20
|
+
* Post-install values resolve from that manifest's component snapshots.
|
|
21
|
+
*/
|
|
10
22
|
export interface PackageManifest {
|
|
11
23
|
package: PackageInformation;
|
|
12
24
|
version: string;
|
|
13
25
|
manifest: Readonly<MetadataManifest>;
|
|
26
|
+
/**
|
|
27
|
+
* Serialized API name resolved from the packaged Function definition.
|
|
28
|
+
* When applied through PATCH, omission preserves the hook; null clears it.
|
|
29
|
+
*/
|
|
30
|
+
postInstallFunction?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Serialized config resolved from the packaged Custom App definition.
|
|
33
|
+
* When applied through PATCH, omission preserves the selection;
|
|
34
|
+
* null restores the default landing selection.
|
|
35
|
+
*/
|
|
36
|
+
postInstallLandingComponent?: PackageComponentIdentifier | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Authoring options; definition references resolve against the original defineManifest result,
|
|
40
|
+
* before source compilation or JSON export.
|
|
41
|
+
* Selections never add components; missing source-manifest definitions are rejected locally.
|
|
42
|
+
* The backend validates membership and eligibility in the stored package version.
|
|
43
|
+
*/
|
|
44
|
+
export interface PackageManifestInput extends Omit<PackageManifest, 'postInstallFunction' | 'postInstallLandingComponent'> {
|
|
45
|
+
/** A defineFunction definition already in the manifest, or null to clear the hook. */
|
|
46
|
+
postInstallFunction?: DefinedFunction<any, any> | null;
|
|
47
|
+
/**
|
|
48
|
+
* A defineApp definition already in the manifest, or null to restore the default landing.
|
|
49
|
+
*/
|
|
50
|
+
postInstallLandingComponent?: App | null;
|
|
14
51
|
}
|
|
15
52
|
/** Define package information around an existing manifest without compiling its sources. */
|
|
16
|
-
export declare function definePackageManifest(input:
|
|
53
|
+
export declare function definePackageManifest(input: PackageManifestInput): Readonly<PackageManifest>;
|
|
17
54
|
//# sourceMappingURL=package-manifest.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manifest.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"package-manifest.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,8CAA0C;AACzE,OAAO,KAAK,EAAE,GAAG,EAAE,yCAAqC;AAKxD,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE9F;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;CACjE;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,qBAAqB,GAAG,6BAA6B,CAAC;IACpF,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACvD;;OAEG;IACH,2BAA2B,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1C;AAiCD,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAmC5F"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { MetadataManifest } from "./metadata-manifest.js";
|
|
2
|
+
import type { DefinedFunction } from "./definitions/function/definition.js";
|
|
3
|
+
import type { App } from "./definitions/app/definition.js";
|
|
2
4
|
/** Publisher-owned package information, independent of component identities. */
|
|
3
5
|
export interface PackageInformation {
|
|
4
6
|
key: string;
|
|
@@ -6,12 +8,47 @@ export interface PackageInformation {
|
|
|
6
8
|
type: 'managed' | 'unmanaged';
|
|
7
9
|
description?: string;
|
|
8
10
|
}
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Serialized metadata resolved from a packaged component definition.
|
|
13
|
+
* The backend validates the selection and stores its canonical identifier.
|
|
14
|
+
*/
|
|
15
|
+
export type PackageComponentIdentifier = Readonly<Record<string, unknown> & {
|
|
16
|
+
type: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Serialized package information and a reference to the project's source manifest.
|
|
20
|
+
* Post-install values resolve from that manifest's component snapshots.
|
|
21
|
+
*/
|
|
10
22
|
export interface PackageManifest {
|
|
11
23
|
package: PackageInformation;
|
|
12
24
|
version: string;
|
|
13
25
|
manifest: Readonly<MetadataManifest>;
|
|
26
|
+
/**
|
|
27
|
+
* Serialized API name resolved from the packaged Function definition.
|
|
28
|
+
* When applied through PATCH, omission preserves the hook; null clears it.
|
|
29
|
+
*/
|
|
30
|
+
postInstallFunction?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Serialized config resolved from the packaged Custom App definition.
|
|
33
|
+
* When applied through PATCH, omission preserves the selection;
|
|
34
|
+
* null restores the default landing selection.
|
|
35
|
+
*/
|
|
36
|
+
postInstallLandingComponent?: PackageComponentIdentifier | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Authoring options; definition references resolve against the original defineManifest result,
|
|
40
|
+
* before source compilation or JSON export.
|
|
41
|
+
* Selections never add components; missing source-manifest definitions are rejected locally.
|
|
42
|
+
* The backend validates membership and eligibility in the stored package version.
|
|
43
|
+
*/
|
|
44
|
+
export interface PackageManifestInput extends Omit<PackageManifest, 'postInstallFunction' | 'postInstallLandingComponent'> {
|
|
45
|
+
/** A defineFunction definition already in the manifest, or null to clear the hook. */
|
|
46
|
+
postInstallFunction?: DefinedFunction<any, any> | null;
|
|
47
|
+
/**
|
|
48
|
+
* A defineApp definition already in the manifest, or null to restore the default landing.
|
|
49
|
+
*/
|
|
50
|
+
postInstallLandingComponent?: App | null;
|
|
14
51
|
}
|
|
15
52
|
/** Define package information around an existing manifest without compiling its sources. */
|
|
16
|
-
export declare function definePackageManifest(input:
|
|
53
|
+
export declare function definePackageManifest(input: PackageManifestInput): Readonly<PackageManifest>;
|
|
17
54
|
//# sourceMappingURL=package-manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,+BAA4B;
|
|
1
|
+
{"version":3,"file":"package-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,+BAA4B;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,6CAA0C;AACzE,OAAO,KAAK,EAAE,GAAG,EAAE,wCAAqC;AAKxD,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE9F;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;CACjE;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,qBAAqB,GAAG,6BAA6B,CAAC;IACpF,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACvD;;OAEG;IACH,2BAA2B,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1C;AAiCD,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAmC5F"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.definePackageManifest = definePackageManifest;
|
|
4
|
+
const component_1 = require("./definitions/component.js");
|
|
5
|
+
const manifestDefinitionConfigs = Symbol.for('@rippling/sdk/manifest-definition-configs');
|
|
6
|
+
function componentConfig(manifest, definition, option) {
|
|
7
|
+
const registered = (0, component_1.registeredComponent)(definition);
|
|
8
|
+
if (registered == null)
|
|
9
|
+
throw new Error(`${option} must reference a registered component definition.`);
|
|
10
|
+
const configs = manifest[manifestDefinitionConfigs]?.get(definition);
|
|
11
|
+
if (configs == null)
|
|
12
|
+
throw new Error(`${option} definition must already be included in the supplied manifest.`);
|
|
13
|
+
const primary = configs.filter((config) => config.type === registered.type);
|
|
14
|
+
if (primary.length !== 1)
|
|
15
|
+
throw new Error(`${option} definition must resolve to exactly one primary component config.`);
|
|
16
|
+
return primary[0];
|
|
17
|
+
}
|
|
18
|
+
function landingComponentConfig(manifest, value) {
|
|
19
|
+
if (value == null)
|
|
20
|
+
return value;
|
|
21
|
+
const config = componentConfig(manifest, value, 'Post-install landing component');
|
|
22
|
+
if (config.type !== 'CUSTOM_APP')
|
|
23
|
+
throw new Error('Post-install landing component must reference a Custom App definition.');
|
|
24
|
+
return Object.freeze({ ...config });
|
|
25
|
+
}
|
|
4
26
|
/** Define package information around an existing manifest without compiling its sources. */
|
|
5
27
|
function definePackageManifest(input) {
|
|
6
28
|
if (!/^[a-z][a-z0-9_]{0,99}$/.test(input.package.key))
|
|
@@ -17,10 +39,25 @@ function definePackageManifest(input) {
|
|
|
17
39
|
throw new Error('Package manifest requires metadata and components.');
|
|
18
40
|
if (input.manifest.components_to_delete != null && input.manifest.components_to_delete.length > 0)
|
|
19
41
|
throw new Error('Package snapshots cannot contain component deletions.');
|
|
42
|
+
let postInstallFunction;
|
|
43
|
+
if (input.postInstallFunction == null) {
|
|
44
|
+
postInstallFunction = input.postInstallFunction;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
const config = componentConfig(input.manifest, input.postInstallFunction, 'Post-install Function');
|
|
48
|
+
if (config.type !== 'FUNCTION')
|
|
49
|
+
throw new Error('Post-install Function must reference a Function definition.');
|
|
50
|
+
if (typeof config['api_name'] !== 'string' || config['api_name'].trim() === '')
|
|
51
|
+
throw new Error('Post-install Function definition must have a nonempty API name.');
|
|
52
|
+
postInstallFunction = config['api_name'];
|
|
53
|
+
}
|
|
54
|
+
const landing = landingComponentConfig(input.manifest, input.postInstallLandingComponent);
|
|
20
55
|
return Object.freeze({
|
|
21
56
|
package: Object.freeze({ ...input.package }),
|
|
22
57
|
version: input.version,
|
|
23
58
|
manifest: input.manifest,
|
|
59
|
+
...(postInstallFunction === undefined ? {} : { postInstallFunction }),
|
|
60
|
+
...(landing === undefined ? {} : { postInstallLandingComponent: landing }),
|
|
24
61
|
});
|
|
25
62
|
}
|
|
26
63
|
//# sourceMappingURL=package-manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manifest.js","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"package-manifest.js","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":";;AA0FA,sDAmCC;AA1HD,0DAA8D;AAE9D,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;AAqD1F,SAAS,eAAe,CACtB,QAAoC,EACpC,UAAkB,EAClB,MAAc;IAEd,MAAM,UAAU,GAAG,IAAA,+BAAmB,EAAC,UAAU,CAAC,CAAC;IACnD,IAAI,UAAU,IAAI,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,oDAAoD,CAAC,CAAC;IACvG,MAAM,OAAO,GACX,QAGD,CAAC,yBAAyB,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAC9C,IAAI,OAAO,IAAI,IAAI;QACjB,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,gEAAgE,CAAC,CAAC;IAC7F,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5E,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,mEAAmE,CAAC,CAAC;IAChG,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC;AACrB,CAAC;AAED,SAAS,sBAAsB,CAC7B,Q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,EAAE,OAAO,EAAE,CAAC;KAC3E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
import { registeredComponent } from "./definitions/component.mjs";
|
|
2
|
+
const manifestDefinitionConfigs = Symbol.for('@rippling/sdk/manifest-definition-configs');
|
|
3
|
+
function componentConfig(manifest, definition, option) {
|
|
4
|
+
const registered = registeredComponent(definition);
|
|
5
|
+
if (registered == null)
|
|
6
|
+
throw new Error(`${option} must reference a registered component definition.`);
|
|
7
|
+
const configs = manifest[manifestDefinitionConfigs]?.get(definition);
|
|
8
|
+
if (configs == null)
|
|
9
|
+
throw new Error(`${option} definition must already be included in the supplied manifest.`);
|
|
10
|
+
const primary = configs.filter((config) => config.type === registered.type);
|
|
11
|
+
if (primary.length !== 1)
|
|
12
|
+
throw new Error(`${option} definition must resolve to exactly one primary component config.`);
|
|
13
|
+
return primary[0];
|
|
14
|
+
}
|
|
15
|
+
function landingComponentConfig(manifest, value) {
|
|
16
|
+
if (value == null)
|
|
17
|
+
return value;
|
|
18
|
+
const config = componentConfig(manifest, value, 'Post-install landing component');
|
|
19
|
+
if (config.type !== 'CUSTOM_APP')
|
|
20
|
+
throw new Error('Post-install landing component must reference a Custom App definition.');
|
|
21
|
+
return Object.freeze({ ...config });
|
|
22
|
+
}
|
|
1
23
|
/** Define package information around an existing manifest without compiling its sources. */
|
|
2
24
|
export function definePackageManifest(input) {
|
|
3
25
|
if (!/^[a-z][a-z0-9_]{0,99}$/.test(input.package.key))
|
|
@@ -14,10 +36,25 @@ export function definePackageManifest(input) {
|
|
|
14
36
|
throw new Error('Package manifest requires metadata and components.');
|
|
15
37
|
if (input.manifest.components_to_delete != null && input.manifest.components_to_delete.length > 0)
|
|
16
38
|
throw new Error('Package snapshots cannot contain component deletions.');
|
|
39
|
+
let postInstallFunction;
|
|
40
|
+
if (input.postInstallFunction == null) {
|
|
41
|
+
postInstallFunction = input.postInstallFunction;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const config = componentConfig(input.manifest, input.postInstallFunction, 'Post-install Function');
|
|
45
|
+
if (config.type !== 'FUNCTION')
|
|
46
|
+
throw new Error('Post-install Function must reference a Function definition.');
|
|
47
|
+
if (typeof config['api_name'] !== 'string' || config['api_name'].trim() === '')
|
|
48
|
+
throw new Error('Post-install Function definition must have a nonempty API name.');
|
|
49
|
+
postInstallFunction = config['api_name'];
|
|
50
|
+
}
|
|
51
|
+
const landing = landingComponentConfig(input.manifest, input.postInstallLandingComponent);
|
|
17
52
|
return Object.freeze({
|
|
18
53
|
package: Object.freeze({ ...input.package }),
|
|
19
54
|
version: input.version,
|
|
20
55
|
manifest: input.manifest,
|
|
56
|
+
...(postInstallFunction === undefined ? {} : { postInstallFunction }),
|
|
57
|
+
...(landing === undefined ? {} : { postInstallLandingComponent: landing }),
|
|
21
58
|
});
|
|
22
59
|
}
|
|
23
60
|
//# sourceMappingURL=package-manifest.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manifest.mjs","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package-manifest.mjs","sourceRoot":"","sources":["../../src/lib/manifest/package-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,oCAAgC;AAE9D,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;AAqD1F,SAAS,eAAe,CACtB,QAAoC,EACpC,UAAkB,EAClB,MAAc;IAEd,MAAM,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACnD,IAAI,UAAU,IAAI,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,oDAAoD,CAAC,CAAC;IACvG,MAAM,OAAO,GACX,QAGD,CAAC,yBAAyB,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAC9C,IAAI,OAAO,IAAI,IAAI;QACjB,MA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AM,CAAC,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;QAC5C,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,GAAG,CAAC,mBAAmB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,CAAC;QACrE,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,2BAA2B,EAAE,OAAO,EAAE,CAAC;KAC3E,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export declare class Agents extends APIResource {
|
|
|
40
40
|
* "api_name": "string",
|
|
41
41
|
* "description": "string",
|
|
42
42
|
* "is_for_evals": false,
|
|
43
|
+
* "is_callable_by_rai": false,
|
|
43
44
|
* "is_global": false
|
|
44
45
|
* }
|
|
45
46
|
* ],
|
|
@@ -76,6 +77,7 @@ export declare class Agents extends APIResource {
|
|
|
76
77
|
* "api_name": "string",
|
|
77
78
|
* "description": "string",
|
|
78
79
|
* "is_for_evals": false,
|
|
80
|
+
* "is_callable_by_rai": false,
|
|
79
81
|
* "is_global": false
|
|
80
82
|
* }
|
|
81
83
|
* ```
|
|
@@ -104,13 +106,17 @@ export declare class Agents extends APIResource {
|
|
|
104
106
|
* "api_name": "string",
|
|
105
107
|
* "description": "string",
|
|
106
108
|
* "is_for_evals": false,
|
|
109
|
+
* "is_callable_by_rai": false,
|
|
107
110
|
* "is_global": false
|
|
108
111
|
* }
|
|
109
112
|
* ```
|
|
110
113
|
*/
|
|
111
114
|
retrieve(agentID: string, options?: RequestOptions): APIPromise<AgentRetrieveResponse>;
|
|
112
115
|
/**
|
|
113
|
-
* Update an agent's name or
|
|
116
|
+
* Update an agent's name, description, or Rippling AI call setting. The
|
|
117
|
+
* `is_callable_by_rai` setting controls whether Rippling AI can find and run the
|
|
118
|
+
* agent for people with Runner access. The setting can be enabled or disabled, and
|
|
119
|
+
* repeating the same update is safe. Omitted fields remain unchanged.
|
|
114
120
|
*
|
|
115
121
|
* @example HTTP
|
|
116
122
|
* Representative request and response shapes.
|
|
@@ -134,6 +140,7 @@ export declare class Agents extends APIResource {
|
|
|
134
140
|
* "api_name": "string",
|
|
135
141
|
* "description": "string",
|
|
136
142
|
* "is_for_evals": false,
|
|
143
|
+
* "is_callable_by_rai": false,
|
|
137
144
|
* "is_global": false
|
|
138
145
|
* }
|
|
139
146
|
* ```
|
|
@@ -180,6 +187,11 @@ export interface AgentListResponse {
|
|
|
180
187
|
* The description of the agent
|
|
181
188
|
*/
|
|
182
189
|
description?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
192
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
193
|
+
*/
|
|
194
|
+
is_callable_by_rai?: boolean;
|
|
183
195
|
/**
|
|
184
196
|
* Whether the agent is used for evaluations
|
|
185
197
|
*/
|
|
@@ -215,6 +227,11 @@ export interface AgentCreateResponse {
|
|
|
215
227
|
* The description of the agent
|
|
216
228
|
*/
|
|
217
229
|
description?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
232
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
233
|
+
*/
|
|
234
|
+
is_callable_by_rai?: boolean;
|
|
218
235
|
/**
|
|
219
236
|
* Whether the agent is used for evaluations
|
|
220
237
|
*/
|
|
@@ -250,6 +267,11 @@ export interface AgentRetrieveResponse {
|
|
|
250
267
|
* The description of the agent
|
|
251
268
|
*/
|
|
252
269
|
description?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
272
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
273
|
+
*/
|
|
274
|
+
is_callable_by_rai?: boolean;
|
|
253
275
|
/**
|
|
254
276
|
* Whether the agent is used for evaluations
|
|
255
277
|
*/
|
|
@@ -285,6 +307,11 @@ export interface AgentUpdateResponse {
|
|
|
285
307
|
* The description of the agent
|
|
286
308
|
*/
|
|
287
309
|
description?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
312
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
313
|
+
*/
|
|
314
|
+
is_callable_by_rai?: boolean;
|
|
288
315
|
/**
|
|
289
316
|
* Whether the agent is used for evaluations
|
|
290
317
|
*/
|
|
@@ -322,6 +349,11 @@ export interface AgentCreateParams {
|
|
|
322
349
|
* The description of the agent
|
|
323
350
|
*/
|
|
324
351
|
description?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
354
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
355
|
+
*/
|
|
356
|
+
is_callable_by_rai?: boolean;
|
|
325
357
|
/**
|
|
326
358
|
* Whether the agent is used for evaluations
|
|
327
359
|
*/
|
|
@@ -332,6 +364,11 @@ export interface AgentUpdateParams {
|
|
|
332
364
|
* The description of the agent
|
|
333
365
|
*/
|
|
334
366
|
description?: string;
|
|
367
|
+
/**
|
|
368
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
369
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
370
|
+
*/
|
|
371
|
+
is_callable_by_rai?: boolean;
|
|
335
372
|
/**
|
|
336
373
|
* The display name of the agent
|
|
337
374
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,oC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C9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,eAAe,IAAI,eAAe,EAClC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -40,6 +40,7 @@ export declare class Agents extends APIResource {
|
|
|
40
40
|
* "api_name": "string",
|
|
41
41
|
* "description": "string",
|
|
42
42
|
* "is_for_evals": false,
|
|
43
|
+
* "is_callable_by_rai": false,
|
|
43
44
|
* "is_global": false
|
|
44
45
|
* }
|
|
45
46
|
* ],
|
|
@@ -76,6 +77,7 @@ export declare class Agents extends APIResource {
|
|
|
76
77
|
* "api_name": "string",
|
|
77
78
|
* "description": "string",
|
|
78
79
|
* "is_for_evals": false,
|
|
80
|
+
* "is_callable_by_rai": false,
|
|
79
81
|
* "is_global": false
|
|
80
82
|
* }
|
|
81
83
|
* ```
|
|
@@ -104,13 +106,17 @@ export declare class Agents extends APIResource {
|
|
|
104
106
|
* "api_name": "string",
|
|
105
107
|
* "description": "string",
|
|
106
108
|
* "is_for_evals": false,
|
|
109
|
+
* "is_callable_by_rai": false,
|
|
107
110
|
* "is_global": false
|
|
108
111
|
* }
|
|
109
112
|
* ```
|
|
110
113
|
*/
|
|
111
114
|
retrieve(agentID: string, options?: RequestOptions): APIPromise<AgentRetrieveResponse>;
|
|
112
115
|
/**
|
|
113
|
-
* Update an agent's name or
|
|
116
|
+
* Update an agent's name, description, or Rippling AI call setting. The
|
|
117
|
+
* `is_callable_by_rai` setting controls whether Rippling AI can find and run the
|
|
118
|
+
* agent for people with Runner access. The setting can be enabled or disabled, and
|
|
119
|
+
* repeating the same update is safe. Omitted fields remain unchanged.
|
|
114
120
|
*
|
|
115
121
|
* @example HTTP
|
|
116
122
|
* Representative request and response shapes.
|
|
@@ -134,6 +140,7 @@ export declare class Agents extends APIResource {
|
|
|
134
140
|
* "api_name": "string",
|
|
135
141
|
* "description": "string",
|
|
136
142
|
* "is_for_evals": false,
|
|
143
|
+
* "is_callable_by_rai": false,
|
|
137
144
|
* "is_global": false
|
|
138
145
|
* }
|
|
139
146
|
* ```
|
|
@@ -180,6 +187,11 @@ export interface AgentListResponse {
|
|
|
180
187
|
* The description of the agent
|
|
181
188
|
*/
|
|
182
189
|
description?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
192
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
193
|
+
*/
|
|
194
|
+
is_callable_by_rai?: boolean;
|
|
183
195
|
/**
|
|
184
196
|
* Whether the agent is used for evaluations
|
|
185
197
|
*/
|
|
@@ -215,6 +227,11 @@ export interface AgentCreateResponse {
|
|
|
215
227
|
* The description of the agent
|
|
216
228
|
*/
|
|
217
229
|
description?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
232
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
233
|
+
*/
|
|
234
|
+
is_callable_by_rai?: boolean;
|
|
218
235
|
/**
|
|
219
236
|
* Whether the agent is used for evaluations
|
|
220
237
|
*/
|
|
@@ -250,6 +267,11 @@ export interface AgentRetrieveResponse {
|
|
|
250
267
|
* The description of the agent
|
|
251
268
|
*/
|
|
252
269
|
description?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
272
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
273
|
+
*/
|
|
274
|
+
is_callable_by_rai?: boolean;
|
|
253
275
|
/**
|
|
254
276
|
* Whether the agent is used for evaluations
|
|
255
277
|
*/
|
|
@@ -285,6 +307,11 @@ export interface AgentUpdateResponse {
|
|
|
285
307
|
* The description of the agent
|
|
286
308
|
*/
|
|
287
309
|
description?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
312
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
313
|
+
*/
|
|
314
|
+
is_callable_by_rai?: boolean;
|
|
288
315
|
/**
|
|
289
316
|
* Whether the agent is used for evaluations
|
|
290
317
|
*/
|
|
@@ -322,6 +349,11 @@ export interface AgentCreateParams {
|
|
|
322
349
|
* The description of the agent
|
|
323
350
|
*/
|
|
324
351
|
description?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
354
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
355
|
+
*/
|
|
356
|
+
is_callable_by_rai?: boolean;
|
|
325
357
|
/**
|
|
326
358
|
* Whether the agent is used for evaluations
|
|
327
359
|
*/
|
|
@@ -332,6 +364,11 @@ export interface AgentUpdateParams {
|
|
|
332
364
|
* The description of the agent
|
|
333
365
|
*/
|
|
334
366
|
description?: string;
|
|
367
|
+
/**
|
|
368
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
369
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
370
|
+
*/
|
|
371
|
+
is_callable_by_rai?: boolean;
|
|
335
372
|
/**
|
|
336
373
|
* The display name of the agent
|
|
337
374
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,oCAAoC,EACpC,0BAA0B,EAC1B,WAAW,EACZ,yBAAsB;AACvB,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,wCAAwC,EACxC,8BAA8B,EAC9B,eAAe,EAChB,8BAA2B;AAC5B,OAAO,KAAK,WAAW,+BAA4B;AACnD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,iCAAiC,EACjC,uBAAuB,EACvB,QAAQ,EACT,+BAA4B;AAC7B,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iCAA8B;AAEnE,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC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,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -48,6 +48,7 @@ class Agents extends resource_1.APIResource {
|
|
|
48
48
|
* "api_name": "string",
|
|
49
49
|
* "description": "string",
|
|
50
50
|
* "is_for_evals": false,
|
|
51
|
+
* "is_callable_by_rai": false,
|
|
51
52
|
* "is_global": false
|
|
52
53
|
* }
|
|
53
54
|
* ],
|
|
@@ -86,6 +87,7 @@ class Agents extends resource_1.APIResource {
|
|
|
86
87
|
* "api_name": "string",
|
|
87
88
|
* "description": "string",
|
|
88
89
|
* "is_for_evals": false,
|
|
90
|
+
* "is_callable_by_rai": false,
|
|
89
91
|
* "is_global": false
|
|
90
92
|
* }
|
|
91
93
|
* ```
|
|
@@ -116,6 +118,7 @@ class Agents extends resource_1.APIResource {
|
|
|
116
118
|
* "api_name": "string",
|
|
117
119
|
* "description": "string",
|
|
118
120
|
* "is_for_evals": false,
|
|
121
|
+
* "is_callable_by_rai": false,
|
|
119
122
|
* "is_global": false
|
|
120
123
|
* }
|
|
121
124
|
* ```
|
|
@@ -124,7 +127,10 @@ class Agents extends resource_1.APIResource {
|
|
|
124
127
|
return this._client.get((0, path_1.path) `/agents/${agentID}/`, options);
|
|
125
128
|
}
|
|
126
129
|
/**
|
|
127
|
-
* Update an agent's name or
|
|
130
|
+
* Update an agent's name, description, or Rippling AI call setting. The
|
|
131
|
+
* `is_callable_by_rai` setting controls whether Rippling AI can find and run the
|
|
132
|
+
* agent for people with Runner access. The setting can be enabled or disabled, and
|
|
133
|
+
* repeating the same update is safe. Omitted fields remain unchanged.
|
|
128
134
|
*
|
|
129
135
|
* @example HTTP
|
|
130
136
|
* Representative request and response shapes.
|
|
@@ -148,6 +154,7 @@ class Agents extends resource_1.APIResource {
|
|
|
148
154
|
* "api_name": "string",
|
|
149
155
|
* "description": "string",
|
|
150
156
|
* "is_for_evals": false,
|
|
157
|
+
* "is_callable_by_rai": false,
|
|
151
158
|
* "is_global": false
|
|
152
159
|
* }
|
|
153
160
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAQuB;AACvB,kFAAyD;AACzD,4DAQ4B;AAC5B,4EAAmD;AACnD,qDAQ6B;AAE7B,yDAAmE;AACnE,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAQuB;AACvB,kFAAyD;AACzD,4DAQ4B;AAC5B,4EAAmD;AACnD,qD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GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,GAAG,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9KD,wBA8KC;AAuQD,MAAM,CAAC,eAAe,GAAG,kCAAe,CAAC;AACzC,MAAM,CAAC,WAAW,GAAG,yBAAW,CAAC;AACjC,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -44,6 +44,7 @@ export class Agents extends APIResource {
|
|
|
44
44
|
* "api_name": "string",
|
|
45
45
|
* "description": "string",
|
|
46
46
|
* "is_for_evals": false,
|
|
47
|
+
* "is_callable_by_rai": false,
|
|
47
48
|
* "is_global": false
|
|
48
49
|
* }
|
|
49
50
|
* ],
|
|
@@ -82,6 +83,7 @@ export class Agents extends APIResource {
|
|
|
82
83
|
* "api_name": "string",
|
|
83
84
|
* "description": "string",
|
|
84
85
|
* "is_for_evals": false,
|
|
86
|
+
* "is_callable_by_rai": false,
|
|
85
87
|
* "is_global": false
|
|
86
88
|
* }
|
|
87
89
|
* ```
|
|
@@ -112,6 +114,7 @@ export class Agents extends APIResource {
|
|
|
112
114
|
* "api_name": "string",
|
|
113
115
|
* "description": "string",
|
|
114
116
|
* "is_for_evals": false,
|
|
117
|
+
* "is_callable_by_rai": false,
|
|
115
118
|
* "is_global": false
|
|
116
119
|
* }
|
|
117
120
|
* ```
|
|
@@ -120,7 +123,10 @@ export class Agents extends APIResource {
|
|
|
120
123
|
return this._client.get(path `/agents/${agentID}/`, options);
|
|
121
124
|
}
|
|
122
125
|
/**
|
|
123
|
-
* Update an agent's name or
|
|
126
|
+
* Update an agent's name, description, or Rippling AI call setting. The
|
|
127
|
+
* `is_callable_by_rai` setting controls whether Rippling AI can find and run the
|
|
128
|
+
* agent for people with Runner access. The setting can be enabled or disabled, and
|
|
129
|
+
* repeating the same update is safe. Omitted fields remain unchanged.
|
|
124
130
|
*
|
|
125
131
|
* @example HTTP
|
|
126
132
|
* Representative request and response shapes.
|
|
@@ -144,6 +150,7 @@ export class Agents extends APIResource {
|
|
|
144
150
|
* "api_name": "string",
|
|
145
151
|
* "description": "string",
|
|
146
152
|
* "is_for_evals": false,
|
|
153
|
+
* "is_callable_by_rai": false,
|
|
147
154
|
* "is_global": false
|
|
148
155
|
* }
|
|
149
156
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAOL,WAAW,GACZ,0BAAsB;AACvB,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAOL,eAAe,GAChB,+BAA2B;AAC5B,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EAOL,QAAQ,GACT,gCAA4B;AAE7B,OAAO,EAAE,aAAa,EAAe,kCAA8B;AACnE,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAA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C;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,MAAM,CACJ,OAAe,EACf,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,GAAG,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAuQD,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;AACzC,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -92,6 +92,70 @@ const run = await client.metadata.deploymentRuns.create({ components });
|
|
|
92
92
|
|
|
93
93
|
Poll `client.metadata.deploymentRuns.get(run.id)` until `terminal` is true, then inspect `status`, `result` and `error`. `client.metadata.components.deploy({ components })` is the synchronous alternative; inspect its `success` and `error`. Pass the compiled `components` array in either request. Deployment applies components to the authenticated company and enforces Composer permissions and update restrictions. Package publication remains a separate operation.
|
|
94
94
|
|
|
95
|
+
## Package manifests
|
|
96
|
+
|
|
97
|
+
Wrap a source manifest with `definePackageManifest` to configure package information
|
|
98
|
+
and optional post-install behavior:
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import { definePackageManifest } from '@rippling/rippling-sdk';
|
|
102
|
+
import manifest from './rippling.manifest.js';
|
|
103
|
+
import { supportHub } from './components/support-hub.js';
|
|
104
|
+
import { initializeSupportHub } from './components/initialize-support-hub.js';
|
|
105
|
+
|
|
106
|
+
export default definePackageManifest({
|
|
107
|
+
package: { key: 'support_hub', name: 'Support Hub', type: 'managed' },
|
|
108
|
+
version: '1.0.0',
|
|
109
|
+
manifest,
|
|
110
|
+
postInstallFunction: initializeSupportHub,
|
|
111
|
+
postInstallLandingComponent: supportHub,
|
|
112
|
+
});
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`initializeSupportHub` is a `defineFunction` result, and `supportHub` is a
|
|
116
|
+
`defineApp` result. TypeScript rejects other landing component kinds,
|
|
117
|
+
and the SDK also checks the kind for JavaScript callers.
|
|
118
|
+
Both definitions must already belong to `manifest`;
|
|
119
|
+
these options never add components.
|
|
120
|
+
The SDK rejects references missing from that source manifest.
|
|
121
|
+
Wrap the original `defineManifest` result before compiling sources or exporting JSON;
|
|
122
|
+
definition references depend on its authoring bookkeeping.
|
|
123
|
+
The wrapper resolves each definition from the manifest's serialized snapshots:
|
|
124
|
+
the Function becomes its API-name string, and the landing component becomes
|
|
125
|
+
its primary component config in the serialized package metadata.
|
|
126
|
+
It preserves the source manifest without compiling its files.
|
|
127
|
+
The backend validates membership in the actual stored package version
|
|
128
|
+
and eligibility for the selected post-install behavior,
|
|
129
|
+
and stores only the canonical landing identifier.
|
|
130
|
+
|
|
131
|
+
Omitted options stay absent from the serialized package metadata.
|
|
132
|
+
For the package-version settings PATCH, omission preserves the current value;
|
|
133
|
+
`postInstallFunction: null` clears the hook,
|
|
134
|
+
and `postInstallLandingComponent: null` restores the default landing selection
|
|
135
|
+
(the first packaged Custom App, if any).
|
|
136
|
+
|
|
137
|
+
`rippling project package` consumes this package manifest.
|
|
138
|
+
Its `version` selects the target package version.
|
|
139
|
+
For a missing target, it packages the components and code,
|
|
140
|
+
then PATCHes the supplied post-install settings before any requested publication.
|
|
141
|
+
An existing target rejects packaging;
|
|
142
|
+
use `--bump` to create a new snapshot and apply its supplied settings,
|
|
143
|
+
or `--settings-only` to PATCH selections on an existing unpublished draft
|
|
144
|
+
without uploading components or publishing.
|
|
145
|
+
Published versions require a new version for changes.
|
|
146
|
+
|
|
147
|
+
```sh
|
|
148
|
+
# Create the selected version when absent.
|
|
149
|
+
rippling project package .
|
|
150
|
+
# Create the next patch version, then apply its settings.
|
|
151
|
+
rippling project package . --bump
|
|
152
|
+
# Apply selections to the selected existing unpublished draft.
|
|
153
|
+
rippling project package . --settings-only
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Publication is explicit: request `--force-publish` when creating a version,
|
|
157
|
+
or publish an existing draft through the package-version API or UI.
|
|
158
|
+
|
|
95
159
|
## Custom Settings and Function dependencies
|
|
96
160
|
|
|
97
161
|
`defineCustomSetting` can create a setting. Provide both `viewGroup` and `manageGroup` as `defineGroup` definitions with the intended audience rules; the backend creates those groups inline with the setting. Both groups are required for creation. Omitting them when updating an existing setting preserves its groups. The backend rejects a creation missing either group. Secret settings require destination secret setup when installed through packaging.
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { MetadataManifest } from './metadata-manifest';
|
|
2
|
+
import type { DefinedFunction } from './definitions/function/definition';
|
|
3
|
+
import type { App } from './definitions/app/definition';
|
|
4
|
+
import { registeredComponent } from './definitions/component';
|
|
5
|
+
|
|
6
|
+
const manifestDefinitionConfigs = Symbol.for('@rippling/sdk/manifest-definition-configs');
|
|
2
7
|
|
|
3
8
|
/** Publisher-owned package information, independent of component identities. */
|
|
4
9
|
export interface PackageInformation {
|
|
@@ -8,15 +13,82 @@ export interface PackageInformation {
|
|
|
8
13
|
description?: string;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Serialized metadata resolved from a packaged component definition.
|
|
18
|
+
* The backend validates the selection and stores its canonical identifier.
|
|
19
|
+
*/
|
|
20
|
+
export type PackageComponentIdentifier = Readonly<Record<string, unknown> & { type: string }>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Serialized package information and a reference to the project's source manifest.
|
|
24
|
+
* Post-install values resolve from that manifest's component snapshots.
|
|
25
|
+
*/
|
|
12
26
|
export interface PackageManifest {
|
|
13
27
|
package: PackageInformation;
|
|
14
28
|
version: string;
|
|
15
29
|
manifest: Readonly<MetadataManifest>;
|
|
30
|
+
/**
|
|
31
|
+
* Serialized API name resolved from the packaged Function definition.
|
|
32
|
+
* When applied through PATCH, omission preserves the hook; null clears it.
|
|
33
|
+
*/
|
|
34
|
+
postInstallFunction?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Serialized config resolved from the packaged Custom App definition.
|
|
37
|
+
* When applied through PATCH, omission preserves the selection;
|
|
38
|
+
* null restores the default landing selection.
|
|
39
|
+
*/
|
|
40
|
+
postInstallLandingComponent?: PackageComponentIdentifier | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Authoring options; definition references resolve against the original defineManifest result,
|
|
45
|
+
* before source compilation or JSON export.
|
|
46
|
+
* Selections never add components; missing source-manifest definitions are rejected locally.
|
|
47
|
+
* The backend validates membership and eligibility in the stored package version.
|
|
48
|
+
*/
|
|
49
|
+
export interface PackageManifestInput
|
|
50
|
+
extends Omit<PackageManifest, 'postInstallFunction' | 'postInstallLandingComponent'> {
|
|
51
|
+
/** A defineFunction definition already in the manifest, or null to clear the hook. */
|
|
52
|
+
postInstallFunction?: DefinedFunction<any, any> | null;
|
|
53
|
+
/**
|
|
54
|
+
* A defineApp definition already in the manifest, or null to restore the default landing.
|
|
55
|
+
*/
|
|
56
|
+
postInstallLandingComponent?: App | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function componentConfig(
|
|
60
|
+
manifest: Readonly<MetadataManifest>,
|
|
61
|
+
definition: object,
|
|
62
|
+
option: string,
|
|
63
|
+
): PackageComponentIdentifier {
|
|
64
|
+
const registered = registeredComponent(definition);
|
|
65
|
+
if (registered == null) throw new Error(`${option} must reference a registered component definition.`);
|
|
66
|
+
const configs = (
|
|
67
|
+
manifest as Readonly<MetadataManifest> & {
|
|
68
|
+
readonly [manifestDefinitionConfigs]?: ReadonlyMap<object, readonly PackageComponentIdentifier[]>;
|
|
69
|
+
}
|
|
70
|
+
)[manifestDefinitionConfigs]?.get(definition);
|
|
71
|
+
if (configs == null)
|
|
72
|
+
throw new Error(`${option} definition must already be included in the supplied manifest.`);
|
|
73
|
+
const primary = configs.filter((config) => config.type === registered.type);
|
|
74
|
+
if (primary.length !== 1)
|
|
75
|
+
throw new Error(`${option} definition must resolve to exactly one primary component config.`);
|
|
76
|
+
return primary[0]!;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function landingComponentConfig(
|
|
80
|
+
manifest: Readonly<MetadataManifest>,
|
|
81
|
+
value: PackageManifestInput['postInstallLandingComponent'],
|
|
82
|
+
): PackageManifest['postInstallLandingComponent'] {
|
|
83
|
+
if (value == null) return value;
|
|
84
|
+
const config = componentConfig(manifest, value, 'Post-install landing component');
|
|
85
|
+
if (config.type !== 'CUSTOM_APP')
|
|
86
|
+
throw new Error('Post-install landing component must reference a Custom App definition.');
|
|
87
|
+
return Object.freeze({ ...config });
|
|
16
88
|
}
|
|
17
89
|
|
|
18
90
|
/** Define package information around an existing manifest without compiling its sources. */
|
|
19
|
-
export function definePackageManifest(input:
|
|
91
|
+
export function definePackageManifest(input: PackageManifestInput): Readonly<PackageManifest> {
|
|
20
92
|
if (!/^[a-z][a-z0-9_]{0,99}$/.test(input.package.key))
|
|
21
93
|
throw new Error(
|
|
22
94
|
'Package key must start with a lowercase letter and contain only lowercase letters, digits, or underscores (maximum 100 characters).',
|
|
@@ -32,9 +104,23 @@ export function definePackageManifest(input: PackageManifest): Readonly<PackageM
|
|
|
32
104
|
throw new Error('Package manifest requires metadata and components.');
|
|
33
105
|
if (input.manifest.components_to_delete != null && input.manifest.components_to_delete.length > 0)
|
|
34
106
|
throw new Error('Package snapshots cannot contain component deletions.');
|
|
107
|
+
let postInstallFunction: PackageManifest['postInstallFunction'];
|
|
108
|
+
if (input.postInstallFunction == null) {
|
|
109
|
+
postInstallFunction = input.postInstallFunction;
|
|
110
|
+
} else {
|
|
111
|
+
const config = componentConfig(input.manifest, input.postInstallFunction, 'Post-install Function');
|
|
112
|
+
if (config.type !== 'FUNCTION')
|
|
113
|
+
throw new Error('Post-install Function must reference a Function definition.');
|
|
114
|
+
if (typeof config['api_name'] !== 'string' || config['api_name'].trim() === '')
|
|
115
|
+
throw new Error('Post-install Function definition must have a nonempty API name.');
|
|
116
|
+
postInstallFunction = config['api_name'];
|
|
117
|
+
}
|
|
118
|
+
const landing = landingComponentConfig(input.manifest, input.postInstallLandingComponent);
|
|
35
119
|
return Object.freeze({
|
|
36
120
|
package: Object.freeze({ ...input.package }),
|
|
37
121
|
version: input.version,
|
|
38
122
|
manifest: input.manifest,
|
|
123
|
+
...(postInstallFunction === undefined ? {} : { postInstallFunction }),
|
|
124
|
+
...(landing === undefined ? {} : { postInstallLandingComponent: landing }),
|
|
39
125
|
});
|
|
40
126
|
}
|
|
@@ -70,6 +70,7 @@ export class Agents extends APIResource {
|
|
|
70
70
|
* "api_name": "string",
|
|
71
71
|
* "description": "string",
|
|
72
72
|
* "is_for_evals": false,
|
|
73
|
+
* "is_callable_by_rai": false,
|
|
73
74
|
* "is_global": false
|
|
74
75
|
* }
|
|
75
76
|
* ],
|
|
@@ -112,6 +113,7 @@ export class Agents extends APIResource {
|
|
|
112
113
|
* "api_name": "string",
|
|
113
114
|
* "description": "string",
|
|
114
115
|
* "is_for_evals": false,
|
|
116
|
+
* "is_callable_by_rai": false,
|
|
115
117
|
* "is_global": false
|
|
116
118
|
* }
|
|
117
119
|
* ```
|
|
@@ -143,6 +145,7 @@ export class Agents extends APIResource {
|
|
|
143
145
|
* "api_name": "string",
|
|
144
146
|
* "description": "string",
|
|
145
147
|
* "is_for_evals": false,
|
|
148
|
+
* "is_callable_by_rai": false,
|
|
146
149
|
* "is_global": false
|
|
147
150
|
* }
|
|
148
151
|
* ```
|
|
@@ -152,7 +155,10 @@ export class Agents extends APIResource {
|
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
/**
|
|
155
|
-
* Update an agent's name or
|
|
158
|
+
* Update an agent's name, description, or Rippling AI call setting. The
|
|
159
|
+
* `is_callable_by_rai` setting controls whether Rippling AI can find and run the
|
|
160
|
+
* agent for people with Runner access. The setting can be enabled or disabled, and
|
|
161
|
+
* repeating the same update is safe. Omitted fields remain unchanged.
|
|
156
162
|
*
|
|
157
163
|
* @example HTTP
|
|
158
164
|
* Representative request and response shapes.
|
|
@@ -176,6 +182,7 @@ export class Agents extends APIResource {
|
|
|
176
182
|
* "api_name": "string",
|
|
177
183
|
* "description": "string",
|
|
178
184
|
* "is_for_evals": false,
|
|
185
|
+
* "is_callable_by_rai": false,
|
|
179
186
|
* "is_global": false
|
|
180
187
|
* }
|
|
181
188
|
* ```
|
|
@@ -242,6 +249,12 @@ export interface AgentListResponse {
|
|
|
242
249
|
*/
|
|
243
250
|
description?: string;
|
|
244
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
254
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
255
|
+
*/
|
|
256
|
+
is_callable_by_rai?: boolean;
|
|
257
|
+
|
|
245
258
|
/**
|
|
246
259
|
* Whether the agent is used for evaluations
|
|
247
260
|
*/
|
|
@@ -285,6 +298,12 @@ export interface AgentCreateResponse {
|
|
|
285
298
|
*/
|
|
286
299
|
description?: string;
|
|
287
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
303
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
304
|
+
*/
|
|
305
|
+
is_callable_by_rai?: boolean;
|
|
306
|
+
|
|
288
307
|
/**
|
|
289
308
|
* Whether the agent is used for evaluations
|
|
290
309
|
*/
|
|
@@ -328,6 +347,12 @@ export interface AgentRetrieveResponse {
|
|
|
328
347
|
*/
|
|
329
348
|
description?: string;
|
|
330
349
|
|
|
350
|
+
/**
|
|
351
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
352
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
353
|
+
*/
|
|
354
|
+
is_callable_by_rai?: boolean;
|
|
355
|
+
|
|
331
356
|
/**
|
|
332
357
|
* Whether the agent is used for evaluations
|
|
333
358
|
*/
|
|
@@ -371,6 +396,12 @@ export interface AgentUpdateResponse {
|
|
|
371
396
|
*/
|
|
372
397
|
description?: string;
|
|
373
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
401
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
402
|
+
*/
|
|
403
|
+
is_callable_by_rai?: boolean;
|
|
404
|
+
|
|
374
405
|
/**
|
|
375
406
|
* Whether the agent is used for evaluations
|
|
376
407
|
*/
|
|
@@ -416,6 +447,12 @@ export interface AgentCreateParams {
|
|
|
416
447
|
*/
|
|
417
448
|
description?: string;
|
|
418
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
452
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
453
|
+
*/
|
|
454
|
+
is_callable_by_rai?: boolean;
|
|
455
|
+
|
|
419
456
|
/**
|
|
420
457
|
* Whether the agent is used for evaluations
|
|
421
458
|
*/
|
|
@@ -428,6 +465,12 @@ export interface AgentUpdateParams {
|
|
|
428
465
|
*/
|
|
429
466
|
description?: string;
|
|
430
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Whether Rippling AI can find and run this agent for people with Runner access.
|
|
470
|
+
* Defaults to false on create; unchanged when omitted from an update.
|
|
471
|
+
*/
|
|
472
|
+
is_callable_by_rai?: boolean;
|
|
473
|
+
|
|
431
474
|
/**
|
|
432
475
|
* The display name of the agent
|
|
433
476
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.117'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.117";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.117";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.117'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.117'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|