@pikku/addon-admin 0.12.14 → 0.12.15
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/README.md +2 -1
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.js +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/addon/cli/index.d.ts +1 -1
- package/dist/.pikku/addon/cli/index.js +1 -1
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-local-services.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +3 -3
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +3 -3
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +3 -3
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/utils/index.d.ts +1 -1
- package/dist/.pikku/addon/utils/index.js +1 -1
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ import { wireAddon } from '#pikku/pikku-types.gen.js'
|
|
|
22
22
|
wireAddon({
|
|
23
23
|
name: 'admin',
|
|
24
24
|
package: '@pikku/addon-admin',
|
|
25
|
+
expose: true,
|
|
25
26
|
globalCredentials:
|
|
26
27
|
'administering credentials means setting and clearing any of them, for any user, so it cannot be scoped to a declared set',
|
|
27
28
|
})
|
|
@@ -34,7 +35,7 @@ call finds nothing. Leave it off if you only want users, scopes and audits.
|
|
|
34
35
|
|
|
35
36
|
Every function carries its own `admin:*` scope, so a role can grant reading the
|
|
36
37
|
directory without granting the ability to ban anyone. Note the absence of
|
|
37
|
-
`scopes` on `wireAddon`: addon scopes are required
|
|
38
|
+
`scopes` on `wireAddon`: addon scopes are required _in addition to_ a function's
|
|
38
39
|
own, so declaring `admin` there would force the umbrella grant on every caller.
|
|
39
40
|
|
|
40
41
|
`admin:users:*` needs better-auth wired, and banning additionally needs its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent';
|
|
5
5
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
|
|
5
5
|
export type { AnalyticsClientContext, AnalyticsEventBase, AnalyticsEventDefinitions, AnalyticsEventPropsSchema, AnalyticsIdentity, AnalyticsIdentityResolver, AnalyticsLog, AnalyticsRecord, AnalyticsService, AnalyticsSink, } from '@pikku/core/analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
|
|
5
5
|
//# sourceMappingURL=pikku-analytics-types.gen.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -156,7 +156,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
|
156
156
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
157
157
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
158
158
|
|
|
159
|
-
export type
|
|
159
|
+
export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
|
|
160
160
|
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
161
161
|
? [name: Name]
|
|
162
162
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
@@ -204,5 +204,5 @@ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
|
204
204
|
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
205
205
|
) => Promise<void>
|
|
206
206
|
|
|
207
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke,
|
|
207
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
208
208
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -156,7 +156,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
|
156
156
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
157
157
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
158
158
|
|
|
159
|
-
export type
|
|
159
|
+
export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
|
|
160
160
|
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
161
161
|
? [name: Name]
|
|
162
162
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
@@ -204,5 +204,5 @@ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
|
204
204
|
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
205
205
|
) => Promise<void>
|
|
206
206
|
|
|
207
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke,
|
|
207
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
208
208
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -110,7 +110,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
|
110
110
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
111
111
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
112
112
|
|
|
113
|
-
export type
|
|
113
|
+
export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
|
|
114
114
|
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
115
115
|
? [name: Name]
|
|
116
116
|
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
@@ -158,5 +158,5 @@ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
|
158
158
|
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
159
159
|
) => Promise<void>
|
|
160
160
|
|
|
161
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke,
|
|
161
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
162
162
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
export { defineScope } from '@pikku/core/scope';
|
|
5
5
|
export { defineSystemRole } from '@pikku/core/role';
|
|
6
6
|
export { defineFeatureFlags } from '@pikku/core/flag';
|
|
7
|
+
export type { DeclaredFlag } from '@pikku/core/flag';
|
|
7
8
|
//# sourceMappingURL=pikku-scope-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-scope-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"pikku-scope-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.196
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/addon-admin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/pikkujs/pikku.git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@pikku/better-auth": "^0.12.57",
|
|
39
|
-
"@pikku/core": "^0.12.
|
|
39
|
+
"@pikku/core": "^0.12.146",
|
|
40
40
|
"zod": "^4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@pikku/better-auth": "^0.12.57",
|
|
49
|
-
"@pikku/cli": "^0.12.
|
|
49
|
+
"@pikku/cli": "^0.12.196",
|
|
50
50
|
"@pikku/core": "*",
|
|
51
51
|
"@standard-schema/spec": "^1.1.0",
|
|
52
52
|
"zod": "^4"
|