@burdenoff/microfe-stewards 0.0.0-stage → 2026.1124.2

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.
Files changed (46) hide show
  1. package/README.md +19 -2
  2. package/dist/dev/fixtures.d.ts +16 -0
  3. package/dist/dev/main.d.ts +0 -0
  4. package/dist/generated/global-operations.d.ts +4 -0
  5. package/dist/generated/global-types.d.ts +32831 -0
  6. package/dist/generated/wspace-operations.d.ts +89 -0
  7. package/dist/generated/wspace-operations.js +42 -0
  8. package/dist/generated/wspace-operations.js.map +1 -0
  9. package/dist/generated/wspace-types.d.ts +214976 -0
  10. package/dist/generated/wspace-types.js +13 -0
  11. package/dist/generated/wspace-types.js.map +1 -0
  12. package/dist/index.d.ts +8 -0
  13. package/dist/index.js +4 -0
  14. package/dist/node_modules/zustand/esm/vanilla.js +19 -0
  15. package/dist/node_modules/zustand/esm/vanilla.js.map +1 -0
  16. package/dist/stewards/StewardsRoot.d.ts +9 -0
  17. package/dist/stewards/StewardsRoot.js +16 -0
  18. package/dist/stewards/StewardsRoot.js.map +1 -0
  19. package/dist/stewards/StewardsRoutes.d.ts +5 -0
  20. package/dist/stewards/StewardsRoutes.js +19 -0
  21. package/dist/stewards/StewardsRoutes.js.map +1 -0
  22. package/dist/stewards/components/StewardsTable.d.ts +8 -0
  23. package/dist/stewards/components/StewardsTable.js +74 -0
  24. package/dist/stewards/components/StewardsTable.js.map +1 -0
  25. package/dist/stewards/components/stewardLabels.d.ts +7 -0
  26. package/dist/stewards/components/stewardLabels.js +30 -0
  27. package/dist/stewards/components/stewardLabels.js.map +1 -0
  28. package/dist/stewards/hooks/useStewards.d.ts +10 -0
  29. package/dist/stewards/hooks/useStewards.js +17 -0
  30. package/dist/stewards/hooks/useStewards.js.map +1 -0
  31. package/dist/stewards/index.d.ts +3 -0
  32. package/dist/stewards/index.js +3 -0
  33. package/dist/stewards/pages/StewardsListPage.d.ts +1 -0
  34. package/dist/stewards/pages/StewardsListPage.js +66 -0
  35. package/dist/stewards/pages/StewardsListPage.js.map +1 -0
  36. package/dist/stewards/permissions/stewardPermissions.d.ts +16 -0
  37. package/dist/stewards/permissions/stewardPermissions.js +11 -0
  38. package/dist/stewards/permissions/stewardPermissions.js.map +1 -0
  39. package/dist/stewards/providers/StewardsProvider.d.ts +18 -0
  40. package/dist/stewards/providers/StewardsProvider.js +29 -0
  41. package/dist/stewards/providers/StewardsProvider.js.map +1 -0
  42. package/dist/stewards/store/stewardsStore.d.ts +12 -0
  43. package/dist/stewards/store/stewardsStore.js +11 -0
  44. package/dist/stewards/store/stewardsStore.js.map +1 -0
  45. package/dist/stewards/types/index.d.ts +15 -0
  46. package/package.json +127 -4
@@ -0,0 +1,89 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
8
+ export type Incremental<T> = T | {
9
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
+ };
11
+ import * as Types from './wspace-types';
12
+ import * as Apollo from '@apollo/client';
13
+ import * as ApolloReactHooks from '@apollo/client/react';
14
+ export type BotmanorStewardAutonomy = 'ASK' | 'GUIDED' | 'OBSERVE' | 'TRUSTED';
15
+ export type BotmanorStewardDeskKind = 'BROWSER' | 'CLOUD' | 'NONE' | 'OWN_MACHINE';
16
+ export type BotmanorStewardFilterInput = {
17
+ autonomyLevel?: BotmanorStewardAutonomy | null | undefined;
18
+ ownerActorId?: string | number | null | undefined;
19
+ status?: BotmanorStewardStatus | null | undefined;
20
+ };
21
+ export type BotmanorStewardRunStatus = 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PAUSED_BUDGET' | 'QUEUED' | 'RUNNING' | 'STOPPED' | 'WAITING_APPROVAL' | 'WAITING_TAKEOVER';
22
+ export type BotmanorStewardStatus = 'ACTIVE' | 'ARCHIVED' | 'DRAFT' | 'PAUSED';
23
+ /** Standard pagination input */
24
+ export type PaginationInput = {
25
+ /** Shared federation compatibility field. workspaceDirectory is offset-only and rejects non-empty cursors. */
26
+ cursor?: string | null | undefined;
27
+ /** Maximum number of entries to return (clamped server-side). */
28
+ limit?: number | null | undefined;
29
+ /** Number of entries to skip from the start of the result set. */
30
+ offset?: number | null | undefined;
31
+ };
32
+ export type ListBotmanorStewardsQueryVariables = Exact<{
33
+ filter?: Types.BotmanorStewardFilterInput | null | undefined;
34
+ pagination?: Types.PaginationInput | null | undefined;
35
+ }>;
36
+ export type ListBotmanorStewardsQuery = {
37
+ listBotmanorStewards: Array<{
38
+ id: string;
39
+ agentId: string;
40
+ status: Types.BotmanorStewardStatus;
41
+ defaultDeskKind: Types.BotmanorStewardDeskKind;
42
+ pendingApprovalCount: number;
43
+ agent: {
44
+ id: string;
45
+ name: string;
46
+ } | null;
47
+ charter: {
48
+ autonomyLevel: Types.BotmanorStewardAutonomy;
49
+ budgetPerDay: {
50
+ credits: number | null;
51
+ };
52
+ };
53
+ usageToday: {
54
+ credits: number | null;
55
+ };
56
+ lastRun: {
57
+ id: string;
58
+ status: Types.BotmanorStewardRunStatus;
59
+ startedAt: string | null;
60
+ } | null;
61
+ }>;
62
+ };
63
+ export declare const ListBotmanorStewardsDocument: Apollo.DocumentNode;
64
+ /**
65
+ * __useListBotmanorStewardsQuery__
66
+ *
67
+ * To run a query within a React component, call `useListBotmanorStewardsQuery` and pass it any options that fit your needs.
68
+ * When your component renders, `useListBotmanorStewardsQuery` returns an object from Apollo Client that contains loading, error, and data properties
69
+ * you can use to render your UI.
70
+ *
71
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
72
+ *
73
+ * @example
74
+ * const { data, loading, error } = useListBotmanorStewardsQuery({
75
+ * variables: {
76
+ * filter: // value for 'filter'
77
+ * pagination: // value for 'pagination'
78
+ * },
79
+ * });
80
+ */
81
+ export declare function useListBotmanorStewardsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables, "complete" | "empty" | "streaming", Types.ListBotmanorStewardsQueryVariables, undefined>;
82
+ export declare function useListBotmanorStewardsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables, "complete" | "empty" | "streaming", undefined>;
83
+ export declare function useListBotmanorStewardsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>;
84
+ export declare function useListBotmanorStewardsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorStewardsQuery | undefined, Types.ListBotmanorStewardsQueryVariables>;
85
+ export type ListBotmanorStewardsQueryHookResult = ReturnType<typeof useListBotmanorStewardsQuery>;
86
+ export type ListBotmanorStewardsLazyQueryHookResult = ReturnType<typeof useListBotmanorStewardsLazyQuery>;
87
+ export type ListBotmanorStewardsSuspenseQueryHookResult = ReturnType<typeof useListBotmanorStewardsSuspenseQuery>;
88
+ export type ListBotmanorStewardsQueryResult = Apollo.QueryResult<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>;
89
+ export {};
@@ -0,0 +1,42 @@
1
+ import { gql as e } from "@apollo/client";
2
+ import * as t from "@apollo/client/react";
3
+ // src/generated/wspace-operations.ts
4
+ var n = {}, r = e`
5
+ query ListBotmanorStewards($filter: BotmanorStewardFilterInput, $pagination: PaginationInput) {
6
+ listBotmanorStewards(filter: $filter, pagination: $pagination) {
7
+ id
8
+ agentId
9
+ agent {
10
+ id
11
+ name
12
+ }
13
+ status
14
+ defaultDeskKind
15
+ pendingApprovalCount
16
+ charter {
17
+ autonomyLevel
18
+ budgetPerDay {
19
+ credits
20
+ }
21
+ }
22
+ usageToday {
23
+ credits
24
+ }
25
+ lastRun {
26
+ id
27
+ status
28
+ startedAt
29
+ }
30
+ }
31
+ }
32
+ `;
33
+ function i(e) {
34
+ let i = {
35
+ ...n,
36
+ ...e
37
+ };
38
+ return t.useQuery(r, i);
39
+ }
40
+ export { r as ListBotmanorStewardsDocument, i as useListBotmanorStewardsQuery };
41
+
42
+ //# sourceMappingURL=wspace-operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wspace-operations.js","names":["ApolloReactHooks","defaultOptions","ListBotmanorStewardsDocument","useListBotmanorStewardsQuery","options","baseOptions"],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type BotmanorStewardAutonomy =\n | 'ASK'\n | 'GUIDED'\n | 'OBSERVE'\n | 'TRUSTED';\n\nexport type BotmanorStewardDeskKind =\n | 'BROWSER'\n | 'CLOUD'\n | 'NONE'\n | 'OWN_MACHINE';\n\nexport type BotmanorStewardFilterInput = {\n autonomyLevel?: BotmanorStewardAutonomy | null | undefined;\n ownerActorId?: string | number | null | undefined;\n status?: BotmanorStewardStatus | null | undefined;\n};\n\nexport type BotmanorStewardRunStatus =\n | 'CANCELLED'\n | 'COMPLETED'\n | 'FAILED'\n | 'PAUSED_BUDGET'\n | 'QUEUED'\n | 'RUNNING'\n | 'STOPPED'\n | 'WAITING_APPROVAL'\n | 'WAITING_TAKEOVER';\n\nexport type BotmanorStewardStatus =\n | 'ACTIVE'\n | 'ARCHIVED'\n | 'DRAFT'\n | 'PAUSED';\n\n/** Standard pagination input */\nexport type PaginationInput = {\n /** Shared federation compatibility field. workspaceDirectory is offset-only and rejects non-empty cursors. */\n cursor?: string | null | undefined;\n /** Maximum number of entries to return (clamped server-side). */\n limit?: number | null | undefined;\n /** Number of entries to skip from the start of the result set. */\n offset?: number | null | undefined;\n};\n\nexport type ListBotmanorStewardsQueryVariables = Exact<{\n filter?: Types.BotmanorStewardFilterInput | null | undefined;\n pagination?: Types.PaginationInput | null | undefined;\n}>;\n\n\nexport type ListBotmanorStewardsQuery = { listBotmanorStewards: Array<{ id: string, agentId: string, status: Types.BotmanorStewardStatus, defaultDeskKind: Types.BotmanorStewardDeskKind, pendingApprovalCount: number, agent: { id: string, name: string } | null, charter: { autonomyLevel: Types.BotmanorStewardAutonomy, budgetPerDay: { credits: number | null } }, usageToday: { credits: number | null }, lastRun: { id: string, status: Types.BotmanorStewardRunStatus, startedAt: string | null } | null }> };\n\n\nexport const ListBotmanorStewardsDocument = gql`\n query ListBotmanorStewards($filter: BotmanorStewardFilterInput, $pagination: PaginationInput) {\n listBotmanorStewards(filter: $filter, pagination: $pagination) {\n id\n agentId\n agent {\n id\n name\n }\n status\n defaultDeskKind\n pendingApprovalCount\n charter {\n autonomyLevel\n budgetPerDay {\n credits\n }\n }\n usageToday {\n credits\n }\n lastRun {\n id\n status\n startedAt\n }\n }\n}\n `;\n\n/**\n * __useListBotmanorStewardsQuery__\n *\n * To run a query within a React component, call `useListBotmanorStewardsQuery` and pass it any options that fit your needs.\n * When your component renders, `useListBotmanorStewardsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useListBotmanorStewardsQuery({\n * variables: {\n * filter: // value for 'filter'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useListBotmanorStewardsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>(ListBotmanorStewardsDocument, options);\n }\nexport function useListBotmanorStewardsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>(ListBotmanorStewardsDocument, options);\n }\n// @ts-ignore\nexport function useListBotmanorStewardsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>;\nexport function useListBotmanorStewardsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorStewardsQuery | undefined, Types.ListBotmanorStewardsQueryVariables>;\nexport function useListBotmanorStewardsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>(ListBotmanorStewardsDocument, options);\n }\nexport type ListBotmanorStewardsQueryHookResult = ReturnType<typeof useListBotmanorStewardsQuery>;\nexport type ListBotmanorStewardsLazyQueryHookResult = ReturnType<typeof useListBotmanorStewardsLazyQuery>;\nexport type ListBotmanorStewardsSuspenseQueryHookResult = ReturnType<typeof useListBotmanorStewardsSuspenseQuery>;\nexport type ListBotmanorStewardsQueryResult = Apollo.QueryResult<Types.ListBotmanorStewardsQuery, Types.ListBotmanorStewardsQueryVariables>;"],"mappings":";;;AAUA,IAAMC,IAAiB,CAAC,GAuDXC,IAA+B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+C/C,SAAgBC,EAA6B,GAA4H;CACjK,IAAMC,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,SAAoFE,GAA8BE,CAAO;AACnJ"}